digital_world_8DataSet1.Designer.cs 691 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace Digital_World_08 {
  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("digital_world_8DataSet1")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class digital_world_8DataSet1 : global::System.Data.DataSet {
  22. private ComponentsDataTable tableComponents;
  23. private computer_assemblyDataTable tablecomputer_assembly;
  24. private OrderDataTable tableOrder;
  25. private order_by_clientsDataTable tableorder_by_clients;
  26. private Order_statusDataTable tableOrder_status;
  27. private providerDataTable tableprovider;
  28. private RoleDataTable tableRole;
  29. private unit_of_measurementDataTable tableunit_of_measurement;
  30. private UsersDataTable tableUsers;
  31. private Postavka_materialDataTable tablePostavka_material;
  32. private global::System.Data.DataRelation relationFK_Components_unit_of_measurement;
  33. private global::System.Data.DataRelation relationFK_Order_order_by_clients;
  34. private global::System.Data.DataRelation relationFK_Order_Order_status;
  35. private global::System.Data.DataRelation relationFK_Users_Role;
  36. private global::System.Data.DataRelation relationFK_Order_computer_assembly;
  37. private global::System.Data.DataRelation relationFK_Postavka_material_provider;
  38. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  39. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  40. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  41. public digital_world_8DataSet1() {
  42. this.BeginInit();
  43. this.InitClass();
  44. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  45. base.Tables.CollectionChanged += schemaChangedHandler;
  46. base.Relations.CollectionChanged += schemaChangedHandler;
  47. this.EndInit();
  48. }
  49. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  50. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  51. protected digital_world_8DataSet1(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  52. base(info, context, false) {
  53. if ((this.IsBinarySerialized(info, context) == true)) {
  54. this.InitVars(false);
  55. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  56. this.Tables.CollectionChanged += schemaChangedHandler1;
  57. this.Relations.CollectionChanged += schemaChangedHandler1;
  58. return;
  59. }
  60. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  61. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  62. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  63. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  64. if ((ds.Tables["Components"] != null)) {
  65. base.Tables.Add(new ComponentsDataTable(ds.Tables["Components"]));
  66. }
  67. if ((ds.Tables["computer_assembly"] != null)) {
  68. base.Tables.Add(new computer_assemblyDataTable(ds.Tables["computer_assembly"]));
  69. }
  70. if ((ds.Tables["Order"] != null)) {
  71. base.Tables.Add(new OrderDataTable(ds.Tables["Order"]));
  72. }
  73. if ((ds.Tables["order_by_clients"] != null)) {
  74. base.Tables.Add(new order_by_clientsDataTable(ds.Tables["order_by_clients"]));
  75. }
  76. if ((ds.Tables["Order_status"] != null)) {
  77. base.Tables.Add(new Order_statusDataTable(ds.Tables["Order_status"]));
  78. }
  79. if ((ds.Tables["provider"] != null)) {
  80. base.Tables.Add(new providerDataTable(ds.Tables["provider"]));
  81. }
  82. if ((ds.Tables["Role"] != null)) {
  83. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  84. }
  85. if ((ds.Tables["unit_of_measurement"] != null)) {
  86. base.Tables.Add(new unit_of_measurementDataTable(ds.Tables["unit_of_measurement"]));
  87. }
  88. if ((ds.Tables["Users"] != null)) {
  89. base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
  90. }
  91. if ((ds.Tables["Postavka_material"] != null)) {
  92. base.Tables.Add(new Postavka_materialDataTable(ds.Tables["Postavka_material"]));
  93. }
  94. this.DataSetName = ds.DataSetName;
  95. this.Prefix = ds.Prefix;
  96. this.Namespace = ds.Namespace;
  97. this.Locale = ds.Locale;
  98. this.CaseSensitive = ds.CaseSensitive;
  99. this.EnforceConstraints = ds.EnforceConstraints;
  100. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  101. this.InitVars();
  102. }
  103. else {
  104. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  105. }
  106. this.GetSerializationData(info, context);
  107. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  108. base.Tables.CollectionChanged += schemaChangedHandler;
  109. this.Relations.CollectionChanged += schemaChangedHandler;
  110. }
  111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  113. [global::System.ComponentModel.Browsable(false)]
  114. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  115. public ComponentsDataTable Components {
  116. get {
  117. return this.tableComponents;
  118. }
  119. }
  120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  122. [global::System.ComponentModel.Browsable(false)]
  123. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  124. public computer_assemblyDataTable computer_assembly {
  125. get {
  126. return this.tablecomputer_assembly;
  127. }
  128. }
  129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  131. [global::System.ComponentModel.Browsable(false)]
  132. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  133. public OrderDataTable Order {
  134. get {
  135. return this.tableOrder;
  136. }
  137. }
  138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  140. [global::System.ComponentModel.Browsable(false)]
  141. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  142. public order_by_clientsDataTable order_by_clients {
  143. get {
  144. return this.tableorder_by_clients;
  145. }
  146. }
  147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  149. [global::System.ComponentModel.Browsable(false)]
  150. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  151. public Order_statusDataTable Order_status {
  152. get {
  153. return this.tableOrder_status;
  154. }
  155. }
  156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  158. [global::System.ComponentModel.Browsable(false)]
  159. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  160. public providerDataTable provider {
  161. get {
  162. return this.tableprovider;
  163. }
  164. }
  165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  167. [global::System.ComponentModel.Browsable(false)]
  168. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  169. public RoleDataTable Role {
  170. get {
  171. return this.tableRole;
  172. }
  173. }
  174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  176. [global::System.ComponentModel.Browsable(false)]
  177. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  178. public unit_of_measurementDataTable unit_of_measurement {
  179. get {
  180. return this.tableunit_of_measurement;
  181. }
  182. }
  183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  185. [global::System.ComponentModel.Browsable(false)]
  186. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  187. public UsersDataTable Users {
  188. get {
  189. return this.tableUsers;
  190. }
  191. }
  192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  194. [global::System.ComponentModel.Browsable(false)]
  195. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  196. public Postavka_materialDataTable Postavka_material {
  197. get {
  198. return this.tablePostavka_material;
  199. }
  200. }
  201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  203. [global::System.ComponentModel.BrowsableAttribute(true)]
  204. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  205. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  206. get {
  207. return this._schemaSerializationMode;
  208. }
  209. set {
  210. this._schemaSerializationMode = value;
  211. }
  212. }
  213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  215. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  216. public new global::System.Data.DataTableCollection Tables {
  217. get {
  218. return base.Tables;
  219. }
  220. }
  221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  223. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  224. public new global::System.Data.DataRelationCollection Relations {
  225. get {
  226. return base.Relations;
  227. }
  228. }
  229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  231. protected override void InitializeDerivedDataSet() {
  232. this.BeginInit();
  233. this.InitClass();
  234. this.EndInit();
  235. }
  236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  238. public override global::System.Data.DataSet Clone() {
  239. digital_world_8DataSet1 cln = ((digital_world_8DataSet1)(base.Clone()));
  240. cln.InitVars();
  241. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  242. return cln;
  243. }
  244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  246. protected override bool ShouldSerializeTables() {
  247. return false;
  248. }
  249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  251. protected override bool ShouldSerializeRelations() {
  252. return false;
  253. }
  254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  256. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  257. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  258. this.Reset();
  259. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  260. ds.ReadXml(reader);
  261. if ((ds.Tables["Components"] != null)) {
  262. base.Tables.Add(new ComponentsDataTable(ds.Tables["Components"]));
  263. }
  264. if ((ds.Tables["computer_assembly"] != null)) {
  265. base.Tables.Add(new computer_assemblyDataTable(ds.Tables["computer_assembly"]));
  266. }
  267. if ((ds.Tables["Order"] != null)) {
  268. base.Tables.Add(new OrderDataTable(ds.Tables["Order"]));
  269. }
  270. if ((ds.Tables["order_by_clients"] != null)) {
  271. base.Tables.Add(new order_by_clientsDataTable(ds.Tables["order_by_clients"]));
  272. }
  273. if ((ds.Tables["Order_status"] != null)) {
  274. base.Tables.Add(new Order_statusDataTable(ds.Tables["Order_status"]));
  275. }
  276. if ((ds.Tables["provider"] != null)) {
  277. base.Tables.Add(new providerDataTable(ds.Tables["provider"]));
  278. }
  279. if ((ds.Tables["Role"] != null)) {
  280. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  281. }
  282. if ((ds.Tables["unit_of_measurement"] != null)) {
  283. base.Tables.Add(new unit_of_measurementDataTable(ds.Tables["unit_of_measurement"]));
  284. }
  285. if ((ds.Tables["Users"] != null)) {
  286. base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
  287. }
  288. if ((ds.Tables["Postavka_material"] != null)) {
  289. base.Tables.Add(new Postavka_materialDataTable(ds.Tables["Postavka_material"]));
  290. }
  291. this.DataSetName = ds.DataSetName;
  292. this.Prefix = ds.Prefix;
  293. this.Namespace = ds.Namespace;
  294. this.Locale = ds.Locale;
  295. this.CaseSensitive = ds.CaseSensitive;
  296. this.EnforceConstraints = ds.EnforceConstraints;
  297. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  298. this.InitVars();
  299. }
  300. else {
  301. this.ReadXml(reader);
  302. this.InitVars();
  303. }
  304. }
  305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  307. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  308. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  309. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  310. stream.Position = 0;
  311. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  312. }
  313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  315. internal void InitVars() {
  316. this.InitVars(true);
  317. }
  318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  320. internal void InitVars(bool initTable) {
  321. this.tableComponents = ((ComponentsDataTable)(base.Tables["Components"]));
  322. if ((initTable == true)) {
  323. if ((this.tableComponents != null)) {
  324. this.tableComponents.InitVars();
  325. }
  326. }
  327. this.tablecomputer_assembly = ((computer_assemblyDataTable)(base.Tables["computer_assembly"]));
  328. if ((initTable == true)) {
  329. if ((this.tablecomputer_assembly != null)) {
  330. this.tablecomputer_assembly.InitVars();
  331. }
  332. }
  333. this.tableOrder = ((OrderDataTable)(base.Tables["Order"]));
  334. if ((initTable == true)) {
  335. if ((this.tableOrder != null)) {
  336. this.tableOrder.InitVars();
  337. }
  338. }
  339. this.tableorder_by_clients = ((order_by_clientsDataTable)(base.Tables["order_by_clients"]));
  340. if ((initTable == true)) {
  341. if ((this.tableorder_by_clients != null)) {
  342. this.tableorder_by_clients.InitVars();
  343. }
  344. }
  345. this.tableOrder_status = ((Order_statusDataTable)(base.Tables["Order_status"]));
  346. if ((initTable == true)) {
  347. if ((this.tableOrder_status != null)) {
  348. this.tableOrder_status.InitVars();
  349. }
  350. }
  351. this.tableprovider = ((providerDataTable)(base.Tables["provider"]));
  352. if ((initTable == true)) {
  353. if ((this.tableprovider != null)) {
  354. this.tableprovider.InitVars();
  355. }
  356. }
  357. this.tableRole = ((RoleDataTable)(base.Tables["Role"]));
  358. if ((initTable == true)) {
  359. if ((this.tableRole != null)) {
  360. this.tableRole.InitVars();
  361. }
  362. }
  363. this.tableunit_of_measurement = ((unit_of_measurementDataTable)(base.Tables["unit_of_measurement"]));
  364. if ((initTable == true)) {
  365. if ((this.tableunit_of_measurement != null)) {
  366. this.tableunit_of_measurement.InitVars();
  367. }
  368. }
  369. this.tableUsers = ((UsersDataTable)(base.Tables["Users"]));
  370. if ((initTable == true)) {
  371. if ((this.tableUsers != null)) {
  372. this.tableUsers.InitVars();
  373. }
  374. }
  375. this.tablePostavka_material = ((Postavka_materialDataTable)(base.Tables["Postavka_material"]));
  376. if ((initTable == true)) {
  377. if ((this.tablePostavka_material != null)) {
  378. this.tablePostavka_material.InitVars();
  379. }
  380. }
  381. this.relationFK_Components_unit_of_measurement = this.Relations["FK_Components_unit_of_measurement"];
  382. this.relationFK_Order_order_by_clients = this.Relations["FK_Order_order_by_clients"];
  383. this.relationFK_Order_Order_status = this.Relations["FK_Order_Order_status"];
  384. this.relationFK_Users_Role = this.Relations["FK_Users_Role"];
  385. this.relationFK_Order_computer_assembly = this.Relations["FK_Order_computer_assembly"];
  386. this.relationFK_Postavka_material_provider = this.Relations["FK_Postavka_material_provider"];
  387. }
  388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  390. private void InitClass() {
  391. this.DataSetName = "digital_world_8DataSet1";
  392. this.Prefix = "";
  393. this.Namespace = "http://tempuri.org/digital_world_8DataSet1.xsd";
  394. this.EnforceConstraints = true;
  395. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  396. this.tableComponents = new ComponentsDataTable();
  397. base.Tables.Add(this.tableComponents);
  398. this.tablecomputer_assembly = new computer_assemblyDataTable();
  399. base.Tables.Add(this.tablecomputer_assembly);
  400. this.tableOrder = new OrderDataTable();
  401. base.Tables.Add(this.tableOrder);
  402. this.tableorder_by_clients = new order_by_clientsDataTable();
  403. base.Tables.Add(this.tableorder_by_clients);
  404. this.tableOrder_status = new Order_statusDataTable();
  405. base.Tables.Add(this.tableOrder_status);
  406. this.tableprovider = new providerDataTable();
  407. base.Tables.Add(this.tableprovider);
  408. this.tableRole = new RoleDataTable();
  409. base.Tables.Add(this.tableRole);
  410. this.tableunit_of_measurement = new unit_of_measurementDataTable();
  411. base.Tables.Add(this.tableunit_of_measurement);
  412. this.tableUsers = new UsersDataTable();
  413. base.Tables.Add(this.tableUsers);
  414. this.tablePostavka_material = new Postavka_materialDataTable();
  415. base.Tables.Add(this.tablePostavka_material);
  416. this.relationFK_Components_unit_of_measurement = new global::System.Data.DataRelation("FK_Components_unit_of_measurement", new global::System.Data.DataColumn[] {
  417. this.tableunit_of_measurement.idColumn}, new global::System.Data.DataColumn[] {
  418. this.tableComponents.Id_единицы_измеренияColumn}, false);
  419. this.Relations.Add(this.relationFK_Components_unit_of_measurement);
  420. this.relationFK_Order_order_by_clients = new global::System.Data.DataRelation("FK_Order_order_by_clients", new global::System.Data.DataColumn[] {
  421. this.tableorder_by_clients.Номер_заказаColumn}, new global::System.Data.DataColumn[] {
  422. this.tableOrder.Номер_заказаColumn}, false);
  423. this.Relations.Add(this.relationFK_Order_order_by_clients);
  424. this.relationFK_Order_Order_status = new global::System.Data.DataRelation("FK_Order_Order_status", new global::System.Data.DataColumn[] {
  425. this.tableOrder_status.idColumn}, new global::System.Data.DataColumn[] {
  426. this.tableOrder.id_статусаColumn}, false);
  427. this.Relations.Add(this.relationFK_Order_Order_status);
  428. this.relationFK_Users_Role = new global::System.Data.DataRelation("FK_Users_Role", new global::System.Data.DataColumn[] {
  429. this.tableRole.IdColumn}, new global::System.Data.DataColumn[] {
  430. this.tableUsers.RoleColumn}, false);
  431. this.Relations.Add(this.relationFK_Users_Role);
  432. this.relationFK_Order_computer_assembly = new global::System.Data.DataRelation("FK_Order_computer_assembly", new global::System.Data.DataColumn[] {
  433. this.tablecomputer_assembly.Номер_сборкиColumn}, new global::System.Data.DataColumn[] {
  434. this.tableOrder.Номер_сборкиColumn}, false);
  435. this.Relations.Add(this.relationFK_Order_computer_assembly);
  436. this.relationFK_Postavka_material_provider = new global::System.Data.DataRelation("FK_Postavka_material_provider", new global::System.Data.DataColumn[] {
  437. this.tableprovider.idColumn}, new global::System.Data.DataColumn[] {
  438. this.tablePostavka_material.id_производителяColumn}, false);
  439. this.Relations.Add(this.relationFK_Postavka_material_provider);
  440. }
  441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  443. private bool ShouldSerializeComponents() {
  444. return false;
  445. }
  446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  448. private bool ShouldSerializecomputer_assembly() {
  449. return false;
  450. }
  451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  453. private bool ShouldSerializeOrder() {
  454. return false;
  455. }
  456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  458. private bool ShouldSerializeorder_by_clients() {
  459. return false;
  460. }
  461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  463. private bool ShouldSerializeOrder_status() {
  464. return false;
  465. }
  466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  468. private bool ShouldSerializeprovider() {
  469. return false;
  470. }
  471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  473. private bool ShouldSerializeRole() {
  474. return false;
  475. }
  476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  478. private bool ShouldSerializeunit_of_measurement() {
  479. return false;
  480. }
  481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  483. private bool ShouldSerializeUsers() {
  484. return false;
  485. }
  486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  488. private bool ShouldSerializePostavka_material() {
  489. return false;
  490. }
  491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  493. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  494. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  495. this.InitVars();
  496. }
  497. }
  498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  500. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  501. digital_world_8DataSet1 ds = new digital_world_8DataSet1();
  502. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  503. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  504. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  505. any.Namespace = ds.Namespace;
  506. sequence.Items.Add(any);
  507. type.Particle = sequence;
  508. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  509. if (xs.Contains(dsSchema.TargetNamespace)) {
  510. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  511. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  512. try {
  513. global::System.Xml.Schema.XmlSchema schema = null;
  514. dsSchema.Write(s1);
  515. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  516. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  517. s2.SetLength(0);
  518. schema.Write(s2);
  519. if ((s1.Length == s2.Length)) {
  520. s1.Position = 0;
  521. s2.Position = 0;
  522. for (; ((s1.Position != s1.Length)
  523. && (s1.ReadByte() == s2.ReadByte())); ) {
  524. ;
  525. }
  526. if ((s1.Position == s1.Length)) {
  527. return type;
  528. }
  529. }
  530. }
  531. }
  532. finally {
  533. if ((s1 != null)) {
  534. s1.Close();
  535. }
  536. if ((s2 != null)) {
  537. s2.Close();
  538. }
  539. }
  540. }
  541. xs.Add(dsSchema);
  542. return type;
  543. }
  544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  545. public delegate void ComponentsRowChangeEventHandler(object sender, ComponentsRowChangeEvent e);
  546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  547. public delegate void computer_assemblyRowChangeEventHandler(object sender, computer_assemblyRowChangeEvent e);
  548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  549. public delegate void OrderRowChangeEventHandler(object sender, OrderRowChangeEvent e);
  550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  551. public delegate void order_by_clientsRowChangeEventHandler(object sender, order_by_clientsRowChangeEvent e);
  552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  553. public delegate void Order_statusRowChangeEventHandler(object sender, Order_statusRowChangeEvent e);
  554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  555. public delegate void providerRowChangeEventHandler(object sender, providerRowChangeEvent e);
  556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  557. public delegate void RoleRowChangeEventHandler(object sender, RoleRowChangeEvent e);
  558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  559. public delegate void unit_of_measurementRowChangeEventHandler(object sender, unit_of_measurementRowChangeEvent e);
  560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  561. public delegate void UsersRowChangeEventHandler(object sender, UsersRowChangeEvent e);
  562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  563. public delegate void Postavka_materialRowChangeEventHandler(object sender, Postavka_materialRowChangeEvent e);
  564. /// <summary>
  565. ///Represents the strongly named DataTable class.
  566. ///</summary>
  567. [global::System.Serializable()]
  568. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  569. public partial class ComponentsDataTable : global::System.Data.TypedTableBase<ComponentsRow> {
  570. private global::System.Data.DataColumn columnid;
  571. private global::System.Data.DataColumn columnНазвание;
  572. private global::System.Data.DataColumn columnId_единицы_измерения;
  573. private global::System.Data.DataColumn columnТип_материала;
  574. private global::System.Data.DataColumn columnЦена;
  575. private global::System.Data.DataColumn columnколичество;
  576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  578. public ComponentsDataTable() {
  579. this.TableName = "Components";
  580. this.BeginInit();
  581. this.InitClass();
  582. this.EndInit();
  583. }
  584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  586. internal ComponentsDataTable(global::System.Data.DataTable table) {
  587. this.TableName = table.TableName;
  588. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  589. this.CaseSensitive = table.CaseSensitive;
  590. }
  591. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  592. this.Locale = table.Locale;
  593. }
  594. if ((table.Namespace != table.DataSet.Namespace)) {
  595. this.Namespace = table.Namespace;
  596. }
  597. this.Prefix = table.Prefix;
  598. this.MinimumCapacity = table.MinimumCapacity;
  599. }
  600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  602. protected ComponentsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  603. base(info, context) {
  604. this.InitVars();
  605. }
  606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  608. public global::System.Data.DataColumn idColumn {
  609. get {
  610. return this.columnid;
  611. }
  612. }
  613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  615. public global::System.Data.DataColumn НазваниеColumn {
  616. get {
  617. return this.columnНазвание;
  618. }
  619. }
  620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  622. public global::System.Data.DataColumn Id_единицы_измеренияColumn {
  623. get {
  624. return this.columnId_единицы_измерения;
  625. }
  626. }
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  629. public global::System.Data.DataColumn Тип_материалаColumn {
  630. get {
  631. return this.columnТип_материала;
  632. }
  633. }
  634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  636. public global::System.Data.DataColumn ЦенаColumn {
  637. get {
  638. return this.columnЦена;
  639. }
  640. }
  641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  643. public global::System.Data.DataColumn количествоColumn {
  644. get {
  645. return this.columnколичество;
  646. }
  647. }
  648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  650. [global::System.ComponentModel.Browsable(false)]
  651. public int Count {
  652. get {
  653. return this.Rows.Count;
  654. }
  655. }
  656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  658. public ComponentsRow this[int index] {
  659. get {
  660. return ((ComponentsRow)(this.Rows[index]));
  661. }
  662. }
  663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  664. public event ComponentsRowChangeEventHandler ComponentsRowChanging;
  665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  666. public event ComponentsRowChangeEventHandler ComponentsRowChanged;
  667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  668. public event ComponentsRowChangeEventHandler ComponentsRowDeleting;
  669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  670. public event ComponentsRowChangeEventHandler ComponentsRowDeleted;
  671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  673. public void AddComponentsRow(ComponentsRow row) {
  674. this.Rows.Add(row);
  675. }
  676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  678. public ComponentsRow AddComponentsRow(string Название, unit_of_measurementRow parentunit_of_measurementRowByFK_Components_unit_of_measurement, string Тип_материала, int Цена, int количество) {
  679. ComponentsRow rowComponentsRow = ((ComponentsRow)(this.NewRow()));
  680. object[] columnValuesArray = new object[] {
  681. null,
  682. Название,
  683. null,
  684. Тип_материала,
  685. Цена,
  686. количество};
  687. if ((parentunit_of_measurementRowByFK_Components_unit_of_measurement != null)) {
  688. columnValuesArray[2] = parentunit_of_measurementRowByFK_Components_unit_of_measurement[0];
  689. }
  690. rowComponentsRow.ItemArray = columnValuesArray;
  691. this.Rows.Add(rowComponentsRow);
  692. return rowComponentsRow;
  693. }
  694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  696. public ComponentsRow FindByid(int id) {
  697. return ((ComponentsRow)(this.Rows.Find(new object[] {
  698. id})));
  699. }
  700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  702. public override global::System.Data.DataTable Clone() {
  703. ComponentsDataTable cln = ((ComponentsDataTable)(base.Clone()));
  704. cln.InitVars();
  705. return cln;
  706. }
  707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  709. protected override global::System.Data.DataTable CreateInstance() {
  710. return new ComponentsDataTable();
  711. }
  712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  714. internal void InitVars() {
  715. this.columnid = base.Columns["id"];
  716. this.columnНазвание = base.Columns["Название"];
  717. this.columnId_единицы_измерения = base.Columns["Id единицы измерения"];
  718. this.columnТип_материала = base.Columns["Тип_материала"];
  719. this.columnЦена = base.Columns["Цена"];
  720. this.columnколичество = base.Columns["количество"];
  721. }
  722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  724. private void InitClass() {
  725. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  726. base.Columns.Add(this.columnid);
  727. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  728. base.Columns.Add(this.columnНазвание);
  729. this.columnId_единицы_измерения = new global::System.Data.DataColumn("Id единицы измерения", typeof(int), null, global::System.Data.MappingType.Element);
  730. base.Columns.Add(this.columnId_единицы_измерения);
  731. this.columnТип_материала = new global::System.Data.DataColumn("Тип_материала", typeof(string), null, global::System.Data.MappingType.Element);
  732. base.Columns.Add(this.columnТип_материала);
  733. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(int), null, global::System.Data.MappingType.Element);
  734. base.Columns.Add(this.columnЦена);
  735. this.columnколичество = new global::System.Data.DataColumn("количество", typeof(int), null, global::System.Data.MappingType.Element);
  736. base.Columns.Add(this.columnколичество);
  737. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  738. this.columnid}, true));
  739. this.columnid.AutoIncrement = true;
  740. this.columnid.AutoIncrementSeed = -1;
  741. this.columnid.AutoIncrementStep = -1;
  742. this.columnid.AllowDBNull = false;
  743. this.columnid.ReadOnly = true;
  744. this.columnid.Unique = true;
  745. this.columnНазвание.MaxLength = 2147483647;
  746. this.columnТип_материала.MaxLength = 50;
  747. }
  748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  750. public ComponentsRow NewComponentsRow() {
  751. return ((ComponentsRow)(this.NewRow()));
  752. }
  753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  755. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  756. return new ComponentsRow(builder);
  757. }
  758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  760. protected override global::System.Type GetRowType() {
  761. return typeof(ComponentsRow);
  762. }
  763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  765. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  766. base.OnRowChanged(e);
  767. if ((this.ComponentsRowChanged != null)) {
  768. this.ComponentsRowChanged(this, new ComponentsRowChangeEvent(((ComponentsRow)(e.Row)), e.Action));
  769. }
  770. }
  771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  773. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  774. base.OnRowChanging(e);
  775. if ((this.ComponentsRowChanging != null)) {
  776. this.ComponentsRowChanging(this, new ComponentsRowChangeEvent(((ComponentsRow)(e.Row)), e.Action));
  777. }
  778. }
  779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  781. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  782. base.OnRowDeleted(e);
  783. if ((this.ComponentsRowDeleted != null)) {
  784. this.ComponentsRowDeleted(this, new ComponentsRowChangeEvent(((ComponentsRow)(e.Row)), e.Action));
  785. }
  786. }
  787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  789. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  790. base.OnRowDeleting(e);
  791. if ((this.ComponentsRowDeleting != null)) {
  792. this.ComponentsRowDeleting(this, new ComponentsRowChangeEvent(((ComponentsRow)(e.Row)), e.Action));
  793. }
  794. }
  795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  797. public void RemoveComponentsRow(ComponentsRow row) {
  798. this.Rows.Remove(row);
  799. }
  800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  802. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  803. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  804. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  805. digital_world_8DataSet1 ds = new digital_world_8DataSet1();
  806. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  807. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  808. any1.MinOccurs = new decimal(0);
  809. any1.MaxOccurs = decimal.MaxValue;
  810. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  811. sequence.Items.Add(any1);
  812. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  813. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  814. any2.MinOccurs = new decimal(1);
  815. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  816. sequence.Items.Add(any2);
  817. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  818. attribute1.Name = "namespace";
  819. attribute1.FixedValue = ds.Namespace;
  820. type.Attributes.Add(attribute1);
  821. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  822. attribute2.Name = "tableTypeName";
  823. attribute2.FixedValue = "ComponentsDataTable";
  824. type.Attributes.Add(attribute2);
  825. type.Particle = sequence;
  826. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  827. if (xs.Contains(dsSchema.TargetNamespace)) {
  828. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  829. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  830. try {
  831. global::System.Xml.Schema.XmlSchema schema = null;
  832. dsSchema.Write(s1);
  833. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  834. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  835. s2.SetLength(0);
  836. schema.Write(s2);
  837. if ((s1.Length == s2.Length)) {
  838. s1.Position = 0;
  839. s2.Position = 0;
  840. for (; ((s1.Position != s1.Length)
  841. && (s1.ReadByte() == s2.ReadByte())); ) {
  842. ;
  843. }
  844. if ((s1.Position == s1.Length)) {
  845. return type;
  846. }
  847. }
  848. }
  849. }
  850. finally {
  851. if ((s1 != null)) {
  852. s1.Close();
  853. }
  854. if ((s2 != null)) {
  855. s2.Close();
  856. }
  857. }
  858. }
  859. xs.Add(dsSchema);
  860. return type;
  861. }
  862. }
  863. /// <summary>
  864. ///Represents the strongly named DataTable class.
  865. ///</summary>
  866. [global::System.Serializable()]
  867. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  868. public partial class computer_assemblyDataTable : global::System.Data.TypedTableBase<computer_assemblyRow> {
  869. private global::System.Data.DataColumn columnВидеокарта;
  870. private global::System.Data.DataColumn columnМатеринская_плата;
  871. private global::System.Data.DataColumn columnПроцессор;
  872. private global::System.Data.DataColumn columnОперативная_память;
  873. private global::System.Data.DataColumn _columnОперативная_память;
  874. private global::System.Data.DataColumn columnЖетский_диск;
  875. private global::System.Data.DataColumn columnКуллер;
  876. private global::System.Data.DataColumn columnСистема_охлаждения;
  877. private global::System.Data.DataColumn columnБлок_питания;
  878. private global::System.Data.DataColumn columnSSD;
  879. private global::System.Data.DataColumn columnНомер_сборки;
  880. private global::System.Data.DataColumn columnИтоговая_цена;
  881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  883. public computer_assemblyDataTable() {
  884. this.TableName = "computer_assembly";
  885. this.BeginInit();
  886. this.InitClass();
  887. this.EndInit();
  888. }
  889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  891. internal computer_assemblyDataTable(global::System.Data.DataTable table) {
  892. this.TableName = table.TableName;
  893. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  894. this.CaseSensitive = table.CaseSensitive;
  895. }
  896. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  897. this.Locale = table.Locale;
  898. }
  899. if ((table.Namespace != table.DataSet.Namespace)) {
  900. this.Namespace = table.Namespace;
  901. }
  902. this.Prefix = table.Prefix;
  903. this.MinimumCapacity = table.MinimumCapacity;
  904. }
  905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  907. protected computer_assemblyDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  908. base(info, context) {
  909. this.InitVars();
  910. }
  911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  913. public global::System.Data.DataColumn ВидеокартаColumn {
  914. get {
  915. return this.columnВидеокарта;
  916. }
  917. }
  918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  920. public global::System.Data.DataColumn Материнская_платаColumn {
  921. get {
  922. return this.columnМатеринская_плата;
  923. }
  924. }
  925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  927. public global::System.Data.DataColumn ПроцессорColumn {
  928. get {
  929. return this.columnПроцессор;
  930. }
  931. }
  932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  934. public global::System.Data.DataColumn Оперативная_памятьColumn {
  935. get {
  936. return this.columnОперативная_память;
  937. }
  938. }
  939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  941. public global::System.Data.DataColumn _Оперативная_памятьColumn {
  942. get {
  943. return this._columnОперативная_память;
  944. }
  945. }
  946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  948. public global::System.Data.DataColumn Жетский_дискColumn {
  949. get {
  950. return this.columnЖетский_диск;
  951. }
  952. }
  953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  955. public global::System.Data.DataColumn КуллерColumn {
  956. get {
  957. return this.columnКуллер;
  958. }
  959. }
  960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  962. public global::System.Data.DataColumn Система_охлажденияColumn {
  963. get {
  964. return this.columnСистема_охлаждения;
  965. }
  966. }
  967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  969. public global::System.Data.DataColumn Блок_питанияColumn {
  970. get {
  971. return this.columnБлок_питания;
  972. }
  973. }
  974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  976. public global::System.Data.DataColumn SSDColumn {
  977. get {
  978. return this.columnSSD;
  979. }
  980. }
  981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  983. public global::System.Data.DataColumn Номер_сборкиColumn {
  984. get {
  985. return this.columnНомер_сборки;
  986. }
  987. }
  988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  990. public global::System.Data.DataColumn Итоговая_ценаColumn {
  991. get {
  992. return this.columnИтоговая_цена;
  993. }
  994. }
  995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  997. [global::System.ComponentModel.Browsable(false)]
  998. public int Count {
  999. get {
  1000. return this.Rows.Count;
  1001. }
  1002. }
  1003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1005. public computer_assemblyRow this[int index] {
  1006. get {
  1007. return ((computer_assemblyRow)(this.Rows[index]));
  1008. }
  1009. }
  1010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1011. public event computer_assemblyRowChangeEventHandler computer_assemblyRowChanging;
  1012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1013. public event computer_assemblyRowChangeEventHandler computer_assemblyRowChanged;
  1014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1015. public event computer_assemblyRowChangeEventHandler computer_assemblyRowDeleting;
  1016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1017. public event computer_assemblyRowChangeEventHandler computer_assemblyRowDeleted;
  1018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1020. public void Addcomputer_assemblyRow(computer_assemblyRow row) {
  1021. this.Rows.Add(row);
  1022. }
  1023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1025. public computer_assemblyRow Addcomputer_assemblyRow(string Видеокарта, string Материнская_плата, string Процессор, string Оперативная_память, string _Оперативная_память, string Жетский_диск, string Куллер, string Система_охлаждения, string Блок_питания, string SSD, int Итоговая_цена) {
  1026. computer_assemblyRow rowcomputer_assemblyRow = ((computer_assemblyRow)(this.NewRow()));
  1027. object[] columnValuesArray = new object[] {
  1028. Видеокарта,
  1029. Материнская_плата,
  1030. Процессор,
  1031. Оперативная_память,
  1032. _Оперативная_память,
  1033. Жетский_диск,
  1034. Куллер,
  1035. Система_охлаждения,
  1036. Блок_питания,
  1037. SSD,
  1038. null,
  1039. Итоговая_цена};
  1040. rowcomputer_assemblyRow.ItemArray = columnValuesArray;
  1041. this.Rows.Add(rowcomputer_assemblyRow);
  1042. return rowcomputer_assemblyRow;
  1043. }
  1044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1046. public computer_assemblyRow FindByНомер_сборки(int Номер_сборки) {
  1047. return ((computer_assemblyRow)(this.Rows.Find(new object[] {
  1048. Номер_сборки})));
  1049. }
  1050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1052. public override global::System.Data.DataTable Clone() {
  1053. computer_assemblyDataTable cln = ((computer_assemblyDataTable)(base.Clone()));
  1054. cln.InitVars();
  1055. return cln;
  1056. }
  1057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1059. protected override global::System.Data.DataTable CreateInstance() {
  1060. return new computer_assemblyDataTable();
  1061. }
  1062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1064. internal void InitVars() {
  1065. this.columnВидеокарта = base.Columns["Видеокарта"];
  1066. this.columnМатеринская_плата = base.Columns["Материнская плата"];
  1067. this.columnПроцессор = base.Columns["Процессор"];
  1068. this.columnОперативная_память = base.Columns["Оперативная память"];
  1069. this._columnОперативная_память = base.Columns["Оперативная_память"];
  1070. this.columnЖетский_диск = base.Columns["Жетский диск"];
  1071. this.columnКуллер = base.Columns["Куллер"];
  1072. this.columnСистема_охлаждения = base.Columns["Система охлаждения"];
  1073. this.columnБлок_питания = base.Columns["Блок питания"];
  1074. this.columnSSD = base.Columns["SSD"];
  1075. this.columnНомер_сборки = base.Columns["Номер сборки"];
  1076. this.columnИтоговая_цена = base.Columns["Итоговая цена"];
  1077. }
  1078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1080. private void InitClass() {
  1081. this.columnВидеокарта = new global::System.Data.DataColumn("Видеокарта", typeof(string), null, global::System.Data.MappingType.Element);
  1082. base.Columns.Add(this.columnВидеокарта);
  1083. this.columnМатеринская_плата = new global::System.Data.DataColumn("Материнская плата", typeof(string), null, global::System.Data.MappingType.Element);
  1084. base.Columns.Add(this.columnМатеринская_плата);
  1085. this.columnПроцессор = new global::System.Data.DataColumn("Процессор", typeof(string), null, global::System.Data.MappingType.Element);
  1086. base.Columns.Add(this.columnПроцессор);
  1087. this.columnОперативная_память = new global::System.Data.DataColumn("Оперативная память", typeof(string), null, global::System.Data.MappingType.Element);
  1088. base.Columns.Add(this.columnОперативная_память);
  1089. this._columnОперативная_память = new global::System.Data.DataColumn("Оперативная_память", typeof(string), null, global::System.Data.MappingType.Element);
  1090. this._columnОперативная_память.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnОперативная_память");
  1091. this._columnОперативная_память.ExtendedProperties.Add("Generator_UserColumnName", "Оперативная_память");
  1092. base.Columns.Add(this._columnОперативная_память);
  1093. this.columnЖетский_диск = new global::System.Data.DataColumn("Жетский диск", typeof(string), null, global::System.Data.MappingType.Element);
  1094. base.Columns.Add(this.columnЖетский_диск);
  1095. this.columnКуллер = new global::System.Data.DataColumn("Куллер", typeof(string), null, global::System.Data.MappingType.Element);
  1096. base.Columns.Add(this.columnКуллер);
  1097. this.columnСистема_охлаждения = new global::System.Data.DataColumn("Система охлаждения", typeof(string), null, global::System.Data.MappingType.Element);
  1098. base.Columns.Add(this.columnСистема_охлаждения);
  1099. this.columnБлок_питания = new global::System.Data.DataColumn("Блок питания", typeof(string), null, global::System.Data.MappingType.Element);
  1100. base.Columns.Add(this.columnБлок_питания);
  1101. this.columnSSD = new global::System.Data.DataColumn("SSD", typeof(string), null, global::System.Data.MappingType.Element);
  1102. base.Columns.Add(this.columnSSD);
  1103. this.columnНомер_сборки = new global::System.Data.DataColumn("Номер сборки", typeof(int), null, global::System.Data.MappingType.Element);
  1104. base.Columns.Add(this.columnНомер_сборки);
  1105. this.columnИтоговая_цена = new global::System.Data.DataColumn("Итоговая цена", typeof(int), null, global::System.Data.MappingType.Element);
  1106. base.Columns.Add(this.columnИтоговая_цена);
  1107. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1108. this.columnНомер_сборки}, true));
  1109. this.columnВидеокарта.MaxLength = 150;
  1110. this.columnМатеринская_плата.MaxLength = 150;
  1111. this.columnПроцессор.MaxLength = 150;
  1112. this.columnОперативная_память.MaxLength = 150;
  1113. this._columnОперативная_память.MaxLength = 150;
  1114. this.columnЖетский_диск.MaxLength = 150;
  1115. this.columnКуллер.MaxLength = 150;
  1116. this.columnСистема_охлаждения.MaxLength = 150;
  1117. this.columnБлок_питания.MaxLength = 150;
  1118. this.columnSSD.MaxLength = 150;
  1119. this.columnНомер_сборки.AutoIncrement = true;
  1120. this.columnНомер_сборки.AutoIncrementSeed = -1;
  1121. this.columnНомер_сборки.AutoIncrementStep = -1;
  1122. this.columnНомер_сборки.AllowDBNull = false;
  1123. this.columnНомер_сборки.ReadOnly = true;
  1124. this.columnНомер_сборки.Unique = true;
  1125. }
  1126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1128. public computer_assemblyRow Newcomputer_assemblyRow() {
  1129. return ((computer_assemblyRow)(this.NewRow()));
  1130. }
  1131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1133. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1134. return new computer_assemblyRow(builder);
  1135. }
  1136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1138. protected override global::System.Type GetRowType() {
  1139. return typeof(computer_assemblyRow);
  1140. }
  1141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1143. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1144. base.OnRowChanged(e);
  1145. if ((this.computer_assemblyRowChanged != null)) {
  1146. this.computer_assemblyRowChanged(this, new computer_assemblyRowChangeEvent(((computer_assemblyRow)(e.Row)), e.Action));
  1147. }
  1148. }
  1149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1151. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1152. base.OnRowChanging(e);
  1153. if ((this.computer_assemblyRowChanging != null)) {
  1154. this.computer_assemblyRowChanging(this, new computer_assemblyRowChangeEvent(((computer_assemblyRow)(e.Row)), e.Action));
  1155. }
  1156. }
  1157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1159. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1160. base.OnRowDeleted(e);
  1161. if ((this.computer_assemblyRowDeleted != null)) {
  1162. this.computer_assemblyRowDeleted(this, new computer_assemblyRowChangeEvent(((computer_assemblyRow)(e.Row)), e.Action));
  1163. }
  1164. }
  1165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1167. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1168. base.OnRowDeleting(e);
  1169. if ((this.computer_assemblyRowDeleting != null)) {
  1170. this.computer_assemblyRowDeleting(this, new computer_assemblyRowChangeEvent(((computer_assemblyRow)(e.Row)), e.Action));
  1171. }
  1172. }
  1173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1175. public void Removecomputer_assemblyRow(computer_assemblyRow row) {
  1176. this.Rows.Remove(row);
  1177. }
  1178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1180. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1181. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1182. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1183. digital_world_8DataSet1 ds = new digital_world_8DataSet1();
  1184. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1185. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1186. any1.MinOccurs = new decimal(0);
  1187. any1.MaxOccurs = decimal.MaxValue;
  1188. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1189. sequence.Items.Add(any1);
  1190. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1191. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1192. any2.MinOccurs = new decimal(1);
  1193. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1194. sequence.Items.Add(any2);
  1195. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1196. attribute1.Name = "namespace";
  1197. attribute1.FixedValue = ds.Namespace;
  1198. type.Attributes.Add(attribute1);
  1199. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1200. attribute2.Name = "tableTypeName";
  1201. attribute2.FixedValue = "computer_assemblyDataTable";
  1202. type.Attributes.Add(attribute2);
  1203. type.Particle = sequence;
  1204. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1205. if (xs.Contains(dsSchema.TargetNamespace)) {
  1206. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1207. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1208. try {
  1209. global::System.Xml.Schema.XmlSchema schema = null;
  1210. dsSchema.Write(s1);
  1211. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1212. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1213. s2.SetLength(0);
  1214. schema.Write(s2);
  1215. if ((s1.Length == s2.Length)) {
  1216. s1.Position = 0;
  1217. s2.Position = 0;
  1218. for (; ((s1.Position != s1.Length)
  1219. && (s1.ReadByte() == s2.ReadByte())); ) {
  1220. ;
  1221. }
  1222. if ((s1.Position == s1.Length)) {
  1223. return type;
  1224. }
  1225. }
  1226. }
  1227. }
  1228. finally {
  1229. if ((s1 != null)) {
  1230. s1.Close();
  1231. }
  1232. if ((s2 != null)) {
  1233. s2.Close();
  1234. }
  1235. }
  1236. }
  1237. xs.Add(dsSchema);
  1238. return type;
  1239. }
  1240. }
  1241. /// <summary>
  1242. ///Represents the strongly named DataTable class.
  1243. ///</summary>
  1244. [global::System.Serializable()]
  1245. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1246. public partial class OrderDataTable : global::System.Data.TypedTableBase<OrderRow> {
  1247. private global::System.Data.DataColumn columnId_заказа;
  1248. private global::System.Data.DataColumn columnНомер_заказа;
  1249. private global::System.Data.DataColumn columnДата;
  1250. private global::System.Data.DataColumn columnid_статуса;
  1251. private global::System.Data.DataColumn columnНомер_сборки;
  1252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1254. public OrderDataTable() {
  1255. this.TableName = "Order";
  1256. this.BeginInit();
  1257. this.InitClass();
  1258. this.EndInit();
  1259. }
  1260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1262. internal OrderDataTable(global::System.Data.DataTable table) {
  1263. this.TableName = table.TableName;
  1264. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1265. this.CaseSensitive = table.CaseSensitive;
  1266. }
  1267. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1268. this.Locale = table.Locale;
  1269. }
  1270. if ((table.Namespace != table.DataSet.Namespace)) {
  1271. this.Namespace = table.Namespace;
  1272. }
  1273. this.Prefix = table.Prefix;
  1274. this.MinimumCapacity = table.MinimumCapacity;
  1275. }
  1276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1278. protected OrderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1279. base(info, context) {
  1280. this.InitVars();
  1281. }
  1282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1284. public global::System.Data.DataColumn Id_заказаColumn {
  1285. get {
  1286. return this.columnId_заказа;
  1287. }
  1288. }
  1289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1291. public global::System.Data.DataColumn Номер_заказаColumn {
  1292. get {
  1293. return this.columnНомер_заказа;
  1294. }
  1295. }
  1296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1298. public global::System.Data.DataColumn ДатаColumn {
  1299. get {
  1300. return this.columnДата;
  1301. }
  1302. }
  1303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1305. public global::System.Data.DataColumn id_статусаColumn {
  1306. get {
  1307. return this.columnid_статуса;
  1308. }
  1309. }
  1310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1312. public global::System.Data.DataColumn Номер_сборкиColumn {
  1313. get {
  1314. return this.columnНомер_сборки;
  1315. }
  1316. }
  1317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1319. [global::System.ComponentModel.Browsable(false)]
  1320. public int Count {
  1321. get {
  1322. return this.Rows.Count;
  1323. }
  1324. }
  1325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1327. public OrderRow this[int index] {
  1328. get {
  1329. return ((OrderRow)(this.Rows[index]));
  1330. }
  1331. }
  1332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1333. public event OrderRowChangeEventHandler OrderRowChanging;
  1334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1335. public event OrderRowChangeEventHandler OrderRowChanged;
  1336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1337. public event OrderRowChangeEventHandler OrderRowDeleting;
  1338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1339. public event OrderRowChangeEventHandler OrderRowDeleted;
  1340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1342. public void AddOrderRow(OrderRow row) {
  1343. this.Rows.Add(row);
  1344. }
  1345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1347. public OrderRow AddOrderRow(order_by_clientsRow parentorder_by_clientsRowByFK_Order_order_by_clients, System.DateTime Дата, Order_statusRow parentOrder_statusRowByFK_Order_Order_status, computer_assemblyRow parentcomputer_assemblyRowByFK_Order_computer_assembly) {
  1348. OrderRow rowOrderRow = ((OrderRow)(this.NewRow()));
  1349. object[] columnValuesArray = new object[] {
  1350. null,
  1351. null,
  1352. Дата,
  1353. null,
  1354. null};
  1355. if ((parentorder_by_clientsRowByFK_Order_order_by_clients != null)) {
  1356. columnValuesArray[1] = parentorder_by_clientsRowByFK_Order_order_by_clients[0];
  1357. }
  1358. if ((parentOrder_statusRowByFK_Order_Order_status != null)) {
  1359. columnValuesArray[3] = parentOrder_statusRowByFK_Order_Order_status[0];
  1360. }
  1361. if ((parentcomputer_assemblyRowByFK_Order_computer_assembly != null)) {
  1362. columnValuesArray[4] = parentcomputer_assemblyRowByFK_Order_computer_assembly[10];
  1363. }
  1364. rowOrderRow.ItemArray = columnValuesArray;
  1365. this.Rows.Add(rowOrderRow);
  1366. return rowOrderRow;
  1367. }
  1368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1370. public OrderRow FindById_заказа(int Id_заказа) {
  1371. return ((OrderRow)(this.Rows.Find(new object[] {
  1372. Id_заказа})));
  1373. }
  1374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1376. public override global::System.Data.DataTable Clone() {
  1377. OrderDataTable cln = ((OrderDataTable)(base.Clone()));
  1378. cln.InitVars();
  1379. return cln;
  1380. }
  1381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1383. protected override global::System.Data.DataTable CreateInstance() {
  1384. return new OrderDataTable();
  1385. }
  1386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1388. internal void InitVars() {
  1389. this.columnId_заказа = base.Columns["Id_заказа"];
  1390. this.columnНомер_заказа = base.Columns["Номер заказа"];
  1391. this.columnДата = base.Columns["Дата"];
  1392. this.columnid_статуса = base.Columns["id статуса"];
  1393. this.columnНомер_сборки = base.Columns["Номер сборки"];
  1394. }
  1395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1397. private void InitClass() {
  1398. this.columnId_заказа = new global::System.Data.DataColumn("Id_заказа", typeof(int), null, global::System.Data.MappingType.Element);
  1399. base.Columns.Add(this.columnId_заказа);
  1400. this.columnНомер_заказа = new global::System.Data.DataColumn("Номер заказа", typeof(int), null, global::System.Data.MappingType.Element);
  1401. base.Columns.Add(this.columnНомер_заказа);
  1402. this.columnДата = new global::System.Data.DataColumn("Дата", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1403. base.Columns.Add(this.columnДата);
  1404. this.columnid_статуса = new global::System.Data.DataColumn("id статуса", typeof(int), null, global::System.Data.MappingType.Element);
  1405. base.Columns.Add(this.columnid_статуса);
  1406. this.columnНомер_сборки = new global::System.Data.DataColumn("Номер сборки", typeof(int), null, global::System.Data.MappingType.Element);
  1407. base.Columns.Add(this.columnНомер_сборки);
  1408. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1409. this.columnId_заказа}, true));
  1410. this.columnId_заказа.AutoIncrement = true;
  1411. this.columnId_заказа.AutoIncrementSeed = -1;
  1412. this.columnId_заказа.AutoIncrementStep = -1;
  1413. this.columnId_заказа.AllowDBNull = false;
  1414. this.columnId_заказа.ReadOnly = true;
  1415. this.columnId_заказа.Unique = true;
  1416. }
  1417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1419. public OrderRow NewOrderRow() {
  1420. return ((OrderRow)(this.NewRow()));
  1421. }
  1422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1424. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1425. return new OrderRow(builder);
  1426. }
  1427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1429. protected override global::System.Type GetRowType() {
  1430. return typeof(OrderRow);
  1431. }
  1432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1434. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1435. base.OnRowChanged(e);
  1436. if ((this.OrderRowChanged != null)) {
  1437. this.OrderRowChanged(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  1438. }
  1439. }
  1440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1442. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1443. base.OnRowChanging(e);
  1444. if ((this.OrderRowChanging != null)) {
  1445. this.OrderRowChanging(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  1446. }
  1447. }
  1448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1450. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1451. base.OnRowDeleted(e);
  1452. if ((this.OrderRowDeleted != null)) {
  1453. this.OrderRowDeleted(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  1454. }
  1455. }
  1456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1458. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1459. base.OnRowDeleting(e);
  1460. if ((this.OrderRowDeleting != null)) {
  1461. this.OrderRowDeleting(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  1462. }
  1463. }
  1464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1466. public void RemoveOrderRow(OrderRow row) {
  1467. this.Rows.Remove(row);
  1468. }
  1469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1471. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1472. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1473. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1474. digital_world_8DataSet1 ds = new digital_world_8DataSet1();
  1475. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1476. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1477. any1.MinOccurs = new decimal(0);
  1478. any1.MaxOccurs = decimal.MaxValue;
  1479. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1480. sequence.Items.Add(any1);
  1481. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1482. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1483. any2.MinOccurs = new decimal(1);
  1484. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1485. sequence.Items.Add(any2);
  1486. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1487. attribute1.Name = "namespace";
  1488. attribute1.FixedValue = ds.Namespace;
  1489. type.Attributes.Add(attribute1);
  1490. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1491. attribute2.Name = "tableTypeName";
  1492. attribute2.FixedValue = "OrderDataTable";
  1493. type.Attributes.Add(attribute2);
  1494. type.Particle = sequence;
  1495. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1496. if (xs.Contains(dsSchema.TargetNamespace)) {
  1497. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1498. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1499. try {
  1500. global::System.Xml.Schema.XmlSchema schema = null;
  1501. dsSchema.Write(s1);
  1502. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1503. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1504. s2.SetLength(0);
  1505. schema.Write(s2);
  1506. if ((s1.Length == s2.Length)) {
  1507. s1.Position = 0;
  1508. s2.Position = 0;
  1509. for (; ((s1.Position != s1.Length)
  1510. && (s1.ReadByte() == s2.ReadByte())); ) {
  1511. ;
  1512. }
  1513. if ((s1.Position == s1.Length)) {
  1514. return type;
  1515. }
  1516. }
  1517. }
  1518. }
  1519. finally {
  1520. if ((s1 != null)) {
  1521. s1.Close();
  1522. }
  1523. if ((s2 != null)) {
  1524. s2.Close();
  1525. }
  1526. }
  1527. }
  1528. xs.Add(dsSchema);
  1529. return type;
  1530. }
  1531. }
  1532. /// <summary>
  1533. ///Represents the strongly named DataTable class.
  1534. ///</summary>
  1535. [global::System.Serializable()]
  1536. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1537. public partial class order_by_clientsDataTable : global::System.Data.TypedTableBase<order_by_clientsRow> {
  1538. private global::System.Data.DataColumn columnНомер_заказа;
  1539. private global::System.Data.DataColumn columnПожелания;
  1540. private global::System.Data.DataColumn columnДата;
  1541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1543. public order_by_clientsDataTable() {
  1544. this.TableName = "order_by_clients";
  1545. this.BeginInit();
  1546. this.InitClass();
  1547. this.EndInit();
  1548. }
  1549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1551. internal order_by_clientsDataTable(global::System.Data.DataTable table) {
  1552. this.TableName = table.TableName;
  1553. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1554. this.CaseSensitive = table.CaseSensitive;
  1555. }
  1556. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1557. this.Locale = table.Locale;
  1558. }
  1559. if ((table.Namespace != table.DataSet.Namespace)) {
  1560. this.Namespace = table.Namespace;
  1561. }
  1562. this.Prefix = table.Prefix;
  1563. this.MinimumCapacity = table.MinimumCapacity;
  1564. }
  1565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1567. protected order_by_clientsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1568. base(info, context) {
  1569. this.InitVars();
  1570. }
  1571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1573. public global::System.Data.DataColumn Номер_заказаColumn {
  1574. get {
  1575. return this.columnНомер_заказа;
  1576. }
  1577. }
  1578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1580. public global::System.Data.DataColumn ПожеланияColumn {
  1581. get {
  1582. return this.columnПожелания;
  1583. }
  1584. }
  1585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1587. public global::System.Data.DataColumn ДатаColumn {
  1588. get {
  1589. return this.columnДата;
  1590. }
  1591. }
  1592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1594. [global::System.ComponentModel.Browsable(false)]
  1595. public int Count {
  1596. get {
  1597. return this.Rows.Count;
  1598. }
  1599. }
  1600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1602. public order_by_clientsRow this[int index] {
  1603. get {
  1604. return ((order_by_clientsRow)(this.Rows[index]));
  1605. }
  1606. }
  1607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1608. public event order_by_clientsRowChangeEventHandler order_by_clientsRowChanging;
  1609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1610. public event order_by_clientsRowChangeEventHandler order_by_clientsRowChanged;
  1611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1612. public event order_by_clientsRowChangeEventHandler order_by_clientsRowDeleting;
  1613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1614. public event order_by_clientsRowChangeEventHandler order_by_clientsRowDeleted;
  1615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1617. public void Addorder_by_clientsRow(order_by_clientsRow row) {
  1618. this.Rows.Add(row);
  1619. }
  1620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1622. public order_by_clientsRow Addorder_by_clientsRow(string Пожелания, System.DateTime Дата) {
  1623. order_by_clientsRow roworder_by_clientsRow = ((order_by_clientsRow)(this.NewRow()));
  1624. object[] columnValuesArray = new object[] {
  1625. null,
  1626. Пожелания,
  1627. Дата};
  1628. roworder_by_clientsRow.ItemArray = columnValuesArray;
  1629. this.Rows.Add(roworder_by_clientsRow);
  1630. return roworder_by_clientsRow;
  1631. }
  1632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1634. public order_by_clientsRow FindByНомер_заказа(int Номер_заказа) {
  1635. return ((order_by_clientsRow)(this.Rows.Find(new object[] {
  1636. Номер_заказа})));
  1637. }
  1638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1640. public override global::System.Data.DataTable Clone() {
  1641. order_by_clientsDataTable cln = ((order_by_clientsDataTable)(base.Clone()));
  1642. cln.InitVars();
  1643. return cln;
  1644. }
  1645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1647. protected override global::System.Data.DataTable CreateInstance() {
  1648. return new order_by_clientsDataTable();
  1649. }
  1650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1652. internal void InitVars() {
  1653. this.columnНомер_заказа = base.Columns["Номер заказа"];
  1654. this.columnПожелания = base.Columns["Пожелания"];
  1655. this.columnДата = base.Columns["Дата"];
  1656. }
  1657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1659. private void InitClass() {
  1660. this.columnНомер_заказа = new global::System.Data.DataColumn("Номер заказа", typeof(int), null, global::System.Data.MappingType.Element);
  1661. base.Columns.Add(this.columnНомер_заказа);
  1662. this.columnПожелания = new global::System.Data.DataColumn("Пожелания", typeof(string), null, global::System.Data.MappingType.Element);
  1663. base.Columns.Add(this.columnПожелания);
  1664. this.columnДата = new global::System.Data.DataColumn("Дата", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1665. base.Columns.Add(this.columnДата);
  1666. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1667. this.columnНомер_заказа}, true));
  1668. this.columnНомер_заказа.AutoIncrement = true;
  1669. this.columnНомер_заказа.AutoIncrementSeed = -1;
  1670. this.columnНомер_заказа.AutoIncrementStep = -1;
  1671. this.columnНомер_заказа.AllowDBNull = false;
  1672. this.columnНомер_заказа.ReadOnly = true;
  1673. this.columnНомер_заказа.Unique = true;
  1674. this.columnПожелания.MaxLength = 50;
  1675. }
  1676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1678. public order_by_clientsRow Neworder_by_clientsRow() {
  1679. return ((order_by_clientsRow)(this.NewRow()));
  1680. }
  1681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1683. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1684. return new order_by_clientsRow(builder);
  1685. }
  1686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1688. protected override global::System.Type GetRowType() {
  1689. return typeof(order_by_clientsRow);
  1690. }
  1691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1693. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1694. base.OnRowChanged(e);
  1695. if ((this.order_by_clientsRowChanged != null)) {
  1696. this.order_by_clientsRowChanged(this, new order_by_clientsRowChangeEvent(((order_by_clientsRow)(e.Row)), e.Action));
  1697. }
  1698. }
  1699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1701. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1702. base.OnRowChanging(e);
  1703. if ((this.order_by_clientsRowChanging != null)) {
  1704. this.order_by_clientsRowChanging(this, new order_by_clientsRowChangeEvent(((order_by_clientsRow)(e.Row)), e.Action));
  1705. }
  1706. }
  1707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1709. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1710. base.OnRowDeleted(e);
  1711. if ((this.order_by_clientsRowDeleted != null)) {
  1712. this.order_by_clientsRowDeleted(this, new order_by_clientsRowChangeEvent(((order_by_clientsRow)(e.Row)), e.Action));
  1713. }
  1714. }
  1715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1717. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1718. base.OnRowDeleting(e);
  1719. if ((this.order_by_clientsRowDeleting != null)) {
  1720. this.order_by_clientsRowDeleting(this, new order_by_clientsRowChangeEvent(((order_by_clientsRow)(e.Row)), e.Action));
  1721. }
  1722. }
  1723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1725. public void Removeorder_by_clientsRow(order_by_clientsRow row) {
  1726. this.Rows.Remove(row);
  1727. }
  1728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1730. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1731. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1732. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1733. digital_world_8DataSet1 ds = new digital_world_8DataSet1();
  1734. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1735. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1736. any1.MinOccurs = new decimal(0);
  1737. any1.MaxOccurs = decimal.MaxValue;
  1738. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1739. sequence.Items.Add(any1);
  1740. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1741. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1742. any2.MinOccurs = new decimal(1);
  1743. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1744. sequence.Items.Add(any2);
  1745. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1746. attribute1.Name = "namespace";
  1747. attribute1.FixedValue = ds.Namespace;
  1748. type.Attributes.Add(attribute1);
  1749. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1750. attribute2.Name = "tableTypeName";
  1751. attribute2.FixedValue = "order_by_clientsDataTable";
  1752. type.Attributes.Add(attribute2);
  1753. type.Particle = sequence;
  1754. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1755. if (xs.Contains(dsSchema.TargetNamespace)) {
  1756. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1757. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1758. try {
  1759. global::System.Xml.Schema.XmlSchema schema = null;
  1760. dsSchema.Write(s1);
  1761. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1762. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1763. s2.SetLength(0);
  1764. schema.Write(s2);
  1765. if ((s1.Length == s2.Length)) {
  1766. s1.Position = 0;
  1767. s2.Position = 0;
  1768. for (; ((s1.Position != s1.Length)
  1769. && (s1.ReadByte() == s2.ReadByte())); ) {
  1770. ;
  1771. }
  1772. if ((s1.Position == s1.Length)) {
  1773. return type;
  1774. }
  1775. }
  1776. }
  1777. }
  1778. finally {
  1779. if ((s1 != null)) {
  1780. s1.Close();
  1781. }
  1782. if ((s2 != null)) {
  1783. s2.Close();
  1784. }
  1785. }
  1786. }
  1787. xs.Add(dsSchema);
  1788. return type;
  1789. }
  1790. }
  1791. /// <summary>
  1792. ///Represents the strongly named DataTable class.
  1793. ///</summary>
  1794. [global::System.Serializable()]
  1795. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1796. public partial class Order_statusDataTable : global::System.Data.TypedTableBase<Order_statusRow> {
  1797. private global::System.Data.DataColumn columnid;
  1798. private global::System.Data.DataColumn columnНазвание_статуса;
  1799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1801. public Order_statusDataTable() {
  1802. this.TableName = "Order_status";
  1803. this.BeginInit();
  1804. this.InitClass();
  1805. this.EndInit();
  1806. }
  1807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1809. internal Order_statusDataTable(global::System.Data.DataTable table) {
  1810. this.TableName = table.TableName;
  1811. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1812. this.CaseSensitive = table.CaseSensitive;
  1813. }
  1814. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1815. this.Locale = table.Locale;
  1816. }
  1817. if ((table.Namespace != table.DataSet.Namespace)) {
  1818. this.Namespace = table.Namespace;
  1819. }
  1820. this.Prefix = table.Prefix;
  1821. this.MinimumCapacity = table.MinimumCapacity;
  1822. }
  1823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1825. protected Order_statusDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1826. base(info, context) {
  1827. this.InitVars();
  1828. }
  1829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1831. public global::System.Data.DataColumn idColumn {
  1832. get {
  1833. return this.columnid;
  1834. }
  1835. }
  1836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1838. public global::System.Data.DataColumn Название_статусаColumn {
  1839. get {
  1840. return this.columnНазвание_статуса;
  1841. }
  1842. }
  1843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1845. [global::System.ComponentModel.Browsable(false)]
  1846. public int Count {
  1847. get {
  1848. return this.Rows.Count;
  1849. }
  1850. }
  1851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1853. public Order_statusRow this[int index] {
  1854. get {
  1855. return ((Order_statusRow)(this.Rows[index]));
  1856. }
  1857. }
  1858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1859. public event Order_statusRowChangeEventHandler Order_statusRowChanging;
  1860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1861. public event Order_statusRowChangeEventHandler Order_statusRowChanged;
  1862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1863. public event Order_statusRowChangeEventHandler Order_statusRowDeleting;
  1864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1865. public event Order_statusRowChangeEventHandler Order_statusRowDeleted;
  1866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1868. public void AddOrder_statusRow(Order_statusRow row) {
  1869. this.Rows.Add(row);
  1870. }
  1871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1873. public Order_statusRow AddOrder_statusRow(string Название_статуса) {
  1874. Order_statusRow rowOrder_statusRow = ((Order_statusRow)(this.NewRow()));
  1875. object[] columnValuesArray = new object[] {
  1876. null,
  1877. Название_статуса};
  1878. rowOrder_statusRow.ItemArray = columnValuesArray;
  1879. this.Rows.Add(rowOrder_statusRow);
  1880. return rowOrder_statusRow;
  1881. }
  1882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1884. public Order_statusRow FindByid(int id) {
  1885. return ((Order_statusRow)(this.Rows.Find(new object[] {
  1886. id})));
  1887. }
  1888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1890. public override global::System.Data.DataTable Clone() {
  1891. Order_statusDataTable cln = ((Order_statusDataTable)(base.Clone()));
  1892. cln.InitVars();
  1893. return cln;
  1894. }
  1895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1897. protected override global::System.Data.DataTable CreateInstance() {
  1898. return new Order_statusDataTable();
  1899. }
  1900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1902. internal void InitVars() {
  1903. this.columnid = base.Columns["id"];
  1904. this.columnНазвание_статуса = base.Columns["Название статуса"];
  1905. }
  1906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1908. private void InitClass() {
  1909. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  1910. base.Columns.Add(this.columnid);
  1911. this.columnНазвание_статуса = new global::System.Data.DataColumn("Название статуса", typeof(string), null, global::System.Data.MappingType.Element);
  1912. base.Columns.Add(this.columnНазвание_статуса);
  1913. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1914. this.columnid}, true));
  1915. this.columnid.AutoIncrement = true;
  1916. this.columnid.AutoIncrementSeed = -1;
  1917. this.columnid.AutoIncrementStep = -1;
  1918. this.columnid.AllowDBNull = false;
  1919. this.columnid.ReadOnly = true;
  1920. this.columnid.Unique = true;
  1921. this.columnНазвание_статуса.MaxLength = 50;
  1922. }
  1923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1925. public Order_statusRow NewOrder_statusRow() {
  1926. return ((Order_statusRow)(this.NewRow()));
  1927. }
  1928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1930. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1931. return new Order_statusRow(builder);
  1932. }
  1933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1935. protected override global::System.Type GetRowType() {
  1936. return typeof(Order_statusRow);
  1937. }
  1938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1940. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1941. base.OnRowChanged(e);
  1942. if ((this.Order_statusRowChanged != null)) {
  1943. this.Order_statusRowChanged(this, new Order_statusRowChangeEvent(((Order_statusRow)(e.Row)), e.Action));
  1944. }
  1945. }
  1946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1948. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1949. base.OnRowChanging(e);
  1950. if ((this.Order_statusRowChanging != null)) {
  1951. this.Order_statusRowChanging(this, new Order_statusRowChangeEvent(((Order_statusRow)(e.Row)), e.Action));
  1952. }
  1953. }
  1954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1956. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1957. base.OnRowDeleted(e);
  1958. if ((this.Order_statusRowDeleted != null)) {
  1959. this.Order_statusRowDeleted(this, new Order_statusRowChangeEvent(((Order_statusRow)(e.Row)), e.Action));
  1960. }
  1961. }
  1962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1964. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1965. base.OnRowDeleting(e);
  1966. if ((this.Order_statusRowDeleting != null)) {
  1967. this.Order_statusRowDeleting(this, new Order_statusRowChangeEvent(((Order_statusRow)(e.Row)), e.Action));
  1968. }
  1969. }
  1970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1972. public void RemoveOrder_statusRow(Order_statusRow row) {
  1973. this.Rows.Remove(row);
  1974. }
  1975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1977. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1978. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1979. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1980. digital_world_8DataSet1 ds = new digital_world_8DataSet1();
  1981. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1982. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1983. any1.MinOccurs = new decimal(0);
  1984. any1.MaxOccurs = decimal.MaxValue;
  1985. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1986. sequence.Items.Add(any1);
  1987. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1988. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1989. any2.MinOccurs = new decimal(1);
  1990. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1991. sequence.Items.Add(any2);
  1992. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1993. attribute1.Name = "namespace";
  1994. attribute1.FixedValue = ds.Namespace;
  1995. type.Attributes.Add(attribute1);
  1996. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1997. attribute2.Name = "tableTypeName";
  1998. attribute2.FixedValue = "Order_statusDataTable";
  1999. type.Attributes.Add(attribute2);
  2000. type.Particle = sequence;
  2001. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2002. if (xs.Contains(dsSchema.TargetNamespace)) {
  2003. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2004. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2005. try {
  2006. global::System.Xml.Schema.XmlSchema schema = null;
  2007. dsSchema.Write(s1);
  2008. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2009. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2010. s2.SetLength(0);
  2011. schema.Write(s2);
  2012. if ((s1.Length == s2.Length)) {
  2013. s1.Position = 0;
  2014. s2.Position = 0;
  2015. for (; ((s1.Position != s1.Length)
  2016. && (s1.ReadByte() == s2.ReadByte())); ) {
  2017. ;
  2018. }
  2019. if ((s1.Position == s1.Length)) {
  2020. return type;
  2021. }
  2022. }
  2023. }
  2024. }
  2025. finally {
  2026. if ((s1 != null)) {
  2027. s1.Close();
  2028. }
  2029. if ((s2 != null)) {
  2030. s2.Close();
  2031. }
  2032. }
  2033. }
  2034. xs.Add(dsSchema);
  2035. return type;
  2036. }
  2037. }
  2038. /// <summary>
  2039. ///Represents the strongly named DataTable class.
  2040. ///</summary>
  2041. [global::System.Serializable()]
  2042. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2043. public partial class providerDataTable : global::System.Data.TypedTableBase<providerRow> {
  2044. private global::System.Data.DataColumn columnid;
  2045. private global::System.Data.DataColumn columnназвание;
  2046. private global::System.Data.DataColumn columnСтрана_производитель;
  2047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2049. public providerDataTable() {
  2050. this.TableName = "provider";
  2051. this.BeginInit();
  2052. this.InitClass();
  2053. this.EndInit();
  2054. }
  2055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2057. internal providerDataTable(global::System.Data.DataTable table) {
  2058. this.TableName = table.TableName;
  2059. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2060. this.CaseSensitive = table.CaseSensitive;
  2061. }
  2062. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2063. this.Locale = table.Locale;
  2064. }
  2065. if ((table.Namespace != table.DataSet.Namespace)) {
  2066. this.Namespace = table.Namespace;
  2067. }
  2068. this.Prefix = table.Prefix;
  2069. this.MinimumCapacity = table.MinimumCapacity;
  2070. }
  2071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2073. protected providerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2074. base(info, context) {
  2075. this.InitVars();
  2076. }
  2077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2079. public global::System.Data.DataColumn idColumn {
  2080. get {
  2081. return this.columnid;
  2082. }
  2083. }
  2084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2086. public global::System.Data.DataColumn названиеColumn {
  2087. get {
  2088. return this.columnназвание;
  2089. }
  2090. }
  2091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2093. public global::System.Data.DataColumn Страна_производительColumn {
  2094. get {
  2095. return this.columnСтрана_производитель;
  2096. }
  2097. }
  2098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2100. [global::System.ComponentModel.Browsable(false)]
  2101. public int Count {
  2102. get {
  2103. return this.Rows.Count;
  2104. }
  2105. }
  2106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2108. public providerRow this[int index] {
  2109. get {
  2110. return ((providerRow)(this.Rows[index]));
  2111. }
  2112. }
  2113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2114. public event providerRowChangeEventHandler providerRowChanging;
  2115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2116. public event providerRowChangeEventHandler providerRowChanged;
  2117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2118. public event providerRowChangeEventHandler providerRowDeleting;
  2119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2120. public event providerRowChangeEventHandler providerRowDeleted;
  2121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2123. public void AddproviderRow(providerRow row) {
  2124. this.Rows.Add(row);
  2125. }
  2126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2128. public providerRow AddproviderRow(int id, string название, string Страна_производитель) {
  2129. providerRow rowproviderRow = ((providerRow)(this.NewRow()));
  2130. object[] columnValuesArray = new object[] {
  2131. id,
  2132. название,
  2133. Страна_производитель};
  2134. rowproviderRow.ItemArray = columnValuesArray;
  2135. this.Rows.Add(rowproviderRow);
  2136. return rowproviderRow;
  2137. }
  2138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2140. public providerRow FindByid(int id) {
  2141. return ((providerRow)(this.Rows.Find(new object[] {
  2142. id})));
  2143. }
  2144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2146. public override global::System.Data.DataTable Clone() {
  2147. providerDataTable cln = ((providerDataTable)(base.Clone()));
  2148. cln.InitVars();
  2149. return cln;
  2150. }
  2151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2153. protected override global::System.Data.DataTable CreateInstance() {
  2154. return new providerDataTable();
  2155. }
  2156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2158. internal void InitVars() {
  2159. this.columnid = base.Columns["id"];
  2160. this.columnназвание = base.Columns["название"];
  2161. this.columnСтрана_производитель = base.Columns["Страна производитель"];
  2162. }
  2163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2165. private void InitClass() {
  2166. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  2167. base.Columns.Add(this.columnid);
  2168. this.columnназвание = new global::System.Data.DataColumn("название", typeof(string), null, global::System.Data.MappingType.Element);
  2169. base.Columns.Add(this.columnназвание);
  2170. this.columnСтрана_производитель = new global::System.Data.DataColumn("Страна производитель", typeof(string), null, global::System.Data.MappingType.Element);
  2171. base.Columns.Add(this.columnСтрана_производитель);
  2172. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2173. this.columnid}, true));
  2174. this.columnid.AllowDBNull = false;
  2175. this.columnid.Unique = true;
  2176. this.columnназвание.MaxLength = 50;
  2177. this.columnСтрана_производитель.MaxLength = 50;
  2178. }
  2179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2181. public providerRow NewproviderRow() {
  2182. return ((providerRow)(this.NewRow()));
  2183. }
  2184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2186. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2187. return new providerRow(builder);
  2188. }
  2189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2191. protected override global::System.Type GetRowType() {
  2192. return typeof(providerRow);
  2193. }
  2194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2196. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2197. base.OnRowChanged(e);
  2198. if ((this.providerRowChanged != null)) {
  2199. this.providerRowChanged(this, new providerRowChangeEvent(((providerRow)(e.Row)), e.Action));
  2200. }
  2201. }
  2202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2204. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2205. base.OnRowChanging(e);
  2206. if ((this.providerRowChanging != null)) {
  2207. this.providerRowChanging(this, new providerRowChangeEvent(((providerRow)(e.Row)), e.Action));
  2208. }
  2209. }
  2210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2212. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2213. base.OnRowDeleted(e);
  2214. if ((this.providerRowDeleted != null)) {
  2215. this.providerRowDeleted(this, new providerRowChangeEvent(((providerRow)(e.Row)), e.Action));
  2216. }
  2217. }
  2218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2220. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2221. base.OnRowDeleting(e);
  2222. if ((this.providerRowDeleting != null)) {
  2223. this.providerRowDeleting(this, new providerRowChangeEvent(((providerRow)(e.Row)), e.Action));
  2224. }
  2225. }
  2226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2228. public void RemoveproviderRow(providerRow row) {
  2229. this.Rows.Remove(row);
  2230. }
  2231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2233. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2234. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2235. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2236. digital_world_8DataSet1 ds = new digital_world_8DataSet1();
  2237. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2238. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2239. any1.MinOccurs = new decimal(0);
  2240. any1.MaxOccurs = decimal.MaxValue;
  2241. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2242. sequence.Items.Add(any1);
  2243. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2244. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2245. any2.MinOccurs = new decimal(1);
  2246. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2247. sequence.Items.Add(any2);
  2248. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2249. attribute1.Name = "namespace";
  2250. attribute1.FixedValue = ds.Namespace;
  2251. type.Attributes.Add(attribute1);
  2252. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2253. attribute2.Name = "tableTypeName";
  2254. attribute2.FixedValue = "providerDataTable";
  2255. type.Attributes.Add(attribute2);
  2256. type.Particle = sequence;
  2257. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2258. if (xs.Contains(dsSchema.TargetNamespace)) {
  2259. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2260. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2261. try {
  2262. global::System.Xml.Schema.XmlSchema schema = null;
  2263. dsSchema.Write(s1);
  2264. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2265. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2266. s2.SetLength(0);
  2267. schema.Write(s2);
  2268. if ((s1.Length == s2.Length)) {
  2269. s1.Position = 0;
  2270. s2.Position = 0;
  2271. for (; ((s1.Position != s1.Length)
  2272. && (s1.ReadByte() == s2.ReadByte())); ) {
  2273. ;
  2274. }
  2275. if ((s1.Position == s1.Length)) {
  2276. return type;
  2277. }
  2278. }
  2279. }
  2280. }
  2281. finally {
  2282. if ((s1 != null)) {
  2283. s1.Close();
  2284. }
  2285. if ((s2 != null)) {
  2286. s2.Close();
  2287. }
  2288. }
  2289. }
  2290. xs.Add(dsSchema);
  2291. return type;
  2292. }
  2293. }
  2294. /// <summary>
  2295. ///Represents the strongly named DataTable class.
  2296. ///</summary>
  2297. [global::System.Serializable()]
  2298. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2299. public partial class RoleDataTable : global::System.Data.TypedTableBase<RoleRow> {
  2300. private global::System.Data.DataColumn columnId;
  2301. private global::System.Data.DataColumn columnНазвание_роли;
  2302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2304. public RoleDataTable() {
  2305. this.TableName = "Role";
  2306. this.BeginInit();
  2307. this.InitClass();
  2308. this.EndInit();
  2309. }
  2310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2312. internal RoleDataTable(global::System.Data.DataTable table) {
  2313. this.TableName = table.TableName;
  2314. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2315. this.CaseSensitive = table.CaseSensitive;
  2316. }
  2317. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2318. this.Locale = table.Locale;
  2319. }
  2320. if ((table.Namespace != table.DataSet.Namespace)) {
  2321. this.Namespace = table.Namespace;
  2322. }
  2323. this.Prefix = table.Prefix;
  2324. this.MinimumCapacity = table.MinimumCapacity;
  2325. }
  2326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2328. protected RoleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2329. base(info, context) {
  2330. this.InitVars();
  2331. }
  2332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2334. public global::System.Data.DataColumn IdColumn {
  2335. get {
  2336. return this.columnId;
  2337. }
  2338. }
  2339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2341. public global::System.Data.DataColumn Название_ролиColumn {
  2342. get {
  2343. return this.columnНазвание_роли;
  2344. }
  2345. }
  2346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2348. [global::System.ComponentModel.Browsable(false)]
  2349. public int Count {
  2350. get {
  2351. return this.Rows.Count;
  2352. }
  2353. }
  2354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2356. public RoleRow this[int index] {
  2357. get {
  2358. return ((RoleRow)(this.Rows[index]));
  2359. }
  2360. }
  2361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2362. public event RoleRowChangeEventHandler RoleRowChanging;
  2363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2364. public event RoleRowChangeEventHandler RoleRowChanged;
  2365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2366. public event RoleRowChangeEventHandler RoleRowDeleting;
  2367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2368. public event RoleRowChangeEventHandler RoleRowDeleted;
  2369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2371. public void AddRoleRow(RoleRow row) {
  2372. this.Rows.Add(row);
  2373. }
  2374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2376. public RoleRow AddRoleRow(int Id, string Название_роли) {
  2377. RoleRow rowRoleRow = ((RoleRow)(this.NewRow()));
  2378. object[] columnValuesArray = new object[] {
  2379. Id,
  2380. Название_роли};
  2381. rowRoleRow.ItemArray = columnValuesArray;
  2382. this.Rows.Add(rowRoleRow);
  2383. return rowRoleRow;
  2384. }
  2385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2387. public RoleRow FindById(int Id) {
  2388. return ((RoleRow)(this.Rows.Find(new object[] {
  2389. Id})));
  2390. }
  2391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2393. public override global::System.Data.DataTable Clone() {
  2394. RoleDataTable cln = ((RoleDataTable)(base.Clone()));
  2395. cln.InitVars();
  2396. return cln;
  2397. }
  2398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2400. protected override global::System.Data.DataTable CreateInstance() {
  2401. return new RoleDataTable();
  2402. }
  2403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2405. internal void InitVars() {
  2406. this.columnId = base.Columns["Id"];
  2407. this.columnНазвание_роли = base.Columns["Название роли"];
  2408. }
  2409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2411. private void InitClass() {
  2412. this.columnId = new global::System.Data.DataColumn("Id", typeof(int), null, global::System.Data.MappingType.Element);
  2413. base.Columns.Add(this.columnId);
  2414. this.columnНазвание_роли = new global::System.Data.DataColumn("Название роли", typeof(string), null, global::System.Data.MappingType.Element);
  2415. base.Columns.Add(this.columnНазвание_роли);
  2416. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2417. this.columnId}, true));
  2418. this.columnId.AllowDBNull = false;
  2419. this.columnId.Unique = true;
  2420. this.columnНазвание_роли.MaxLength = 50;
  2421. }
  2422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2424. public RoleRow NewRoleRow() {
  2425. return ((RoleRow)(this.NewRow()));
  2426. }
  2427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2429. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2430. return new RoleRow(builder);
  2431. }
  2432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2434. protected override global::System.Type GetRowType() {
  2435. return typeof(RoleRow);
  2436. }
  2437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2439. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2440. base.OnRowChanged(e);
  2441. if ((this.RoleRowChanged != null)) {
  2442. this.RoleRowChanged(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  2443. }
  2444. }
  2445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2447. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2448. base.OnRowChanging(e);
  2449. if ((this.RoleRowChanging != null)) {
  2450. this.RoleRowChanging(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  2451. }
  2452. }
  2453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2455. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2456. base.OnRowDeleted(e);
  2457. if ((this.RoleRowDeleted != null)) {
  2458. this.RoleRowDeleted(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  2459. }
  2460. }
  2461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2463. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2464. base.OnRowDeleting(e);
  2465. if ((this.RoleRowDeleting != null)) {
  2466. this.RoleRowDeleting(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  2467. }
  2468. }
  2469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2471. public void RemoveRoleRow(RoleRow row) {
  2472. this.Rows.Remove(row);
  2473. }
  2474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2476. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2477. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2478. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2479. digital_world_8DataSet1 ds = new digital_world_8DataSet1();
  2480. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2481. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2482. any1.MinOccurs = new decimal(0);
  2483. any1.MaxOccurs = decimal.MaxValue;
  2484. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2485. sequence.Items.Add(any1);
  2486. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2487. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2488. any2.MinOccurs = new decimal(1);
  2489. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2490. sequence.Items.Add(any2);
  2491. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2492. attribute1.Name = "namespace";
  2493. attribute1.FixedValue = ds.Namespace;
  2494. type.Attributes.Add(attribute1);
  2495. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2496. attribute2.Name = "tableTypeName";
  2497. attribute2.FixedValue = "RoleDataTable";
  2498. type.Attributes.Add(attribute2);
  2499. type.Particle = sequence;
  2500. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2501. if (xs.Contains(dsSchema.TargetNamespace)) {
  2502. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2503. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2504. try {
  2505. global::System.Xml.Schema.XmlSchema schema = null;
  2506. dsSchema.Write(s1);
  2507. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2508. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2509. s2.SetLength(0);
  2510. schema.Write(s2);
  2511. if ((s1.Length == s2.Length)) {
  2512. s1.Position = 0;
  2513. s2.Position = 0;
  2514. for (; ((s1.Position != s1.Length)
  2515. && (s1.ReadByte() == s2.ReadByte())); ) {
  2516. ;
  2517. }
  2518. if ((s1.Position == s1.Length)) {
  2519. return type;
  2520. }
  2521. }
  2522. }
  2523. }
  2524. finally {
  2525. if ((s1 != null)) {
  2526. s1.Close();
  2527. }
  2528. if ((s2 != null)) {
  2529. s2.Close();
  2530. }
  2531. }
  2532. }
  2533. xs.Add(dsSchema);
  2534. return type;
  2535. }
  2536. }
  2537. /// <summary>
  2538. ///Represents the strongly named DataTable class.
  2539. ///</summary>
  2540. [global::System.Serializable()]
  2541. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2542. public partial class unit_of_measurementDataTable : global::System.Data.TypedTableBase<unit_of_measurementRow> {
  2543. private global::System.Data.DataColumn columnid;
  2544. private global::System.Data.DataColumn columnназвание;
  2545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2547. public unit_of_measurementDataTable() {
  2548. this.TableName = "unit_of_measurement";
  2549. this.BeginInit();
  2550. this.InitClass();
  2551. this.EndInit();
  2552. }
  2553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2555. internal unit_of_measurementDataTable(global::System.Data.DataTable table) {
  2556. this.TableName = table.TableName;
  2557. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2558. this.CaseSensitive = table.CaseSensitive;
  2559. }
  2560. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2561. this.Locale = table.Locale;
  2562. }
  2563. if ((table.Namespace != table.DataSet.Namespace)) {
  2564. this.Namespace = table.Namespace;
  2565. }
  2566. this.Prefix = table.Prefix;
  2567. this.MinimumCapacity = table.MinimumCapacity;
  2568. }
  2569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2571. protected unit_of_measurementDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2572. base(info, context) {
  2573. this.InitVars();
  2574. }
  2575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2577. public global::System.Data.DataColumn idColumn {
  2578. get {
  2579. return this.columnid;
  2580. }
  2581. }
  2582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2584. public global::System.Data.DataColumn названиеColumn {
  2585. get {
  2586. return this.columnназвание;
  2587. }
  2588. }
  2589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2591. [global::System.ComponentModel.Browsable(false)]
  2592. public int Count {
  2593. get {
  2594. return this.Rows.Count;
  2595. }
  2596. }
  2597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2599. public unit_of_measurementRow this[int index] {
  2600. get {
  2601. return ((unit_of_measurementRow)(this.Rows[index]));
  2602. }
  2603. }
  2604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2605. public event unit_of_measurementRowChangeEventHandler unit_of_measurementRowChanging;
  2606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2607. public event unit_of_measurementRowChangeEventHandler unit_of_measurementRowChanged;
  2608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2609. public event unit_of_measurementRowChangeEventHandler unit_of_measurementRowDeleting;
  2610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2611. public event unit_of_measurementRowChangeEventHandler unit_of_measurementRowDeleted;
  2612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2614. public void Addunit_of_measurementRow(unit_of_measurementRow row) {
  2615. this.Rows.Add(row);
  2616. }
  2617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2619. public unit_of_measurementRow Addunit_of_measurementRow(string название) {
  2620. unit_of_measurementRow rowunit_of_measurementRow = ((unit_of_measurementRow)(this.NewRow()));
  2621. object[] columnValuesArray = new object[] {
  2622. null,
  2623. название};
  2624. rowunit_of_measurementRow.ItemArray = columnValuesArray;
  2625. this.Rows.Add(rowunit_of_measurementRow);
  2626. return rowunit_of_measurementRow;
  2627. }
  2628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2630. public unit_of_measurementRow FindByid(int id) {
  2631. return ((unit_of_measurementRow)(this.Rows.Find(new object[] {
  2632. id})));
  2633. }
  2634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2636. public override global::System.Data.DataTable Clone() {
  2637. unit_of_measurementDataTable cln = ((unit_of_measurementDataTable)(base.Clone()));
  2638. cln.InitVars();
  2639. return cln;
  2640. }
  2641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2643. protected override global::System.Data.DataTable CreateInstance() {
  2644. return new unit_of_measurementDataTable();
  2645. }
  2646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2648. internal void InitVars() {
  2649. this.columnid = base.Columns["id"];
  2650. this.columnназвание = base.Columns["название"];
  2651. }
  2652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2654. private void InitClass() {
  2655. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  2656. base.Columns.Add(this.columnid);
  2657. this.columnназвание = new global::System.Data.DataColumn("название", typeof(string), null, global::System.Data.MappingType.Element);
  2658. base.Columns.Add(this.columnназвание);
  2659. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2660. this.columnid}, true));
  2661. this.columnid.AutoIncrement = true;
  2662. this.columnid.AutoIncrementSeed = -1;
  2663. this.columnid.AutoIncrementStep = -1;
  2664. this.columnid.AllowDBNull = false;
  2665. this.columnid.ReadOnly = true;
  2666. this.columnid.Unique = true;
  2667. this.columnназвание.MaxLength = 50;
  2668. }
  2669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2671. public unit_of_measurementRow Newunit_of_measurementRow() {
  2672. return ((unit_of_measurementRow)(this.NewRow()));
  2673. }
  2674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2676. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2677. return new unit_of_measurementRow(builder);
  2678. }
  2679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2681. protected override global::System.Type GetRowType() {
  2682. return typeof(unit_of_measurementRow);
  2683. }
  2684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2686. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2687. base.OnRowChanged(e);
  2688. if ((this.unit_of_measurementRowChanged != null)) {
  2689. this.unit_of_measurementRowChanged(this, new unit_of_measurementRowChangeEvent(((unit_of_measurementRow)(e.Row)), e.Action));
  2690. }
  2691. }
  2692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2694. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2695. base.OnRowChanging(e);
  2696. if ((this.unit_of_measurementRowChanging != null)) {
  2697. this.unit_of_measurementRowChanging(this, new unit_of_measurementRowChangeEvent(((unit_of_measurementRow)(e.Row)), e.Action));
  2698. }
  2699. }
  2700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2702. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2703. base.OnRowDeleted(e);
  2704. if ((this.unit_of_measurementRowDeleted != null)) {
  2705. this.unit_of_measurementRowDeleted(this, new unit_of_measurementRowChangeEvent(((unit_of_measurementRow)(e.Row)), e.Action));
  2706. }
  2707. }
  2708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2710. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2711. base.OnRowDeleting(e);
  2712. if ((this.unit_of_measurementRowDeleting != null)) {
  2713. this.unit_of_measurementRowDeleting(this, new unit_of_measurementRowChangeEvent(((unit_of_measurementRow)(e.Row)), e.Action));
  2714. }
  2715. }
  2716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2718. public void Removeunit_of_measurementRow(unit_of_measurementRow row) {
  2719. this.Rows.Remove(row);
  2720. }
  2721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2723. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2724. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2725. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2726. digital_world_8DataSet1 ds = new digital_world_8DataSet1();
  2727. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2728. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2729. any1.MinOccurs = new decimal(0);
  2730. any1.MaxOccurs = decimal.MaxValue;
  2731. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2732. sequence.Items.Add(any1);
  2733. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2734. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2735. any2.MinOccurs = new decimal(1);
  2736. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2737. sequence.Items.Add(any2);
  2738. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2739. attribute1.Name = "namespace";
  2740. attribute1.FixedValue = ds.Namespace;
  2741. type.Attributes.Add(attribute1);
  2742. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2743. attribute2.Name = "tableTypeName";
  2744. attribute2.FixedValue = "unit_of_measurementDataTable";
  2745. type.Attributes.Add(attribute2);
  2746. type.Particle = sequence;
  2747. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2748. if (xs.Contains(dsSchema.TargetNamespace)) {
  2749. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2750. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2751. try {
  2752. global::System.Xml.Schema.XmlSchema schema = null;
  2753. dsSchema.Write(s1);
  2754. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2755. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2756. s2.SetLength(0);
  2757. schema.Write(s2);
  2758. if ((s1.Length == s2.Length)) {
  2759. s1.Position = 0;
  2760. s2.Position = 0;
  2761. for (; ((s1.Position != s1.Length)
  2762. && (s1.ReadByte() == s2.ReadByte())); ) {
  2763. ;
  2764. }
  2765. if ((s1.Position == s1.Length)) {
  2766. return type;
  2767. }
  2768. }
  2769. }
  2770. }
  2771. finally {
  2772. if ((s1 != null)) {
  2773. s1.Close();
  2774. }
  2775. if ((s2 != null)) {
  2776. s2.Close();
  2777. }
  2778. }
  2779. }
  2780. xs.Add(dsSchema);
  2781. return type;
  2782. }
  2783. }
  2784. /// <summary>
  2785. ///Represents the strongly named DataTable class.
  2786. ///</summary>
  2787. [global::System.Serializable()]
  2788. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2789. public partial class UsersDataTable : global::System.Data.TypedTableBase<UsersRow> {
  2790. private global::System.Data.DataColumn columnId;
  2791. private global::System.Data.DataColumn columnUsername;
  2792. private global::System.Data.DataColumn columnPassword;
  2793. private global::System.Data.DataColumn columnRole;
  2794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2796. public UsersDataTable() {
  2797. this.TableName = "Users";
  2798. this.BeginInit();
  2799. this.InitClass();
  2800. this.EndInit();
  2801. }
  2802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2804. internal UsersDataTable(global::System.Data.DataTable table) {
  2805. this.TableName = table.TableName;
  2806. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2807. this.CaseSensitive = table.CaseSensitive;
  2808. }
  2809. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2810. this.Locale = table.Locale;
  2811. }
  2812. if ((table.Namespace != table.DataSet.Namespace)) {
  2813. this.Namespace = table.Namespace;
  2814. }
  2815. this.Prefix = table.Prefix;
  2816. this.MinimumCapacity = table.MinimumCapacity;
  2817. }
  2818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2820. protected UsersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2821. base(info, context) {
  2822. this.InitVars();
  2823. }
  2824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2826. public global::System.Data.DataColumn IdColumn {
  2827. get {
  2828. return this.columnId;
  2829. }
  2830. }
  2831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2833. public global::System.Data.DataColumn UsernameColumn {
  2834. get {
  2835. return this.columnUsername;
  2836. }
  2837. }
  2838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2840. public global::System.Data.DataColumn PasswordColumn {
  2841. get {
  2842. return this.columnPassword;
  2843. }
  2844. }
  2845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2847. public global::System.Data.DataColumn RoleColumn {
  2848. get {
  2849. return this.columnRole;
  2850. }
  2851. }
  2852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2854. [global::System.ComponentModel.Browsable(false)]
  2855. public int Count {
  2856. get {
  2857. return this.Rows.Count;
  2858. }
  2859. }
  2860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2862. public UsersRow this[int index] {
  2863. get {
  2864. return ((UsersRow)(this.Rows[index]));
  2865. }
  2866. }
  2867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2868. public event UsersRowChangeEventHandler UsersRowChanging;
  2869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2870. public event UsersRowChangeEventHandler UsersRowChanged;
  2871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2872. public event UsersRowChangeEventHandler UsersRowDeleting;
  2873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2874. public event UsersRowChangeEventHandler UsersRowDeleted;
  2875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2877. public void AddUsersRow(UsersRow row) {
  2878. this.Rows.Add(row);
  2879. }
  2880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2882. public UsersRow AddUsersRow(int Id, string Username, string Password, RoleRow parentRoleRowByFK_Users_Role) {
  2883. UsersRow rowUsersRow = ((UsersRow)(this.NewRow()));
  2884. object[] columnValuesArray = new object[] {
  2885. Id,
  2886. Username,
  2887. Password,
  2888. null};
  2889. if ((parentRoleRowByFK_Users_Role != null)) {
  2890. columnValuesArray[3] = parentRoleRowByFK_Users_Role[0];
  2891. }
  2892. rowUsersRow.ItemArray = columnValuesArray;
  2893. this.Rows.Add(rowUsersRow);
  2894. return rowUsersRow;
  2895. }
  2896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2898. public UsersRow FindById(int Id) {
  2899. return ((UsersRow)(this.Rows.Find(new object[] {
  2900. Id})));
  2901. }
  2902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2904. public override global::System.Data.DataTable Clone() {
  2905. UsersDataTable cln = ((UsersDataTable)(base.Clone()));
  2906. cln.InitVars();
  2907. return cln;
  2908. }
  2909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2911. protected override global::System.Data.DataTable CreateInstance() {
  2912. return new UsersDataTable();
  2913. }
  2914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2916. internal void InitVars() {
  2917. this.columnId = base.Columns["Id"];
  2918. this.columnUsername = base.Columns["Username"];
  2919. this.columnPassword = base.Columns["Password"];
  2920. this.columnRole = base.Columns["Role"];
  2921. }
  2922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2924. private void InitClass() {
  2925. this.columnId = new global::System.Data.DataColumn("Id", typeof(int), null, global::System.Data.MappingType.Element);
  2926. base.Columns.Add(this.columnId);
  2927. this.columnUsername = new global::System.Data.DataColumn("Username", typeof(string), null, global::System.Data.MappingType.Element);
  2928. base.Columns.Add(this.columnUsername);
  2929. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  2930. base.Columns.Add(this.columnPassword);
  2931. this.columnRole = new global::System.Data.DataColumn("Role", typeof(int), null, global::System.Data.MappingType.Element);
  2932. base.Columns.Add(this.columnRole);
  2933. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2934. this.columnId}, true));
  2935. this.columnId.AllowDBNull = false;
  2936. this.columnId.Unique = true;
  2937. this.columnUsername.MaxLength = 50;
  2938. this.columnPassword.MaxLength = 50;
  2939. }
  2940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2942. public UsersRow NewUsersRow() {
  2943. return ((UsersRow)(this.NewRow()));
  2944. }
  2945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2947. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2948. return new UsersRow(builder);
  2949. }
  2950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2952. protected override global::System.Type GetRowType() {
  2953. return typeof(UsersRow);
  2954. }
  2955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2957. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2958. base.OnRowChanged(e);
  2959. if ((this.UsersRowChanged != null)) {
  2960. this.UsersRowChanged(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  2961. }
  2962. }
  2963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2965. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2966. base.OnRowChanging(e);
  2967. if ((this.UsersRowChanging != null)) {
  2968. this.UsersRowChanging(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  2969. }
  2970. }
  2971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2973. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2974. base.OnRowDeleted(e);
  2975. if ((this.UsersRowDeleted != null)) {
  2976. this.UsersRowDeleted(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  2977. }
  2978. }
  2979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2981. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2982. base.OnRowDeleting(e);
  2983. if ((this.UsersRowDeleting != null)) {
  2984. this.UsersRowDeleting(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  2985. }
  2986. }
  2987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2989. public void RemoveUsersRow(UsersRow row) {
  2990. this.Rows.Remove(row);
  2991. }
  2992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2994. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2995. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2996. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2997. digital_world_8DataSet1 ds = new digital_world_8DataSet1();
  2998. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2999. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3000. any1.MinOccurs = new decimal(0);
  3001. any1.MaxOccurs = decimal.MaxValue;
  3002. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3003. sequence.Items.Add(any1);
  3004. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3005. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3006. any2.MinOccurs = new decimal(1);
  3007. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3008. sequence.Items.Add(any2);
  3009. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3010. attribute1.Name = "namespace";
  3011. attribute1.FixedValue = ds.Namespace;
  3012. type.Attributes.Add(attribute1);
  3013. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3014. attribute2.Name = "tableTypeName";
  3015. attribute2.FixedValue = "UsersDataTable";
  3016. type.Attributes.Add(attribute2);
  3017. type.Particle = sequence;
  3018. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3019. if (xs.Contains(dsSchema.TargetNamespace)) {
  3020. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3021. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3022. try {
  3023. global::System.Xml.Schema.XmlSchema schema = null;
  3024. dsSchema.Write(s1);
  3025. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3026. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3027. s2.SetLength(0);
  3028. schema.Write(s2);
  3029. if ((s1.Length == s2.Length)) {
  3030. s1.Position = 0;
  3031. s2.Position = 0;
  3032. for (; ((s1.Position != s1.Length)
  3033. && (s1.ReadByte() == s2.ReadByte())); ) {
  3034. ;
  3035. }
  3036. if ((s1.Position == s1.Length)) {
  3037. return type;
  3038. }
  3039. }
  3040. }
  3041. }
  3042. finally {
  3043. if ((s1 != null)) {
  3044. s1.Close();
  3045. }
  3046. if ((s2 != null)) {
  3047. s2.Close();
  3048. }
  3049. }
  3050. }
  3051. xs.Add(dsSchema);
  3052. return type;
  3053. }
  3054. }
  3055. /// <summary>
  3056. ///Represents the strongly named DataTable class.
  3057. ///</summary>
  3058. [global::System.Serializable()]
  3059. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3060. public partial class Postavka_materialDataTable : global::System.Data.TypedTableBase<Postavka_materialRow> {
  3061. private global::System.Data.DataColumn columnid;
  3062. private global::System.Data.DataColumn columnid_производителя;
  3063. private global::System.Data.DataColumn columnДата;
  3064. private global::System.Data.DataColumn columnНазвание;
  3065. private global::System.Data.DataColumn columnТип_материала;
  3066. private global::System.Data.DataColumn columnКоличество;
  3067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3069. public Postavka_materialDataTable() {
  3070. this.TableName = "Postavka_material";
  3071. this.BeginInit();
  3072. this.InitClass();
  3073. this.EndInit();
  3074. }
  3075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3077. internal Postavka_materialDataTable(global::System.Data.DataTable table) {
  3078. this.TableName = table.TableName;
  3079. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3080. this.CaseSensitive = table.CaseSensitive;
  3081. }
  3082. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3083. this.Locale = table.Locale;
  3084. }
  3085. if ((table.Namespace != table.DataSet.Namespace)) {
  3086. this.Namespace = table.Namespace;
  3087. }
  3088. this.Prefix = table.Prefix;
  3089. this.MinimumCapacity = table.MinimumCapacity;
  3090. }
  3091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3093. protected Postavka_materialDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3094. base(info, context) {
  3095. this.InitVars();
  3096. }
  3097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3099. public global::System.Data.DataColumn idColumn {
  3100. get {
  3101. return this.columnid;
  3102. }
  3103. }
  3104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3106. public global::System.Data.DataColumn id_производителяColumn {
  3107. get {
  3108. return this.columnid_производителя;
  3109. }
  3110. }
  3111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3113. public global::System.Data.DataColumn ДатаColumn {
  3114. get {
  3115. return this.columnДата;
  3116. }
  3117. }
  3118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3120. public global::System.Data.DataColumn НазваниеColumn {
  3121. get {
  3122. return this.columnНазвание;
  3123. }
  3124. }
  3125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3127. public global::System.Data.DataColumn Тип_материалаColumn {
  3128. get {
  3129. return this.columnТип_материала;
  3130. }
  3131. }
  3132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3134. public global::System.Data.DataColumn КоличествоColumn {
  3135. get {
  3136. return this.columnКоличество;
  3137. }
  3138. }
  3139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3141. [global::System.ComponentModel.Browsable(false)]
  3142. public int Count {
  3143. get {
  3144. return this.Rows.Count;
  3145. }
  3146. }
  3147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3149. public Postavka_materialRow this[int index] {
  3150. get {
  3151. return ((Postavka_materialRow)(this.Rows[index]));
  3152. }
  3153. }
  3154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3155. public event Postavka_materialRowChangeEventHandler Postavka_materialRowChanging;
  3156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3157. public event Postavka_materialRowChangeEventHandler Postavka_materialRowChanged;
  3158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3159. public event Postavka_materialRowChangeEventHandler Postavka_materialRowDeleting;
  3160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3161. public event Postavka_materialRowChangeEventHandler Postavka_materialRowDeleted;
  3162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3164. public void AddPostavka_materialRow(Postavka_materialRow row) {
  3165. this.Rows.Add(row);
  3166. }
  3167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3169. public Postavka_materialRow AddPostavka_materialRow(providerRow parentproviderRowByFK_Postavka_material_provider, System.DateTime Дата, string Название, string Тип_материала, int Количество) {
  3170. Postavka_materialRow rowPostavka_materialRow = ((Postavka_materialRow)(this.NewRow()));
  3171. object[] columnValuesArray = new object[] {
  3172. null,
  3173. null,
  3174. Дата,
  3175. Название,
  3176. Тип_материала,
  3177. Количество};
  3178. if ((parentproviderRowByFK_Postavka_material_provider != null)) {
  3179. columnValuesArray[1] = parentproviderRowByFK_Postavka_material_provider[0];
  3180. }
  3181. rowPostavka_materialRow.ItemArray = columnValuesArray;
  3182. this.Rows.Add(rowPostavka_materialRow);
  3183. return rowPostavka_materialRow;
  3184. }
  3185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3187. public Postavka_materialRow FindByid(int id) {
  3188. return ((Postavka_materialRow)(this.Rows.Find(new object[] {
  3189. id})));
  3190. }
  3191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3193. public override global::System.Data.DataTable Clone() {
  3194. Postavka_materialDataTable cln = ((Postavka_materialDataTable)(base.Clone()));
  3195. cln.InitVars();
  3196. return cln;
  3197. }
  3198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3200. protected override global::System.Data.DataTable CreateInstance() {
  3201. return new Postavka_materialDataTable();
  3202. }
  3203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3205. internal void InitVars() {
  3206. this.columnid = base.Columns["id"];
  3207. this.columnid_производителя = base.Columns["id производителя"];
  3208. this.columnДата = base.Columns["Дата"];
  3209. this.columnНазвание = base.Columns["Название"];
  3210. this.columnТип_материала = base.Columns["Тип материала"];
  3211. this.columnКоличество = base.Columns["Количество"];
  3212. }
  3213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3215. private void InitClass() {
  3216. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  3217. base.Columns.Add(this.columnid);
  3218. this.columnid_производителя = new global::System.Data.DataColumn("id производителя", typeof(int), null, global::System.Data.MappingType.Element);
  3219. base.Columns.Add(this.columnid_производителя);
  3220. this.columnДата = new global::System.Data.DataColumn("Дата", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3221. base.Columns.Add(this.columnДата);
  3222. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  3223. base.Columns.Add(this.columnНазвание);
  3224. this.columnТип_материала = new global::System.Data.DataColumn("Тип материала", typeof(string), null, global::System.Data.MappingType.Element);
  3225. this.columnТип_материала.ExtendedProperties.Add("Generator_ColumnPropNameInRow", "Тип_материала");
  3226. this.columnТип_материала.ExtendedProperties.Add("Generator_ColumnPropNameInTable", "Тип_материалаColumn");
  3227. this.columnТип_материала.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "columnТип_материала");
  3228. this.columnТип_материала.ExtendedProperties.Add("Generator_UserColumnName", "Тип материала");
  3229. base.Columns.Add(this.columnТип_материала);
  3230. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  3231. base.Columns.Add(this.columnКоличество);
  3232. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3233. this.columnid}, true));
  3234. this.columnid.AutoIncrement = true;
  3235. this.columnid.AutoIncrementSeed = -1;
  3236. this.columnid.AutoIncrementStep = -1;
  3237. this.columnid.AllowDBNull = false;
  3238. this.columnid.ReadOnly = true;
  3239. this.columnid.Unique = true;
  3240. this.columnНазвание.MaxLength = 150;
  3241. this.columnТип_материала.MaxLength = 150;
  3242. }
  3243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3245. public Postavka_materialRow NewPostavka_materialRow() {
  3246. return ((Postavka_materialRow)(this.NewRow()));
  3247. }
  3248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3250. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3251. return new Postavka_materialRow(builder);
  3252. }
  3253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3255. protected override global::System.Type GetRowType() {
  3256. return typeof(Postavka_materialRow);
  3257. }
  3258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3260. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3261. base.OnRowChanged(e);
  3262. if ((this.Postavka_materialRowChanged != null)) {
  3263. this.Postavka_materialRowChanged(this, new Postavka_materialRowChangeEvent(((Postavka_materialRow)(e.Row)), e.Action));
  3264. }
  3265. }
  3266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3268. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3269. base.OnRowChanging(e);
  3270. if ((this.Postavka_materialRowChanging != null)) {
  3271. this.Postavka_materialRowChanging(this, new Postavka_materialRowChangeEvent(((Postavka_materialRow)(e.Row)), e.Action));
  3272. }
  3273. }
  3274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3276. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3277. base.OnRowDeleted(e);
  3278. if ((this.Postavka_materialRowDeleted != null)) {
  3279. this.Postavka_materialRowDeleted(this, new Postavka_materialRowChangeEvent(((Postavka_materialRow)(e.Row)), e.Action));
  3280. }
  3281. }
  3282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3284. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3285. base.OnRowDeleting(e);
  3286. if ((this.Postavka_materialRowDeleting != null)) {
  3287. this.Postavka_materialRowDeleting(this, new Postavka_materialRowChangeEvent(((Postavka_materialRow)(e.Row)), e.Action));
  3288. }
  3289. }
  3290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3292. public void RemovePostavka_materialRow(Postavka_materialRow row) {
  3293. this.Rows.Remove(row);
  3294. }
  3295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3297. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3298. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3299. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3300. digital_world_8DataSet1 ds = new digital_world_8DataSet1();
  3301. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3302. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3303. any1.MinOccurs = new decimal(0);
  3304. any1.MaxOccurs = decimal.MaxValue;
  3305. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3306. sequence.Items.Add(any1);
  3307. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3308. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3309. any2.MinOccurs = new decimal(1);
  3310. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3311. sequence.Items.Add(any2);
  3312. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3313. attribute1.Name = "namespace";
  3314. attribute1.FixedValue = ds.Namespace;
  3315. type.Attributes.Add(attribute1);
  3316. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3317. attribute2.Name = "tableTypeName";
  3318. attribute2.FixedValue = "Postavka_materialDataTable";
  3319. type.Attributes.Add(attribute2);
  3320. type.Particle = sequence;
  3321. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3322. if (xs.Contains(dsSchema.TargetNamespace)) {
  3323. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3324. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3325. try {
  3326. global::System.Xml.Schema.XmlSchema schema = null;
  3327. dsSchema.Write(s1);
  3328. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3329. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3330. s2.SetLength(0);
  3331. schema.Write(s2);
  3332. if ((s1.Length == s2.Length)) {
  3333. s1.Position = 0;
  3334. s2.Position = 0;
  3335. for (; ((s1.Position != s1.Length)
  3336. && (s1.ReadByte() == s2.ReadByte())); ) {
  3337. ;
  3338. }
  3339. if ((s1.Position == s1.Length)) {
  3340. return type;
  3341. }
  3342. }
  3343. }
  3344. }
  3345. finally {
  3346. if ((s1 != null)) {
  3347. s1.Close();
  3348. }
  3349. if ((s2 != null)) {
  3350. s2.Close();
  3351. }
  3352. }
  3353. }
  3354. xs.Add(dsSchema);
  3355. return type;
  3356. }
  3357. }
  3358. /// <summary>
  3359. ///Represents strongly named DataRow class.
  3360. ///</summary>
  3361. public partial class ComponentsRow : global::System.Data.DataRow {
  3362. private ComponentsDataTable tableComponents;
  3363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3365. internal ComponentsRow(global::System.Data.DataRowBuilder rb) :
  3366. base(rb) {
  3367. this.tableComponents = ((ComponentsDataTable)(this.Table));
  3368. }
  3369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3371. public int id {
  3372. get {
  3373. return ((int)(this[this.tableComponents.idColumn]));
  3374. }
  3375. set {
  3376. this[this.tableComponents.idColumn] = value;
  3377. }
  3378. }
  3379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3381. public string Название {
  3382. get {
  3383. try {
  3384. return ((string)(this[this.tableComponents.НазваниеColumn]));
  3385. }
  3386. catch (global::System.InvalidCastException e) {
  3387. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'Components\' равно DBNull.", e);
  3388. }
  3389. }
  3390. set {
  3391. this[this.tableComponents.НазваниеColumn] = value;
  3392. }
  3393. }
  3394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3396. public int Id_единицы_измерения {
  3397. get {
  3398. try {
  3399. return ((int)(this[this.tableComponents.Id_единицы_измеренияColumn]));
  3400. }
  3401. catch (global::System.InvalidCastException e) {
  3402. throw new global::System.Data.StrongTypingException("Значение для столбца \'Id единицы измерения\' в таблице \'Components\' равно DBNull.", e);
  3403. }
  3404. }
  3405. set {
  3406. this[this.tableComponents.Id_единицы_измеренияColumn] = value;
  3407. }
  3408. }
  3409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3411. public string Тип_материала {
  3412. get {
  3413. try {
  3414. return ((string)(this[this.tableComponents.Тип_материалаColumn]));
  3415. }
  3416. catch (global::System.InvalidCastException e) {
  3417. throw new global::System.Data.StrongTypingException("Значение для столбца \'Тип_материала\' в таблице \'Components\' равно DBNull.", e);
  3418. }
  3419. }
  3420. set {
  3421. this[this.tableComponents.Тип_материалаColumn] = value;
  3422. }
  3423. }
  3424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3426. public int Цена {
  3427. get {
  3428. try {
  3429. return ((int)(this[this.tableComponents.ЦенаColumn]));
  3430. }
  3431. catch (global::System.InvalidCastException e) {
  3432. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Components\' равно DBNull.", e);
  3433. }
  3434. }
  3435. set {
  3436. this[this.tableComponents.ЦенаColumn] = value;
  3437. }
  3438. }
  3439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3441. public int количество {
  3442. get {
  3443. try {
  3444. return ((int)(this[this.tableComponents.количествоColumn]));
  3445. }
  3446. catch (global::System.InvalidCastException e) {
  3447. throw new global::System.Data.StrongTypingException("Значение для столбца \'количество\' в таблице \'Components\' равно DBNull.", e);
  3448. }
  3449. }
  3450. set {
  3451. this[this.tableComponents.количествоColumn] = value;
  3452. }
  3453. }
  3454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3456. public unit_of_measurementRow unit_of_measurementRow {
  3457. get {
  3458. return ((unit_of_measurementRow)(this.GetParentRow(this.Table.ParentRelations["FK_Components_unit_of_measurement"])));
  3459. }
  3460. set {
  3461. this.SetParentRow(value, this.Table.ParentRelations["FK_Components_unit_of_measurement"]);
  3462. }
  3463. }
  3464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3466. public bool IsНазваниеNull() {
  3467. return this.IsNull(this.tableComponents.НазваниеColumn);
  3468. }
  3469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3471. public void SetНазваниеNull() {
  3472. this[this.tableComponents.НазваниеColumn] = global::System.Convert.DBNull;
  3473. }
  3474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3476. public bool IsId_единицы_измеренияNull() {
  3477. return this.IsNull(this.tableComponents.Id_единицы_измеренияColumn);
  3478. }
  3479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3481. public void SetId_единицы_измеренияNull() {
  3482. this[this.tableComponents.Id_единицы_измеренияColumn] = global::System.Convert.DBNull;
  3483. }
  3484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3486. public bool IsТип_материалаNull() {
  3487. return this.IsNull(this.tableComponents.Тип_материалаColumn);
  3488. }
  3489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3491. public void SetТип_материалаNull() {
  3492. this[this.tableComponents.Тип_материалаColumn] = global::System.Convert.DBNull;
  3493. }
  3494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3496. public bool IsЦенаNull() {
  3497. return this.IsNull(this.tableComponents.ЦенаColumn);
  3498. }
  3499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3501. public void SetЦенаNull() {
  3502. this[this.tableComponents.ЦенаColumn] = global::System.Convert.DBNull;
  3503. }
  3504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3506. public bool IsколичествоNull() {
  3507. return this.IsNull(this.tableComponents.количествоColumn);
  3508. }
  3509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3511. public void SetколичествоNull() {
  3512. this[this.tableComponents.количествоColumn] = global::System.Convert.DBNull;
  3513. }
  3514. }
  3515. /// <summary>
  3516. ///Represents strongly named DataRow class.
  3517. ///</summary>
  3518. public partial class computer_assemblyRow : global::System.Data.DataRow {
  3519. private computer_assemblyDataTable tablecomputer_assembly;
  3520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3522. internal computer_assemblyRow(global::System.Data.DataRowBuilder rb) :
  3523. base(rb) {
  3524. this.tablecomputer_assembly = ((computer_assemblyDataTable)(this.Table));
  3525. }
  3526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3528. public string Видеокарта {
  3529. get {
  3530. try {
  3531. return ((string)(this[this.tablecomputer_assembly.ВидеокартаColumn]));
  3532. }
  3533. catch (global::System.InvalidCastException e) {
  3534. throw new global::System.Data.StrongTypingException("Значение для столбца \'Видеокарта\' в таблице \'computer_assembly\' равно DBNull.", e);
  3535. }
  3536. }
  3537. set {
  3538. this[this.tablecomputer_assembly.ВидеокартаColumn] = value;
  3539. }
  3540. }
  3541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3543. public string Материнская_плата {
  3544. get {
  3545. try {
  3546. return ((string)(this[this.tablecomputer_assembly.Материнская_платаColumn]));
  3547. }
  3548. catch (global::System.InvalidCastException e) {
  3549. throw new global::System.Data.StrongTypingException("Значение для столбца \'Материнская плата\' в таблице \'computer_assembly\' равно DBNu" +
  3550. "ll.", e);
  3551. }
  3552. }
  3553. set {
  3554. this[this.tablecomputer_assembly.Материнская_платаColumn] = value;
  3555. }
  3556. }
  3557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3559. public string Процессор {
  3560. get {
  3561. try {
  3562. return ((string)(this[this.tablecomputer_assembly.ПроцессорColumn]));
  3563. }
  3564. catch (global::System.InvalidCastException e) {
  3565. throw new global::System.Data.StrongTypingException("Значение для столбца \'Процессор\' в таблице \'computer_assembly\' равно DBNull.", e);
  3566. }
  3567. }
  3568. set {
  3569. this[this.tablecomputer_assembly.ПроцессорColumn] = value;
  3570. }
  3571. }
  3572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3574. public string Оперативная_память {
  3575. get {
  3576. try {
  3577. return ((string)(this[this.tablecomputer_assembly.Оперативная_памятьColumn]));
  3578. }
  3579. catch (global::System.InvalidCastException e) {
  3580. throw new global::System.Data.StrongTypingException("Значение для столбца \'Оперативная память\' в таблице \'computer_assembly\' равно DBN" +
  3581. "ull.", e);
  3582. }
  3583. }
  3584. set {
  3585. this[this.tablecomputer_assembly.Оперативная_памятьColumn] = value;
  3586. }
  3587. }
  3588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3590. public string _Оперативная_память {
  3591. get {
  3592. try {
  3593. return ((string)(this[this.tablecomputer_assembly._Оперативная_памятьColumn]));
  3594. }
  3595. catch (global::System.InvalidCastException e) {
  3596. throw new global::System.Data.StrongTypingException("Значение для столбца \'Оперативная_память\' в таблице \'computer_assembly\' равно DBN" +
  3597. "ull.", e);
  3598. }
  3599. }
  3600. set {
  3601. this[this.tablecomputer_assembly._Оперативная_памятьColumn] = value;
  3602. }
  3603. }
  3604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3606. public string Жетский_диск {
  3607. get {
  3608. try {
  3609. return ((string)(this[this.tablecomputer_assembly.Жетский_дискColumn]));
  3610. }
  3611. catch (global::System.InvalidCastException e) {
  3612. throw new global::System.Data.StrongTypingException("Значение для столбца \'Жетский диск\' в таблице \'computer_assembly\' равно DBNull.", e);
  3613. }
  3614. }
  3615. set {
  3616. this[this.tablecomputer_assembly.Жетский_дискColumn] = value;
  3617. }
  3618. }
  3619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3621. public string Куллер {
  3622. get {
  3623. try {
  3624. return ((string)(this[this.tablecomputer_assembly.КуллерColumn]));
  3625. }
  3626. catch (global::System.InvalidCastException e) {
  3627. throw new global::System.Data.StrongTypingException("Значение для столбца \'Куллер\' в таблице \'computer_assembly\' равно DBNull.", e);
  3628. }
  3629. }
  3630. set {
  3631. this[this.tablecomputer_assembly.КуллерColumn] = value;
  3632. }
  3633. }
  3634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3636. public string Система_охлаждения {
  3637. get {
  3638. try {
  3639. return ((string)(this[this.tablecomputer_assembly.Система_охлажденияColumn]));
  3640. }
  3641. catch (global::System.InvalidCastException e) {
  3642. throw new global::System.Data.StrongTypingException("Значение для столбца \'Система охлаждения\' в таблице \'computer_assembly\' равно DBN" +
  3643. "ull.", e);
  3644. }
  3645. }
  3646. set {
  3647. this[this.tablecomputer_assembly.Система_охлажденияColumn] = value;
  3648. }
  3649. }
  3650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3652. public string Блок_питания {
  3653. get {
  3654. try {
  3655. return ((string)(this[this.tablecomputer_assembly.Блок_питанияColumn]));
  3656. }
  3657. catch (global::System.InvalidCastException e) {
  3658. throw new global::System.Data.StrongTypingException("Значение для столбца \'Блок питания\' в таблице \'computer_assembly\' равно DBNull.", e);
  3659. }
  3660. }
  3661. set {
  3662. this[this.tablecomputer_assembly.Блок_питанияColumn] = value;
  3663. }
  3664. }
  3665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3667. public string SSD {
  3668. get {
  3669. try {
  3670. return ((string)(this[this.tablecomputer_assembly.SSDColumn]));
  3671. }
  3672. catch (global::System.InvalidCastException e) {
  3673. throw new global::System.Data.StrongTypingException("Значение для столбца \'SSD\' в таблице \'computer_assembly\' равно DBNull.", e);
  3674. }
  3675. }
  3676. set {
  3677. this[this.tablecomputer_assembly.SSDColumn] = value;
  3678. }
  3679. }
  3680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3682. public int Номер_сборки {
  3683. get {
  3684. return ((int)(this[this.tablecomputer_assembly.Номер_сборкиColumn]));
  3685. }
  3686. set {
  3687. this[this.tablecomputer_assembly.Номер_сборкиColumn] = value;
  3688. }
  3689. }
  3690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3692. public int Итоговая_цена {
  3693. get {
  3694. try {
  3695. return ((int)(this[this.tablecomputer_assembly.Итоговая_ценаColumn]));
  3696. }
  3697. catch (global::System.InvalidCastException e) {
  3698. throw new global::System.Data.StrongTypingException("Значение для столбца \'Итоговая цена\' в таблице \'computer_assembly\' равно DBNull.", e);
  3699. }
  3700. }
  3701. set {
  3702. this[this.tablecomputer_assembly.Итоговая_ценаColumn] = value;
  3703. }
  3704. }
  3705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3707. public bool IsВидеокартаNull() {
  3708. return this.IsNull(this.tablecomputer_assembly.ВидеокартаColumn);
  3709. }
  3710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3712. public void SetВидеокартаNull() {
  3713. this[this.tablecomputer_assembly.ВидеокартаColumn] = global::System.Convert.DBNull;
  3714. }
  3715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3717. public bool IsМатеринская_платаNull() {
  3718. return this.IsNull(this.tablecomputer_assembly.Материнская_платаColumn);
  3719. }
  3720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3722. public void SetМатеринская_платаNull() {
  3723. this[this.tablecomputer_assembly.Материнская_платаColumn] = global::System.Convert.DBNull;
  3724. }
  3725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3727. public bool IsПроцессорNull() {
  3728. return this.IsNull(this.tablecomputer_assembly.ПроцессорColumn);
  3729. }
  3730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3732. public void SetПроцессорNull() {
  3733. this[this.tablecomputer_assembly.ПроцессорColumn] = global::System.Convert.DBNull;
  3734. }
  3735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3737. public bool IsОперативная_памятьNull() {
  3738. return this.IsNull(this.tablecomputer_assembly.Оперативная_памятьColumn);
  3739. }
  3740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3742. public void SetОперативная_памятьNull() {
  3743. this[this.tablecomputer_assembly.Оперативная_памятьColumn] = global::System.Convert.DBNull;
  3744. }
  3745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3747. public bool Is_Оперативная_памятьNull() {
  3748. return this.IsNull(this.tablecomputer_assembly._Оперативная_памятьColumn);
  3749. }
  3750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3752. public void Set_Оперативная_памятьNull() {
  3753. this[this.tablecomputer_assembly._Оперативная_памятьColumn] = global::System.Convert.DBNull;
  3754. }
  3755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3757. public bool IsЖетский_дискNull() {
  3758. return this.IsNull(this.tablecomputer_assembly.Жетский_дискColumn);
  3759. }
  3760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3762. public void SetЖетский_дискNull() {
  3763. this[this.tablecomputer_assembly.Жетский_дискColumn] = global::System.Convert.DBNull;
  3764. }
  3765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3767. public bool IsКуллерNull() {
  3768. return this.IsNull(this.tablecomputer_assembly.КуллерColumn);
  3769. }
  3770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3772. public void SetКуллерNull() {
  3773. this[this.tablecomputer_assembly.КуллерColumn] = global::System.Convert.DBNull;
  3774. }
  3775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3777. public bool IsСистема_охлажденияNull() {
  3778. return this.IsNull(this.tablecomputer_assembly.Система_охлажденияColumn);
  3779. }
  3780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3782. public void SetСистема_охлажденияNull() {
  3783. this[this.tablecomputer_assembly.Система_охлажденияColumn] = global::System.Convert.DBNull;
  3784. }
  3785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3787. public bool IsБлок_питанияNull() {
  3788. return this.IsNull(this.tablecomputer_assembly.Блок_питанияColumn);
  3789. }
  3790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3792. public void SetБлок_питанияNull() {
  3793. this[this.tablecomputer_assembly.Блок_питанияColumn] = global::System.Convert.DBNull;
  3794. }
  3795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3797. public bool IsSSDNull() {
  3798. return this.IsNull(this.tablecomputer_assembly.SSDColumn);
  3799. }
  3800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3802. public void SetSSDNull() {
  3803. this[this.tablecomputer_assembly.SSDColumn] = global::System.Convert.DBNull;
  3804. }
  3805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3807. public bool IsИтоговая_ценаNull() {
  3808. return this.IsNull(this.tablecomputer_assembly.Итоговая_ценаColumn);
  3809. }
  3810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3812. public void SetИтоговая_ценаNull() {
  3813. this[this.tablecomputer_assembly.Итоговая_ценаColumn] = global::System.Convert.DBNull;
  3814. }
  3815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3817. public OrderRow[] GetOrderRows() {
  3818. if ((this.Table.ChildRelations["FK_Order_computer_assembly"] == null)) {
  3819. return new OrderRow[0];
  3820. }
  3821. else {
  3822. return ((OrderRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Order_computer_assembly"])));
  3823. }
  3824. }
  3825. }
  3826. /// <summary>
  3827. ///Represents strongly named DataRow class.
  3828. ///</summary>
  3829. public partial class OrderRow : global::System.Data.DataRow {
  3830. private OrderDataTable tableOrder;
  3831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3833. internal OrderRow(global::System.Data.DataRowBuilder rb) :
  3834. base(rb) {
  3835. this.tableOrder = ((OrderDataTable)(this.Table));
  3836. }
  3837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3839. public int Id_заказа {
  3840. get {
  3841. return ((int)(this[this.tableOrder.Id_заказаColumn]));
  3842. }
  3843. set {
  3844. this[this.tableOrder.Id_заказаColumn] = value;
  3845. }
  3846. }
  3847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3849. public int Номер_заказа {
  3850. get {
  3851. try {
  3852. return ((int)(this[this.tableOrder.Номер_заказаColumn]));
  3853. }
  3854. catch (global::System.InvalidCastException e) {
  3855. throw new global::System.Data.StrongTypingException("Значение для столбца \'Номер заказа\' в таблице \'Order\' равно DBNull.", e);
  3856. }
  3857. }
  3858. set {
  3859. this[this.tableOrder.Номер_заказаColumn] = value;
  3860. }
  3861. }
  3862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3864. public System.DateTime Дата {
  3865. get {
  3866. try {
  3867. return ((global::System.DateTime)(this[this.tableOrder.ДатаColumn]));
  3868. }
  3869. catch (global::System.InvalidCastException e) {
  3870. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата\' в таблице \'Order\' равно DBNull.", e);
  3871. }
  3872. }
  3873. set {
  3874. this[this.tableOrder.ДатаColumn] = value;
  3875. }
  3876. }
  3877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3879. public int id_статуса {
  3880. get {
  3881. try {
  3882. return ((int)(this[this.tableOrder.id_статусаColumn]));
  3883. }
  3884. catch (global::System.InvalidCastException e) {
  3885. throw new global::System.Data.StrongTypingException("Значение для столбца \'id статуса\' в таблице \'Order\' равно DBNull.", e);
  3886. }
  3887. }
  3888. set {
  3889. this[this.tableOrder.id_статусаColumn] = value;
  3890. }
  3891. }
  3892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3894. public int Номер_сборки {
  3895. get {
  3896. try {
  3897. return ((int)(this[this.tableOrder.Номер_сборкиColumn]));
  3898. }
  3899. catch (global::System.InvalidCastException e) {
  3900. throw new global::System.Data.StrongTypingException("Значение для столбца \'Номер сборки\' в таблице \'Order\' равно DBNull.", e);
  3901. }
  3902. }
  3903. set {
  3904. this[this.tableOrder.Номер_сборкиColumn] = value;
  3905. }
  3906. }
  3907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3909. public order_by_clientsRow order_by_clientsRow {
  3910. get {
  3911. return ((order_by_clientsRow)(this.GetParentRow(this.Table.ParentRelations["FK_Order_order_by_clients"])));
  3912. }
  3913. set {
  3914. this.SetParentRow(value, this.Table.ParentRelations["FK_Order_order_by_clients"]);
  3915. }
  3916. }
  3917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3919. public Order_statusRow Order_statusRow {
  3920. get {
  3921. return ((Order_statusRow)(this.GetParentRow(this.Table.ParentRelations["FK_Order_Order_status"])));
  3922. }
  3923. set {
  3924. this.SetParentRow(value, this.Table.ParentRelations["FK_Order_Order_status"]);
  3925. }
  3926. }
  3927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3929. public computer_assemblyRow computer_assemblyRow {
  3930. get {
  3931. return ((computer_assemblyRow)(this.GetParentRow(this.Table.ParentRelations["FK_Order_computer_assembly"])));
  3932. }
  3933. set {
  3934. this.SetParentRow(value, this.Table.ParentRelations["FK_Order_computer_assembly"]);
  3935. }
  3936. }
  3937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3939. public bool IsНомер_заказаNull() {
  3940. return this.IsNull(this.tableOrder.Номер_заказаColumn);
  3941. }
  3942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3944. public void SetНомер_заказаNull() {
  3945. this[this.tableOrder.Номер_заказаColumn] = global::System.Convert.DBNull;
  3946. }
  3947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3949. public bool IsДатаNull() {
  3950. return this.IsNull(this.tableOrder.ДатаColumn);
  3951. }
  3952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3954. public void SetДатаNull() {
  3955. this[this.tableOrder.ДатаColumn] = global::System.Convert.DBNull;
  3956. }
  3957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3959. public bool Isid_статусаNull() {
  3960. return this.IsNull(this.tableOrder.id_статусаColumn);
  3961. }
  3962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3964. public void Setid_статусаNull() {
  3965. this[this.tableOrder.id_статусаColumn] = global::System.Convert.DBNull;
  3966. }
  3967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3969. public bool IsНомер_сборкиNull() {
  3970. return this.IsNull(this.tableOrder.Номер_сборкиColumn);
  3971. }
  3972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3974. public void SetНомер_сборкиNull() {
  3975. this[this.tableOrder.Номер_сборкиColumn] = global::System.Convert.DBNull;
  3976. }
  3977. }
  3978. /// <summary>
  3979. ///Represents strongly named DataRow class.
  3980. ///</summary>
  3981. public partial class order_by_clientsRow : global::System.Data.DataRow {
  3982. private order_by_clientsDataTable tableorder_by_clients;
  3983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3985. internal order_by_clientsRow(global::System.Data.DataRowBuilder rb) :
  3986. base(rb) {
  3987. this.tableorder_by_clients = ((order_by_clientsDataTable)(this.Table));
  3988. }
  3989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3991. public int Номер_заказа {
  3992. get {
  3993. return ((int)(this[this.tableorder_by_clients.Номер_заказаColumn]));
  3994. }
  3995. set {
  3996. this[this.tableorder_by_clients.Номер_заказаColumn] = value;
  3997. }
  3998. }
  3999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4001. public string Пожелания {
  4002. get {
  4003. try {
  4004. return ((string)(this[this.tableorder_by_clients.ПожеланияColumn]));
  4005. }
  4006. catch (global::System.InvalidCastException e) {
  4007. throw new global::System.Data.StrongTypingException("Значение для столбца \'Пожелания\' в таблице \'order_by_clients\' равно DBNull.", e);
  4008. }
  4009. }
  4010. set {
  4011. this[this.tableorder_by_clients.ПожеланияColumn] = value;
  4012. }
  4013. }
  4014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4016. public System.DateTime Дата {
  4017. get {
  4018. try {
  4019. return ((global::System.DateTime)(this[this.tableorder_by_clients.ДатаColumn]));
  4020. }
  4021. catch (global::System.InvalidCastException e) {
  4022. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата\' в таблице \'order_by_clients\' равно DBNull.", e);
  4023. }
  4024. }
  4025. set {
  4026. this[this.tableorder_by_clients.ДатаColumn] = value;
  4027. }
  4028. }
  4029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4031. public bool IsПожеланияNull() {
  4032. return this.IsNull(this.tableorder_by_clients.ПожеланияColumn);
  4033. }
  4034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4036. public void SetПожеланияNull() {
  4037. this[this.tableorder_by_clients.ПожеланияColumn] = global::System.Convert.DBNull;
  4038. }
  4039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4041. public bool IsДатаNull() {
  4042. return this.IsNull(this.tableorder_by_clients.ДатаColumn);
  4043. }
  4044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4046. public void SetДатаNull() {
  4047. this[this.tableorder_by_clients.ДатаColumn] = global::System.Convert.DBNull;
  4048. }
  4049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4051. public OrderRow[] GetOrderRows() {
  4052. if ((this.Table.ChildRelations["FK_Order_order_by_clients"] == null)) {
  4053. return new OrderRow[0];
  4054. }
  4055. else {
  4056. return ((OrderRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Order_order_by_clients"])));
  4057. }
  4058. }
  4059. }
  4060. /// <summary>
  4061. ///Represents strongly named DataRow class.
  4062. ///</summary>
  4063. public partial class Order_statusRow : global::System.Data.DataRow {
  4064. private Order_statusDataTable tableOrder_status;
  4065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4067. internal Order_statusRow(global::System.Data.DataRowBuilder rb) :
  4068. base(rb) {
  4069. this.tableOrder_status = ((Order_statusDataTable)(this.Table));
  4070. }
  4071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4073. public int id {
  4074. get {
  4075. return ((int)(this[this.tableOrder_status.idColumn]));
  4076. }
  4077. set {
  4078. this[this.tableOrder_status.idColumn] = value;
  4079. }
  4080. }
  4081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4083. public string Название_статуса {
  4084. get {
  4085. try {
  4086. return ((string)(this[this.tableOrder_status.Название_статусаColumn]));
  4087. }
  4088. catch (global::System.InvalidCastException e) {
  4089. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название статуса\' в таблице \'Order_status\' равно DBNull.", e);
  4090. }
  4091. }
  4092. set {
  4093. this[this.tableOrder_status.Название_статусаColumn] = value;
  4094. }
  4095. }
  4096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4098. public bool IsНазвание_статусаNull() {
  4099. return this.IsNull(this.tableOrder_status.Название_статусаColumn);
  4100. }
  4101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4103. public void SetНазвание_статусаNull() {
  4104. this[this.tableOrder_status.Название_статусаColumn] = global::System.Convert.DBNull;
  4105. }
  4106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4108. public OrderRow[] GetOrderRows() {
  4109. if ((this.Table.ChildRelations["FK_Order_Order_status"] == null)) {
  4110. return new OrderRow[0];
  4111. }
  4112. else {
  4113. return ((OrderRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Order_Order_status"])));
  4114. }
  4115. }
  4116. }
  4117. /// <summary>
  4118. ///Represents strongly named DataRow class.
  4119. ///</summary>
  4120. public partial class providerRow : global::System.Data.DataRow {
  4121. private providerDataTable tableprovider;
  4122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4124. internal providerRow(global::System.Data.DataRowBuilder rb) :
  4125. base(rb) {
  4126. this.tableprovider = ((providerDataTable)(this.Table));
  4127. }
  4128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4130. public int id {
  4131. get {
  4132. return ((int)(this[this.tableprovider.idColumn]));
  4133. }
  4134. set {
  4135. this[this.tableprovider.idColumn] = value;
  4136. }
  4137. }
  4138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4140. public string название {
  4141. get {
  4142. try {
  4143. return ((string)(this[this.tableprovider.названиеColumn]));
  4144. }
  4145. catch (global::System.InvalidCastException e) {
  4146. throw new global::System.Data.StrongTypingException("Значение для столбца \'название\' в таблице \'provider\' равно DBNull.", e);
  4147. }
  4148. }
  4149. set {
  4150. this[this.tableprovider.названиеColumn] = value;
  4151. }
  4152. }
  4153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4155. public string Страна_производитель {
  4156. get {
  4157. try {
  4158. return ((string)(this[this.tableprovider.Страна_производительColumn]));
  4159. }
  4160. catch (global::System.InvalidCastException e) {
  4161. throw new global::System.Data.StrongTypingException("Значение для столбца \'Страна производитель\' в таблице \'provider\' равно DBNull.", e);
  4162. }
  4163. }
  4164. set {
  4165. this[this.tableprovider.Страна_производительColumn] = value;
  4166. }
  4167. }
  4168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4170. public bool IsназваниеNull() {
  4171. return this.IsNull(this.tableprovider.названиеColumn);
  4172. }
  4173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4175. public void SetназваниеNull() {
  4176. this[this.tableprovider.названиеColumn] = global::System.Convert.DBNull;
  4177. }
  4178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4180. public bool IsСтрана_производительNull() {
  4181. return this.IsNull(this.tableprovider.Страна_производительColumn);
  4182. }
  4183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4185. public void SetСтрана_производительNull() {
  4186. this[this.tableprovider.Страна_производительColumn] = global::System.Convert.DBNull;
  4187. }
  4188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4190. public Postavka_materialRow[] GetPostavka_materialRows() {
  4191. if ((this.Table.ChildRelations["FK_Postavka_material_provider"] == null)) {
  4192. return new Postavka_materialRow[0];
  4193. }
  4194. else {
  4195. return ((Postavka_materialRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Postavka_material_provider"])));
  4196. }
  4197. }
  4198. }
  4199. /// <summary>
  4200. ///Represents strongly named DataRow class.
  4201. ///</summary>
  4202. public partial class RoleRow : global::System.Data.DataRow {
  4203. private RoleDataTable tableRole;
  4204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4206. internal RoleRow(global::System.Data.DataRowBuilder rb) :
  4207. base(rb) {
  4208. this.tableRole = ((RoleDataTable)(this.Table));
  4209. }
  4210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4212. public int Id {
  4213. get {
  4214. return ((int)(this[this.tableRole.IdColumn]));
  4215. }
  4216. set {
  4217. this[this.tableRole.IdColumn] = value;
  4218. }
  4219. }
  4220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4222. public string Название_роли {
  4223. get {
  4224. try {
  4225. return ((string)(this[this.tableRole.Название_ролиColumn]));
  4226. }
  4227. catch (global::System.InvalidCastException e) {
  4228. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название роли\' в таблице \'Role\' равно DBNull.", e);
  4229. }
  4230. }
  4231. set {
  4232. this[this.tableRole.Название_ролиColumn] = value;
  4233. }
  4234. }
  4235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4237. public bool IsНазвание_ролиNull() {
  4238. return this.IsNull(this.tableRole.Название_ролиColumn);
  4239. }
  4240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4242. public void SetНазвание_ролиNull() {
  4243. this[this.tableRole.Название_ролиColumn] = global::System.Convert.DBNull;
  4244. }
  4245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4247. public UsersRow[] GetUsersRows() {
  4248. if ((this.Table.ChildRelations["FK_Users_Role"] == null)) {
  4249. return new UsersRow[0];
  4250. }
  4251. else {
  4252. return ((UsersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Users_Role"])));
  4253. }
  4254. }
  4255. }
  4256. /// <summary>
  4257. ///Represents strongly named DataRow class.
  4258. ///</summary>
  4259. public partial class unit_of_measurementRow : global::System.Data.DataRow {
  4260. private unit_of_measurementDataTable tableunit_of_measurement;
  4261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4263. internal unit_of_measurementRow(global::System.Data.DataRowBuilder rb) :
  4264. base(rb) {
  4265. this.tableunit_of_measurement = ((unit_of_measurementDataTable)(this.Table));
  4266. }
  4267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4269. public int id {
  4270. get {
  4271. return ((int)(this[this.tableunit_of_measurement.idColumn]));
  4272. }
  4273. set {
  4274. this[this.tableunit_of_measurement.idColumn] = value;
  4275. }
  4276. }
  4277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4279. public string название {
  4280. get {
  4281. try {
  4282. return ((string)(this[this.tableunit_of_measurement.названиеColumn]));
  4283. }
  4284. catch (global::System.InvalidCastException e) {
  4285. throw new global::System.Data.StrongTypingException("Значение для столбца \'название\' в таблице \'unit_of_measurement\' равно DBNull.", e);
  4286. }
  4287. }
  4288. set {
  4289. this[this.tableunit_of_measurement.названиеColumn] = value;
  4290. }
  4291. }
  4292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4294. public bool IsназваниеNull() {
  4295. return this.IsNull(this.tableunit_of_measurement.названиеColumn);
  4296. }
  4297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4299. public void SetназваниеNull() {
  4300. this[this.tableunit_of_measurement.названиеColumn] = global::System.Convert.DBNull;
  4301. }
  4302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4304. public ComponentsRow[] GetComponentsRows() {
  4305. if ((this.Table.ChildRelations["FK_Components_unit_of_measurement"] == null)) {
  4306. return new ComponentsRow[0];
  4307. }
  4308. else {
  4309. return ((ComponentsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Components_unit_of_measurement"])));
  4310. }
  4311. }
  4312. }
  4313. /// <summary>
  4314. ///Represents strongly named DataRow class.
  4315. ///</summary>
  4316. public partial class UsersRow : global::System.Data.DataRow {
  4317. private UsersDataTable tableUsers;
  4318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4320. internal UsersRow(global::System.Data.DataRowBuilder rb) :
  4321. base(rb) {
  4322. this.tableUsers = ((UsersDataTable)(this.Table));
  4323. }
  4324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4326. public int Id {
  4327. get {
  4328. return ((int)(this[this.tableUsers.IdColumn]));
  4329. }
  4330. set {
  4331. this[this.tableUsers.IdColumn] = value;
  4332. }
  4333. }
  4334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4336. public string Username {
  4337. get {
  4338. try {
  4339. return ((string)(this[this.tableUsers.UsernameColumn]));
  4340. }
  4341. catch (global::System.InvalidCastException e) {
  4342. throw new global::System.Data.StrongTypingException("Значение для столбца \'Username\' в таблице \'Users\' равно DBNull.", e);
  4343. }
  4344. }
  4345. set {
  4346. this[this.tableUsers.UsernameColumn] = value;
  4347. }
  4348. }
  4349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4351. public string Password {
  4352. get {
  4353. try {
  4354. return ((string)(this[this.tableUsers.PasswordColumn]));
  4355. }
  4356. catch (global::System.InvalidCastException e) {
  4357. throw new global::System.Data.StrongTypingException("Значение для столбца \'Password\' в таблице \'Users\' равно DBNull.", e);
  4358. }
  4359. }
  4360. set {
  4361. this[this.tableUsers.PasswordColumn] = value;
  4362. }
  4363. }
  4364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4366. public int Role {
  4367. get {
  4368. try {
  4369. return ((int)(this[this.tableUsers.RoleColumn]));
  4370. }
  4371. catch (global::System.InvalidCastException e) {
  4372. throw new global::System.Data.StrongTypingException("Значение для столбца \'Role\' в таблице \'Users\' равно DBNull.", e);
  4373. }
  4374. }
  4375. set {
  4376. this[this.tableUsers.RoleColumn] = value;
  4377. }
  4378. }
  4379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4381. public RoleRow RoleRow {
  4382. get {
  4383. return ((RoleRow)(this.GetParentRow(this.Table.ParentRelations["FK_Users_Role"])));
  4384. }
  4385. set {
  4386. this.SetParentRow(value, this.Table.ParentRelations["FK_Users_Role"]);
  4387. }
  4388. }
  4389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4391. public bool IsUsernameNull() {
  4392. return this.IsNull(this.tableUsers.UsernameColumn);
  4393. }
  4394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4396. public void SetUsernameNull() {
  4397. this[this.tableUsers.UsernameColumn] = global::System.Convert.DBNull;
  4398. }
  4399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4401. public bool IsPasswordNull() {
  4402. return this.IsNull(this.tableUsers.PasswordColumn);
  4403. }
  4404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4406. public void SetPasswordNull() {
  4407. this[this.tableUsers.PasswordColumn] = global::System.Convert.DBNull;
  4408. }
  4409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4411. public bool IsRoleNull() {
  4412. return this.IsNull(this.tableUsers.RoleColumn);
  4413. }
  4414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4416. public void SetRoleNull() {
  4417. this[this.tableUsers.RoleColumn] = global::System.Convert.DBNull;
  4418. }
  4419. }
  4420. /// <summary>
  4421. ///Represents strongly named DataRow class.
  4422. ///</summary>
  4423. public partial class Postavka_materialRow : global::System.Data.DataRow {
  4424. private Postavka_materialDataTable tablePostavka_material;
  4425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4427. internal Postavka_materialRow(global::System.Data.DataRowBuilder rb) :
  4428. base(rb) {
  4429. this.tablePostavka_material = ((Postavka_materialDataTable)(this.Table));
  4430. }
  4431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4433. public int id {
  4434. get {
  4435. return ((int)(this[this.tablePostavka_material.idColumn]));
  4436. }
  4437. set {
  4438. this[this.tablePostavka_material.idColumn] = value;
  4439. }
  4440. }
  4441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4443. public int id_производителя {
  4444. get {
  4445. try {
  4446. return ((int)(this[this.tablePostavka_material.id_производителяColumn]));
  4447. }
  4448. catch (global::System.InvalidCastException e) {
  4449. throw new global::System.Data.StrongTypingException("Значение для столбца \'id производителя\' в таблице \'Postavka_material\' равно DBNul" +
  4450. "l.", e);
  4451. }
  4452. }
  4453. set {
  4454. this[this.tablePostavka_material.id_производителяColumn] = value;
  4455. }
  4456. }
  4457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4459. public System.DateTime Дата {
  4460. get {
  4461. try {
  4462. return ((global::System.DateTime)(this[this.tablePostavka_material.ДатаColumn]));
  4463. }
  4464. catch (global::System.InvalidCastException e) {
  4465. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата\' в таблице \'Postavka_material\' равно DBNull.", e);
  4466. }
  4467. }
  4468. set {
  4469. this[this.tablePostavka_material.ДатаColumn] = value;
  4470. }
  4471. }
  4472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4474. public string Название {
  4475. get {
  4476. try {
  4477. return ((string)(this[this.tablePostavka_material.НазваниеColumn]));
  4478. }
  4479. catch (global::System.InvalidCastException e) {
  4480. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'Postavka_material\' равно DBNull.", e);
  4481. }
  4482. }
  4483. set {
  4484. this[this.tablePostavka_material.НазваниеColumn] = value;
  4485. }
  4486. }
  4487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4489. public string Тип_материала {
  4490. get {
  4491. try {
  4492. return ((string)(this[this.tablePostavka_material.Тип_материалаColumn]));
  4493. }
  4494. catch (global::System.InvalidCastException e) {
  4495. throw new global::System.Data.StrongTypingException("Значение для столбца \'Тип материала\' в таблице \'Postavka_material\' равно DBNull.", e);
  4496. }
  4497. }
  4498. set {
  4499. this[this.tablePostavka_material.Тип_материалаColumn] = value;
  4500. }
  4501. }
  4502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4504. public int Количество {
  4505. get {
  4506. try {
  4507. return ((int)(this[this.tablePostavka_material.КоличествоColumn]));
  4508. }
  4509. catch (global::System.InvalidCastException e) {
  4510. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'Postavka_material\' равно DBNull.", e);
  4511. }
  4512. }
  4513. set {
  4514. this[this.tablePostavka_material.КоличествоColumn] = value;
  4515. }
  4516. }
  4517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4519. public providerRow providerRow {
  4520. get {
  4521. return ((providerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Postavka_material_provider"])));
  4522. }
  4523. set {
  4524. this.SetParentRow(value, this.Table.ParentRelations["FK_Postavka_material_provider"]);
  4525. }
  4526. }
  4527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4529. public bool Isid_производителяNull() {
  4530. return this.IsNull(this.tablePostavka_material.id_производителяColumn);
  4531. }
  4532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4534. public void Setid_производителяNull() {
  4535. this[this.tablePostavka_material.id_производителяColumn] = global::System.Convert.DBNull;
  4536. }
  4537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4539. public bool IsДатаNull() {
  4540. return this.IsNull(this.tablePostavka_material.ДатаColumn);
  4541. }
  4542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4544. public void SetДатаNull() {
  4545. this[this.tablePostavka_material.ДатаColumn] = global::System.Convert.DBNull;
  4546. }
  4547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4549. public bool IsНазваниеNull() {
  4550. return this.IsNull(this.tablePostavka_material.НазваниеColumn);
  4551. }
  4552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4554. public void SetНазваниеNull() {
  4555. this[this.tablePostavka_material.НазваниеColumn] = global::System.Convert.DBNull;
  4556. }
  4557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4559. public bool IsТип_материалаNull() {
  4560. return this.IsNull(this.tablePostavka_material.Тип_материалаColumn);
  4561. }
  4562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4564. public void SetТип_материалаNull() {
  4565. this[this.tablePostavka_material.Тип_материалаColumn] = global::System.Convert.DBNull;
  4566. }
  4567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4569. public bool IsКоличествоNull() {
  4570. return this.IsNull(this.tablePostavka_material.КоличествоColumn);
  4571. }
  4572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4574. public void SetКоличествоNull() {
  4575. this[this.tablePostavka_material.КоличествоColumn] = global::System.Convert.DBNull;
  4576. }
  4577. }
  4578. /// <summary>
  4579. ///Row event argument class
  4580. ///</summary>
  4581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4582. public class ComponentsRowChangeEvent : global::System.EventArgs {
  4583. private ComponentsRow eventRow;
  4584. private global::System.Data.DataRowAction eventAction;
  4585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4587. public ComponentsRowChangeEvent(ComponentsRow row, global::System.Data.DataRowAction action) {
  4588. this.eventRow = row;
  4589. this.eventAction = action;
  4590. }
  4591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4593. public ComponentsRow Row {
  4594. get {
  4595. return this.eventRow;
  4596. }
  4597. }
  4598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4600. public global::System.Data.DataRowAction Action {
  4601. get {
  4602. return this.eventAction;
  4603. }
  4604. }
  4605. }
  4606. /// <summary>
  4607. ///Row event argument class
  4608. ///</summary>
  4609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4610. public class computer_assemblyRowChangeEvent : global::System.EventArgs {
  4611. private computer_assemblyRow eventRow;
  4612. private global::System.Data.DataRowAction eventAction;
  4613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4615. public computer_assemblyRowChangeEvent(computer_assemblyRow row, global::System.Data.DataRowAction action) {
  4616. this.eventRow = row;
  4617. this.eventAction = action;
  4618. }
  4619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4621. public computer_assemblyRow Row {
  4622. get {
  4623. return this.eventRow;
  4624. }
  4625. }
  4626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4628. public global::System.Data.DataRowAction Action {
  4629. get {
  4630. return this.eventAction;
  4631. }
  4632. }
  4633. }
  4634. /// <summary>
  4635. ///Row event argument class
  4636. ///</summary>
  4637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4638. public class OrderRowChangeEvent : global::System.EventArgs {
  4639. private OrderRow eventRow;
  4640. private global::System.Data.DataRowAction eventAction;
  4641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4643. public OrderRowChangeEvent(OrderRow row, global::System.Data.DataRowAction action) {
  4644. this.eventRow = row;
  4645. this.eventAction = action;
  4646. }
  4647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4649. public OrderRow Row {
  4650. get {
  4651. return this.eventRow;
  4652. }
  4653. }
  4654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4656. public global::System.Data.DataRowAction Action {
  4657. get {
  4658. return this.eventAction;
  4659. }
  4660. }
  4661. }
  4662. /// <summary>
  4663. ///Row event argument class
  4664. ///</summary>
  4665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4666. public class order_by_clientsRowChangeEvent : global::System.EventArgs {
  4667. private order_by_clientsRow eventRow;
  4668. private global::System.Data.DataRowAction eventAction;
  4669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4671. public order_by_clientsRowChangeEvent(order_by_clientsRow row, global::System.Data.DataRowAction action) {
  4672. this.eventRow = row;
  4673. this.eventAction = action;
  4674. }
  4675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4677. public order_by_clientsRow Row {
  4678. get {
  4679. return this.eventRow;
  4680. }
  4681. }
  4682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4684. public global::System.Data.DataRowAction Action {
  4685. get {
  4686. return this.eventAction;
  4687. }
  4688. }
  4689. }
  4690. /// <summary>
  4691. ///Row event argument class
  4692. ///</summary>
  4693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4694. public class Order_statusRowChangeEvent : global::System.EventArgs {
  4695. private Order_statusRow eventRow;
  4696. private global::System.Data.DataRowAction eventAction;
  4697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4699. public Order_statusRowChangeEvent(Order_statusRow row, global::System.Data.DataRowAction action) {
  4700. this.eventRow = row;
  4701. this.eventAction = action;
  4702. }
  4703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4705. public Order_statusRow Row {
  4706. get {
  4707. return this.eventRow;
  4708. }
  4709. }
  4710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4712. public global::System.Data.DataRowAction Action {
  4713. get {
  4714. return this.eventAction;
  4715. }
  4716. }
  4717. }
  4718. /// <summary>
  4719. ///Row event argument class
  4720. ///</summary>
  4721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4722. public class providerRowChangeEvent : global::System.EventArgs {
  4723. private providerRow eventRow;
  4724. private global::System.Data.DataRowAction eventAction;
  4725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4727. public providerRowChangeEvent(providerRow row, global::System.Data.DataRowAction action) {
  4728. this.eventRow = row;
  4729. this.eventAction = action;
  4730. }
  4731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4733. public providerRow Row {
  4734. get {
  4735. return this.eventRow;
  4736. }
  4737. }
  4738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4740. public global::System.Data.DataRowAction Action {
  4741. get {
  4742. return this.eventAction;
  4743. }
  4744. }
  4745. }
  4746. /// <summary>
  4747. ///Row event argument class
  4748. ///</summary>
  4749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4750. public class RoleRowChangeEvent : global::System.EventArgs {
  4751. private RoleRow eventRow;
  4752. private global::System.Data.DataRowAction eventAction;
  4753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4755. public RoleRowChangeEvent(RoleRow row, global::System.Data.DataRowAction action) {
  4756. this.eventRow = row;
  4757. this.eventAction = action;
  4758. }
  4759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4761. public RoleRow Row {
  4762. get {
  4763. return this.eventRow;
  4764. }
  4765. }
  4766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4768. public global::System.Data.DataRowAction Action {
  4769. get {
  4770. return this.eventAction;
  4771. }
  4772. }
  4773. }
  4774. /// <summary>
  4775. ///Row event argument class
  4776. ///</summary>
  4777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4778. public class unit_of_measurementRowChangeEvent : global::System.EventArgs {
  4779. private unit_of_measurementRow eventRow;
  4780. private global::System.Data.DataRowAction eventAction;
  4781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4783. public unit_of_measurementRowChangeEvent(unit_of_measurementRow row, global::System.Data.DataRowAction action) {
  4784. this.eventRow = row;
  4785. this.eventAction = action;
  4786. }
  4787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4789. public unit_of_measurementRow Row {
  4790. get {
  4791. return this.eventRow;
  4792. }
  4793. }
  4794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4796. public global::System.Data.DataRowAction Action {
  4797. get {
  4798. return this.eventAction;
  4799. }
  4800. }
  4801. }
  4802. /// <summary>
  4803. ///Row event argument class
  4804. ///</summary>
  4805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4806. public class UsersRowChangeEvent : global::System.EventArgs {
  4807. private UsersRow eventRow;
  4808. private global::System.Data.DataRowAction eventAction;
  4809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4811. public UsersRowChangeEvent(UsersRow row, global::System.Data.DataRowAction action) {
  4812. this.eventRow = row;
  4813. this.eventAction = action;
  4814. }
  4815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4817. public UsersRow Row {
  4818. get {
  4819. return this.eventRow;
  4820. }
  4821. }
  4822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4824. public global::System.Data.DataRowAction Action {
  4825. get {
  4826. return this.eventAction;
  4827. }
  4828. }
  4829. }
  4830. /// <summary>
  4831. ///Row event argument class
  4832. ///</summary>
  4833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4834. public class Postavka_materialRowChangeEvent : global::System.EventArgs {
  4835. private Postavka_materialRow eventRow;
  4836. private global::System.Data.DataRowAction eventAction;
  4837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4839. public Postavka_materialRowChangeEvent(Postavka_materialRow row, global::System.Data.DataRowAction action) {
  4840. this.eventRow = row;
  4841. this.eventAction = action;
  4842. }
  4843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4845. public Postavka_materialRow Row {
  4846. get {
  4847. return this.eventRow;
  4848. }
  4849. }
  4850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4852. public global::System.Data.DataRowAction Action {
  4853. get {
  4854. return this.eventAction;
  4855. }
  4856. }
  4857. }
  4858. }
  4859. }
  4860. namespace Digital_World_08.digital_world_8DataSet1TableAdapters {
  4861. /// <summary>
  4862. ///Represents the connection and commands used to retrieve and save data.
  4863. ///</summary>
  4864. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4865. [global::System.ComponentModel.ToolboxItem(true)]
  4866. [global::System.ComponentModel.DataObjectAttribute(true)]
  4867. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4868. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4869. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4870. public partial class ComponentsTableAdapter : global::System.ComponentModel.Component {
  4871. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4872. private global::System.Data.SqlClient.SqlConnection _connection;
  4873. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4874. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4875. private bool _clearBeforeFill;
  4876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4878. public ComponentsTableAdapter() {
  4879. this.ClearBeforeFill = true;
  4880. }
  4881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4883. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4884. get {
  4885. if ((this._adapter == null)) {
  4886. this.InitAdapter();
  4887. }
  4888. return this._adapter;
  4889. }
  4890. }
  4891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4893. internal global::System.Data.SqlClient.SqlConnection Connection {
  4894. get {
  4895. if ((this._connection == null)) {
  4896. this.InitConnection();
  4897. }
  4898. return this._connection;
  4899. }
  4900. set {
  4901. this._connection = value;
  4902. if ((this.Adapter.InsertCommand != null)) {
  4903. this.Adapter.InsertCommand.Connection = value;
  4904. }
  4905. if ((this.Adapter.DeleteCommand != null)) {
  4906. this.Adapter.DeleteCommand.Connection = value;
  4907. }
  4908. if ((this.Adapter.UpdateCommand != null)) {
  4909. this.Adapter.UpdateCommand.Connection = value;
  4910. }
  4911. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4912. if ((this.CommandCollection[i] != null)) {
  4913. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4914. }
  4915. }
  4916. }
  4917. }
  4918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4920. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4921. get {
  4922. return this._transaction;
  4923. }
  4924. set {
  4925. this._transaction = value;
  4926. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4927. this.CommandCollection[i].Transaction = this._transaction;
  4928. }
  4929. if (((this.Adapter != null)
  4930. && (this.Adapter.DeleteCommand != null))) {
  4931. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4932. }
  4933. if (((this.Adapter != null)
  4934. && (this.Adapter.InsertCommand != null))) {
  4935. this.Adapter.InsertCommand.Transaction = this._transaction;
  4936. }
  4937. if (((this.Adapter != null)
  4938. && (this.Adapter.UpdateCommand != null))) {
  4939. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4940. }
  4941. }
  4942. }
  4943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4945. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4946. get {
  4947. if ((this._commandCollection == null)) {
  4948. this.InitCommandCollection();
  4949. }
  4950. return this._commandCollection;
  4951. }
  4952. }
  4953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4955. public bool ClearBeforeFill {
  4956. get {
  4957. return this._clearBeforeFill;
  4958. }
  4959. set {
  4960. this._clearBeforeFill = value;
  4961. }
  4962. }
  4963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4965. private void InitAdapter() {
  4966. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4967. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4968. tableMapping.SourceTable = "Table";
  4969. tableMapping.DataSetTable = "Components";
  4970. tableMapping.ColumnMappings.Add("id", "id");
  4971. tableMapping.ColumnMappings.Add("Название", "Название");
  4972. tableMapping.ColumnMappings.Add("Id единицы измерения", "Id единицы измерения");
  4973. tableMapping.ColumnMappings.Add("Тип_материала", "Тип_материала");
  4974. tableMapping.ColumnMappings.Add("Цена", "Цена");
  4975. tableMapping.ColumnMappings.Add("количество", "количество");
  4976. this._adapter.TableMappings.Add(tableMapping);
  4977. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4978. this._adapter.DeleteCommand.Connection = this.Connection;
  4979. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Components] WHERE (([id] = @Original_id) AND ((@IsNull_Id_единицы_измерения = 1 AND [Id единицы измерения] IS NULL) OR ([Id единицы измерения] = @Original_Id_единицы_измерения)) AND ((@IsNull_Тип_материала = 1 AND [Тип_материала] IS NULL) OR ([Тип_материала] = @Original_Тип_материала)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_количество = 1 AND [количество] IS NULL) OR ([количество] = @Original_количество)))";
  4980. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4981. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4982. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Id_единицы_измерения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id единицы измерения", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4983. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Id_единицы_измерения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id единицы измерения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4984. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Тип_материала", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Тип_материала", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4985. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Тип_материала", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Тип_материала", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4986. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4987. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4988. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4989. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4990. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4991. this._adapter.InsertCommand.Connection = this.Connection;
  4992. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Components] ([Название], [Id единицы измерения], [Тип_материала], [Цена], [количество]) VALUES (@Название, @Id_единицы_измерения, @Тип_материала, @Цена, @количество);
  4993. SELECT id, Название, [Id единицы измерения], Тип_материала, Цена, количество FROM Components WHERE (id = SCOPE_IDENTITY())";
  4994. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4995. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4996. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id_единицы_измерения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id единицы измерения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4997. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Тип_материала", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Тип_материала", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4998. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4999. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5000. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5001. this._adapter.UpdateCommand.Connection = this.Connection;
  5002. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Components] SET [Название] = @Название, [Id единицы измерения] = @Id_единицы_измерения, [Тип_материала] = @Тип_материала, [Цена] = @Цена, [количество] = @количество WHERE (([id] = @Original_id) AND ((@IsNull_Id_единицы_измерения = 1 AND [Id единицы измерения] IS NULL) OR ([Id единицы измерения] = @Original_Id_единицы_измерения)) AND ((@IsNull_Тип_материала = 1 AND [Тип_материала] IS NULL) OR ([Тип_материала] = @Original_Тип_материала)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_количество = 1 AND [количество] IS NULL) OR ([количество] = @Original_количество)));
  5003. SELECT id, Название, [Id единицы измерения], Тип_материала, Цена, количество FROM Components WHERE (id = @id)";
  5004. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5005. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5006. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id_единицы_измерения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id единицы измерения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5007. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Тип_материала", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Тип_материала", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5008. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5009. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5010. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5011. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Id_единицы_измерения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id единицы измерения", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5012. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Id_единицы_измерения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id единицы измерения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5013. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Тип_материала", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Тип_материала", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5014. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Тип_материала", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Тип_материала", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5015. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5016. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5017. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5018. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5019. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5020. }
  5021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5023. private void InitConnection() {
  5024. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5025. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString1;
  5026. }
  5027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5029. private void InitCommandCollection() {
  5030. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5031. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5032. this._commandCollection[0].Connection = this.Connection;
  5033. this._commandCollection[0].CommandText = "SELECT id, Название, [Id единицы измерения], Тип_материала, Цена, количество FROM" +
  5034. " dbo.Components";
  5035. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5036. }
  5037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5039. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5040. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5041. public virtual int Fill(digital_world_8DataSet1.ComponentsDataTable dataTable) {
  5042. this.Adapter.SelectCommand = this.CommandCollection[0];
  5043. if ((this.ClearBeforeFill == true)) {
  5044. dataTable.Clear();
  5045. }
  5046. int returnValue = this.Adapter.Fill(dataTable);
  5047. return returnValue;
  5048. }
  5049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5051. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5052. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5053. public virtual digital_world_8DataSet1.ComponentsDataTable GetData() {
  5054. this.Adapter.SelectCommand = this.CommandCollection[0];
  5055. digital_world_8DataSet1.ComponentsDataTable dataTable = new digital_world_8DataSet1.ComponentsDataTable();
  5056. this.Adapter.Fill(dataTable);
  5057. return dataTable;
  5058. }
  5059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5061. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5062. public virtual int Update(digital_world_8DataSet1.ComponentsDataTable dataTable) {
  5063. return this.Adapter.Update(dataTable);
  5064. }
  5065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5067. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5068. public virtual int Update(digital_world_8DataSet1 dataSet) {
  5069. return this.Adapter.Update(dataSet, "Components");
  5070. }
  5071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5073. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5074. public virtual int Update(global::System.Data.DataRow dataRow) {
  5075. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5076. dataRow});
  5077. }
  5078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5080. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5081. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5082. return this.Adapter.Update(dataRows);
  5083. }
  5084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5086. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5087. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5088. public virtual int Delete(int Original_id, global::System.Nullable<int> Original_Id_единицы_измерения, string Original_Тип_материала, global::System.Nullable<int> Original_Цена, global::System.Nullable<int> Original_количество) {
  5089. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  5090. if ((Original_Id_единицы_измерения.HasValue == true)) {
  5091. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5092. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_Id_единицы_измерения.Value));
  5093. }
  5094. else {
  5095. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5096. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5097. }
  5098. if ((Original_Тип_материала == null)) {
  5099. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5100. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5101. }
  5102. else {
  5103. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5104. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Тип_материала));
  5105. }
  5106. if ((Original_Цена.HasValue == true)) {
  5107. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5108. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Цена.Value));
  5109. }
  5110. else {
  5111. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5112. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5113. }
  5114. if ((Original_количество.HasValue == true)) {
  5115. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  5116. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_количество.Value));
  5117. }
  5118. else {
  5119. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  5120. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  5121. }
  5122. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5123. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5124. != global::System.Data.ConnectionState.Open)) {
  5125. this.Adapter.DeleteCommand.Connection.Open();
  5126. }
  5127. try {
  5128. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5129. return returnValue;
  5130. }
  5131. finally {
  5132. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5133. this.Adapter.DeleteCommand.Connection.Close();
  5134. }
  5135. }
  5136. }
  5137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5139. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5140. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5141. public virtual int Insert(string Название, global::System.Nullable<int> Id_единицы_измерения, string Тип_материала, global::System.Nullable<int> Цена, global::System.Nullable<int> количество) {
  5142. if ((Название == null)) {
  5143. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5144. }
  5145. else {
  5146. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  5147. }
  5148. if ((Id_единицы_измерения.HasValue == true)) {
  5149. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Id_единицы_измерения.Value));
  5150. }
  5151. else {
  5152. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5153. }
  5154. if ((Тип_материала == null)) {
  5155. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5156. }
  5157. else {
  5158. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Тип_материала));
  5159. }
  5160. if ((Цена.HasValue == true)) {
  5161. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Цена.Value));
  5162. }
  5163. else {
  5164. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5165. }
  5166. if ((количество.HasValue == true)) {
  5167. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(количество.Value));
  5168. }
  5169. else {
  5170. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5171. }
  5172. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5173. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5174. != global::System.Data.ConnectionState.Open)) {
  5175. this.Adapter.InsertCommand.Connection.Open();
  5176. }
  5177. try {
  5178. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5179. return returnValue;
  5180. }
  5181. finally {
  5182. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5183. this.Adapter.InsertCommand.Connection.Close();
  5184. }
  5185. }
  5186. }
  5187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5189. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5190. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5191. public virtual int Update(string Название, global::System.Nullable<int> Id_единицы_измерения, string Тип_материала, global::System.Nullable<int> Цена, global::System.Nullable<int> количество, int Original_id, global::System.Nullable<int> Original_Id_единицы_измерения, string Original_Тип_материала, global::System.Nullable<int> Original_Цена, global::System.Nullable<int> Original_количество, int id) {
  5192. if ((Название == null)) {
  5193. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5194. }
  5195. else {
  5196. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  5197. }
  5198. if ((Id_единицы_измерения.HasValue == true)) {
  5199. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Id_единицы_измерения.Value));
  5200. }
  5201. else {
  5202. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5203. }
  5204. if ((Тип_материала == null)) {
  5205. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5206. }
  5207. else {
  5208. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Тип_материала));
  5209. }
  5210. if ((Цена.HasValue == true)) {
  5211. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Цена.Value));
  5212. }
  5213. else {
  5214. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5215. }
  5216. if ((количество.HasValue == true)) {
  5217. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(количество.Value));
  5218. }
  5219. else {
  5220. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5221. }
  5222. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_id));
  5223. if ((Original_Id_единицы_измерения.HasValue == true)) {
  5224. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  5225. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Id_единицы_измерения.Value));
  5226. }
  5227. else {
  5228. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  5229. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  5230. }
  5231. if ((Original_Тип_материала == null)) {
  5232. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  5233. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  5234. }
  5235. else {
  5236. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  5237. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Тип_материала));
  5238. }
  5239. if ((Original_Цена.HasValue == true)) {
  5240. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  5241. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_Цена.Value));
  5242. }
  5243. else {
  5244. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  5245. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  5246. }
  5247. if ((Original_количество.HasValue == true)) {
  5248. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  5249. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_количество.Value));
  5250. }
  5251. else {
  5252. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  5253. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  5254. }
  5255. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(id));
  5256. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5257. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5258. != global::System.Data.ConnectionState.Open)) {
  5259. this.Adapter.UpdateCommand.Connection.Open();
  5260. }
  5261. try {
  5262. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5263. return returnValue;
  5264. }
  5265. finally {
  5266. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5267. this.Adapter.UpdateCommand.Connection.Close();
  5268. }
  5269. }
  5270. }
  5271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5273. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5274. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5275. public virtual int Update(string Название, global::System.Nullable<int> Id_единицы_измерения, string Тип_материала, global::System.Nullable<int> Цена, global::System.Nullable<int> количество, int Original_id, global::System.Nullable<int> Original_Id_единицы_измерения, string Original_Тип_материала, global::System.Nullable<int> Original_Цена, global::System.Nullable<int> Original_количество) {
  5276. return this.Update(Название, Id_единицы_измерения, Тип_материала, Цена, количество, Original_id, Original_Id_единицы_измерения, Original_Тип_материала, Original_Цена, Original_количество, Original_id);
  5277. }
  5278. }
  5279. /// <summary>
  5280. ///Represents the connection and commands used to retrieve and save data.
  5281. ///</summary>
  5282. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5283. [global::System.ComponentModel.ToolboxItem(true)]
  5284. [global::System.ComponentModel.DataObjectAttribute(true)]
  5285. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5286. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5287. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5288. public partial class computer_assemblyTableAdapter : global::System.ComponentModel.Component {
  5289. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5290. private global::System.Data.SqlClient.SqlConnection _connection;
  5291. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5292. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5293. private bool _clearBeforeFill;
  5294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5296. public computer_assemblyTableAdapter() {
  5297. this.ClearBeforeFill = true;
  5298. }
  5299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5301. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5302. get {
  5303. if ((this._adapter == null)) {
  5304. this.InitAdapter();
  5305. }
  5306. return this._adapter;
  5307. }
  5308. }
  5309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5311. internal global::System.Data.SqlClient.SqlConnection Connection {
  5312. get {
  5313. if ((this._connection == null)) {
  5314. this.InitConnection();
  5315. }
  5316. return this._connection;
  5317. }
  5318. set {
  5319. this._connection = value;
  5320. if ((this.Adapter.InsertCommand != null)) {
  5321. this.Adapter.InsertCommand.Connection = value;
  5322. }
  5323. if ((this.Adapter.DeleteCommand != null)) {
  5324. this.Adapter.DeleteCommand.Connection = value;
  5325. }
  5326. if ((this.Adapter.UpdateCommand != null)) {
  5327. this.Adapter.UpdateCommand.Connection = value;
  5328. }
  5329. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5330. if ((this.CommandCollection[i] != null)) {
  5331. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5332. }
  5333. }
  5334. }
  5335. }
  5336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5338. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5339. get {
  5340. return this._transaction;
  5341. }
  5342. set {
  5343. this._transaction = value;
  5344. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5345. this.CommandCollection[i].Transaction = this._transaction;
  5346. }
  5347. if (((this.Adapter != null)
  5348. && (this.Adapter.DeleteCommand != null))) {
  5349. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5350. }
  5351. if (((this.Adapter != null)
  5352. && (this.Adapter.InsertCommand != null))) {
  5353. this.Adapter.InsertCommand.Transaction = this._transaction;
  5354. }
  5355. if (((this.Adapter != null)
  5356. && (this.Adapter.UpdateCommand != null))) {
  5357. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5358. }
  5359. }
  5360. }
  5361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5363. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5364. get {
  5365. if ((this._commandCollection == null)) {
  5366. this.InitCommandCollection();
  5367. }
  5368. return this._commandCollection;
  5369. }
  5370. }
  5371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5373. public bool ClearBeforeFill {
  5374. get {
  5375. return this._clearBeforeFill;
  5376. }
  5377. set {
  5378. this._clearBeforeFill = value;
  5379. }
  5380. }
  5381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5383. private void InitAdapter() {
  5384. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5385. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5386. tableMapping.SourceTable = "Table";
  5387. tableMapping.DataSetTable = "computer_assembly";
  5388. tableMapping.ColumnMappings.Add("Видеокарта", "Видеокарта");
  5389. tableMapping.ColumnMappings.Add("Материнская плата", "Материнская плата");
  5390. tableMapping.ColumnMappings.Add("Процессор", "Процессор");
  5391. tableMapping.ColumnMappings.Add("Оперативная память", "Оперативная память");
  5392. tableMapping.ColumnMappings.Add("Оперативная_память", "Оперативная_память");
  5393. tableMapping.ColumnMappings.Add("Жетский диск", "Жетский диск");
  5394. tableMapping.ColumnMappings.Add("Куллер", "Куллер");
  5395. tableMapping.ColumnMappings.Add("Система охлаждения", "Система охлаждения");
  5396. tableMapping.ColumnMappings.Add("Блок питания", "Блок питания");
  5397. tableMapping.ColumnMappings.Add("SSD", "SSD");
  5398. tableMapping.ColumnMappings.Add("Номер сборки", "Номер сборки");
  5399. tableMapping.ColumnMappings.Add("Итоговая цена", "Итоговая цена");
  5400. this._adapter.TableMappings.Add(tableMapping);
  5401. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5402. this._adapter.DeleteCommand.Connection = this.Connection;
  5403. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [computer_assembly] WHERE (((@IsNull_Видеокарта = 1 AND [Видеокарта] IS NULL) OR ([Видеокарта] = @Original_Видеокарта)) AND ((@IsNull_Материнская_плата = 1 AND [Материнская плата] IS NULL) OR ([Материнская плата] = @Original_Материнская_плата)) AND ((@IsNull_Процессор = 1 AND [Процессор] IS NULL) OR ([Процессор] = @Original_Процессор)) AND ((@p3 = 1 AND [Оперативная память] IS NULL) OR ([Оперативная память] = @p2)) AND ((@IsNull_Оперативная_память = 1 AND [Оперативная_память] IS NULL) OR ([Оперативная_память] = @Original_Оперативная_память)) AND ((@IsNull_Жетский_диск = 1 AND [Жетский диск] IS NULL) OR ([Жетский диск] = @Original_Жетский_диск)) AND ((@IsNull_Куллер = 1 AND [Куллер] IS NULL) OR ([Куллер] = @Original_Куллер)) AND ((@IsNull_Система_охлаждения = 1 AND [Система охлаждения] IS NULL) OR ([Система охлаждения] = @Original_Система_охлаждения)) AND ((@IsNull_Блок_питания = 1 AND [Блок питания] IS NULL) OR ([Блок питания] = @Original_Блок_питания)) AND ((@IsNull_SSD = 1 AND [SSD] IS NULL) OR ([SSD] = @Original_SSD)) AND ((@IsNull_Итоговая_цена = 1 AND [Итоговая цена] IS NULL) OR ([Итоговая цена] = @Original_Итоговая_цена)) AND ([Номер сборки] = @Original_Номер_сборки))";
  5404. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5405. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Видеокарта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Видеокарта", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5406. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Видеокарта", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Видеокарта", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5407. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Материнская_плата", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Материнская плата", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5408. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Материнская_плата", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Материнская плата", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5409. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Процессор", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Процессор", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5410. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Процессор", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Процессор", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5411. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оперативная память", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5412. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оперативная память", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5413. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Оперативная_память", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оперативная_память", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5414. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Оперативная_память", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оперативная_память", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5415. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Жетский_диск", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Жетский диск", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5416. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Жетский_диск", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Жетский диск", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5417. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Куллер", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Куллер", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5418. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Куллер", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Куллер", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5419. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Система_охлаждения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Система охлаждения", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5420. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Система_охлаждения", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Система охлаждения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5421. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Блок_питания", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Блок питания", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5422. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Блок_питания", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Блок питания", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5423. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SSD", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SSD", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5424. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SSD", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SSD", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5425. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Итоговая_цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Итоговая цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5426. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Итоговая_цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Итоговая цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5427. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_сборки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер сборки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5428. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5429. this._adapter.InsertCommand.Connection = this.Connection;
  5430. this._adapter.InsertCommand.CommandText = @"INSERT INTO [computer_assembly] ([Видеокарта], [Материнская плата], [Процессор], [Оперативная память], [Оперативная_память], [Жетский диск], [Куллер], [Система охлаждения], [Блок питания], [SSD], [Итоговая цена]) VALUES (@Видеокарта, @Материнская_плата, @Процессор, @p1, @Оперативная_память, @Жетский_диск, @Куллер, @Система_охлаждения, @Блок_питания, @SSD, @Итоговая_цена);
  5431. SELECT Видеокарта, [Материнская плата], Процессор, [Оперативная память], Оперативная_память, [Жетский диск], Куллер, [Система охлаждения], [Блок питания], SSD, [Итоговая цена], [Номер сборки] FROM computer_assembly WHERE ([Номер сборки] = SCOPE_IDENTITY())";
  5432. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5433. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Видеокарта", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Видеокарта", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5434. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Материнская_плата", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Материнская плата", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5435. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Процессор", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Процессор", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5436. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оперативная память", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5437. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Оперативная_память", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оперативная_память", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5438. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Жетский_диск", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Жетский диск", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5439. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Куллер", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Куллер", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5440. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Система_охлаждения", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Система охлаждения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5441. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Блок_питания", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Блок питания", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5442. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SSD", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SSD", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5443. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Итоговая_цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Итоговая цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5444. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5445. this._adapter.UpdateCommand.Connection = this.Connection;
  5446. this._adapter.UpdateCommand.CommandText = "UPDATE [computer_assembly] SET [Видеокарта] = @Видеокарта, [Материнская плата] = " +
  5447. "@Материнская_плата, [Процессор] = @Процессор, [Оперативная память] = @p1, [Опера" +
  5448. "тивная_память] = @Оперативная_память, [Жетский диск] = @Жетский_диск, [Куллер] =" +
  5449. " @Куллер, [Система охлаждения] = @Система_охлаждения, [Блок питания] = @Блок_пит" +
  5450. "ания, [SSD] = @SSD, [Итоговая цена] = @Итоговая_цена WHERE (((@IsNull_Видеокарта" +
  5451. " = 1 AND [Видеокарта] IS NULL) OR ([Видеокарта] = @Original_Видеокарта)) AND ((@" +
  5452. "IsNull_Материнская_плата = 1 AND [Материнская плата] IS NULL) OR ([Материнская п" +
  5453. "лата] = @Original_Материнская_плата)) AND ((@IsNull_Процессор = 1 AND [Процессор" +
  5454. "] IS NULL) OR ([Процессор] = @Original_Процессор)) AND ((@p3 = 1 AND [Оперативна" +
  5455. "я память] IS NULL) OR ([Оперативная память] = @p2)) AND ((@IsNull_Оперативная_па" +
  5456. "мять = 1 AND [Оперативная_память] IS NULL) OR ([Оперативная_память] = @Original_" +
  5457. "Оперативная_память)) AND ((@IsNull_Жетский_диск = 1 AND [Жетский диск] IS NULL) " +
  5458. "OR ([Жетский диск] = @Original_Жетский_диск)) AND ((@IsNull_Куллер = 1 AND [Кулл" +
  5459. "ер] IS NULL) OR ([Куллер] = @Original_Куллер)) AND ((@IsNull_Система_охлаждения " +
  5460. "= 1 AND [Система охлаждения] IS NULL) OR ([Система охлаждения] = @Original_Систе" +
  5461. "ма_охлаждения)) AND ((@IsNull_Блок_питания = 1 AND [Блок питания] IS NULL) OR ([" +
  5462. "Блок питания] = @Original_Блок_питания)) AND ((@IsNull_SSD = 1 AND [SSD] IS NULL" +
  5463. ") OR ([SSD] = @Original_SSD)) AND ((@IsNull_Итоговая_цена = 1 AND [Итоговая цена" +
  5464. "] IS NULL) OR ([Итоговая цена] = @Original_Итоговая_цена)) AND ([Номер сборки] =" +
  5465. " @Original_Номер_сборки));\r\nSELECT Видеокарта, [Материнская плата], Процессор, [" +
  5466. "Оперативная память], Оперативная_память, [Жетский диск], Куллер, [Система охлажд" +
  5467. "ения], [Блок питания], SSD, [Итоговая цена], [Номер сборки] FROM computer_assemb" +
  5468. "ly WHERE ([Номер сборки] = @Номер_сборки)";
  5469. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5470. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Видеокарта", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Видеокарта", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5471. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Материнская_плата", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Материнская плата", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5472. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Процессор", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Процессор", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5473. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оперативная память", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5474. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Оперативная_память", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оперативная_память", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5475. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Жетский_диск", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Жетский диск", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5476. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Куллер", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Куллер", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5477. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Система_охлаждения", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Система охлаждения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5478. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Блок_питания", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Блок питания", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5479. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SSD", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SSD", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5480. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Итоговая_цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Итоговая цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5481. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Видеокарта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Видеокарта", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5482. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Видеокарта", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Видеокарта", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5483. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Материнская_плата", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Материнская плата", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5484. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Материнская_плата", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Материнская плата", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5485. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Процессор", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Процессор", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5486. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Процессор", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Процессор", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5487. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оперативная память", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5488. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оперативная память", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5489. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Оперативная_память", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оперативная_память", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5490. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Оперативная_память", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оперативная_память", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5491. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Жетский_диск", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Жетский диск", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5492. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Жетский_диск", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Жетский диск", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5493. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Куллер", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Куллер", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5494. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Куллер", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Куллер", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5495. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Система_охлаждения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Система охлаждения", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5496. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Система_охлаждения", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Система охлаждения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5497. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Блок_питания", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Блок питания", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5498. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Блок_питания", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Блок питания", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5499. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SSD", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SSD", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5500. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SSD", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SSD", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5501. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Итоговая_цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Итоговая цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5502. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Итоговая_цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Итоговая цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5503. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_сборки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер сборки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5504. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_сборки", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Номер сборки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5505. }
  5506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5508. private void InitConnection() {
  5509. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5510. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString1;
  5511. }
  5512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5514. private void InitCommandCollection() {
  5515. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5516. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5517. this._commandCollection[0].Connection = this.Connection;
  5518. this._commandCollection[0].CommandText = "SELECT Видеокарта, [Материнская плата], Процессор, [Оперативная память], Оператив" +
  5519. "ная_память, [Жетский диск], Куллер, [Система охлаждения], [Блок питания], SSD, [" +
  5520. "Итоговая цена], [Номер сборки] FROM computer_assembly";
  5521. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5522. }
  5523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5525. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5526. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5527. public virtual int Fill(digital_world_8DataSet1.computer_assemblyDataTable dataTable) {
  5528. this.Adapter.SelectCommand = this.CommandCollection[0];
  5529. if ((this.ClearBeforeFill == true)) {
  5530. dataTable.Clear();
  5531. }
  5532. int returnValue = this.Adapter.Fill(dataTable);
  5533. return returnValue;
  5534. }
  5535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5537. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5538. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5539. public virtual digital_world_8DataSet1.computer_assemblyDataTable GetData() {
  5540. this.Adapter.SelectCommand = this.CommandCollection[0];
  5541. digital_world_8DataSet1.computer_assemblyDataTable dataTable = new digital_world_8DataSet1.computer_assemblyDataTable();
  5542. this.Adapter.Fill(dataTable);
  5543. return dataTable;
  5544. }
  5545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5547. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5548. public virtual int Update(digital_world_8DataSet1.computer_assemblyDataTable dataTable) {
  5549. return this.Adapter.Update(dataTable);
  5550. }
  5551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5553. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5554. public virtual int Update(digital_world_8DataSet1 dataSet) {
  5555. return this.Adapter.Update(dataSet, "computer_assembly");
  5556. }
  5557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5559. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5560. public virtual int Update(global::System.Data.DataRow dataRow) {
  5561. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5562. dataRow});
  5563. }
  5564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5566. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5567. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5568. return this.Adapter.Update(dataRows);
  5569. }
  5570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5572. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5573. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5574. public virtual int Delete(string Original_Видеокарта, string Original_Материнская_плата, string Original_Процессор, string p2, string Original_Оперативная_память, string Original_Жетский_диск, string Original_Куллер, string Original_Система_охлаждения, string Original_Блок_питания, string Original_SSD, global::System.Nullable<int> Original_Итоговая_цена, int Original_Номер_сборки) {
  5575. if ((Original_Видеокарта == null)) {
  5576. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(1));
  5577. this.Adapter.DeleteCommand.Parameters[1].Value = global::System.DBNull.Value;
  5578. }
  5579. else {
  5580. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(0));
  5581. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Видеокарта));
  5582. }
  5583. if ((Original_Материнская_плата == null)) {
  5584. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  5585. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  5586. }
  5587. else {
  5588. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  5589. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Материнская_плата));
  5590. }
  5591. if ((Original_Процессор == null)) {
  5592. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  5593. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  5594. }
  5595. else {
  5596. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  5597. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Процессор));
  5598. }
  5599. if ((p2 == null)) {
  5600. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  5601. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  5602. }
  5603. else {
  5604. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  5605. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(p2));
  5606. }
  5607. if ((Original_Оперативная_память == null)) {
  5608. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
  5609. this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
  5610. }
  5611. else {
  5612. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
  5613. this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_Оперативная_память));
  5614. }
  5615. if ((Original_Жетский_диск == null)) {
  5616. this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1));
  5617. this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value;
  5618. }
  5619. else {
  5620. this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0));
  5621. this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_Жетский_диск));
  5622. }
  5623. if ((Original_Куллер == null)) {
  5624. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1));
  5625. this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value;
  5626. }
  5627. else {
  5628. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0));
  5629. this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_Куллер));
  5630. }
  5631. if ((Original_Система_охлаждения == null)) {
  5632. this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1));
  5633. this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value;
  5634. }
  5635. else {
  5636. this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0));
  5637. this.Adapter.DeleteCommand.Parameters[15].Value = ((string)(Original_Система_охлаждения));
  5638. }
  5639. if ((Original_Блок_питания == null)) {
  5640. this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(1));
  5641. this.Adapter.DeleteCommand.Parameters[17].Value = global::System.DBNull.Value;
  5642. }
  5643. else {
  5644. this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(0));
  5645. this.Adapter.DeleteCommand.Parameters[17].Value = ((string)(Original_Блок_питания));
  5646. }
  5647. if ((Original_SSD == null)) {
  5648. this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(1));
  5649. this.Adapter.DeleteCommand.Parameters[19].Value = global::System.DBNull.Value;
  5650. }
  5651. else {
  5652. this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(0));
  5653. this.Adapter.DeleteCommand.Parameters[19].Value = ((string)(Original_SSD));
  5654. }
  5655. if ((Original_Итоговая_цена.HasValue == true)) {
  5656. this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(0));
  5657. this.Adapter.DeleteCommand.Parameters[21].Value = ((int)(Original_Итоговая_цена.Value));
  5658. }
  5659. else {
  5660. this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(1));
  5661. this.Adapter.DeleteCommand.Parameters[21].Value = global::System.DBNull.Value;
  5662. }
  5663. this.Adapter.DeleteCommand.Parameters[22].Value = ((int)(Original_Номер_сборки));
  5664. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5665. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5666. != global::System.Data.ConnectionState.Open)) {
  5667. this.Adapter.DeleteCommand.Connection.Open();
  5668. }
  5669. try {
  5670. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5671. return returnValue;
  5672. }
  5673. finally {
  5674. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5675. this.Adapter.DeleteCommand.Connection.Close();
  5676. }
  5677. }
  5678. }
  5679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5681. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5682. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5683. public virtual int Insert(string Видеокарта, string Материнская_плата, string Процессор, string p1, string Оперативная_память, string Жетский_диск, string Куллер, string Система_охлаждения, string Блок_питания, string SSD, global::System.Nullable<int> Итоговая_цена) {
  5684. if ((Видеокарта == null)) {
  5685. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5686. }
  5687. else {
  5688. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Видеокарта));
  5689. }
  5690. if ((Материнская_плата == null)) {
  5691. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5692. }
  5693. else {
  5694. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Материнская_плата));
  5695. }
  5696. if ((Процессор == null)) {
  5697. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5698. }
  5699. else {
  5700. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Процессор));
  5701. }
  5702. if ((p1 == null)) {
  5703. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5704. }
  5705. else {
  5706. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(p1));
  5707. }
  5708. if ((Оперативная_память == null)) {
  5709. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5710. }
  5711. else {
  5712. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Оперативная_память));
  5713. }
  5714. if ((Жетский_диск == null)) {
  5715. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  5716. }
  5717. else {
  5718. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Жетский_диск));
  5719. }
  5720. if ((Куллер == null)) {
  5721. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  5722. }
  5723. else {
  5724. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Куллер));
  5725. }
  5726. if ((Система_охлаждения == null)) {
  5727. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  5728. }
  5729. else {
  5730. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Система_охлаждения));
  5731. }
  5732. if ((Блок_питания == null)) {
  5733. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  5734. }
  5735. else {
  5736. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(Блок_питания));
  5737. }
  5738. if ((SSD == null)) {
  5739. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  5740. }
  5741. else {
  5742. this.Adapter.InsertCommand.Parameters[9].Value = ((string)(SSD));
  5743. }
  5744. if ((Итоговая_цена.HasValue == true)) {
  5745. this.Adapter.InsertCommand.Parameters[10].Value = ((int)(Итоговая_цена.Value));
  5746. }
  5747. else {
  5748. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  5749. }
  5750. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5751. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5752. != global::System.Data.ConnectionState.Open)) {
  5753. this.Adapter.InsertCommand.Connection.Open();
  5754. }
  5755. try {
  5756. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5757. return returnValue;
  5758. }
  5759. finally {
  5760. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5761. this.Adapter.InsertCommand.Connection.Close();
  5762. }
  5763. }
  5764. }
  5765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5767. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5768. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5769. public virtual int Update(
  5770. string Видеокарта,
  5771. string Материнская_плата,
  5772. string Процессор,
  5773. string p1,
  5774. string Оперативная_память,
  5775. string Жетский_диск,
  5776. string Куллер,
  5777. string Система_охлаждения,
  5778. string Блок_питания,
  5779. string SSD,
  5780. global::System.Nullable<int> Итоговая_цена,
  5781. string Original_Видеокарта,
  5782. string Original_Материнская_плата,
  5783. string Original_Процессор,
  5784. string p2,
  5785. string Original_Оперативная_память,
  5786. string Original_Жетский_диск,
  5787. string Original_Куллер,
  5788. string Original_Система_охлаждения,
  5789. string Original_Блок_питания,
  5790. string Original_SSD,
  5791. global::System.Nullable<int> Original_Итоговая_цена,
  5792. int Original_Номер_сборки,
  5793. int Номер_сборки) {
  5794. if ((Видеокарта == null)) {
  5795. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5796. }
  5797. else {
  5798. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Видеокарта));
  5799. }
  5800. if ((Материнская_плата == null)) {
  5801. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5802. }
  5803. else {
  5804. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Материнская_плата));
  5805. }
  5806. if ((Процессор == null)) {
  5807. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5808. }
  5809. else {
  5810. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Процессор));
  5811. }
  5812. if ((p1 == null)) {
  5813. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5814. }
  5815. else {
  5816. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(p1));
  5817. }
  5818. if ((Оперативная_память == null)) {
  5819. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5820. }
  5821. else {
  5822. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Оперативная_память));
  5823. }
  5824. if ((Жетский_диск == null)) {
  5825. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5826. }
  5827. else {
  5828. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Жетский_диск));
  5829. }
  5830. if ((Куллер == null)) {
  5831. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  5832. }
  5833. else {
  5834. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Куллер));
  5835. }
  5836. if ((Система_охлаждения == null)) {
  5837. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  5838. }
  5839. else {
  5840. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Система_охлаждения));
  5841. }
  5842. if ((Блок_питания == null)) {
  5843. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  5844. }
  5845. else {
  5846. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Блок_питания));
  5847. }
  5848. if ((SSD == null)) {
  5849. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  5850. }
  5851. else {
  5852. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(SSD));
  5853. }
  5854. if ((Итоговая_цена.HasValue == true)) {
  5855. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Итоговая_цена.Value));
  5856. }
  5857. else {
  5858. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  5859. }
  5860. if ((Original_Видеокарта == null)) {
  5861. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  5862. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  5863. }
  5864. else {
  5865. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  5866. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Видеокарта));
  5867. }
  5868. if ((Original_Материнская_плата == null)) {
  5869. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  5870. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  5871. }
  5872. else {
  5873. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  5874. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Материнская_плата));
  5875. }
  5876. if ((Original_Процессор == null)) {
  5877. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  5878. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  5879. }
  5880. else {
  5881. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  5882. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Процессор));
  5883. }
  5884. if ((p2 == null)) {
  5885. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  5886. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  5887. }
  5888. else {
  5889. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  5890. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(p2));
  5891. }
  5892. if ((Original_Оперативная_память == null)) {
  5893. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
  5894. this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
  5895. }
  5896. else {
  5897. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
  5898. this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_Оперативная_память));
  5899. }
  5900. if ((Original_Жетский_диск == null)) {
  5901. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
  5902. this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
  5903. }
  5904. else {
  5905. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
  5906. this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_Жетский_диск));
  5907. }
  5908. if ((Original_Куллер == null)) {
  5909. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
  5910. this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
  5911. }
  5912. else {
  5913. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
  5914. this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_Куллер));
  5915. }
  5916. if ((Original_Система_охлаждения == null)) {
  5917. this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1));
  5918. this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value;
  5919. }
  5920. else {
  5921. this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0));
  5922. this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_Система_охлаждения));
  5923. }
  5924. if ((Original_Блок_питания == null)) {
  5925. this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(1));
  5926. this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value;
  5927. }
  5928. else {
  5929. this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(0));
  5930. this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(Original_Блок_питания));
  5931. }
  5932. if ((Original_SSD == null)) {
  5933. this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1));
  5934. this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value;
  5935. }
  5936. else {
  5937. this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0));
  5938. this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(Original_SSD));
  5939. }
  5940. if ((Original_Итоговая_цена.HasValue == true)) {
  5941. this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0));
  5942. this.Adapter.UpdateCommand.Parameters[32].Value = ((int)(Original_Итоговая_цена.Value));
  5943. }
  5944. else {
  5945. this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1));
  5946. this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value;
  5947. }
  5948. this.Adapter.UpdateCommand.Parameters[33].Value = ((int)(Original_Номер_сборки));
  5949. this.Adapter.UpdateCommand.Parameters[34].Value = ((int)(Номер_сборки));
  5950. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5951. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5952. != global::System.Data.ConnectionState.Open)) {
  5953. this.Adapter.UpdateCommand.Connection.Open();
  5954. }
  5955. try {
  5956. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5957. return returnValue;
  5958. }
  5959. finally {
  5960. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5961. this.Adapter.UpdateCommand.Connection.Close();
  5962. }
  5963. }
  5964. }
  5965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5967. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5968. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5969. public virtual int Update(
  5970. string Видеокарта,
  5971. string Материнская_плата,
  5972. string Процессор,
  5973. string p1,
  5974. string Оперативная_память,
  5975. string Жетский_диск,
  5976. string Куллер,
  5977. string Система_охлаждения,
  5978. string Блок_питания,
  5979. string SSD,
  5980. global::System.Nullable<int> Итоговая_цена,
  5981. string Original_Видеокарта,
  5982. string Original_Материнская_плата,
  5983. string Original_Процессор,
  5984. string p2,
  5985. string Original_Оперативная_память,
  5986. string Original_Жетский_диск,
  5987. string Original_Куллер,
  5988. string Original_Система_охлаждения,
  5989. string Original_Блок_питания,
  5990. string Original_SSD,
  5991. global::System.Nullable<int> Original_Итоговая_цена,
  5992. int Original_Номер_сборки) {
  5993. return this.Update(Видеокарта, Материнская_плата, Процессор, p1, Оперативная_память, Жетский_диск, Куллер, Система_охлаждения, Блок_питания, SSD, Итоговая_цена, Original_Видеокарта, Original_Материнская_плата, Original_Процессор, p2, Original_Оперативная_память, Original_Жетский_диск, Original_Куллер, Original_Система_охлаждения, Original_Блок_питания, Original_SSD, Original_Итоговая_цена, Original_Номер_сборки, Original_Номер_сборки);
  5994. }
  5995. }
  5996. /// <summary>
  5997. ///Represents the connection and commands used to retrieve and save data.
  5998. ///</summary>
  5999. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6000. [global::System.ComponentModel.ToolboxItem(true)]
  6001. [global::System.ComponentModel.DataObjectAttribute(true)]
  6002. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6003. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6004. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6005. public partial class OrderTableAdapter : global::System.ComponentModel.Component {
  6006. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6007. private global::System.Data.SqlClient.SqlConnection _connection;
  6008. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6009. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6010. private bool _clearBeforeFill;
  6011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6013. public OrderTableAdapter() {
  6014. this.ClearBeforeFill = true;
  6015. }
  6016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6018. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6019. get {
  6020. if ((this._adapter == null)) {
  6021. this.InitAdapter();
  6022. }
  6023. return this._adapter;
  6024. }
  6025. }
  6026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6028. internal global::System.Data.SqlClient.SqlConnection Connection {
  6029. get {
  6030. if ((this._connection == null)) {
  6031. this.InitConnection();
  6032. }
  6033. return this._connection;
  6034. }
  6035. set {
  6036. this._connection = value;
  6037. if ((this.Adapter.InsertCommand != null)) {
  6038. this.Adapter.InsertCommand.Connection = value;
  6039. }
  6040. if ((this.Adapter.DeleteCommand != null)) {
  6041. this.Adapter.DeleteCommand.Connection = value;
  6042. }
  6043. if ((this.Adapter.UpdateCommand != null)) {
  6044. this.Adapter.UpdateCommand.Connection = value;
  6045. }
  6046. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6047. if ((this.CommandCollection[i] != null)) {
  6048. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6049. }
  6050. }
  6051. }
  6052. }
  6053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6055. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6056. get {
  6057. return this._transaction;
  6058. }
  6059. set {
  6060. this._transaction = value;
  6061. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6062. this.CommandCollection[i].Transaction = this._transaction;
  6063. }
  6064. if (((this.Adapter != null)
  6065. && (this.Adapter.DeleteCommand != null))) {
  6066. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6067. }
  6068. if (((this.Adapter != null)
  6069. && (this.Adapter.InsertCommand != null))) {
  6070. this.Adapter.InsertCommand.Transaction = this._transaction;
  6071. }
  6072. if (((this.Adapter != null)
  6073. && (this.Adapter.UpdateCommand != null))) {
  6074. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6075. }
  6076. }
  6077. }
  6078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6080. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6081. get {
  6082. if ((this._commandCollection == null)) {
  6083. this.InitCommandCollection();
  6084. }
  6085. return this._commandCollection;
  6086. }
  6087. }
  6088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6090. public bool ClearBeforeFill {
  6091. get {
  6092. return this._clearBeforeFill;
  6093. }
  6094. set {
  6095. this._clearBeforeFill = value;
  6096. }
  6097. }
  6098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6100. private void InitAdapter() {
  6101. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6102. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6103. tableMapping.SourceTable = "Table";
  6104. tableMapping.DataSetTable = "Order";
  6105. tableMapping.ColumnMappings.Add("Id_заказа", "Id_заказа");
  6106. tableMapping.ColumnMappings.Add("Номер заказа", "Номер заказа");
  6107. tableMapping.ColumnMappings.Add("Дата", "Дата");
  6108. tableMapping.ColumnMappings.Add("id статуса", "id статуса");
  6109. tableMapping.ColumnMappings.Add("Номер сборки", "Номер сборки");
  6110. this._adapter.TableMappings.Add(tableMapping);
  6111. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6112. this._adapter.DeleteCommand.Connection = this.Connection;
  6113. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Order] WHERE (([Id_заказа] = @Original_Id_заказа) AND ((@IsNull_Номер_заказа = 1 AND [Номер заказа] IS NULL) OR ([Номер заказа] = @Original_Номер_заказа)) AND ((@IsNull_Дата = 1 AND [Дата] IS NULL) OR ([Дата] = @Original_Дата)) AND ((@IsNull_id_статуса = 1 AND [id статуса] IS NULL) OR ([id статуса] = @Original_id_статуса)) AND ((@IsNull_Номер_сборки = 1 AND [Номер сборки] IS NULL) OR ([Номер сборки] = @Original_Номер_сборки)))";
  6114. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6115. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Id_заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id_заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6116. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Номер_заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер заказа", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6117. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6118. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Дата", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6119. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6120. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id статуса", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6121. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id статуса", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6122. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Номер_сборки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер сборки", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6123. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_сборки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер сборки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6124. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6125. this._adapter.InsertCommand.Connection = this.Connection;
  6126. this._adapter.InsertCommand.CommandText = "INSERT INTO [Order] ([Номер заказа], [Дата], [id статуса], [Номер сборки]) VALUES" +
  6127. " (@Номер_заказа, @Дата, @id_статуса, @Номер_сборки);\r\nSELECT Id_заказа, [Номер з" +
  6128. "аказа], Дата, [id статуса], [Номер сборки] FROM [Order] WHERE (Id_заказа = SCOPE" +
  6129. "_IDENTITY())";
  6130. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6131. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6132. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6133. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id статуса", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6134. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_сборки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер сборки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6135. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6136. this._adapter.UpdateCommand.Connection = this.Connection;
  6137. this._adapter.UpdateCommand.CommandText = @"UPDATE [Order] SET [Номер заказа] = @Номер_заказа, [Дата] = @Дата, [id статуса] = @id_статуса, [Номер сборки] = @Номер_сборки WHERE (([Id_заказа] = @Original_Id_заказа) AND ((@IsNull_Номер_заказа = 1 AND [Номер заказа] IS NULL) OR ([Номер заказа] = @Original_Номер_заказа)) AND ((@IsNull_Дата = 1 AND [Дата] IS NULL) OR ([Дата] = @Original_Дата)) AND ((@IsNull_id_статуса = 1 AND [id статуса] IS NULL) OR ([id статуса] = @Original_id_статуса)) AND ((@IsNull_Номер_сборки = 1 AND [Номер сборки] IS NULL) OR ([Номер сборки] = @Original_Номер_сборки)));
  6138. SELECT Id_заказа, [Номер заказа], Дата, [id статуса], [Номер сборки] FROM [Order] WHERE (Id_заказа = @Id_заказа)";
  6139. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6140. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6141. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6142. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id статуса", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6143. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_сборки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер сборки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6144. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Id_заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id_заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6145. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Номер_заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер заказа", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6146. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6147. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Дата", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6148. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6149. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id статуса", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6150. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id статуса", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6151. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Номер_сборки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер сборки", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6152. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_сборки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер сборки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6153. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id_заказа", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Id_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6154. }
  6155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6157. private void InitConnection() {
  6158. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6159. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString1;
  6160. }
  6161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6163. private void InitCommandCollection() {
  6164. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6165. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6166. this._commandCollection[0].Connection = this.Connection;
  6167. this._commandCollection[0].CommandText = "SELECT Id_заказа, [Номер заказа], Дата, [id статуса], [Номер сборки] FROM [Order]" +
  6168. "";
  6169. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6170. }
  6171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6173. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6174. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6175. public virtual int Fill(digital_world_8DataSet1.OrderDataTable dataTable) {
  6176. this.Adapter.SelectCommand = this.CommandCollection[0];
  6177. if ((this.ClearBeforeFill == true)) {
  6178. dataTable.Clear();
  6179. }
  6180. int returnValue = this.Adapter.Fill(dataTable);
  6181. return returnValue;
  6182. }
  6183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6185. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6186. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6187. public virtual digital_world_8DataSet1.OrderDataTable GetData() {
  6188. this.Adapter.SelectCommand = this.CommandCollection[0];
  6189. digital_world_8DataSet1.OrderDataTable dataTable = new digital_world_8DataSet1.OrderDataTable();
  6190. this.Adapter.Fill(dataTable);
  6191. return dataTable;
  6192. }
  6193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6195. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6196. public virtual int Update(digital_world_8DataSet1.OrderDataTable dataTable) {
  6197. return this.Adapter.Update(dataTable);
  6198. }
  6199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6201. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6202. public virtual int Update(digital_world_8DataSet1 dataSet) {
  6203. return this.Adapter.Update(dataSet, "Order");
  6204. }
  6205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6207. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6208. public virtual int Update(global::System.Data.DataRow dataRow) {
  6209. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6210. dataRow});
  6211. }
  6212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6214. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6215. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6216. return this.Adapter.Update(dataRows);
  6217. }
  6218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6220. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6221. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6222. public virtual int Delete(int Original_Id_заказа, global::System.Nullable<int> Original_Номер_заказа, global::System.Nullable<global::System.DateTime> Original_Дата, global::System.Nullable<int> Original_id_статуса, global::System.Nullable<int> Original_Номер_сборки) {
  6223. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Id_заказа));
  6224. if ((Original_Номер_заказа.HasValue == true)) {
  6225. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6226. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_Номер_заказа.Value));
  6227. }
  6228. else {
  6229. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6230. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6231. }
  6232. if ((Original_Дата.HasValue == true)) {
  6233. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6234. this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_Дата.Value));
  6235. }
  6236. else {
  6237. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6238. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6239. }
  6240. if ((Original_id_статуса.HasValue == true)) {
  6241. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6242. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_id_статуса.Value));
  6243. }
  6244. else {
  6245. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6246. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6247. }
  6248. if ((Original_Номер_сборки.HasValue == true)) {
  6249. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6250. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_Номер_сборки.Value));
  6251. }
  6252. else {
  6253. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6254. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6255. }
  6256. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6257. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6258. != global::System.Data.ConnectionState.Open)) {
  6259. this.Adapter.DeleteCommand.Connection.Open();
  6260. }
  6261. try {
  6262. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6263. return returnValue;
  6264. }
  6265. finally {
  6266. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6267. this.Adapter.DeleteCommand.Connection.Close();
  6268. }
  6269. }
  6270. }
  6271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6273. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6274. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6275. public virtual int Insert(global::System.Nullable<int> Номер_заказа, global::System.Nullable<global::System.DateTime> Дата, global::System.Nullable<int> id_статуса, global::System.Nullable<int> Номер_сборки) {
  6276. if ((Номер_заказа.HasValue == true)) {
  6277. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Номер_заказа.Value));
  6278. }
  6279. else {
  6280. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6281. }
  6282. if ((Дата.HasValue == true)) {
  6283. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Дата.Value));
  6284. }
  6285. else {
  6286. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6287. }
  6288. if ((id_статуса.HasValue == true)) {
  6289. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(id_статуса.Value));
  6290. }
  6291. else {
  6292. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6293. }
  6294. if ((Номер_сборки.HasValue == true)) {
  6295. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Номер_сборки.Value));
  6296. }
  6297. else {
  6298. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6299. }
  6300. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6301. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6302. != global::System.Data.ConnectionState.Open)) {
  6303. this.Adapter.InsertCommand.Connection.Open();
  6304. }
  6305. try {
  6306. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6307. return returnValue;
  6308. }
  6309. finally {
  6310. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6311. this.Adapter.InsertCommand.Connection.Close();
  6312. }
  6313. }
  6314. }
  6315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6317. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6318. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6319. public virtual int Update(global::System.Nullable<int> Номер_заказа, global::System.Nullable<global::System.DateTime> Дата, global::System.Nullable<int> id_статуса, global::System.Nullable<int> Номер_сборки, int Original_Id_заказа, global::System.Nullable<int> Original_Номер_заказа, global::System.Nullable<global::System.DateTime> Original_Дата, global::System.Nullable<int> Original_id_статуса, global::System.Nullable<int> Original_Номер_сборки, int Id_заказа) {
  6320. if ((Номер_заказа.HasValue == true)) {
  6321. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Номер_заказа.Value));
  6322. }
  6323. else {
  6324. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6325. }
  6326. if ((Дата.HasValue == true)) {
  6327. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(Дата.Value));
  6328. }
  6329. else {
  6330. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6331. }
  6332. if ((id_статуса.HasValue == true)) {
  6333. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(id_статуса.Value));
  6334. }
  6335. else {
  6336. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6337. }
  6338. if ((Номер_сборки.HasValue == true)) {
  6339. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Номер_сборки.Value));
  6340. }
  6341. else {
  6342. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6343. }
  6344. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_Id_заказа));
  6345. if ((Original_Номер_заказа.HasValue == true)) {
  6346. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  6347. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_Номер_заказа.Value));
  6348. }
  6349. else {
  6350. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  6351. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  6352. }
  6353. if ((Original_Дата.HasValue == true)) {
  6354. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  6355. this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_Дата.Value));
  6356. }
  6357. else {
  6358. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  6359. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6360. }
  6361. if ((Original_id_статуса.HasValue == true)) {
  6362. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  6363. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_id_статуса.Value));
  6364. }
  6365. else {
  6366. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  6367. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  6368. }
  6369. if ((Original_Номер_сборки.HasValue == true)) {
  6370. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  6371. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_Номер_сборки.Value));
  6372. }
  6373. else {
  6374. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  6375. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  6376. }
  6377. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Id_заказа));
  6378. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6379. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6380. != global::System.Data.ConnectionState.Open)) {
  6381. this.Adapter.UpdateCommand.Connection.Open();
  6382. }
  6383. try {
  6384. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6385. return returnValue;
  6386. }
  6387. finally {
  6388. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6389. this.Adapter.UpdateCommand.Connection.Close();
  6390. }
  6391. }
  6392. }
  6393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6395. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6396. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6397. public virtual int Update(global::System.Nullable<int> Номер_заказа, global::System.Nullable<global::System.DateTime> Дата, global::System.Nullable<int> id_статуса, global::System.Nullable<int> Номер_сборки, int Original_Id_заказа, global::System.Nullable<int> Original_Номер_заказа, global::System.Nullable<global::System.DateTime> Original_Дата, global::System.Nullable<int> Original_id_статуса, global::System.Nullable<int> Original_Номер_сборки) {
  6398. return this.Update(Номер_заказа, Дата, id_статуса, Номер_сборки, Original_Id_заказа, Original_Номер_заказа, Original_Дата, Original_id_статуса, Original_Номер_сборки, Original_Id_заказа);
  6399. }
  6400. }
  6401. /// <summary>
  6402. ///Represents the connection and commands used to retrieve and save data.
  6403. ///</summary>
  6404. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6405. [global::System.ComponentModel.ToolboxItem(true)]
  6406. [global::System.ComponentModel.DataObjectAttribute(true)]
  6407. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6408. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6409. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6410. public partial class order_by_clientsTableAdapter : global::System.ComponentModel.Component {
  6411. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6412. private global::System.Data.SqlClient.SqlConnection _connection;
  6413. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6414. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6415. private bool _clearBeforeFill;
  6416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6418. public order_by_clientsTableAdapter() {
  6419. this.ClearBeforeFill = true;
  6420. }
  6421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6423. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6424. get {
  6425. if ((this._adapter == null)) {
  6426. this.InitAdapter();
  6427. }
  6428. return this._adapter;
  6429. }
  6430. }
  6431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6433. internal global::System.Data.SqlClient.SqlConnection Connection {
  6434. get {
  6435. if ((this._connection == null)) {
  6436. this.InitConnection();
  6437. }
  6438. return this._connection;
  6439. }
  6440. set {
  6441. this._connection = value;
  6442. if ((this.Adapter.InsertCommand != null)) {
  6443. this.Adapter.InsertCommand.Connection = value;
  6444. }
  6445. if ((this.Adapter.DeleteCommand != null)) {
  6446. this.Adapter.DeleteCommand.Connection = value;
  6447. }
  6448. if ((this.Adapter.UpdateCommand != null)) {
  6449. this.Adapter.UpdateCommand.Connection = value;
  6450. }
  6451. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6452. if ((this.CommandCollection[i] != null)) {
  6453. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6454. }
  6455. }
  6456. }
  6457. }
  6458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6460. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6461. get {
  6462. return this._transaction;
  6463. }
  6464. set {
  6465. this._transaction = value;
  6466. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6467. this.CommandCollection[i].Transaction = this._transaction;
  6468. }
  6469. if (((this.Adapter != null)
  6470. && (this.Adapter.DeleteCommand != null))) {
  6471. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6472. }
  6473. if (((this.Adapter != null)
  6474. && (this.Adapter.InsertCommand != null))) {
  6475. this.Adapter.InsertCommand.Transaction = this._transaction;
  6476. }
  6477. if (((this.Adapter != null)
  6478. && (this.Adapter.UpdateCommand != null))) {
  6479. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6480. }
  6481. }
  6482. }
  6483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6485. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6486. get {
  6487. if ((this._commandCollection == null)) {
  6488. this.InitCommandCollection();
  6489. }
  6490. return this._commandCollection;
  6491. }
  6492. }
  6493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6495. public bool ClearBeforeFill {
  6496. get {
  6497. return this._clearBeforeFill;
  6498. }
  6499. set {
  6500. this._clearBeforeFill = value;
  6501. }
  6502. }
  6503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6505. private void InitAdapter() {
  6506. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6507. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6508. tableMapping.SourceTable = "Table";
  6509. tableMapping.DataSetTable = "order_by_clients";
  6510. tableMapping.ColumnMappings.Add("Номер заказа", "Номер заказа");
  6511. tableMapping.ColumnMappings.Add("Пожелания", "Пожелания");
  6512. tableMapping.ColumnMappings.Add("Дата", "Дата");
  6513. this._adapter.TableMappings.Add(tableMapping);
  6514. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6515. this._adapter.DeleteCommand.Connection = this.Connection;
  6516. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[order_by_clients] WHERE (([Номер заказа] = @Original_Номер_зак" +
  6517. "аза) AND ((@IsNull_Пожелания = 1 AND [Пожелания] IS NULL) OR ([Пожелания] = @Ori" +
  6518. "ginal_Пожелания)) AND ((@IsNull_Дата = 1 AND [Дата] IS NULL) OR ([Дата] = @Origi" +
  6519. "nal_Дата)))";
  6520. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6521. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6522. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Пожелания", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пожелания", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6523. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пожелания", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пожелания", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6524. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Дата", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6525. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6526. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6527. this._adapter.InsertCommand.Connection = this.Connection;
  6528. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[order_by_clients] ([Пожелания], [Дата]) VALUES (@Пожелания, @Д" +
  6529. "ата);\r\nSELECT [Номер заказа], Пожелания, Дата FROM order_by_clients WHERE ([Номе" +
  6530. "р заказа] = SCOPE_IDENTITY())";
  6531. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6532. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пожелания", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пожелания", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6533. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6534. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6535. this._adapter.UpdateCommand.Connection = this.Connection;
  6536. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[order_by_clients] SET [Пожелания] = @Пожелания, [Дата] = @Дата WHERE (([Номер заказа] = @Original_Номер_заказа) AND ((@IsNull_Пожелания = 1 AND [Пожелания] IS NULL) OR ([Пожелания] = @Original_Пожелания)) AND ((@IsNull_Дата = 1 AND [Дата] IS NULL) OR ([Дата] = @Original_Дата)));
  6537. SELECT [Номер заказа], Пожелания, Дата FROM order_by_clients WHERE ([Номер заказа] = @Номер_заказа)";
  6538. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6539. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пожелания", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пожелания", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6540. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6541. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6542. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Пожелания", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пожелания", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6543. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пожелания", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пожелания", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6544. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Дата", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6545. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6546. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_заказа", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Номер заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6547. }
  6548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6550. private void InitConnection() {
  6551. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6552. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString1;
  6553. }
  6554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6556. private void InitCommandCollection() {
  6557. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6558. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6559. this._commandCollection[0].Connection = this.Connection;
  6560. this._commandCollection[0].CommandText = "SELECT [Номер заказа], Пожелания, Дата FROM dbo.order_by_clients";
  6561. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6562. }
  6563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6565. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6566. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6567. public virtual int Fill(digital_world_8DataSet1.order_by_clientsDataTable dataTable) {
  6568. this.Adapter.SelectCommand = this.CommandCollection[0];
  6569. if ((this.ClearBeforeFill == true)) {
  6570. dataTable.Clear();
  6571. }
  6572. int returnValue = this.Adapter.Fill(dataTable);
  6573. return returnValue;
  6574. }
  6575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6577. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6578. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6579. public virtual digital_world_8DataSet1.order_by_clientsDataTable GetData() {
  6580. this.Adapter.SelectCommand = this.CommandCollection[0];
  6581. digital_world_8DataSet1.order_by_clientsDataTable dataTable = new digital_world_8DataSet1.order_by_clientsDataTable();
  6582. this.Adapter.Fill(dataTable);
  6583. return dataTable;
  6584. }
  6585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6587. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6588. public virtual int Update(digital_world_8DataSet1.order_by_clientsDataTable dataTable) {
  6589. return this.Adapter.Update(dataTable);
  6590. }
  6591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6593. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6594. public virtual int Update(digital_world_8DataSet1 dataSet) {
  6595. return this.Adapter.Update(dataSet, "order_by_clients");
  6596. }
  6597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6599. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6600. public virtual int Update(global::System.Data.DataRow dataRow) {
  6601. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6602. dataRow});
  6603. }
  6604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6606. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6607. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6608. return this.Adapter.Update(dataRows);
  6609. }
  6610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6612. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6613. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6614. public virtual int Delete(int Original_Номер_заказа, string Original_Пожелания, global::System.Nullable<global::System.DateTime> Original_Дата) {
  6615. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Номер_заказа));
  6616. if ((Original_Пожелания == null)) {
  6617. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6618. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6619. }
  6620. else {
  6621. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6622. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Пожелания));
  6623. }
  6624. if ((Original_Дата.HasValue == true)) {
  6625. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6626. this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_Дата.Value));
  6627. }
  6628. else {
  6629. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6630. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6631. }
  6632. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6633. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6634. != global::System.Data.ConnectionState.Open)) {
  6635. this.Adapter.DeleteCommand.Connection.Open();
  6636. }
  6637. try {
  6638. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6639. return returnValue;
  6640. }
  6641. finally {
  6642. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6643. this.Adapter.DeleteCommand.Connection.Close();
  6644. }
  6645. }
  6646. }
  6647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6649. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6650. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6651. public virtual int Insert(string Пожелания, global::System.Nullable<global::System.DateTime> Дата) {
  6652. if ((Пожелания == null)) {
  6653. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6654. }
  6655. else {
  6656. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Пожелания));
  6657. }
  6658. if ((Дата.HasValue == true)) {
  6659. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Дата.Value));
  6660. }
  6661. else {
  6662. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6663. }
  6664. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6665. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6666. != global::System.Data.ConnectionState.Open)) {
  6667. this.Adapter.InsertCommand.Connection.Open();
  6668. }
  6669. try {
  6670. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6671. return returnValue;
  6672. }
  6673. finally {
  6674. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6675. this.Adapter.InsertCommand.Connection.Close();
  6676. }
  6677. }
  6678. }
  6679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6681. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6682. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6683. public virtual int Update(string Пожелания, global::System.Nullable<global::System.DateTime> Дата, int Original_Номер_заказа, string Original_Пожелания, global::System.Nullable<global::System.DateTime> Original_Дата, int Номер_заказа) {
  6684. if ((Пожелания == null)) {
  6685. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6686. }
  6687. else {
  6688. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Пожелания));
  6689. }
  6690. if ((Дата.HasValue == true)) {
  6691. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(Дата.Value));
  6692. }
  6693. else {
  6694. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6695. }
  6696. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_Номер_заказа));
  6697. if ((Original_Пожелания == null)) {
  6698. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  6699. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6700. }
  6701. else {
  6702. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  6703. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Пожелания));
  6704. }
  6705. if ((Original_Дата.HasValue == true)) {
  6706. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  6707. this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Original_Дата.Value));
  6708. }
  6709. else {
  6710. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  6711. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  6712. }
  6713. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Номер_заказа));
  6714. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6715. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6716. != global::System.Data.ConnectionState.Open)) {
  6717. this.Adapter.UpdateCommand.Connection.Open();
  6718. }
  6719. try {
  6720. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6721. return returnValue;
  6722. }
  6723. finally {
  6724. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6725. this.Adapter.UpdateCommand.Connection.Close();
  6726. }
  6727. }
  6728. }
  6729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6731. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6732. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6733. public virtual int Update(string Пожелания, global::System.Nullable<global::System.DateTime> Дата, int Original_Номер_заказа, string Original_Пожелания, global::System.Nullable<global::System.DateTime> Original_Дата) {
  6734. return this.Update(Пожелания, Дата, Original_Номер_заказа, Original_Пожелания, Original_Дата, Original_Номер_заказа);
  6735. }
  6736. }
  6737. /// <summary>
  6738. ///Represents the connection and commands used to retrieve and save data.
  6739. ///</summary>
  6740. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6741. [global::System.ComponentModel.ToolboxItem(true)]
  6742. [global::System.ComponentModel.DataObjectAttribute(true)]
  6743. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6744. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6745. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6746. public partial class Order_statusTableAdapter : global::System.ComponentModel.Component {
  6747. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6748. private global::System.Data.SqlClient.SqlConnection _connection;
  6749. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6750. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6751. private bool _clearBeforeFill;
  6752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6754. public Order_statusTableAdapter() {
  6755. this.ClearBeforeFill = true;
  6756. }
  6757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6759. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6760. get {
  6761. if ((this._adapter == null)) {
  6762. this.InitAdapter();
  6763. }
  6764. return this._adapter;
  6765. }
  6766. }
  6767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6769. internal global::System.Data.SqlClient.SqlConnection Connection {
  6770. get {
  6771. if ((this._connection == null)) {
  6772. this.InitConnection();
  6773. }
  6774. return this._connection;
  6775. }
  6776. set {
  6777. this._connection = value;
  6778. if ((this.Adapter.InsertCommand != null)) {
  6779. this.Adapter.InsertCommand.Connection = value;
  6780. }
  6781. if ((this.Adapter.DeleteCommand != null)) {
  6782. this.Adapter.DeleteCommand.Connection = value;
  6783. }
  6784. if ((this.Adapter.UpdateCommand != null)) {
  6785. this.Adapter.UpdateCommand.Connection = value;
  6786. }
  6787. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6788. if ((this.CommandCollection[i] != null)) {
  6789. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6790. }
  6791. }
  6792. }
  6793. }
  6794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6796. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6797. get {
  6798. return this._transaction;
  6799. }
  6800. set {
  6801. this._transaction = value;
  6802. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6803. this.CommandCollection[i].Transaction = this._transaction;
  6804. }
  6805. if (((this.Adapter != null)
  6806. && (this.Adapter.DeleteCommand != null))) {
  6807. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6808. }
  6809. if (((this.Adapter != null)
  6810. && (this.Adapter.InsertCommand != null))) {
  6811. this.Adapter.InsertCommand.Transaction = this._transaction;
  6812. }
  6813. if (((this.Adapter != null)
  6814. && (this.Adapter.UpdateCommand != null))) {
  6815. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6816. }
  6817. }
  6818. }
  6819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6821. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6822. get {
  6823. if ((this._commandCollection == null)) {
  6824. this.InitCommandCollection();
  6825. }
  6826. return this._commandCollection;
  6827. }
  6828. }
  6829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6831. public bool ClearBeforeFill {
  6832. get {
  6833. return this._clearBeforeFill;
  6834. }
  6835. set {
  6836. this._clearBeforeFill = value;
  6837. }
  6838. }
  6839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6841. private void InitAdapter() {
  6842. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6843. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6844. tableMapping.SourceTable = "Table";
  6845. tableMapping.DataSetTable = "Order_status";
  6846. tableMapping.ColumnMappings.Add("id", "id");
  6847. tableMapping.ColumnMappings.Add("Название статуса", "Название статуса");
  6848. this._adapter.TableMappings.Add(tableMapping);
  6849. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6850. this._adapter.DeleteCommand.Connection = this.Connection;
  6851. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Order_status] WHERE (([id] = @Original_id) AND ((@IsNull_Назва" +
  6852. "ние_статуса = 1 AND [Название статуса] IS NULL) OR ([Название статуса] = @Origin" +
  6853. "al_Название_статуса)))";
  6854. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6855. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6856. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название_статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название статуса", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6857. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название_статуса", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название статуса", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6858. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6859. this._adapter.InsertCommand.Connection = this.Connection;
  6860. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Order_status] ([Название статуса]) VALUES (@Название_статуса);" +
  6861. "\r\nSELECT id, [Название статуса] FROM Order_status WHERE (id = SCOPE_IDENTITY())";
  6862. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6863. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название_статуса", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название статуса", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6864. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6865. this._adapter.UpdateCommand.Connection = this.Connection;
  6866. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Order_status] SET [Название статуса] = @Название_статуса WHERE (([id] = @Original_id) AND ((@IsNull_Название_статуса = 1 AND [Название статуса] IS NULL) OR ([Название статуса] = @Original_Название_статуса)));
  6867. SELECT id, [Название статуса] FROM Order_status WHERE (id = @id)";
  6868. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6869. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название_статуса", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название статуса", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6870. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6871. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название_статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название статуса", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6872. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название_статуса", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название статуса", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6873. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6874. }
  6875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6877. private void InitConnection() {
  6878. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6879. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString1;
  6880. }
  6881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6883. private void InitCommandCollection() {
  6884. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6885. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6886. this._commandCollection[0].Connection = this.Connection;
  6887. this._commandCollection[0].CommandText = "SELECT id, [Название статуса] FROM dbo.Order_status";
  6888. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6889. }
  6890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6892. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6893. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6894. public virtual int Fill(digital_world_8DataSet1.Order_statusDataTable dataTable) {
  6895. this.Adapter.SelectCommand = this.CommandCollection[0];
  6896. if ((this.ClearBeforeFill == true)) {
  6897. dataTable.Clear();
  6898. }
  6899. int returnValue = this.Adapter.Fill(dataTable);
  6900. return returnValue;
  6901. }
  6902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6904. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6905. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6906. public virtual digital_world_8DataSet1.Order_statusDataTable GetData() {
  6907. this.Adapter.SelectCommand = this.CommandCollection[0];
  6908. digital_world_8DataSet1.Order_statusDataTable dataTable = new digital_world_8DataSet1.Order_statusDataTable();
  6909. this.Adapter.Fill(dataTable);
  6910. return dataTable;
  6911. }
  6912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6914. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6915. public virtual int Update(digital_world_8DataSet1.Order_statusDataTable dataTable) {
  6916. return this.Adapter.Update(dataTable);
  6917. }
  6918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6920. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6921. public virtual int Update(digital_world_8DataSet1 dataSet) {
  6922. return this.Adapter.Update(dataSet, "Order_status");
  6923. }
  6924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6926. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6927. public virtual int Update(global::System.Data.DataRow dataRow) {
  6928. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6929. dataRow});
  6930. }
  6931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6933. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6934. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6935. return this.Adapter.Update(dataRows);
  6936. }
  6937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6939. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6940. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6941. public virtual int Delete(int Original_id, string Original_Название_статуса) {
  6942. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  6943. if ((Original_Название_статуса == null)) {
  6944. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6945. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6946. }
  6947. else {
  6948. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6949. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название_статуса));
  6950. }
  6951. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6952. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6953. != global::System.Data.ConnectionState.Open)) {
  6954. this.Adapter.DeleteCommand.Connection.Open();
  6955. }
  6956. try {
  6957. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6958. return returnValue;
  6959. }
  6960. finally {
  6961. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6962. this.Adapter.DeleteCommand.Connection.Close();
  6963. }
  6964. }
  6965. }
  6966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6968. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6969. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6970. public virtual int Insert(string Название_статуса) {
  6971. if ((Название_статуса == null)) {
  6972. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6973. }
  6974. else {
  6975. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название_статуса));
  6976. }
  6977. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6978. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6979. != global::System.Data.ConnectionState.Open)) {
  6980. this.Adapter.InsertCommand.Connection.Open();
  6981. }
  6982. try {
  6983. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6984. return returnValue;
  6985. }
  6986. finally {
  6987. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6988. this.Adapter.InsertCommand.Connection.Close();
  6989. }
  6990. }
  6991. }
  6992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6994. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6995. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6996. public virtual int Update(string Название_статуса, int Original_id, string Original_Название_статуса, int id) {
  6997. if ((Название_статуса == null)) {
  6998. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6999. }
  7000. else {
  7001. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название_статуса));
  7002. }
  7003. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_id));
  7004. if ((Original_Название_статуса == null)) {
  7005. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  7006. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7007. }
  7008. else {
  7009. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  7010. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Название_статуса));
  7011. }
  7012. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(id));
  7013. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7014. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7015. != global::System.Data.ConnectionState.Open)) {
  7016. this.Adapter.UpdateCommand.Connection.Open();
  7017. }
  7018. try {
  7019. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7020. return returnValue;
  7021. }
  7022. finally {
  7023. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7024. this.Adapter.UpdateCommand.Connection.Close();
  7025. }
  7026. }
  7027. }
  7028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7030. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7031. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7032. public virtual int Update(string Название_статуса, int Original_id, string Original_Название_статуса) {
  7033. return this.Update(Название_статуса, Original_id, Original_Название_статуса, Original_id);
  7034. }
  7035. }
  7036. /// <summary>
  7037. ///Represents the connection and commands used to retrieve and save data.
  7038. ///</summary>
  7039. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7040. [global::System.ComponentModel.ToolboxItem(true)]
  7041. [global::System.ComponentModel.DataObjectAttribute(true)]
  7042. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7043. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7044. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7045. public partial class providerTableAdapter : global::System.ComponentModel.Component {
  7046. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7047. private global::System.Data.SqlClient.SqlConnection _connection;
  7048. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7049. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7050. private bool _clearBeforeFill;
  7051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7053. public providerTableAdapter() {
  7054. this.ClearBeforeFill = true;
  7055. }
  7056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7058. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7059. get {
  7060. if ((this._adapter == null)) {
  7061. this.InitAdapter();
  7062. }
  7063. return this._adapter;
  7064. }
  7065. }
  7066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7068. internal global::System.Data.SqlClient.SqlConnection Connection {
  7069. get {
  7070. if ((this._connection == null)) {
  7071. this.InitConnection();
  7072. }
  7073. return this._connection;
  7074. }
  7075. set {
  7076. this._connection = value;
  7077. if ((this.Adapter.InsertCommand != null)) {
  7078. this.Adapter.InsertCommand.Connection = value;
  7079. }
  7080. if ((this.Adapter.DeleteCommand != null)) {
  7081. this.Adapter.DeleteCommand.Connection = value;
  7082. }
  7083. if ((this.Adapter.UpdateCommand != null)) {
  7084. this.Adapter.UpdateCommand.Connection = value;
  7085. }
  7086. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7087. if ((this.CommandCollection[i] != null)) {
  7088. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7089. }
  7090. }
  7091. }
  7092. }
  7093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7095. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7096. get {
  7097. return this._transaction;
  7098. }
  7099. set {
  7100. this._transaction = value;
  7101. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7102. this.CommandCollection[i].Transaction = this._transaction;
  7103. }
  7104. if (((this.Adapter != null)
  7105. && (this.Adapter.DeleteCommand != null))) {
  7106. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7107. }
  7108. if (((this.Adapter != null)
  7109. && (this.Adapter.InsertCommand != null))) {
  7110. this.Adapter.InsertCommand.Transaction = this._transaction;
  7111. }
  7112. if (((this.Adapter != null)
  7113. && (this.Adapter.UpdateCommand != null))) {
  7114. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7115. }
  7116. }
  7117. }
  7118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7120. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7121. get {
  7122. if ((this._commandCollection == null)) {
  7123. this.InitCommandCollection();
  7124. }
  7125. return this._commandCollection;
  7126. }
  7127. }
  7128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7130. public bool ClearBeforeFill {
  7131. get {
  7132. return this._clearBeforeFill;
  7133. }
  7134. set {
  7135. this._clearBeforeFill = value;
  7136. }
  7137. }
  7138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7140. private void InitAdapter() {
  7141. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7142. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7143. tableMapping.SourceTable = "Table";
  7144. tableMapping.DataSetTable = "provider";
  7145. tableMapping.ColumnMappings.Add("id", "id");
  7146. tableMapping.ColumnMappings.Add("название", "название");
  7147. tableMapping.ColumnMappings.Add("Страна производитель", "Страна производитель");
  7148. this._adapter.TableMappings.Add(tableMapping);
  7149. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7150. this._adapter.DeleteCommand.Connection = this.Connection;
  7151. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[provider] WHERE (([id] = @Original_id) AND ((@IsNull_название = 1 AND [название] IS NULL) OR ([название] = @Original_название)) AND ((@IsNull_Страна_производитель = 1 AND [Страна производитель] IS NULL) OR ([Страна производитель] = @Original_Страна_производитель)))";
  7152. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7153. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7154. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7155. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7156. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Страна_производитель", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Страна производитель", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7157. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Страна_производитель", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Страна производитель", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7158. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7159. this._adapter.InsertCommand.Connection = this.Connection;
  7160. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[provider] ([id], [название], [Страна производитель]) VALUES (@" +
  7161. "id, @название, @Страна_производитель);\r\nSELECT id, название, [Страна производите" +
  7162. "ль] FROM provider WHERE (id = @id)";
  7163. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7164. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7165. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7166. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Страна_производитель", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Страна производитель", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7167. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7168. this._adapter.UpdateCommand.Connection = this.Connection;
  7169. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[provider] SET [id] = @id, [название] = @название, [Страна производитель] = @Страна_производитель WHERE (([id] = @Original_id) AND ((@IsNull_название = 1 AND [название] IS NULL) OR ([название] = @Original_название)) AND ((@IsNull_Страна_производитель = 1 AND [Страна производитель] IS NULL) OR ([Страна производитель] = @Original_Страна_производитель)));
  7170. SELECT id, название, [Страна производитель] FROM provider WHERE (id = @id)";
  7171. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7172. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7173. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7174. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Страна_производитель", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Страна производитель", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7175. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7176. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7177. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7178. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Страна_производитель", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Страна производитель", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7179. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Страна_производитель", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Страна производитель", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7180. }
  7181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7183. private void InitConnection() {
  7184. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7185. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString1;
  7186. }
  7187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7189. private void InitCommandCollection() {
  7190. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7191. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7192. this._commandCollection[0].Connection = this.Connection;
  7193. this._commandCollection[0].CommandText = "SELECT id, название, [Страна производитель] FROM dbo.provider";
  7194. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7195. }
  7196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7198. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7199. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7200. public virtual int Fill(digital_world_8DataSet1.providerDataTable dataTable) {
  7201. this.Adapter.SelectCommand = this.CommandCollection[0];
  7202. if ((this.ClearBeforeFill == true)) {
  7203. dataTable.Clear();
  7204. }
  7205. int returnValue = this.Adapter.Fill(dataTable);
  7206. return returnValue;
  7207. }
  7208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7210. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7211. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7212. public virtual digital_world_8DataSet1.providerDataTable GetData() {
  7213. this.Adapter.SelectCommand = this.CommandCollection[0];
  7214. digital_world_8DataSet1.providerDataTable dataTable = new digital_world_8DataSet1.providerDataTable();
  7215. this.Adapter.Fill(dataTable);
  7216. return dataTable;
  7217. }
  7218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7220. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7221. public virtual int Update(digital_world_8DataSet1.providerDataTable dataTable) {
  7222. return this.Adapter.Update(dataTable);
  7223. }
  7224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7226. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7227. public virtual int Update(digital_world_8DataSet1 dataSet) {
  7228. return this.Adapter.Update(dataSet, "provider");
  7229. }
  7230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7232. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7233. public virtual int Update(global::System.Data.DataRow dataRow) {
  7234. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7235. dataRow});
  7236. }
  7237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7239. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7240. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7241. return this.Adapter.Update(dataRows);
  7242. }
  7243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7245. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7246. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7247. public virtual int Delete(int Original_id, string Original_название, string Original_Страна_производитель) {
  7248. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  7249. if ((Original_название == null)) {
  7250. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7251. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7252. }
  7253. else {
  7254. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7255. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_название));
  7256. }
  7257. if ((Original_Страна_производитель == null)) {
  7258. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7259. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7260. }
  7261. else {
  7262. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7263. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Страна_производитель));
  7264. }
  7265. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7266. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7267. != global::System.Data.ConnectionState.Open)) {
  7268. this.Adapter.DeleteCommand.Connection.Open();
  7269. }
  7270. try {
  7271. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7272. return returnValue;
  7273. }
  7274. finally {
  7275. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7276. this.Adapter.DeleteCommand.Connection.Close();
  7277. }
  7278. }
  7279. }
  7280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7282. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7283. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7284. public virtual int Insert(int id, string название, string Страна_производитель) {
  7285. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id));
  7286. if ((название == null)) {
  7287. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7288. }
  7289. else {
  7290. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(название));
  7291. }
  7292. if ((Страна_производитель == null)) {
  7293. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7294. }
  7295. else {
  7296. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Страна_производитель));
  7297. }
  7298. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7299. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7300. != global::System.Data.ConnectionState.Open)) {
  7301. this.Adapter.InsertCommand.Connection.Open();
  7302. }
  7303. try {
  7304. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7305. return returnValue;
  7306. }
  7307. finally {
  7308. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7309. this.Adapter.InsertCommand.Connection.Close();
  7310. }
  7311. }
  7312. }
  7313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7315. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7316. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7317. public virtual int Update(int id, string название, string Страна_производитель, int Original_id, string Original_название, string Original_Страна_производитель) {
  7318. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(id));
  7319. if ((название == null)) {
  7320. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7321. }
  7322. else {
  7323. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(название));
  7324. }
  7325. if ((Страна_производитель == null)) {
  7326. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7327. }
  7328. else {
  7329. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Страна_производитель));
  7330. }
  7331. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_id));
  7332. if ((Original_название == null)) {
  7333. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  7334. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7335. }
  7336. else {
  7337. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  7338. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_название));
  7339. }
  7340. if ((Original_Страна_производитель == null)) {
  7341. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  7342. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  7343. }
  7344. else {
  7345. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  7346. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Страна_производитель));
  7347. }
  7348. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7349. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7350. != global::System.Data.ConnectionState.Open)) {
  7351. this.Adapter.UpdateCommand.Connection.Open();
  7352. }
  7353. try {
  7354. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7355. return returnValue;
  7356. }
  7357. finally {
  7358. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7359. this.Adapter.UpdateCommand.Connection.Close();
  7360. }
  7361. }
  7362. }
  7363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7365. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7366. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7367. public virtual int Update(string название, string Страна_производитель, int Original_id, string Original_название, string Original_Страна_производитель) {
  7368. return this.Update(Original_id, название, Страна_производитель, Original_id, Original_название, Original_Страна_производитель);
  7369. }
  7370. }
  7371. /// <summary>
  7372. ///Represents the connection and commands used to retrieve and save data.
  7373. ///</summary>
  7374. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7375. [global::System.ComponentModel.ToolboxItem(true)]
  7376. [global::System.ComponentModel.DataObjectAttribute(true)]
  7377. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7378. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7379. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7380. public partial class RoleTableAdapter : global::System.ComponentModel.Component {
  7381. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7382. private global::System.Data.SqlClient.SqlConnection _connection;
  7383. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7384. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7385. private bool _clearBeforeFill;
  7386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7388. public RoleTableAdapter() {
  7389. this.ClearBeforeFill = true;
  7390. }
  7391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7393. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7394. get {
  7395. if ((this._adapter == null)) {
  7396. this.InitAdapter();
  7397. }
  7398. return this._adapter;
  7399. }
  7400. }
  7401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7403. internal global::System.Data.SqlClient.SqlConnection Connection {
  7404. get {
  7405. if ((this._connection == null)) {
  7406. this.InitConnection();
  7407. }
  7408. return this._connection;
  7409. }
  7410. set {
  7411. this._connection = value;
  7412. if ((this.Adapter.InsertCommand != null)) {
  7413. this.Adapter.InsertCommand.Connection = value;
  7414. }
  7415. if ((this.Adapter.DeleteCommand != null)) {
  7416. this.Adapter.DeleteCommand.Connection = value;
  7417. }
  7418. if ((this.Adapter.UpdateCommand != null)) {
  7419. this.Adapter.UpdateCommand.Connection = value;
  7420. }
  7421. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7422. if ((this.CommandCollection[i] != null)) {
  7423. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7424. }
  7425. }
  7426. }
  7427. }
  7428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7430. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7431. get {
  7432. return this._transaction;
  7433. }
  7434. set {
  7435. this._transaction = value;
  7436. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7437. this.CommandCollection[i].Transaction = this._transaction;
  7438. }
  7439. if (((this.Adapter != null)
  7440. && (this.Adapter.DeleteCommand != null))) {
  7441. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7442. }
  7443. if (((this.Adapter != null)
  7444. && (this.Adapter.InsertCommand != null))) {
  7445. this.Adapter.InsertCommand.Transaction = this._transaction;
  7446. }
  7447. if (((this.Adapter != null)
  7448. && (this.Adapter.UpdateCommand != null))) {
  7449. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7450. }
  7451. }
  7452. }
  7453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7455. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7456. get {
  7457. if ((this._commandCollection == null)) {
  7458. this.InitCommandCollection();
  7459. }
  7460. return this._commandCollection;
  7461. }
  7462. }
  7463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7465. public bool ClearBeforeFill {
  7466. get {
  7467. return this._clearBeforeFill;
  7468. }
  7469. set {
  7470. this._clearBeforeFill = value;
  7471. }
  7472. }
  7473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7475. private void InitAdapter() {
  7476. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7477. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7478. tableMapping.SourceTable = "Table";
  7479. tableMapping.DataSetTable = "Role";
  7480. tableMapping.ColumnMappings.Add("Id", "Id");
  7481. tableMapping.ColumnMappings.Add("Название роли", "Название роли");
  7482. this._adapter.TableMappings.Add(tableMapping);
  7483. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7484. this._adapter.DeleteCommand.Connection = this.Connection;
  7485. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Role] WHERE (([Id] = @Original_Id) AND ((@IsNull_Название_роли" +
  7486. " = 1 AND [Название роли] IS NULL) OR ([Название роли] = @Original_Название_роли)" +
  7487. "))";
  7488. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7489. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7490. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название_роли", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название роли", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7491. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название_роли", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название роли", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7492. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7493. this._adapter.InsertCommand.Connection = this.Connection;
  7494. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Role] ([Id], [Название роли]) VALUES (@Id, @Название_роли);\r\nS" +
  7495. "ELECT Id, [Название роли] FROM Role WHERE (Id = @Id)";
  7496. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7497. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7498. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название_роли", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название роли", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7499. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7500. this._adapter.UpdateCommand.Connection = this.Connection;
  7501. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Role] SET [Id] = @Id, [Название роли] = @Название_роли WHERE (([Id] = @Original_Id) AND ((@IsNull_Название_роли = 1 AND [Название роли] IS NULL) OR ([Название роли] = @Original_Название_роли)));
  7502. SELECT Id, [Название роли] FROM Role WHERE (Id = @Id)";
  7503. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7504. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7505. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название_роли", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название роли", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7506. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7507. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название_роли", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название роли", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7508. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название_роли", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название роли", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7509. }
  7510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7512. private void InitConnection() {
  7513. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7514. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString1;
  7515. }
  7516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7518. private void InitCommandCollection() {
  7519. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7520. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7521. this._commandCollection[0].Connection = this.Connection;
  7522. this._commandCollection[0].CommandText = "SELECT Id, [Название роли] FROM dbo.Role";
  7523. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7524. }
  7525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7527. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7528. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7529. public virtual int Fill(digital_world_8DataSet1.RoleDataTable dataTable) {
  7530. this.Adapter.SelectCommand = this.CommandCollection[0];
  7531. if ((this.ClearBeforeFill == true)) {
  7532. dataTable.Clear();
  7533. }
  7534. int returnValue = this.Adapter.Fill(dataTable);
  7535. return returnValue;
  7536. }
  7537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7539. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7540. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7541. public virtual digital_world_8DataSet1.RoleDataTable GetData() {
  7542. this.Adapter.SelectCommand = this.CommandCollection[0];
  7543. digital_world_8DataSet1.RoleDataTable dataTable = new digital_world_8DataSet1.RoleDataTable();
  7544. this.Adapter.Fill(dataTable);
  7545. return dataTable;
  7546. }
  7547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7549. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7550. public virtual int Update(digital_world_8DataSet1.RoleDataTable dataTable) {
  7551. return this.Adapter.Update(dataTable);
  7552. }
  7553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7555. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7556. public virtual int Update(digital_world_8DataSet1 dataSet) {
  7557. return this.Adapter.Update(dataSet, "Role");
  7558. }
  7559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7561. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7562. public virtual int Update(global::System.Data.DataRow dataRow) {
  7563. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7564. dataRow});
  7565. }
  7566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7568. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7569. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7570. return this.Adapter.Update(dataRows);
  7571. }
  7572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7574. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7575. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7576. public virtual int Delete(int Original_Id, string Original_Название_роли) {
  7577. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Id));
  7578. if ((Original_Название_роли == null)) {
  7579. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7580. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7581. }
  7582. else {
  7583. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7584. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название_роли));
  7585. }
  7586. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7587. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7588. != global::System.Data.ConnectionState.Open)) {
  7589. this.Adapter.DeleteCommand.Connection.Open();
  7590. }
  7591. try {
  7592. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7593. return returnValue;
  7594. }
  7595. finally {
  7596. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7597. this.Adapter.DeleteCommand.Connection.Close();
  7598. }
  7599. }
  7600. }
  7601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7603. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7604. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7605. public virtual int Insert(int Id, string Название_роли) {
  7606. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Id));
  7607. if ((Название_роли == null)) {
  7608. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7609. }
  7610. else {
  7611. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Название_роли));
  7612. }
  7613. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7614. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7615. != global::System.Data.ConnectionState.Open)) {
  7616. this.Adapter.InsertCommand.Connection.Open();
  7617. }
  7618. try {
  7619. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7620. return returnValue;
  7621. }
  7622. finally {
  7623. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7624. this.Adapter.InsertCommand.Connection.Close();
  7625. }
  7626. }
  7627. }
  7628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7630. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7631. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7632. public virtual int Update(int Id, string Название_роли, int Original_Id, string Original_Название_роли) {
  7633. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Id));
  7634. if ((Название_роли == null)) {
  7635. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7636. }
  7637. else {
  7638. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Название_роли));
  7639. }
  7640. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_Id));
  7641. if ((Original_Название_роли == null)) {
  7642. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  7643. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7644. }
  7645. else {
  7646. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  7647. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Название_роли));
  7648. }
  7649. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7650. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7651. != global::System.Data.ConnectionState.Open)) {
  7652. this.Adapter.UpdateCommand.Connection.Open();
  7653. }
  7654. try {
  7655. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7656. return returnValue;
  7657. }
  7658. finally {
  7659. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7660. this.Adapter.UpdateCommand.Connection.Close();
  7661. }
  7662. }
  7663. }
  7664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7666. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7667. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7668. public virtual int Update(string Название_роли, int Original_Id, string Original_Название_роли) {
  7669. return this.Update(Original_Id, Название_роли, Original_Id, Original_Название_роли);
  7670. }
  7671. }
  7672. /// <summary>
  7673. ///Represents the connection and commands used to retrieve and save data.
  7674. ///</summary>
  7675. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7676. [global::System.ComponentModel.ToolboxItem(true)]
  7677. [global::System.ComponentModel.DataObjectAttribute(true)]
  7678. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7679. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7680. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7681. public partial class unit_of_measurementTableAdapter : global::System.ComponentModel.Component {
  7682. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7683. private global::System.Data.SqlClient.SqlConnection _connection;
  7684. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7685. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7686. private bool _clearBeforeFill;
  7687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7689. public unit_of_measurementTableAdapter() {
  7690. this.ClearBeforeFill = true;
  7691. }
  7692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7694. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7695. get {
  7696. if ((this._adapter == null)) {
  7697. this.InitAdapter();
  7698. }
  7699. return this._adapter;
  7700. }
  7701. }
  7702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7704. internal global::System.Data.SqlClient.SqlConnection Connection {
  7705. get {
  7706. if ((this._connection == null)) {
  7707. this.InitConnection();
  7708. }
  7709. return this._connection;
  7710. }
  7711. set {
  7712. this._connection = value;
  7713. if ((this.Adapter.InsertCommand != null)) {
  7714. this.Adapter.InsertCommand.Connection = value;
  7715. }
  7716. if ((this.Adapter.DeleteCommand != null)) {
  7717. this.Adapter.DeleteCommand.Connection = value;
  7718. }
  7719. if ((this.Adapter.UpdateCommand != null)) {
  7720. this.Adapter.UpdateCommand.Connection = value;
  7721. }
  7722. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7723. if ((this.CommandCollection[i] != null)) {
  7724. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7725. }
  7726. }
  7727. }
  7728. }
  7729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7731. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7732. get {
  7733. return this._transaction;
  7734. }
  7735. set {
  7736. this._transaction = value;
  7737. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7738. this.CommandCollection[i].Transaction = this._transaction;
  7739. }
  7740. if (((this.Adapter != null)
  7741. && (this.Adapter.DeleteCommand != null))) {
  7742. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7743. }
  7744. if (((this.Adapter != null)
  7745. && (this.Adapter.InsertCommand != null))) {
  7746. this.Adapter.InsertCommand.Transaction = this._transaction;
  7747. }
  7748. if (((this.Adapter != null)
  7749. && (this.Adapter.UpdateCommand != null))) {
  7750. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7751. }
  7752. }
  7753. }
  7754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7756. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7757. get {
  7758. if ((this._commandCollection == null)) {
  7759. this.InitCommandCollection();
  7760. }
  7761. return this._commandCollection;
  7762. }
  7763. }
  7764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7766. public bool ClearBeforeFill {
  7767. get {
  7768. return this._clearBeforeFill;
  7769. }
  7770. set {
  7771. this._clearBeforeFill = value;
  7772. }
  7773. }
  7774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7776. private void InitAdapter() {
  7777. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7778. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7779. tableMapping.SourceTable = "Table";
  7780. tableMapping.DataSetTable = "unit_of_measurement";
  7781. tableMapping.ColumnMappings.Add("id", "id");
  7782. tableMapping.ColumnMappings.Add("название", "название");
  7783. this._adapter.TableMappings.Add(tableMapping);
  7784. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7785. this._adapter.DeleteCommand.Connection = this.Connection;
  7786. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[unit_of_measurement] WHERE (([id] = @Original_id) AND ((@IsNul" +
  7787. "l_название = 1 AND [название] IS NULL) OR ([название] = @Original_название)))";
  7788. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7789. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7790. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7791. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7792. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7793. this._adapter.InsertCommand.Connection = this.Connection;
  7794. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[unit_of_measurement] ([название]) VALUES (@название);\r\nSELECT " +
  7795. "id, название FROM unit_of_measurement WHERE (id = SCOPE_IDENTITY())";
  7796. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7797. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7798. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7799. this._adapter.UpdateCommand.Connection = this.Connection;
  7800. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[unit_of_measurement] SET [название] = @название WHERE (([id] = @Ori" +
  7801. "ginal_id) AND ((@IsNull_название = 1 AND [название] IS NULL) OR ([название] = @O" +
  7802. "riginal_название)));\r\nSELECT id, название FROM unit_of_measurement WHERE (id = @" +
  7803. "id)";
  7804. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7805. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7806. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7807. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7808. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7809. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7810. }
  7811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7813. private void InitConnection() {
  7814. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7815. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString1;
  7816. }
  7817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7819. private void InitCommandCollection() {
  7820. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7821. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7822. this._commandCollection[0].Connection = this.Connection;
  7823. this._commandCollection[0].CommandText = "SELECT id, название FROM dbo.unit_of_measurement";
  7824. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7825. }
  7826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7828. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7829. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7830. public virtual int Fill(digital_world_8DataSet1.unit_of_measurementDataTable dataTable) {
  7831. this.Adapter.SelectCommand = this.CommandCollection[0];
  7832. if ((this.ClearBeforeFill == true)) {
  7833. dataTable.Clear();
  7834. }
  7835. int returnValue = this.Adapter.Fill(dataTable);
  7836. return returnValue;
  7837. }
  7838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7840. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7841. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7842. public virtual digital_world_8DataSet1.unit_of_measurementDataTable GetData() {
  7843. this.Adapter.SelectCommand = this.CommandCollection[0];
  7844. digital_world_8DataSet1.unit_of_measurementDataTable dataTable = new digital_world_8DataSet1.unit_of_measurementDataTable();
  7845. this.Adapter.Fill(dataTable);
  7846. return dataTable;
  7847. }
  7848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7850. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7851. public virtual int Update(digital_world_8DataSet1.unit_of_measurementDataTable dataTable) {
  7852. return this.Adapter.Update(dataTable);
  7853. }
  7854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7856. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7857. public virtual int Update(digital_world_8DataSet1 dataSet) {
  7858. return this.Adapter.Update(dataSet, "unit_of_measurement");
  7859. }
  7860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7862. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7863. public virtual int Update(global::System.Data.DataRow dataRow) {
  7864. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7865. dataRow});
  7866. }
  7867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7869. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7870. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7871. return this.Adapter.Update(dataRows);
  7872. }
  7873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7875. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7876. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7877. public virtual int Delete(int Original_id, string Original_название) {
  7878. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  7879. if ((Original_название == null)) {
  7880. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7881. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7882. }
  7883. else {
  7884. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7885. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_название));
  7886. }
  7887. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7888. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7889. != global::System.Data.ConnectionState.Open)) {
  7890. this.Adapter.DeleteCommand.Connection.Open();
  7891. }
  7892. try {
  7893. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7894. return returnValue;
  7895. }
  7896. finally {
  7897. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7898. this.Adapter.DeleteCommand.Connection.Close();
  7899. }
  7900. }
  7901. }
  7902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7904. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7905. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7906. public virtual int Insert(string название) {
  7907. if ((название == null)) {
  7908. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7909. }
  7910. else {
  7911. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(название));
  7912. }
  7913. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7914. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7915. != global::System.Data.ConnectionState.Open)) {
  7916. this.Adapter.InsertCommand.Connection.Open();
  7917. }
  7918. try {
  7919. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7920. return returnValue;
  7921. }
  7922. finally {
  7923. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7924. this.Adapter.InsertCommand.Connection.Close();
  7925. }
  7926. }
  7927. }
  7928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7930. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7931. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7932. public virtual int Update(string название, int Original_id, string Original_название, int id) {
  7933. if ((название == null)) {
  7934. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7935. }
  7936. else {
  7937. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(название));
  7938. }
  7939. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_id));
  7940. if ((Original_название == null)) {
  7941. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  7942. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7943. }
  7944. else {
  7945. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  7946. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_название));
  7947. }
  7948. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(id));
  7949. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7950. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7951. != global::System.Data.ConnectionState.Open)) {
  7952. this.Adapter.UpdateCommand.Connection.Open();
  7953. }
  7954. try {
  7955. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7956. return returnValue;
  7957. }
  7958. finally {
  7959. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7960. this.Adapter.UpdateCommand.Connection.Close();
  7961. }
  7962. }
  7963. }
  7964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7966. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7967. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7968. public virtual int Update(string название, int Original_id, string Original_название) {
  7969. return this.Update(название, Original_id, Original_название, Original_id);
  7970. }
  7971. }
  7972. /// <summary>
  7973. ///Represents the connection and commands used to retrieve and save data.
  7974. ///</summary>
  7975. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7976. [global::System.ComponentModel.ToolboxItem(true)]
  7977. [global::System.ComponentModel.DataObjectAttribute(true)]
  7978. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7979. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7980. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7981. public partial class UsersTableAdapter : global::System.ComponentModel.Component {
  7982. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7983. private global::System.Data.SqlClient.SqlConnection _connection;
  7984. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7985. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7986. private bool _clearBeforeFill;
  7987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7989. public UsersTableAdapter() {
  7990. this.ClearBeforeFill = true;
  7991. }
  7992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7994. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7995. get {
  7996. if ((this._adapter == null)) {
  7997. this.InitAdapter();
  7998. }
  7999. return this._adapter;
  8000. }
  8001. }
  8002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8004. internal global::System.Data.SqlClient.SqlConnection Connection {
  8005. get {
  8006. if ((this._connection == null)) {
  8007. this.InitConnection();
  8008. }
  8009. return this._connection;
  8010. }
  8011. set {
  8012. this._connection = value;
  8013. if ((this.Adapter.InsertCommand != null)) {
  8014. this.Adapter.InsertCommand.Connection = value;
  8015. }
  8016. if ((this.Adapter.DeleteCommand != null)) {
  8017. this.Adapter.DeleteCommand.Connection = value;
  8018. }
  8019. if ((this.Adapter.UpdateCommand != null)) {
  8020. this.Adapter.UpdateCommand.Connection = value;
  8021. }
  8022. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8023. if ((this.CommandCollection[i] != null)) {
  8024. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8025. }
  8026. }
  8027. }
  8028. }
  8029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8031. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8032. get {
  8033. return this._transaction;
  8034. }
  8035. set {
  8036. this._transaction = value;
  8037. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8038. this.CommandCollection[i].Transaction = this._transaction;
  8039. }
  8040. if (((this.Adapter != null)
  8041. && (this.Adapter.DeleteCommand != null))) {
  8042. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8043. }
  8044. if (((this.Adapter != null)
  8045. && (this.Adapter.InsertCommand != null))) {
  8046. this.Adapter.InsertCommand.Transaction = this._transaction;
  8047. }
  8048. if (((this.Adapter != null)
  8049. && (this.Adapter.UpdateCommand != null))) {
  8050. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8051. }
  8052. }
  8053. }
  8054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8056. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8057. get {
  8058. if ((this._commandCollection == null)) {
  8059. this.InitCommandCollection();
  8060. }
  8061. return this._commandCollection;
  8062. }
  8063. }
  8064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8066. public bool ClearBeforeFill {
  8067. get {
  8068. return this._clearBeforeFill;
  8069. }
  8070. set {
  8071. this._clearBeforeFill = value;
  8072. }
  8073. }
  8074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8076. private void InitAdapter() {
  8077. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8078. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8079. tableMapping.SourceTable = "Table";
  8080. tableMapping.DataSetTable = "Users";
  8081. tableMapping.ColumnMappings.Add("Id", "Id");
  8082. tableMapping.ColumnMappings.Add("Username", "Username");
  8083. tableMapping.ColumnMappings.Add("Password", "Password");
  8084. tableMapping.ColumnMappings.Add("Role", "Role");
  8085. this._adapter.TableMappings.Add(tableMapping);
  8086. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8087. this._adapter.DeleteCommand.Connection = this.Connection;
  8088. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Users] WHERE (([Id] = @Original_Id) AND ((@IsNull_Username = 1 AND [Username] IS NULL) OR ([Username] = @Original_Username)) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) AND ((@IsNull_Role = 1 AND [Role] IS NULL) OR ([Role] = @Original_Role)))";
  8089. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8090. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8091. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Username", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Username", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8092. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Username", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Username", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8093. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8094. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8095. 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, "", "", ""));
  8096. 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, "", "", ""));
  8097. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8098. this._adapter.InsertCommand.Connection = this.Connection;
  8099. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Users] ([Id], [Username], [Password], [Role]) VALUES (@Id, @Us" +
  8100. "ername, @Password, @Role);\r\nSELECT Id, Username, Password, Role FROM Users WHERE" +
  8101. " (Id = @Id)";
  8102. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8103. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8104. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Username", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Username", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8105. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8106. 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, "", "", ""));
  8107. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8108. this._adapter.UpdateCommand.Connection = this.Connection;
  8109. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Users] SET [Id] = @Id, [Username] = @Username, [Password] = @Password, [Role] = @Role WHERE (([Id] = @Original_Id) AND ((@IsNull_Username = 1 AND [Username] IS NULL) OR ([Username] = @Original_Username)) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) AND ((@IsNull_Role = 1 AND [Role] IS NULL) OR ([Role] = @Original_Role)));
  8110. SELECT Id, Username, Password, Role FROM Users WHERE (Id = @Id)";
  8111. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8112. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8113. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Username", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Username", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8114. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8115. 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, "", "", ""));
  8116. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8117. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Username", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Username", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8118. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Username", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Username", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8119. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8120. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8121. 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, "", "", ""));
  8122. 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, "", "", ""));
  8123. }
  8124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8126. private void InitConnection() {
  8127. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8128. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString1;
  8129. }
  8130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8132. private void InitCommandCollection() {
  8133. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8134. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8135. this._commandCollection[0].Connection = this.Connection;
  8136. this._commandCollection[0].CommandText = "SELECT Id, Username, Password, Role FROM dbo.Users";
  8137. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8138. }
  8139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8141. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8142. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8143. public virtual int Fill(digital_world_8DataSet1.UsersDataTable dataTable) {
  8144. this.Adapter.SelectCommand = this.CommandCollection[0];
  8145. if ((this.ClearBeforeFill == true)) {
  8146. dataTable.Clear();
  8147. }
  8148. int returnValue = this.Adapter.Fill(dataTable);
  8149. return returnValue;
  8150. }
  8151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8153. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8154. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8155. public virtual digital_world_8DataSet1.UsersDataTable GetData() {
  8156. this.Adapter.SelectCommand = this.CommandCollection[0];
  8157. digital_world_8DataSet1.UsersDataTable dataTable = new digital_world_8DataSet1.UsersDataTable();
  8158. this.Adapter.Fill(dataTable);
  8159. return dataTable;
  8160. }
  8161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8163. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8164. public virtual int Update(digital_world_8DataSet1.UsersDataTable dataTable) {
  8165. return this.Adapter.Update(dataTable);
  8166. }
  8167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8169. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8170. public virtual int Update(digital_world_8DataSet1 dataSet) {
  8171. return this.Adapter.Update(dataSet, "Users");
  8172. }
  8173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8175. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8176. public virtual int Update(global::System.Data.DataRow dataRow) {
  8177. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8178. dataRow});
  8179. }
  8180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8182. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8183. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8184. return this.Adapter.Update(dataRows);
  8185. }
  8186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8188. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8189. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8190. public virtual int Delete(int Original_Id, string Original_Username, string Original_Password, global::System.Nullable<int> Original_Role) {
  8191. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Id));
  8192. if ((Original_Username == null)) {
  8193. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8194. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8195. }
  8196. else {
  8197. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8198. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Username));
  8199. }
  8200. if ((Original_Password == null)) {
  8201. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8202. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8203. }
  8204. else {
  8205. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8206. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Password));
  8207. }
  8208. if ((Original_Role.HasValue == true)) {
  8209. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  8210. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Role.Value));
  8211. }
  8212. else {
  8213. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  8214. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  8215. }
  8216. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8217. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8218. != global::System.Data.ConnectionState.Open)) {
  8219. this.Adapter.DeleteCommand.Connection.Open();
  8220. }
  8221. try {
  8222. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8223. return returnValue;
  8224. }
  8225. finally {
  8226. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8227. this.Adapter.DeleteCommand.Connection.Close();
  8228. }
  8229. }
  8230. }
  8231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8233. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8234. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8235. public virtual int Insert(int Id, string Username, string Password, global::System.Nullable<int> Role) {
  8236. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Id));
  8237. if ((Username == null)) {
  8238. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8239. }
  8240. else {
  8241. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Username));
  8242. }
  8243. if ((Password == null)) {
  8244. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8245. }
  8246. else {
  8247. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Password));
  8248. }
  8249. if ((Role.HasValue == true)) {
  8250. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Role.Value));
  8251. }
  8252. else {
  8253. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8254. }
  8255. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8256. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8257. != global::System.Data.ConnectionState.Open)) {
  8258. this.Adapter.InsertCommand.Connection.Open();
  8259. }
  8260. try {
  8261. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8262. return returnValue;
  8263. }
  8264. finally {
  8265. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8266. this.Adapter.InsertCommand.Connection.Close();
  8267. }
  8268. }
  8269. }
  8270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8272. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8273. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8274. public virtual int Update(int Id, string Username, string Password, global::System.Nullable<int> Role, int Original_Id, string Original_Username, string Original_Password, global::System.Nullable<int> Original_Role) {
  8275. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Id));
  8276. if ((Username == null)) {
  8277. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8278. }
  8279. else {
  8280. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Username));
  8281. }
  8282. if ((Password == null)) {
  8283. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8284. }
  8285. else {
  8286. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Password));
  8287. }
  8288. if ((Role.HasValue == true)) {
  8289. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Role.Value));
  8290. }
  8291. else {
  8292. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8293. }
  8294. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_Id));
  8295. if ((Original_Username == null)) {
  8296. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  8297. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  8298. }
  8299. else {
  8300. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  8301. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Username));
  8302. }
  8303. if ((Original_Password == null)) {
  8304. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  8305. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  8306. }
  8307. else {
  8308. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  8309. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Password));
  8310. }
  8311. if ((Original_Role.HasValue == true)) {
  8312. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  8313. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_Role.Value));
  8314. }
  8315. else {
  8316. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  8317. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  8318. }
  8319. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8320. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8321. != global::System.Data.ConnectionState.Open)) {
  8322. this.Adapter.UpdateCommand.Connection.Open();
  8323. }
  8324. try {
  8325. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8326. return returnValue;
  8327. }
  8328. finally {
  8329. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8330. this.Adapter.UpdateCommand.Connection.Close();
  8331. }
  8332. }
  8333. }
  8334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8336. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8337. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8338. public virtual int Update(string Username, string Password, global::System.Nullable<int> Role, int Original_Id, string Original_Username, string Original_Password, global::System.Nullable<int> Original_Role) {
  8339. return this.Update(Original_Id, Username, Password, Role, Original_Id, Original_Username, Original_Password, Original_Role);
  8340. }
  8341. }
  8342. /// <summary>
  8343. ///Represents the connection and commands used to retrieve and save data.
  8344. ///</summary>
  8345. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8346. [global::System.ComponentModel.ToolboxItem(true)]
  8347. [global::System.ComponentModel.DataObjectAttribute(true)]
  8348. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8349. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8350. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8351. public partial class Postavka_materialTableAdapter : global::System.ComponentModel.Component {
  8352. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8353. private global::System.Data.SqlClient.SqlConnection _connection;
  8354. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8355. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8356. private bool _clearBeforeFill;
  8357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8359. public Postavka_materialTableAdapter() {
  8360. this.ClearBeforeFill = true;
  8361. }
  8362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8364. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8365. get {
  8366. if ((this._adapter == null)) {
  8367. this.InitAdapter();
  8368. }
  8369. return this._adapter;
  8370. }
  8371. }
  8372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8374. internal global::System.Data.SqlClient.SqlConnection Connection {
  8375. get {
  8376. if ((this._connection == null)) {
  8377. this.InitConnection();
  8378. }
  8379. return this._connection;
  8380. }
  8381. set {
  8382. this._connection = value;
  8383. if ((this.Adapter.InsertCommand != null)) {
  8384. this.Adapter.InsertCommand.Connection = value;
  8385. }
  8386. if ((this.Adapter.DeleteCommand != null)) {
  8387. this.Adapter.DeleteCommand.Connection = value;
  8388. }
  8389. if ((this.Adapter.UpdateCommand != null)) {
  8390. this.Adapter.UpdateCommand.Connection = value;
  8391. }
  8392. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8393. if ((this.CommandCollection[i] != null)) {
  8394. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8395. }
  8396. }
  8397. }
  8398. }
  8399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8401. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8402. get {
  8403. return this._transaction;
  8404. }
  8405. set {
  8406. this._transaction = value;
  8407. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8408. this.CommandCollection[i].Transaction = this._transaction;
  8409. }
  8410. if (((this.Adapter != null)
  8411. && (this.Adapter.DeleteCommand != null))) {
  8412. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8413. }
  8414. if (((this.Adapter != null)
  8415. && (this.Adapter.InsertCommand != null))) {
  8416. this.Adapter.InsertCommand.Transaction = this._transaction;
  8417. }
  8418. if (((this.Adapter != null)
  8419. && (this.Adapter.UpdateCommand != null))) {
  8420. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8421. }
  8422. }
  8423. }
  8424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8426. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8427. get {
  8428. if ((this._commandCollection == null)) {
  8429. this.InitCommandCollection();
  8430. }
  8431. return this._commandCollection;
  8432. }
  8433. }
  8434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8436. public bool ClearBeforeFill {
  8437. get {
  8438. return this._clearBeforeFill;
  8439. }
  8440. set {
  8441. this._clearBeforeFill = value;
  8442. }
  8443. }
  8444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8446. private void InitAdapter() {
  8447. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8448. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8449. tableMapping.SourceTable = "Table";
  8450. tableMapping.DataSetTable = "Postavka_material";
  8451. tableMapping.ColumnMappings.Add("id", "id");
  8452. tableMapping.ColumnMappings.Add("id производителя", "id производителя");
  8453. tableMapping.ColumnMappings.Add("Дата", "Дата");
  8454. tableMapping.ColumnMappings.Add("Название", "Название");
  8455. tableMapping.ColumnMappings.Add("Тип материала", "Тип материала");
  8456. tableMapping.ColumnMappings.Add("Количество", "Количество");
  8457. this._adapter.TableMappings.Add(tableMapping);
  8458. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8459. this._adapter.DeleteCommand.Connection = this.Connection;
  8460. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Postavka_material] WHERE (([id] = @Original_id) AND ((@IsNull_id_производителя = 1 AND [id производителя] IS NULL) OR ([id производителя] = @Original_id_производителя)) AND ((@IsNull_Дата = 1 AND [Дата] IS NULL) OR ([Дата] = @Original_Дата)) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Тип_материала = 1 AND [Тип материала] IS NULL) OR ([Тип материала] = @Original_Тип_материала)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)))";
  8461. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8462. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8463. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_производителя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id производителя", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8464. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_производителя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id производителя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8465. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Дата", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8466. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8467. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8468. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8469. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Тип_материала", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Тип материала", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8470. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Тип_материала", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Тип материала", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8471. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8472. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8473. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8474. this._adapter.InsertCommand.Connection = this.Connection;
  8475. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Postavka_material] ([id производителя], [Дата], [Название], [Тип материала], [Количество]) VALUES (@id_производителя, @Дата, @Название, @Тип_материала, @Количество);
  8476. SELECT id, [id производителя], Дата, Название, [Тип материала], Количество FROM Postavka_material WHERE (id = SCOPE_IDENTITY())";
  8477. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8478. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_производителя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id производителя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8479. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8480. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8481. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Тип_материала", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Тип материала", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8482. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8483. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8484. this._adapter.UpdateCommand.Connection = this.Connection;
  8485. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Postavka_material] SET [id производителя] = @id_производителя, [Дата] = @Дата, [Название] = @Название, [Тип материала] = @Тип_материала, [Количество] = @Количество WHERE (([id] = @Original_id) AND ((@IsNull_id_производителя = 1 AND [id производителя] IS NULL) OR ([id производителя] = @Original_id_производителя)) AND ((@IsNull_Дата = 1 AND [Дата] IS NULL) OR ([Дата] = @Original_Дата)) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Тип_материала = 1 AND [Тип материала] IS NULL) OR ([Тип материала] = @Original_Тип_материала)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)));
  8486. SELECT id, [id производителя], Дата, Название, [Тип материала], Количество FROM Postavka_material WHERE (id = @id)";
  8487. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8488. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_производителя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id производителя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8489. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8490. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8491. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Тип_материала", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Тип материала", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8492. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8493. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8494. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_производителя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id производителя", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8495. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_производителя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id производителя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8496. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Дата", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8497. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8498. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8499. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8500. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Тип_материала", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Тип материала", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8501. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Тип_материала", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Тип материала", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8502. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8503. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8504. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8505. }
  8506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8508. private void InitConnection() {
  8509. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8510. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString1;
  8511. }
  8512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8514. private void InitCommandCollection() {
  8515. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8516. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8517. this._commandCollection[0].Connection = this.Connection;
  8518. this._commandCollection[0].CommandText = "SELECT id, [id производителя], Дата, Название, [Тип материала], Количество FROM d" +
  8519. "bo.Postavka_material";
  8520. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8521. }
  8522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8524. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8525. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8526. public virtual int Fill(digital_world_8DataSet1.Postavka_materialDataTable dataTable) {
  8527. this.Adapter.SelectCommand = this.CommandCollection[0];
  8528. if ((this.ClearBeforeFill == true)) {
  8529. dataTable.Clear();
  8530. }
  8531. int returnValue = this.Adapter.Fill(dataTable);
  8532. return returnValue;
  8533. }
  8534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8536. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8537. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8538. public virtual digital_world_8DataSet1.Postavka_materialDataTable GetData() {
  8539. this.Adapter.SelectCommand = this.CommandCollection[0];
  8540. digital_world_8DataSet1.Postavka_materialDataTable dataTable = new digital_world_8DataSet1.Postavka_materialDataTable();
  8541. this.Adapter.Fill(dataTable);
  8542. return dataTable;
  8543. }
  8544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8546. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8547. public virtual int Update(digital_world_8DataSet1.Postavka_materialDataTable dataTable) {
  8548. return this.Adapter.Update(dataTable);
  8549. }
  8550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8552. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8553. public virtual int Update(digital_world_8DataSet1 dataSet) {
  8554. return this.Adapter.Update(dataSet, "Postavka_material");
  8555. }
  8556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8558. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8559. public virtual int Update(global::System.Data.DataRow dataRow) {
  8560. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8561. dataRow});
  8562. }
  8563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8565. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8566. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8567. return this.Adapter.Update(dataRows);
  8568. }
  8569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8571. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8572. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8573. public virtual int Delete(int Original_id, global::System.Nullable<int> Original_id_производителя, global::System.Nullable<global::System.DateTime> Original_Дата, string Original_Название, string Original_Тип_материала, global::System.Nullable<int> Original_Количество) {
  8574. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  8575. if ((Original_id_производителя.HasValue == true)) {
  8576. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8577. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_id_производителя.Value));
  8578. }
  8579. else {
  8580. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8581. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8582. }
  8583. if ((Original_Дата.HasValue == true)) {
  8584. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8585. this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_Дата.Value));
  8586. }
  8587. else {
  8588. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8589. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8590. }
  8591. if ((Original_Название == null)) {
  8592. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  8593. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  8594. }
  8595. else {
  8596. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  8597. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Название));
  8598. }
  8599. if ((Original_Тип_материала == null)) {
  8600. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  8601. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  8602. }
  8603. else {
  8604. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  8605. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Тип_материала));
  8606. }
  8607. if ((Original_Количество.HasValue == true)) {
  8608. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  8609. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_Количество.Value));
  8610. }
  8611. else {
  8612. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  8613. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  8614. }
  8615. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8616. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8617. != global::System.Data.ConnectionState.Open)) {
  8618. this.Adapter.DeleteCommand.Connection.Open();
  8619. }
  8620. try {
  8621. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8622. return returnValue;
  8623. }
  8624. finally {
  8625. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8626. this.Adapter.DeleteCommand.Connection.Close();
  8627. }
  8628. }
  8629. }
  8630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8632. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8633. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8634. public virtual int Insert(global::System.Nullable<int> id_производителя, global::System.Nullable<global::System.DateTime> Дата, string Название, string Тип_материала, global::System.Nullable<int> Количество) {
  8635. if ((id_производителя.HasValue == true)) {
  8636. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id_производителя.Value));
  8637. }
  8638. else {
  8639. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8640. }
  8641. if ((Дата.HasValue == true)) {
  8642. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Дата.Value));
  8643. }
  8644. else {
  8645. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8646. }
  8647. if ((Название == null)) {
  8648. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8649. }
  8650. else {
  8651. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Название));
  8652. }
  8653. if ((Тип_материала == null)) {
  8654. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8655. }
  8656. else {
  8657. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Тип_материала));
  8658. }
  8659. if ((Количество.HasValue == true)) {
  8660. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Количество.Value));
  8661. }
  8662. else {
  8663. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  8664. }
  8665. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8666. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8667. != global::System.Data.ConnectionState.Open)) {
  8668. this.Adapter.InsertCommand.Connection.Open();
  8669. }
  8670. try {
  8671. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8672. return returnValue;
  8673. }
  8674. finally {
  8675. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8676. this.Adapter.InsertCommand.Connection.Close();
  8677. }
  8678. }
  8679. }
  8680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8682. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8683. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8684. public virtual int Update(global::System.Nullable<int> id_производителя, global::System.Nullable<global::System.DateTime> Дата, string Название, string Тип_материала, global::System.Nullable<int> Количество, int Original_id, global::System.Nullable<int> Original_id_производителя, global::System.Nullable<global::System.DateTime> Original_Дата, string Original_Название, string Original_Тип_материала, global::System.Nullable<int> Original_Количество, int id) {
  8685. if ((id_производителя.HasValue == true)) {
  8686. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(id_производителя.Value));
  8687. }
  8688. else {
  8689. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8690. }
  8691. if ((Дата.HasValue == true)) {
  8692. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(Дата.Value));
  8693. }
  8694. else {
  8695. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8696. }
  8697. if ((Название == null)) {
  8698. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8699. }
  8700. else {
  8701. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Название));
  8702. }
  8703. if ((Тип_материала == null)) {
  8704. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8705. }
  8706. else {
  8707. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Тип_материала));
  8708. }
  8709. if ((Количество.HasValue == true)) {
  8710. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Количество.Value));
  8711. }
  8712. else {
  8713. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  8714. }
  8715. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_id));
  8716. if ((Original_id_производителя.HasValue == true)) {
  8717. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  8718. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_id_производителя.Value));
  8719. }
  8720. else {
  8721. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  8722. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  8723. }
  8724. if ((Original_Дата.HasValue == true)) {
  8725. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  8726. this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(Original_Дата.Value));
  8727. }
  8728. else {
  8729. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  8730. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  8731. }
  8732. if ((Original_Название == null)) {
  8733. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  8734. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  8735. }
  8736. else {
  8737. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  8738. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Название));
  8739. }
  8740. if ((Original_Тип_материала == null)) {
  8741. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  8742. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  8743. }
  8744. else {
  8745. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  8746. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Тип_материала));
  8747. }
  8748. if ((Original_Количество.HasValue == true)) {
  8749. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  8750. this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_Количество.Value));
  8751. }
  8752. else {
  8753. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  8754. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  8755. }
  8756. this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(id));
  8757. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8758. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8759. != global::System.Data.ConnectionState.Open)) {
  8760. this.Adapter.UpdateCommand.Connection.Open();
  8761. }
  8762. try {
  8763. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8764. return returnValue;
  8765. }
  8766. finally {
  8767. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8768. this.Adapter.UpdateCommand.Connection.Close();
  8769. }
  8770. }
  8771. }
  8772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8774. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8775. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8776. public virtual int Update(global::System.Nullable<int> id_производителя, global::System.Nullable<global::System.DateTime> Дата, string Название, string Тип_материала, global::System.Nullable<int> Количество, int Original_id, global::System.Nullable<int> Original_id_производителя, global::System.Nullable<global::System.DateTime> Original_Дата, string Original_Название, string Original_Тип_материала, global::System.Nullable<int> Original_Количество) {
  8777. return this.Update(id_производителя, Дата, Название, Тип_материала, Количество, Original_id, Original_id_производителя, Original_Дата, Original_Название, Original_Тип_материала, Original_Количество, Original_id);
  8778. }
  8779. }
  8780. /// <summary>
  8781. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  8782. ///</summary>
  8783. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8784. [global::System.ComponentModel.ToolboxItem(true)]
  8785. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  8786. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8787. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  8788. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  8789. private UpdateOrderOption _updateOrder;
  8790. private ComponentsTableAdapter _componentsTableAdapter;
  8791. private computer_assemblyTableAdapter _computer_assemblyTableAdapter;
  8792. private OrderTableAdapter _orderTableAdapter;
  8793. private order_by_clientsTableAdapter _order_by_clientsTableAdapter;
  8794. private Order_statusTableAdapter _order_statusTableAdapter;
  8795. private providerTableAdapter _providerTableAdapter;
  8796. private RoleTableAdapter _roleTableAdapter;
  8797. private unit_of_measurementTableAdapter _unit_of_measurementTableAdapter;
  8798. private UsersTableAdapter _usersTableAdapter;
  8799. private Postavka_materialTableAdapter _postavka_materialTableAdapter;
  8800. private bool _backupDataSetBeforeUpdate;
  8801. private global::System.Data.IDbConnection _connection;
  8802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8804. public UpdateOrderOption UpdateOrder {
  8805. get {
  8806. return this._updateOrder;
  8807. }
  8808. set {
  8809. this._updateOrder = value;
  8810. }
  8811. }
  8812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8814. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8815. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8816. "a", "System.Drawing.Design.UITypeEditor")]
  8817. public ComponentsTableAdapter ComponentsTableAdapter {
  8818. get {
  8819. return this._componentsTableAdapter;
  8820. }
  8821. set {
  8822. this._componentsTableAdapter = value;
  8823. }
  8824. }
  8825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8827. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8828. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8829. "a", "System.Drawing.Design.UITypeEditor")]
  8830. public computer_assemblyTableAdapter computer_assemblyTableAdapter {
  8831. get {
  8832. return this._computer_assemblyTableAdapter;
  8833. }
  8834. set {
  8835. this._computer_assemblyTableAdapter = value;
  8836. }
  8837. }
  8838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8840. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8841. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8842. "a", "System.Drawing.Design.UITypeEditor")]
  8843. public OrderTableAdapter OrderTableAdapter {
  8844. get {
  8845. return this._orderTableAdapter;
  8846. }
  8847. set {
  8848. this._orderTableAdapter = value;
  8849. }
  8850. }
  8851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8853. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8854. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8855. "a", "System.Drawing.Design.UITypeEditor")]
  8856. public order_by_clientsTableAdapter order_by_clientsTableAdapter {
  8857. get {
  8858. return this._order_by_clientsTableAdapter;
  8859. }
  8860. set {
  8861. this._order_by_clientsTableAdapter = value;
  8862. }
  8863. }
  8864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8866. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8867. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8868. "a", "System.Drawing.Design.UITypeEditor")]
  8869. public Order_statusTableAdapter Order_statusTableAdapter {
  8870. get {
  8871. return this._order_statusTableAdapter;
  8872. }
  8873. set {
  8874. this._order_statusTableAdapter = value;
  8875. }
  8876. }
  8877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8879. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8880. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8881. "a", "System.Drawing.Design.UITypeEditor")]
  8882. public providerTableAdapter providerTableAdapter {
  8883. get {
  8884. return this._providerTableAdapter;
  8885. }
  8886. set {
  8887. this._providerTableAdapter = value;
  8888. }
  8889. }
  8890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8892. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8893. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8894. "a", "System.Drawing.Design.UITypeEditor")]
  8895. public RoleTableAdapter RoleTableAdapter {
  8896. get {
  8897. return this._roleTableAdapter;
  8898. }
  8899. set {
  8900. this._roleTableAdapter = value;
  8901. }
  8902. }
  8903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8905. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8906. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8907. "a", "System.Drawing.Design.UITypeEditor")]
  8908. public unit_of_measurementTableAdapter unit_of_measurementTableAdapter {
  8909. get {
  8910. return this._unit_of_measurementTableAdapter;
  8911. }
  8912. set {
  8913. this._unit_of_measurementTableAdapter = value;
  8914. }
  8915. }
  8916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8918. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8919. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8920. "a", "System.Drawing.Design.UITypeEditor")]
  8921. public UsersTableAdapter UsersTableAdapter {
  8922. get {
  8923. return this._usersTableAdapter;
  8924. }
  8925. set {
  8926. this._usersTableAdapter = value;
  8927. }
  8928. }
  8929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8931. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8932. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8933. "a", "System.Drawing.Design.UITypeEditor")]
  8934. public Postavka_materialTableAdapter Postavka_materialTableAdapter {
  8935. get {
  8936. return this._postavka_materialTableAdapter;
  8937. }
  8938. set {
  8939. this._postavka_materialTableAdapter = value;
  8940. }
  8941. }
  8942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8944. public bool BackupDataSetBeforeUpdate {
  8945. get {
  8946. return this._backupDataSetBeforeUpdate;
  8947. }
  8948. set {
  8949. this._backupDataSetBeforeUpdate = value;
  8950. }
  8951. }
  8952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8954. [global::System.ComponentModel.Browsable(false)]
  8955. public global::System.Data.IDbConnection Connection {
  8956. get {
  8957. if ((this._connection != null)) {
  8958. return this._connection;
  8959. }
  8960. if (((this._componentsTableAdapter != null)
  8961. && (this._componentsTableAdapter.Connection != null))) {
  8962. return this._componentsTableAdapter.Connection;
  8963. }
  8964. if (((this._computer_assemblyTableAdapter != null)
  8965. && (this._computer_assemblyTableAdapter.Connection != null))) {
  8966. return this._computer_assemblyTableAdapter.Connection;
  8967. }
  8968. if (((this._orderTableAdapter != null)
  8969. && (this._orderTableAdapter.Connection != null))) {
  8970. return this._orderTableAdapter.Connection;
  8971. }
  8972. if (((this._order_by_clientsTableAdapter != null)
  8973. && (this._order_by_clientsTableAdapter.Connection != null))) {
  8974. return this._order_by_clientsTableAdapter.Connection;
  8975. }
  8976. if (((this._order_statusTableAdapter != null)
  8977. && (this._order_statusTableAdapter.Connection != null))) {
  8978. return this._order_statusTableAdapter.Connection;
  8979. }
  8980. if (((this._providerTableAdapter != null)
  8981. && (this._providerTableAdapter.Connection != null))) {
  8982. return this._providerTableAdapter.Connection;
  8983. }
  8984. if (((this._roleTableAdapter != null)
  8985. && (this._roleTableAdapter.Connection != null))) {
  8986. return this._roleTableAdapter.Connection;
  8987. }
  8988. if (((this._unit_of_measurementTableAdapter != null)
  8989. && (this._unit_of_measurementTableAdapter.Connection != null))) {
  8990. return this._unit_of_measurementTableAdapter.Connection;
  8991. }
  8992. if (((this._usersTableAdapter != null)
  8993. && (this._usersTableAdapter.Connection != null))) {
  8994. return this._usersTableAdapter.Connection;
  8995. }
  8996. if (((this._postavka_materialTableAdapter != null)
  8997. && (this._postavka_materialTableAdapter.Connection != null))) {
  8998. return this._postavka_materialTableAdapter.Connection;
  8999. }
  9000. return null;
  9001. }
  9002. set {
  9003. this._connection = value;
  9004. }
  9005. }
  9006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9008. [global::System.ComponentModel.Browsable(false)]
  9009. public int TableAdapterInstanceCount {
  9010. get {
  9011. int count = 0;
  9012. if ((this._componentsTableAdapter != null)) {
  9013. count = (count + 1);
  9014. }
  9015. if ((this._computer_assemblyTableAdapter != null)) {
  9016. count = (count + 1);
  9017. }
  9018. if ((this._orderTableAdapter != null)) {
  9019. count = (count + 1);
  9020. }
  9021. if ((this._order_by_clientsTableAdapter != null)) {
  9022. count = (count + 1);
  9023. }
  9024. if ((this._order_statusTableAdapter != null)) {
  9025. count = (count + 1);
  9026. }
  9027. if ((this._providerTableAdapter != null)) {
  9028. count = (count + 1);
  9029. }
  9030. if ((this._roleTableAdapter != null)) {
  9031. count = (count + 1);
  9032. }
  9033. if ((this._unit_of_measurementTableAdapter != null)) {
  9034. count = (count + 1);
  9035. }
  9036. if ((this._usersTableAdapter != null)) {
  9037. count = (count + 1);
  9038. }
  9039. if ((this._postavka_materialTableAdapter != null)) {
  9040. count = (count + 1);
  9041. }
  9042. return count;
  9043. }
  9044. }
  9045. /// <summary>
  9046. ///Update rows in top-down order.
  9047. ///</summary>
  9048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9050. private int UpdateUpdatedRows(digital_world_8DataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  9051. int result = 0;
  9052. if ((this._computer_assemblyTableAdapter != null)) {
  9053. global::System.Data.DataRow[] updatedRows = dataSet.computer_assembly.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9054. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9055. if (((updatedRows != null)
  9056. && (0 < updatedRows.Length))) {
  9057. result = (result + this._computer_assemblyTableAdapter.Update(updatedRows));
  9058. allChangedRows.AddRange(updatedRows);
  9059. }
  9060. }
  9061. if ((this._order_by_clientsTableAdapter != null)) {
  9062. global::System.Data.DataRow[] updatedRows = dataSet.order_by_clients.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9063. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9064. if (((updatedRows != null)
  9065. && (0 < updatedRows.Length))) {
  9066. result = (result + this._order_by_clientsTableAdapter.Update(updatedRows));
  9067. allChangedRows.AddRange(updatedRows);
  9068. }
  9069. }
  9070. if ((this._order_statusTableAdapter != null)) {
  9071. global::System.Data.DataRow[] updatedRows = dataSet.Order_status.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9072. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9073. if (((updatedRows != null)
  9074. && (0 < updatedRows.Length))) {
  9075. result = (result + this._order_statusTableAdapter.Update(updatedRows));
  9076. allChangedRows.AddRange(updatedRows);
  9077. }
  9078. }
  9079. if ((this._providerTableAdapter != null)) {
  9080. global::System.Data.DataRow[] updatedRows = dataSet.provider.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9081. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9082. if (((updatedRows != null)
  9083. && (0 < updatedRows.Length))) {
  9084. result = (result + this._providerTableAdapter.Update(updatedRows));
  9085. allChangedRows.AddRange(updatedRows);
  9086. }
  9087. }
  9088. if ((this._roleTableAdapter != null)) {
  9089. global::System.Data.DataRow[] updatedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9090. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9091. if (((updatedRows != null)
  9092. && (0 < updatedRows.Length))) {
  9093. result = (result + this._roleTableAdapter.Update(updatedRows));
  9094. allChangedRows.AddRange(updatedRows);
  9095. }
  9096. }
  9097. if ((this._unit_of_measurementTableAdapter != null)) {
  9098. global::System.Data.DataRow[] updatedRows = dataSet.unit_of_measurement.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9099. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9100. if (((updatedRows != null)
  9101. && (0 < updatedRows.Length))) {
  9102. result = (result + this._unit_of_measurementTableAdapter.Update(updatedRows));
  9103. allChangedRows.AddRange(updatedRows);
  9104. }
  9105. }
  9106. if ((this._componentsTableAdapter != null)) {
  9107. global::System.Data.DataRow[] updatedRows = dataSet.Components.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9108. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9109. if (((updatedRows != null)
  9110. && (0 < updatedRows.Length))) {
  9111. result = (result + this._componentsTableAdapter.Update(updatedRows));
  9112. allChangedRows.AddRange(updatedRows);
  9113. }
  9114. }
  9115. if ((this._orderTableAdapter != null)) {
  9116. global::System.Data.DataRow[] updatedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9117. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9118. if (((updatedRows != null)
  9119. && (0 < updatedRows.Length))) {
  9120. result = (result + this._orderTableAdapter.Update(updatedRows));
  9121. allChangedRows.AddRange(updatedRows);
  9122. }
  9123. }
  9124. if ((this._usersTableAdapter != null)) {
  9125. global::System.Data.DataRow[] updatedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9126. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9127. if (((updatedRows != null)
  9128. && (0 < updatedRows.Length))) {
  9129. result = (result + this._usersTableAdapter.Update(updatedRows));
  9130. allChangedRows.AddRange(updatedRows);
  9131. }
  9132. }
  9133. if ((this._postavka_materialTableAdapter != null)) {
  9134. global::System.Data.DataRow[] updatedRows = dataSet.Postavka_material.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9135. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9136. if (((updatedRows != null)
  9137. && (0 < updatedRows.Length))) {
  9138. result = (result + this._postavka_materialTableAdapter.Update(updatedRows));
  9139. allChangedRows.AddRange(updatedRows);
  9140. }
  9141. }
  9142. return result;
  9143. }
  9144. /// <summary>
  9145. ///Insert rows in top-down order.
  9146. ///</summary>
  9147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9149. private int UpdateInsertedRows(digital_world_8DataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  9150. int result = 0;
  9151. if ((this._computer_assemblyTableAdapter != null)) {
  9152. global::System.Data.DataRow[] addedRows = dataSet.computer_assembly.Select(null, null, global::System.Data.DataViewRowState.Added);
  9153. if (((addedRows != null)
  9154. && (0 < addedRows.Length))) {
  9155. result = (result + this._computer_assemblyTableAdapter.Update(addedRows));
  9156. allAddedRows.AddRange(addedRows);
  9157. }
  9158. }
  9159. if ((this._order_by_clientsTableAdapter != null)) {
  9160. global::System.Data.DataRow[] addedRows = dataSet.order_by_clients.Select(null, null, global::System.Data.DataViewRowState.Added);
  9161. if (((addedRows != null)
  9162. && (0 < addedRows.Length))) {
  9163. result = (result + this._order_by_clientsTableAdapter.Update(addedRows));
  9164. allAddedRows.AddRange(addedRows);
  9165. }
  9166. }
  9167. if ((this._order_statusTableAdapter != null)) {
  9168. global::System.Data.DataRow[] addedRows = dataSet.Order_status.Select(null, null, global::System.Data.DataViewRowState.Added);
  9169. if (((addedRows != null)
  9170. && (0 < addedRows.Length))) {
  9171. result = (result + this._order_statusTableAdapter.Update(addedRows));
  9172. allAddedRows.AddRange(addedRows);
  9173. }
  9174. }
  9175. if ((this._providerTableAdapter != null)) {
  9176. global::System.Data.DataRow[] addedRows = dataSet.provider.Select(null, null, global::System.Data.DataViewRowState.Added);
  9177. if (((addedRows != null)
  9178. && (0 < addedRows.Length))) {
  9179. result = (result + this._providerTableAdapter.Update(addedRows));
  9180. allAddedRows.AddRange(addedRows);
  9181. }
  9182. }
  9183. if ((this._roleTableAdapter != null)) {
  9184. global::System.Data.DataRow[] addedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Added);
  9185. if (((addedRows != null)
  9186. && (0 < addedRows.Length))) {
  9187. result = (result + this._roleTableAdapter.Update(addedRows));
  9188. allAddedRows.AddRange(addedRows);
  9189. }
  9190. }
  9191. if ((this._unit_of_measurementTableAdapter != null)) {
  9192. global::System.Data.DataRow[] addedRows = dataSet.unit_of_measurement.Select(null, null, global::System.Data.DataViewRowState.Added);
  9193. if (((addedRows != null)
  9194. && (0 < addedRows.Length))) {
  9195. result = (result + this._unit_of_measurementTableAdapter.Update(addedRows));
  9196. allAddedRows.AddRange(addedRows);
  9197. }
  9198. }
  9199. if ((this._componentsTableAdapter != null)) {
  9200. global::System.Data.DataRow[] addedRows = dataSet.Components.Select(null, null, global::System.Data.DataViewRowState.Added);
  9201. if (((addedRows != null)
  9202. && (0 < addedRows.Length))) {
  9203. result = (result + this._componentsTableAdapter.Update(addedRows));
  9204. allAddedRows.AddRange(addedRows);
  9205. }
  9206. }
  9207. if ((this._orderTableAdapter != null)) {
  9208. global::System.Data.DataRow[] addedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.Added);
  9209. if (((addedRows != null)
  9210. && (0 < addedRows.Length))) {
  9211. result = (result + this._orderTableAdapter.Update(addedRows));
  9212. allAddedRows.AddRange(addedRows);
  9213. }
  9214. }
  9215. if ((this._usersTableAdapter != null)) {
  9216. global::System.Data.DataRow[] addedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Added);
  9217. if (((addedRows != null)
  9218. && (0 < addedRows.Length))) {
  9219. result = (result + this._usersTableAdapter.Update(addedRows));
  9220. allAddedRows.AddRange(addedRows);
  9221. }
  9222. }
  9223. if ((this._postavka_materialTableAdapter != null)) {
  9224. global::System.Data.DataRow[] addedRows = dataSet.Postavka_material.Select(null, null, global::System.Data.DataViewRowState.Added);
  9225. if (((addedRows != null)
  9226. && (0 < addedRows.Length))) {
  9227. result = (result + this._postavka_materialTableAdapter.Update(addedRows));
  9228. allAddedRows.AddRange(addedRows);
  9229. }
  9230. }
  9231. return result;
  9232. }
  9233. /// <summary>
  9234. ///Delete rows in bottom-up order.
  9235. ///</summary>
  9236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9238. private int UpdateDeletedRows(digital_world_8DataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  9239. int result = 0;
  9240. if ((this._postavka_materialTableAdapter != null)) {
  9241. global::System.Data.DataRow[] deletedRows = dataSet.Postavka_material.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9242. if (((deletedRows != null)
  9243. && (0 < deletedRows.Length))) {
  9244. result = (result + this._postavka_materialTableAdapter.Update(deletedRows));
  9245. allChangedRows.AddRange(deletedRows);
  9246. }
  9247. }
  9248. if ((this._usersTableAdapter != null)) {
  9249. global::System.Data.DataRow[] deletedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9250. if (((deletedRows != null)
  9251. && (0 < deletedRows.Length))) {
  9252. result = (result + this._usersTableAdapter.Update(deletedRows));
  9253. allChangedRows.AddRange(deletedRows);
  9254. }
  9255. }
  9256. if ((this._orderTableAdapter != null)) {
  9257. global::System.Data.DataRow[] deletedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9258. if (((deletedRows != null)
  9259. && (0 < deletedRows.Length))) {
  9260. result = (result + this._orderTableAdapter.Update(deletedRows));
  9261. allChangedRows.AddRange(deletedRows);
  9262. }
  9263. }
  9264. if ((this._componentsTableAdapter != null)) {
  9265. global::System.Data.DataRow[] deletedRows = dataSet.Components.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9266. if (((deletedRows != null)
  9267. && (0 < deletedRows.Length))) {
  9268. result = (result + this._componentsTableAdapter.Update(deletedRows));
  9269. allChangedRows.AddRange(deletedRows);
  9270. }
  9271. }
  9272. if ((this._unit_of_measurementTableAdapter != null)) {
  9273. global::System.Data.DataRow[] deletedRows = dataSet.unit_of_measurement.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9274. if (((deletedRows != null)
  9275. && (0 < deletedRows.Length))) {
  9276. result = (result + this._unit_of_measurementTableAdapter.Update(deletedRows));
  9277. allChangedRows.AddRange(deletedRows);
  9278. }
  9279. }
  9280. if ((this._roleTableAdapter != null)) {
  9281. global::System.Data.DataRow[] deletedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9282. if (((deletedRows != null)
  9283. && (0 < deletedRows.Length))) {
  9284. result = (result + this._roleTableAdapter.Update(deletedRows));
  9285. allChangedRows.AddRange(deletedRows);
  9286. }
  9287. }
  9288. if ((this._providerTableAdapter != null)) {
  9289. global::System.Data.DataRow[] deletedRows = dataSet.provider.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9290. if (((deletedRows != null)
  9291. && (0 < deletedRows.Length))) {
  9292. result = (result + this._providerTableAdapter.Update(deletedRows));
  9293. allChangedRows.AddRange(deletedRows);
  9294. }
  9295. }
  9296. if ((this._order_statusTableAdapter != null)) {
  9297. global::System.Data.DataRow[] deletedRows = dataSet.Order_status.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9298. if (((deletedRows != null)
  9299. && (0 < deletedRows.Length))) {
  9300. result = (result + this._order_statusTableAdapter.Update(deletedRows));
  9301. allChangedRows.AddRange(deletedRows);
  9302. }
  9303. }
  9304. if ((this._order_by_clientsTableAdapter != null)) {
  9305. global::System.Data.DataRow[] deletedRows = dataSet.order_by_clients.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9306. if (((deletedRows != null)
  9307. && (0 < deletedRows.Length))) {
  9308. result = (result + this._order_by_clientsTableAdapter.Update(deletedRows));
  9309. allChangedRows.AddRange(deletedRows);
  9310. }
  9311. }
  9312. if ((this._computer_assemblyTableAdapter != null)) {
  9313. global::System.Data.DataRow[] deletedRows = dataSet.computer_assembly.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9314. if (((deletedRows != null)
  9315. && (0 < deletedRows.Length))) {
  9316. result = (result + this._computer_assemblyTableAdapter.Update(deletedRows));
  9317. allChangedRows.AddRange(deletedRows);
  9318. }
  9319. }
  9320. return result;
  9321. }
  9322. /// <summary>
  9323. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  9324. ///</summary>
  9325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9327. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  9328. if (((updatedRows == null)
  9329. || (updatedRows.Length < 1))) {
  9330. return updatedRows;
  9331. }
  9332. if (((allAddedRows == null)
  9333. || (allAddedRows.Count < 1))) {
  9334. return updatedRows;
  9335. }
  9336. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  9337. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  9338. global::System.Data.DataRow row = updatedRows[i];
  9339. if ((allAddedRows.Contains(row) == false)) {
  9340. realUpdatedRows.Add(row);
  9341. }
  9342. }
  9343. return realUpdatedRows.ToArray();
  9344. }
  9345. /// <summary>
  9346. ///Update all changes to the dataset.
  9347. ///</summary>
  9348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9350. public virtual int UpdateAll(digital_world_8DataSet1 dataSet) {
  9351. if ((dataSet == null)) {
  9352. throw new global::System.ArgumentNullException("dataSet");
  9353. }
  9354. if ((dataSet.HasChanges() == false)) {
  9355. return 0;
  9356. }
  9357. if (((this._componentsTableAdapter != null)
  9358. && (this.MatchTableAdapterConnection(this._componentsTableAdapter.Connection) == false))) {
  9359. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9360. "r, должны использовать одинаковую строку подключения.");
  9361. }
  9362. if (((this._computer_assemblyTableAdapter != null)
  9363. && (this.MatchTableAdapterConnection(this._computer_assemblyTableAdapter.Connection) == false))) {
  9364. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9365. "r, должны использовать одинаковую строку подключения.");
  9366. }
  9367. if (((this._orderTableAdapter != null)
  9368. && (this.MatchTableAdapterConnection(this._orderTableAdapter.Connection) == false))) {
  9369. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9370. "r, должны использовать одинаковую строку подключения.");
  9371. }
  9372. if (((this._order_by_clientsTableAdapter != null)
  9373. && (this.MatchTableAdapterConnection(this._order_by_clientsTableAdapter.Connection) == false))) {
  9374. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9375. "r, должны использовать одинаковую строку подключения.");
  9376. }
  9377. if (((this._order_statusTableAdapter != null)
  9378. && (this.MatchTableAdapterConnection(this._order_statusTableAdapter.Connection) == false))) {
  9379. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9380. "r, должны использовать одинаковую строку подключения.");
  9381. }
  9382. if (((this._providerTableAdapter != null)
  9383. && (this.MatchTableAdapterConnection(this._providerTableAdapter.Connection) == false))) {
  9384. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9385. "r, должны использовать одинаковую строку подключения.");
  9386. }
  9387. if (((this._roleTableAdapter != null)
  9388. && (this.MatchTableAdapterConnection(this._roleTableAdapter.Connection) == false))) {
  9389. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9390. "r, должны использовать одинаковую строку подключения.");
  9391. }
  9392. if (((this._unit_of_measurementTableAdapter != null)
  9393. && (this.MatchTableAdapterConnection(this._unit_of_measurementTableAdapter.Connection) == false))) {
  9394. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9395. "r, должны использовать одинаковую строку подключения.");
  9396. }
  9397. if (((this._usersTableAdapter != null)
  9398. && (this.MatchTableAdapterConnection(this._usersTableAdapter.Connection) == false))) {
  9399. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9400. "r, должны использовать одинаковую строку подключения.");
  9401. }
  9402. if (((this._postavka_materialTableAdapter != null)
  9403. && (this.MatchTableAdapterConnection(this._postavka_materialTableAdapter.Connection) == false))) {
  9404. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9405. "r, должны использовать одинаковую строку подключения.");
  9406. }
  9407. global::System.Data.IDbConnection workConnection = this.Connection;
  9408. if ((workConnection == null)) {
  9409. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  9410. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  9411. }
  9412. bool workConnOpened = false;
  9413. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  9414. == global::System.Data.ConnectionState.Broken)) {
  9415. workConnection.Close();
  9416. }
  9417. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  9418. workConnection.Open();
  9419. workConnOpened = true;
  9420. }
  9421. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  9422. if ((workTransaction == null)) {
  9423. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  9424. "и или текущее состояние не позволяет начать транзакцию.");
  9425. }
  9426. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  9427. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  9428. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  9429. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  9430. int result = 0;
  9431. global::System.Data.DataSet backupDataSet = null;
  9432. if (this.BackupDataSetBeforeUpdate) {
  9433. backupDataSet = new global::System.Data.DataSet();
  9434. backupDataSet.Merge(dataSet);
  9435. }
  9436. try {
  9437. // ---- Prepare for update -----------
  9438. //
  9439. if ((this._componentsTableAdapter != null)) {
  9440. revertConnections.Add(this._componentsTableAdapter, this._componentsTableAdapter.Connection);
  9441. this._componentsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9442. this._componentsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9443. if (this._componentsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9444. this._componentsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9445. adaptersWithAcceptChangesDuringUpdate.Add(this._componentsTableAdapter.Adapter);
  9446. }
  9447. }
  9448. if ((this._computer_assemblyTableAdapter != null)) {
  9449. revertConnections.Add(this._computer_assemblyTableAdapter, this._computer_assemblyTableAdapter.Connection);
  9450. this._computer_assemblyTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9451. this._computer_assemblyTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9452. if (this._computer_assemblyTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9453. this._computer_assemblyTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9454. adaptersWithAcceptChangesDuringUpdate.Add(this._computer_assemblyTableAdapter.Adapter);
  9455. }
  9456. }
  9457. if ((this._orderTableAdapter != null)) {
  9458. revertConnections.Add(this._orderTableAdapter, this._orderTableAdapter.Connection);
  9459. this._orderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9460. this._orderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9461. if (this._orderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9462. this._orderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9463. adaptersWithAcceptChangesDuringUpdate.Add(this._orderTableAdapter.Adapter);
  9464. }
  9465. }
  9466. if ((this._order_by_clientsTableAdapter != null)) {
  9467. revertConnections.Add(this._order_by_clientsTableAdapter, this._order_by_clientsTableAdapter.Connection);
  9468. this._order_by_clientsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9469. this._order_by_clientsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9470. if (this._order_by_clientsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9471. this._order_by_clientsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9472. adaptersWithAcceptChangesDuringUpdate.Add(this._order_by_clientsTableAdapter.Adapter);
  9473. }
  9474. }
  9475. if ((this._order_statusTableAdapter != null)) {
  9476. revertConnections.Add(this._order_statusTableAdapter, this._order_statusTableAdapter.Connection);
  9477. this._order_statusTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9478. this._order_statusTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9479. if (this._order_statusTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9480. this._order_statusTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9481. adaptersWithAcceptChangesDuringUpdate.Add(this._order_statusTableAdapter.Adapter);
  9482. }
  9483. }
  9484. if ((this._providerTableAdapter != null)) {
  9485. revertConnections.Add(this._providerTableAdapter, this._providerTableAdapter.Connection);
  9486. this._providerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9487. this._providerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9488. if (this._providerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9489. this._providerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9490. adaptersWithAcceptChangesDuringUpdate.Add(this._providerTableAdapter.Adapter);
  9491. }
  9492. }
  9493. if ((this._roleTableAdapter != null)) {
  9494. revertConnections.Add(this._roleTableAdapter, this._roleTableAdapter.Connection);
  9495. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9496. this._roleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9497. if (this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9498. this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9499. adaptersWithAcceptChangesDuringUpdate.Add(this._roleTableAdapter.Adapter);
  9500. }
  9501. }
  9502. if ((this._unit_of_measurementTableAdapter != null)) {
  9503. revertConnections.Add(this._unit_of_measurementTableAdapter, this._unit_of_measurementTableAdapter.Connection);
  9504. this._unit_of_measurementTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9505. this._unit_of_measurementTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9506. if (this._unit_of_measurementTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9507. this._unit_of_measurementTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9508. adaptersWithAcceptChangesDuringUpdate.Add(this._unit_of_measurementTableAdapter.Adapter);
  9509. }
  9510. }
  9511. if ((this._usersTableAdapter != null)) {
  9512. revertConnections.Add(this._usersTableAdapter, this._usersTableAdapter.Connection);
  9513. this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9514. this._usersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9515. if (this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9516. this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9517. adaptersWithAcceptChangesDuringUpdate.Add(this._usersTableAdapter.Adapter);
  9518. }
  9519. }
  9520. if ((this._postavka_materialTableAdapter != null)) {
  9521. revertConnections.Add(this._postavka_materialTableAdapter, this._postavka_materialTableAdapter.Connection);
  9522. this._postavka_materialTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9523. this._postavka_materialTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9524. if (this._postavka_materialTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9525. this._postavka_materialTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9526. adaptersWithAcceptChangesDuringUpdate.Add(this._postavka_materialTableAdapter.Adapter);
  9527. }
  9528. }
  9529. //
  9530. //---- Perform updates -----------
  9531. //
  9532. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  9533. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  9534. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  9535. }
  9536. else {
  9537. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  9538. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  9539. }
  9540. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  9541. //
  9542. //---- Commit updates -----------
  9543. //
  9544. workTransaction.Commit();
  9545. if ((0 < allAddedRows.Count)) {
  9546. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  9547. allAddedRows.CopyTo(rows);
  9548. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  9549. global::System.Data.DataRow row = rows[i];
  9550. row.AcceptChanges();
  9551. }
  9552. }
  9553. if ((0 < allChangedRows.Count)) {
  9554. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  9555. allChangedRows.CopyTo(rows);
  9556. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  9557. global::System.Data.DataRow row = rows[i];
  9558. row.AcceptChanges();
  9559. }
  9560. }
  9561. }
  9562. catch (global::System.Exception ex) {
  9563. workTransaction.Rollback();
  9564. // ---- Restore the dataset -----------
  9565. if (this.BackupDataSetBeforeUpdate) {
  9566. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  9567. dataSet.Clear();
  9568. dataSet.Merge(backupDataSet);
  9569. }
  9570. else {
  9571. if ((0 < allAddedRows.Count)) {
  9572. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  9573. allAddedRows.CopyTo(rows);
  9574. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  9575. global::System.Data.DataRow row = rows[i];
  9576. row.AcceptChanges();
  9577. row.SetAdded();
  9578. }
  9579. }
  9580. }
  9581. throw ex;
  9582. }
  9583. finally {
  9584. if (workConnOpened) {
  9585. workConnection.Close();
  9586. }
  9587. if ((this._componentsTableAdapter != null)) {
  9588. this._componentsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._componentsTableAdapter]));
  9589. this._componentsTableAdapter.Transaction = null;
  9590. }
  9591. if ((this._computer_assemblyTableAdapter != null)) {
  9592. this._computer_assemblyTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._computer_assemblyTableAdapter]));
  9593. this._computer_assemblyTableAdapter.Transaction = null;
  9594. }
  9595. if ((this._orderTableAdapter != null)) {
  9596. this._orderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._orderTableAdapter]));
  9597. this._orderTableAdapter.Transaction = null;
  9598. }
  9599. if ((this._order_by_clientsTableAdapter != null)) {
  9600. this._order_by_clientsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._order_by_clientsTableAdapter]));
  9601. this._order_by_clientsTableAdapter.Transaction = null;
  9602. }
  9603. if ((this._order_statusTableAdapter != null)) {
  9604. this._order_statusTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._order_statusTableAdapter]));
  9605. this._order_statusTableAdapter.Transaction = null;
  9606. }
  9607. if ((this._providerTableAdapter != null)) {
  9608. this._providerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._providerTableAdapter]));
  9609. this._providerTableAdapter.Transaction = null;
  9610. }
  9611. if ((this._roleTableAdapter != null)) {
  9612. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._roleTableAdapter]));
  9613. this._roleTableAdapter.Transaction = null;
  9614. }
  9615. if ((this._unit_of_measurementTableAdapter != null)) {
  9616. this._unit_of_measurementTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._unit_of_measurementTableAdapter]));
  9617. this._unit_of_measurementTableAdapter.Transaction = null;
  9618. }
  9619. if ((this._usersTableAdapter != null)) {
  9620. this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._usersTableAdapter]));
  9621. this._usersTableAdapter.Transaction = null;
  9622. }
  9623. if ((this._postavka_materialTableAdapter != null)) {
  9624. this._postavka_materialTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._postavka_materialTableAdapter]));
  9625. this._postavka_materialTableAdapter.Transaction = null;
  9626. }
  9627. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  9628. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  9629. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  9630. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  9631. global::System.Data.Common.DataAdapter adapter = adapters[i];
  9632. adapter.AcceptChangesDuringUpdate = true;
  9633. }
  9634. }
  9635. }
  9636. return result;
  9637. }
  9638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9640. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  9641. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  9642. }
  9643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9645. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  9646. if ((this._connection != null)) {
  9647. return true;
  9648. }
  9649. if (((this.Connection == null)
  9650. || (inputConnection == null))) {
  9651. return true;
  9652. }
  9653. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  9654. return true;
  9655. }
  9656. return false;
  9657. }
  9658. /// <summary>
  9659. ///Update Order Option
  9660. ///</summary>
  9661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9662. public enum UpdateOrderOption {
  9663. InsertUpdateDelete = 0,
  9664. UpdateInsertDelete = 1,
  9665. }
  9666. /// <summary>
  9667. ///Used to sort self-referenced table's rows
  9668. ///</summary>
  9669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9670. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  9671. private global::System.Data.DataRelation _relation;
  9672. private int _childFirst;
  9673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9675. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  9676. this._relation = relation;
  9677. if (childFirst) {
  9678. this._childFirst = -1;
  9679. }
  9680. else {
  9681. this._childFirst = 1;
  9682. }
  9683. }
  9684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9686. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  9687. global::System.Diagnostics.Debug.Assert((row != null));
  9688. global::System.Data.DataRow root = row;
  9689. distance = 0;
  9690. 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>();
  9691. traversedRows[row] = row;
  9692. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  9693. for (
  9694. ; ((parent != null)
  9695. && (traversedRows.ContainsKey(parent) == false));
  9696. ) {
  9697. distance = (distance + 1);
  9698. root = parent;
  9699. traversedRows[parent] = parent;
  9700. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  9701. }
  9702. if ((distance == 0)) {
  9703. traversedRows.Clear();
  9704. traversedRows[row] = row;
  9705. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  9706. for (
  9707. ; ((parent != null)
  9708. && (traversedRows.ContainsKey(parent) == false));
  9709. ) {
  9710. distance = (distance + 1);
  9711. root = parent;
  9712. traversedRows[parent] = parent;
  9713. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  9714. }
  9715. }
  9716. return root;
  9717. }
  9718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9720. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  9721. if (object.ReferenceEquals(row1, row2)) {
  9722. return 0;
  9723. }
  9724. if ((row1 == null)) {
  9725. return -1;
  9726. }
  9727. if ((row2 == null)) {
  9728. return 1;
  9729. }
  9730. int distance1 = 0;
  9731. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  9732. int distance2 = 0;
  9733. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  9734. if (object.ReferenceEquals(root1, root2)) {
  9735. return (this._childFirst * distance1.CompareTo(distance2));
  9736. }
  9737. else {
  9738. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  9739. && (root2.Table != null)));
  9740. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  9741. return -1;
  9742. }
  9743. else {
  9744. return 1;
  9745. }
  9746. }
  9747. }
  9748. }
  9749. }
  9750. }
  9751. #pragma warning restore 1591