digital_world_8DataSet.Designer.cs 780 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326
  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_8DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class digital_world_8DataSet : 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 receipt_of_goodsDataTable tablereceipt_of_goods;
  29. private RoleDataTable tableRole;
  30. private unit_of_measurementDataTable tableunit_of_measurement;
  31. private UsersDataTable tableUsers;
  32. private PostavkaDataTable tablePostavka;
  33. private ZakazDataTable tableZakaz;
  34. private global::System.Data.DataRelation relationFK_Components_unit_of_measurement;
  35. private global::System.Data.DataRelation relationFK_Order_computer_assembly;
  36. private global::System.Data.DataRelation relationFK_Order_order_by_clients;
  37. private global::System.Data.DataRelation relationFK_Order_Order_status;
  38. private global::System.Data.DataRelation relationFK_receipt_of_goods_Components;
  39. private global::System.Data.DataRelation relationFK_receipt_of_goods_provider;
  40. private global::System.Data.DataRelation relationFK_Users_Role;
  41. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  42. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  43. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  44. public digital_world_8DataSet() {
  45. this.BeginInit();
  46. this.InitClass();
  47. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  48. base.Tables.CollectionChanged += schemaChangedHandler;
  49. base.Relations.CollectionChanged += schemaChangedHandler;
  50. this.EndInit();
  51. }
  52. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  53. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  54. protected digital_world_8DataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  55. base(info, context, false) {
  56. if ((this.IsBinarySerialized(info, context) == true)) {
  57. this.InitVars(false);
  58. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  59. this.Tables.CollectionChanged += schemaChangedHandler1;
  60. this.Relations.CollectionChanged += schemaChangedHandler1;
  61. return;
  62. }
  63. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  64. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  65. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  66. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  67. if ((ds.Tables["Components"] != null)) {
  68. base.Tables.Add(new ComponentsDataTable(ds.Tables["Components"]));
  69. }
  70. if ((ds.Tables["computer_assembly"] != null)) {
  71. base.Tables.Add(new computer_assemblyDataTable(ds.Tables["computer_assembly"]));
  72. }
  73. if ((ds.Tables["Order"] != null)) {
  74. base.Tables.Add(new OrderDataTable(ds.Tables["Order"]));
  75. }
  76. if ((ds.Tables["order_by_clients"] != null)) {
  77. base.Tables.Add(new order_by_clientsDataTable(ds.Tables["order_by_clients"]));
  78. }
  79. if ((ds.Tables["Order_status"] != null)) {
  80. base.Tables.Add(new Order_statusDataTable(ds.Tables["Order_status"]));
  81. }
  82. if ((ds.Tables["provider"] != null)) {
  83. base.Tables.Add(new providerDataTable(ds.Tables["provider"]));
  84. }
  85. if ((ds.Tables["receipt_of_goods"] != null)) {
  86. base.Tables.Add(new receipt_of_goodsDataTable(ds.Tables["receipt_of_goods"]));
  87. }
  88. if ((ds.Tables["Role"] != null)) {
  89. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  90. }
  91. if ((ds.Tables["unit_of_measurement"] != null)) {
  92. base.Tables.Add(new unit_of_measurementDataTable(ds.Tables["unit_of_measurement"]));
  93. }
  94. if ((ds.Tables["Users"] != null)) {
  95. base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
  96. }
  97. if ((ds.Tables["Postavka"] != null)) {
  98. base.Tables.Add(new PostavkaDataTable(ds.Tables["Postavka"]));
  99. }
  100. if ((ds.Tables["Zakaz"] != null)) {
  101. base.Tables.Add(new ZakazDataTable(ds.Tables["Zakaz"]));
  102. }
  103. this.DataSetName = ds.DataSetName;
  104. this.Prefix = ds.Prefix;
  105. this.Namespace = ds.Namespace;
  106. this.Locale = ds.Locale;
  107. this.CaseSensitive = ds.CaseSensitive;
  108. this.EnforceConstraints = ds.EnforceConstraints;
  109. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  110. this.InitVars();
  111. }
  112. else {
  113. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  114. }
  115. this.GetSerializationData(info, context);
  116. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  117. base.Tables.CollectionChanged += schemaChangedHandler;
  118. this.Relations.CollectionChanged += schemaChangedHandler;
  119. }
  120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  122. [global::System.ComponentModel.Browsable(false)]
  123. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  124. public ComponentsDataTable Components {
  125. get {
  126. return this.tableComponents;
  127. }
  128. }
  129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  131. [global::System.ComponentModel.Browsable(false)]
  132. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  133. public computer_assemblyDataTable computer_assembly {
  134. get {
  135. return this.tablecomputer_assembly;
  136. }
  137. }
  138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  140. [global::System.ComponentModel.Browsable(false)]
  141. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  142. public OrderDataTable Order {
  143. get {
  144. return this.tableOrder;
  145. }
  146. }
  147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  149. [global::System.ComponentModel.Browsable(false)]
  150. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  151. public order_by_clientsDataTable order_by_clients {
  152. get {
  153. return this.tableorder_by_clients;
  154. }
  155. }
  156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  158. [global::System.ComponentModel.Browsable(false)]
  159. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  160. public Order_statusDataTable Order_status {
  161. get {
  162. return this.tableOrder_status;
  163. }
  164. }
  165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  167. [global::System.ComponentModel.Browsable(false)]
  168. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  169. public providerDataTable provider {
  170. get {
  171. return this.tableprovider;
  172. }
  173. }
  174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  176. [global::System.ComponentModel.Browsable(false)]
  177. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  178. public receipt_of_goodsDataTable receipt_of_goods {
  179. get {
  180. return this.tablereceipt_of_goods;
  181. }
  182. }
  183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  185. [global::System.ComponentModel.Browsable(false)]
  186. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  187. public RoleDataTable Role {
  188. get {
  189. return this.tableRole;
  190. }
  191. }
  192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  194. [global::System.ComponentModel.Browsable(false)]
  195. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  196. public unit_of_measurementDataTable unit_of_measurement {
  197. get {
  198. return this.tableunit_of_measurement;
  199. }
  200. }
  201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  203. [global::System.ComponentModel.Browsable(false)]
  204. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  205. public UsersDataTable Users {
  206. get {
  207. return this.tableUsers;
  208. }
  209. }
  210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  212. [global::System.ComponentModel.Browsable(false)]
  213. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  214. public PostavkaDataTable Postavka {
  215. get {
  216. return this.tablePostavka;
  217. }
  218. }
  219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  221. [global::System.ComponentModel.Browsable(false)]
  222. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  223. public ZakazDataTable Zakaz {
  224. get {
  225. return this.tableZakaz;
  226. }
  227. }
  228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  230. [global::System.ComponentModel.BrowsableAttribute(true)]
  231. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  232. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  233. get {
  234. return this._schemaSerializationMode;
  235. }
  236. set {
  237. this._schemaSerializationMode = value;
  238. }
  239. }
  240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  242. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  243. public new global::System.Data.DataTableCollection Tables {
  244. get {
  245. return base.Tables;
  246. }
  247. }
  248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  250. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  251. public new global::System.Data.DataRelationCollection Relations {
  252. get {
  253. return base.Relations;
  254. }
  255. }
  256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  258. protected override void InitializeDerivedDataSet() {
  259. this.BeginInit();
  260. this.InitClass();
  261. this.EndInit();
  262. }
  263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  265. public override global::System.Data.DataSet Clone() {
  266. digital_world_8DataSet cln = ((digital_world_8DataSet)(base.Clone()));
  267. cln.InitVars();
  268. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  269. return cln;
  270. }
  271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  273. protected override bool ShouldSerializeTables() {
  274. return false;
  275. }
  276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  278. protected override bool ShouldSerializeRelations() {
  279. return false;
  280. }
  281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  283. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  284. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  285. this.Reset();
  286. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  287. ds.ReadXml(reader);
  288. if ((ds.Tables["Components"] != null)) {
  289. base.Tables.Add(new ComponentsDataTable(ds.Tables["Components"]));
  290. }
  291. if ((ds.Tables["computer_assembly"] != null)) {
  292. base.Tables.Add(new computer_assemblyDataTable(ds.Tables["computer_assembly"]));
  293. }
  294. if ((ds.Tables["Order"] != null)) {
  295. base.Tables.Add(new OrderDataTable(ds.Tables["Order"]));
  296. }
  297. if ((ds.Tables["order_by_clients"] != null)) {
  298. base.Tables.Add(new order_by_clientsDataTable(ds.Tables["order_by_clients"]));
  299. }
  300. if ((ds.Tables["Order_status"] != null)) {
  301. base.Tables.Add(new Order_statusDataTable(ds.Tables["Order_status"]));
  302. }
  303. if ((ds.Tables["provider"] != null)) {
  304. base.Tables.Add(new providerDataTable(ds.Tables["provider"]));
  305. }
  306. if ((ds.Tables["receipt_of_goods"] != null)) {
  307. base.Tables.Add(new receipt_of_goodsDataTable(ds.Tables["receipt_of_goods"]));
  308. }
  309. if ((ds.Tables["Role"] != null)) {
  310. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  311. }
  312. if ((ds.Tables["unit_of_measurement"] != null)) {
  313. base.Tables.Add(new unit_of_measurementDataTable(ds.Tables["unit_of_measurement"]));
  314. }
  315. if ((ds.Tables["Users"] != null)) {
  316. base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
  317. }
  318. if ((ds.Tables["Postavka"] != null)) {
  319. base.Tables.Add(new PostavkaDataTable(ds.Tables["Postavka"]));
  320. }
  321. if ((ds.Tables["Zakaz"] != null)) {
  322. base.Tables.Add(new ZakazDataTable(ds.Tables["Zakaz"]));
  323. }
  324. this.DataSetName = ds.DataSetName;
  325. this.Prefix = ds.Prefix;
  326. this.Namespace = ds.Namespace;
  327. this.Locale = ds.Locale;
  328. this.CaseSensitive = ds.CaseSensitive;
  329. this.EnforceConstraints = ds.EnforceConstraints;
  330. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  331. this.InitVars();
  332. }
  333. else {
  334. this.ReadXml(reader);
  335. this.InitVars();
  336. }
  337. }
  338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  340. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  341. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  342. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  343. stream.Position = 0;
  344. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  345. }
  346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  348. internal void InitVars() {
  349. this.InitVars(true);
  350. }
  351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  353. internal void InitVars(bool initTable) {
  354. this.tableComponents = ((ComponentsDataTable)(base.Tables["Components"]));
  355. if ((initTable == true)) {
  356. if ((this.tableComponents != null)) {
  357. this.tableComponents.InitVars();
  358. }
  359. }
  360. this.tablecomputer_assembly = ((computer_assemblyDataTable)(base.Tables["computer_assembly"]));
  361. if ((initTable == true)) {
  362. if ((this.tablecomputer_assembly != null)) {
  363. this.tablecomputer_assembly.InitVars();
  364. }
  365. }
  366. this.tableOrder = ((OrderDataTable)(base.Tables["Order"]));
  367. if ((initTable == true)) {
  368. if ((this.tableOrder != null)) {
  369. this.tableOrder.InitVars();
  370. }
  371. }
  372. this.tableorder_by_clients = ((order_by_clientsDataTable)(base.Tables["order_by_clients"]));
  373. if ((initTable == true)) {
  374. if ((this.tableorder_by_clients != null)) {
  375. this.tableorder_by_clients.InitVars();
  376. }
  377. }
  378. this.tableOrder_status = ((Order_statusDataTable)(base.Tables["Order_status"]));
  379. if ((initTable == true)) {
  380. if ((this.tableOrder_status != null)) {
  381. this.tableOrder_status.InitVars();
  382. }
  383. }
  384. this.tableprovider = ((providerDataTable)(base.Tables["provider"]));
  385. if ((initTable == true)) {
  386. if ((this.tableprovider != null)) {
  387. this.tableprovider.InitVars();
  388. }
  389. }
  390. this.tablereceipt_of_goods = ((receipt_of_goodsDataTable)(base.Tables["receipt_of_goods"]));
  391. if ((initTable == true)) {
  392. if ((this.tablereceipt_of_goods != null)) {
  393. this.tablereceipt_of_goods.InitVars();
  394. }
  395. }
  396. this.tableRole = ((RoleDataTable)(base.Tables["Role"]));
  397. if ((initTable == true)) {
  398. if ((this.tableRole != null)) {
  399. this.tableRole.InitVars();
  400. }
  401. }
  402. this.tableunit_of_measurement = ((unit_of_measurementDataTable)(base.Tables["unit_of_measurement"]));
  403. if ((initTable == true)) {
  404. if ((this.tableunit_of_measurement != null)) {
  405. this.tableunit_of_measurement.InitVars();
  406. }
  407. }
  408. this.tableUsers = ((UsersDataTable)(base.Tables["Users"]));
  409. if ((initTable == true)) {
  410. if ((this.tableUsers != null)) {
  411. this.tableUsers.InitVars();
  412. }
  413. }
  414. this.tablePostavka = ((PostavkaDataTable)(base.Tables["Postavka"]));
  415. if ((initTable == true)) {
  416. if ((this.tablePostavka != null)) {
  417. this.tablePostavka.InitVars();
  418. }
  419. }
  420. this.tableZakaz = ((ZakazDataTable)(base.Tables["Zakaz"]));
  421. if ((initTable == true)) {
  422. if ((this.tableZakaz != null)) {
  423. this.tableZakaz.InitVars();
  424. }
  425. }
  426. this.relationFK_Components_unit_of_measurement = this.Relations["FK_Components_unit_of_measurement"];
  427. this.relationFK_Order_computer_assembly = this.Relations["FK_Order_computer_assembly"];
  428. this.relationFK_Order_order_by_clients = this.Relations["FK_Order_order_by_clients"];
  429. this.relationFK_Order_Order_status = this.Relations["FK_Order_Order_status"];
  430. this.relationFK_receipt_of_goods_Components = this.Relations["FK_receipt_of_goods_Components"];
  431. this.relationFK_receipt_of_goods_provider = this.Relations["FK_receipt_of_goods_provider"];
  432. this.relationFK_Users_Role = this.Relations["FK_Users_Role"];
  433. }
  434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  436. private void InitClass() {
  437. this.DataSetName = "digital_world_8DataSet";
  438. this.Prefix = "";
  439. this.Namespace = "http://tempuri.org/digital_world_8DataSet.xsd";
  440. this.EnforceConstraints = true;
  441. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  442. this.tableComponents = new ComponentsDataTable();
  443. base.Tables.Add(this.tableComponents);
  444. this.tablecomputer_assembly = new computer_assemblyDataTable();
  445. base.Tables.Add(this.tablecomputer_assembly);
  446. this.tableOrder = new OrderDataTable();
  447. base.Tables.Add(this.tableOrder);
  448. this.tableorder_by_clients = new order_by_clientsDataTable();
  449. base.Tables.Add(this.tableorder_by_clients);
  450. this.tableOrder_status = new Order_statusDataTable();
  451. base.Tables.Add(this.tableOrder_status);
  452. this.tableprovider = new providerDataTable();
  453. base.Tables.Add(this.tableprovider);
  454. this.tablereceipt_of_goods = new receipt_of_goodsDataTable();
  455. base.Tables.Add(this.tablereceipt_of_goods);
  456. this.tableRole = new RoleDataTable();
  457. base.Tables.Add(this.tableRole);
  458. this.tableunit_of_measurement = new unit_of_measurementDataTable();
  459. base.Tables.Add(this.tableunit_of_measurement);
  460. this.tableUsers = new UsersDataTable();
  461. base.Tables.Add(this.tableUsers);
  462. this.tablePostavka = new PostavkaDataTable();
  463. base.Tables.Add(this.tablePostavka);
  464. this.tableZakaz = new ZakazDataTable();
  465. base.Tables.Add(this.tableZakaz);
  466. this.relationFK_Components_unit_of_measurement = new global::System.Data.DataRelation("FK_Components_unit_of_measurement", new global::System.Data.DataColumn[] {
  467. this.tableunit_of_measurement.idColumn}, new global::System.Data.DataColumn[] {
  468. this.tableComponents.Id_единицы_измеренияColumn}, false);
  469. this.Relations.Add(this.relationFK_Components_unit_of_measurement);
  470. this.relationFK_Order_computer_assembly = new global::System.Data.DataRelation("FK_Order_computer_assembly", new global::System.Data.DataColumn[] {
  471. this.tablecomputer_assembly.id_сборкиColumn}, new global::System.Data.DataColumn[] {
  472. this.tableOrder.id_сборкиColumn}, false);
  473. this.Relations.Add(this.relationFK_Order_computer_assembly);
  474. this.relationFK_Order_order_by_clients = new global::System.Data.DataRelation("FK_Order_order_by_clients", new global::System.Data.DataColumn[] {
  475. this.tableorder_by_clients.Номер_заказаColumn}, new global::System.Data.DataColumn[] {
  476. this.tableOrder.Номер_заказаColumn}, false);
  477. this.Relations.Add(this.relationFK_Order_order_by_clients);
  478. this.relationFK_Order_Order_status = new global::System.Data.DataRelation("FK_Order_Order_status", new global::System.Data.DataColumn[] {
  479. this.tableOrder_status.idColumn}, new global::System.Data.DataColumn[] {
  480. this.tableOrder.id_статусаColumn}, false);
  481. this.Relations.Add(this.relationFK_Order_Order_status);
  482. this.relationFK_receipt_of_goods_Components = new global::System.Data.DataRelation("FK_receipt_of_goods_Components", new global::System.Data.DataColumn[] {
  483. this.tableComponents.idColumn}, new global::System.Data.DataColumn[] {
  484. this.tablereceipt_of_goods.Id_компонентовColumn}, false);
  485. this.Relations.Add(this.relationFK_receipt_of_goods_Components);
  486. this.relationFK_receipt_of_goods_provider = new global::System.Data.DataRelation("FK_receipt_of_goods_provider", new global::System.Data.DataColumn[] {
  487. this.tableprovider.idColumn}, new global::System.Data.DataColumn[] {
  488. this.tablereceipt_of_goods.id_поставщикаColumn}, false);
  489. this.Relations.Add(this.relationFK_receipt_of_goods_provider);
  490. this.relationFK_Users_Role = new global::System.Data.DataRelation("FK_Users_Role", new global::System.Data.DataColumn[] {
  491. this.tableRole.IdColumn}, new global::System.Data.DataColumn[] {
  492. this.tableUsers.RoleColumn}, false);
  493. this.Relations.Add(this.relationFK_Users_Role);
  494. }
  495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  497. private bool ShouldSerializeComponents() {
  498. return false;
  499. }
  500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  502. private bool ShouldSerializecomputer_assembly() {
  503. return false;
  504. }
  505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  507. private bool ShouldSerializeOrder() {
  508. return false;
  509. }
  510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  512. private bool ShouldSerializeorder_by_clients() {
  513. return false;
  514. }
  515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  517. private bool ShouldSerializeOrder_status() {
  518. return false;
  519. }
  520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  522. private bool ShouldSerializeprovider() {
  523. return false;
  524. }
  525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  527. private bool ShouldSerializereceipt_of_goods() {
  528. return false;
  529. }
  530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  532. private bool ShouldSerializeRole() {
  533. return false;
  534. }
  535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  537. private bool ShouldSerializeunit_of_measurement() {
  538. return false;
  539. }
  540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  542. private bool ShouldSerializeUsers() {
  543. return false;
  544. }
  545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  547. private bool ShouldSerializePostavka() {
  548. return false;
  549. }
  550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  552. private bool ShouldSerializeZakaz() {
  553. return false;
  554. }
  555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  557. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  558. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  559. this.InitVars();
  560. }
  561. }
  562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  564. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  565. digital_world_8DataSet ds = new digital_world_8DataSet();
  566. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  567. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  568. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  569. any.Namespace = ds.Namespace;
  570. sequence.Items.Add(any);
  571. type.Particle = sequence;
  572. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  573. if (xs.Contains(dsSchema.TargetNamespace)) {
  574. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  575. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  576. try {
  577. global::System.Xml.Schema.XmlSchema schema = null;
  578. dsSchema.Write(s1);
  579. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  580. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  581. s2.SetLength(0);
  582. schema.Write(s2);
  583. if ((s1.Length == s2.Length)) {
  584. s1.Position = 0;
  585. s2.Position = 0;
  586. for (; ((s1.Position != s1.Length)
  587. && (s1.ReadByte() == s2.ReadByte())); ) {
  588. ;
  589. }
  590. if ((s1.Position == s1.Length)) {
  591. return type;
  592. }
  593. }
  594. }
  595. }
  596. finally {
  597. if ((s1 != null)) {
  598. s1.Close();
  599. }
  600. if ((s2 != null)) {
  601. s2.Close();
  602. }
  603. }
  604. }
  605. xs.Add(dsSchema);
  606. return type;
  607. }
  608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  609. public delegate void ComponentsRowChangeEventHandler(object sender, ComponentsRowChangeEvent e);
  610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  611. public delegate void computer_assemblyRowChangeEventHandler(object sender, computer_assemblyRowChangeEvent e);
  612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  613. public delegate void OrderRowChangeEventHandler(object sender, OrderRowChangeEvent e);
  614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  615. public delegate void order_by_clientsRowChangeEventHandler(object sender, order_by_clientsRowChangeEvent e);
  616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  617. public delegate void Order_statusRowChangeEventHandler(object sender, Order_statusRowChangeEvent e);
  618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  619. public delegate void providerRowChangeEventHandler(object sender, providerRowChangeEvent e);
  620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  621. public delegate void receipt_of_goodsRowChangeEventHandler(object sender, receipt_of_goodsRowChangeEvent e);
  622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  623. public delegate void RoleRowChangeEventHandler(object sender, RoleRowChangeEvent e);
  624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  625. public delegate void unit_of_measurementRowChangeEventHandler(object sender, unit_of_measurementRowChangeEvent e);
  626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  627. public delegate void UsersRowChangeEventHandler(object sender, UsersRowChangeEvent e);
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  629. public delegate void PostavkaRowChangeEventHandler(object sender, PostavkaRowChangeEvent e);
  630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  631. public delegate void ZakazRowChangeEventHandler(object sender, ZakazRowChangeEvent e);
  632. /// <summary>
  633. ///Represents the strongly named DataTable class.
  634. ///</summary>
  635. [global::System.Serializable()]
  636. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  637. public partial class ComponentsDataTable : global::System.Data.TypedTableBase<ComponentsRow> {
  638. private global::System.Data.DataColumn columnid;
  639. private global::System.Data.DataColumn columnНазвание;
  640. private global::System.Data.DataColumn columnId_единицы_измерения;
  641. private global::System.Data.DataColumn columnТип_материала;
  642. private global::System.Data.DataColumn columnЦена;
  643. private global::System.Data.DataColumn columnколичество;
  644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  646. public ComponentsDataTable() {
  647. this.TableName = "Components";
  648. this.BeginInit();
  649. this.InitClass();
  650. this.EndInit();
  651. }
  652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  654. internal ComponentsDataTable(global::System.Data.DataTable table) {
  655. this.TableName = table.TableName;
  656. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  657. this.CaseSensitive = table.CaseSensitive;
  658. }
  659. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  660. this.Locale = table.Locale;
  661. }
  662. if ((table.Namespace != table.DataSet.Namespace)) {
  663. this.Namespace = table.Namespace;
  664. }
  665. this.Prefix = table.Prefix;
  666. this.MinimumCapacity = table.MinimumCapacity;
  667. }
  668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  670. protected ComponentsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  671. base(info, context) {
  672. this.InitVars();
  673. }
  674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  676. public global::System.Data.DataColumn idColumn {
  677. get {
  678. return this.columnid;
  679. }
  680. }
  681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  683. public global::System.Data.DataColumn НазваниеColumn {
  684. get {
  685. return this.columnНазвание;
  686. }
  687. }
  688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  690. public global::System.Data.DataColumn Id_единицы_измеренияColumn {
  691. get {
  692. return this.columnId_единицы_измерения;
  693. }
  694. }
  695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  697. public global::System.Data.DataColumn Тип_материалаColumn {
  698. get {
  699. return this.columnТип_материала;
  700. }
  701. }
  702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  704. public global::System.Data.DataColumn ЦенаColumn {
  705. get {
  706. return this.columnЦена;
  707. }
  708. }
  709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  711. public global::System.Data.DataColumn количествоColumn {
  712. get {
  713. return this.columnколичество;
  714. }
  715. }
  716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  718. [global::System.ComponentModel.Browsable(false)]
  719. public int Count {
  720. get {
  721. return this.Rows.Count;
  722. }
  723. }
  724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  726. public ComponentsRow this[int index] {
  727. get {
  728. return ((ComponentsRow)(this.Rows[index]));
  729. }
  730. }
  731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  732. public event ComponentsRowChangeEventHandler ComponentsRowChanging;
  733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  734. public event ComponentsRowChangeEventHandler ComponentsRowChanged;
  735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  736. public event ComponentsRowChangeEventHandler ComponentsRowDeleting;
  737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  738. public event ComponentsRowChangeEventHandler ComponentsRowDeleted;
  739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  741. public void AddComponentsRow(ComponentsRow row) {
  742. this.Rows.Add(row);
  743. }
  744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  746. public ComponentsRow AddComponentsRow(string Название, unit_of_measurementRow parentunit_of_measurementRowByFK_Components_unit_of_measurement, string Тип_материала, int Цена, int количество) {
  747. ComponentsRow rowComponentsRow = ((ComponentsRow)(this.NewRow()));
  748. object[] columnValuesArray = new object[] {
  749. null,
  750. Название,
  751. null,
  752. Тип_материала,
  753. Цена,
  754. количество};
  755. if ((parentunit_of_measurementRowByFK_Components_unit_of_measurement != null)) {
  756. columnValuesArray[2] = parentunit_of_measurementRowByFK_Components_unit_of_measurement[0];
  757. }
  758. rowComponentsRow.ItemArray = columnValuesArray;
  759. this.Rows.Add(rowComponentsRow);
  760. return rowComponentsRow;
  761. }
  762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  764. public ComponentsRow FindByid(int id) {
  765. return ((ComponentsRow)(this.Rows.Find(new object[] {
  766. id})));
  767. }
  768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  770. public override global::System.Data.DataTable Clone() {
  771. ComponentsDataTable cln = ((ComponentsDataTable)(base.Clone()));
  772. cln.InitVars();
  773. return cln;
  774. }
  775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  777. protected override global::System.Data.DataTable CreateInstance() {
  778. return new ComponentsDataTable();
  779. }
  780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  782. internal void InitVars() {
  783. this.columnid = base.Columns["id"];
  784. this.columnНазвание = base.Columns["Название"];
  785. this.columnId_единицы_измерения = base.Columns["Id единицы измерения"];
  786. this.columnТип_материала = base.Columns["Тип_материала"];
  787. this.columnЦена = base.Columns["Цена"];
  788. this.columnколичество = base.Columns["количество"];
  789. }
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  792. private void InitClass() {
  793. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  794. base.Columns.Add(this.columnid);
  795. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  796. base.Columns.Add(this.columnНазвание);
  797. this.columnId_единицы_измерения = new global::System.Data.DataColumn("Id единицы измерения", typeof(int), null, global::System.Data.MappingType.Element);
  798. base.Columns.Add(this.columnId_единицы_измерения);
  799. this.columnТип_материала = new global::System.Data.DataColumn("Тип_материала", typeof(string), null, global::System.Data.MappingType.Element);
  800. base.Columns.Add(this.columnТип_материала);
  801. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(int), null, global::System.Data.MappingType.Element);
  802. base.Columns.Add(this.columnЦена);
  803. this.columnколичество = new global::System.Data.DataColumn("количество", typeof(int), null, global::System.Data.MappingType.Element);
  804. base.Columns.Add(this.columnколичество);
  805. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  806. this.columnid}, true));
  807. this.columnid.AutoIncrement = true;
  808. this.columnid.AutoIncrementSeed = -1;
  809. this.columnid.AutoIncrementStep = -1;
  810. this.columnid.AllowDBNull = false;
  811. this.columnid.ReadOnly = true;
  812. this.columnid.Unique = true;
  813. this.columnНазвание.MaxLength = 2147483647;
  814. this.columnТип_материала.MaxLength = 50;
  815. }
  816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  818. public ComponentsRow NewComponentsRow() {
  819. return ((ComponentsRow)(this.NewRow()));
  820. }
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  823. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  824. return new ComponentsRow(builder);
  825. }
  826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  828. protected override global::System.Type GetRowType() {
  829. return typeof(ComponentsRow);
  830. }
  831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  833. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  834. base.OnRowChanged(e);
  835. if ((this.ComponentsRowChanged != null)) {
  836. this.ComponentsRowChanged(this, new ComponentsRowChangeEvent(((ComponentsRow)(e.Row)), e.Action));
  837. }
  838. }
  839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  841. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  842. base.OnRowChanging(e);
  843. if ((this.ComponentsRowChanging != null)) {
  844. this.ComponentsRowChanging(this, new ComponentsRowChangeEvent(((ComponentsRow)(e.Row)), e.Action));
  845. }
  846. }
  847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  849. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  850. base.OnRowDeleted(e);
  851. if ((this.ComponentsRowDeleted != null)) {
  852. this.ComponentsRowDeleted(this, new ComponentsRowChangeEvent(((ComponentsRow)(e.Row)), e.Action));
  853. }
  854. }
  855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  857. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  858. base.OnRowDeleting(e);
  859. if ((this.ComponentsRowDeleting != null)) {
  860. this.ComponentsRowDeleting(this, new ComponentsRowChangeEvent(((ComponentsRow)(e.Row)), e.Action));
  861. }
  862. }
  863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  865. public void RemoveComponentsRow(ComponentsRow row) {
  866. this.Rows.Remove(row);
  867. }
  868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  870. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  871. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  872. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  873. digital_world_8DataSet ds = new digital_world_8DataSet();
  874. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  875. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  876. any1.MinOccurs = new decimal(0);
  877. any1.MaxOccurs = decimal.MaxValue;
  878. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  879. sequence.Items.Add(any1);
  880. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  881. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  882. any2.MinOccurs = new decimal(1);
  883. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  884. sequence.Items.Add(any2);
  885. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  886. attribute1.Name = "namespace";
  887. attribute1.FixedValue = ds.Namespace;
  888. type.Attributes.Add(attribute1);
  889. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  890. attribute2.Name = "tableTypeName";
  891. attribute2.FixedValue = "ComponentsDataTable";
  892. type.Attributes.Add(attribute2);
  893. type.Particle = sequence;
  894. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  895. if (xs.Contains(dsSchema.TargetNamespace)) {
  896. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  897. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  898. try {
  899. global::System.Xml.Schema.XmlSchema schema = null;
  900. dsSchema.Write(s1);
  901. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  902. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  903. s2.SetLength(0);
  904. schema.Write(s2);
  905. if ((s1.Length == s2.Length)) {
  906. s1.Position = 0;
  907. s2.Position = 0;
  908. for (; ((s1.Position != s1.Length)
  909. && (s1.ReadByte() == s2.ReadByte())); ) {
  910. ;
  911. }
  912. if ((s1.Position == s1.Length)) {
  913. return type;
  914. }
  915. }
  916. }
  917. }
  918. finally {
  919. if ((s1 != null)) {
  920. s1.Close();
  921. }
  922. if ((s2 != null)) {
  923. s2.Close();
  924. }
  925. }
  926. }
  927. xs.Add(dsSchema);
  928. return type;
  929. }
  930. }
  931. /// <summary>
  932. ///Represents the strongly named DataTable class.
  933. ///</summary>
  934. [global::System.Serializable()]
  935. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  936. public partial class computer_assemblyDataTable : global::System.Data.TypedTableBase<computer_assemblyRow> {
  937. private global::System.Data.DataColumn columnid_сборки;
  938. private global::System.Data.DataColumn columnId_компонентов;
  939. private global::System.Data.DataColumn columnКоличество;
  940. private global::System.Data.DataColumn columnВидеокарта;
  941. private global::System.Data.DataColumn columnМатеринская_плата;
  942. private global::System.Data.DataColumn columnПроцессор;
  943. private global::System.Data.DataColumn columnОперативная_память;
  944. private global::System.Data.DataColumn _columnОперативная_память;
  945. private global::System.Data.DataColumn columnЖетский_диск;
  946. private global::System.Data.DataColumn columnКуллер;
  947. private global::System.Data.DataColumn columnСистема_охлаждения;
  948. private global::System.Data.DataColumn columnБлок_питания;
  949. private global::System.Data.DataColumn columnSSD;
  950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  952. public computer_assemblyDataTable() {
  953. this.TableName = "computer_assembly";
  954. this.BeginInit();
  955. this.InitClass();
  956. this.EndInit();
  957. }
  958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  960. internal computer_assemblyDataTable(global::System.Data.DataTable table) {
  961. this.TableName = table.TableName;
  962. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  963. this.CaseSensitive = table.CaseSensitive;
  964. }
  965. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  966. this.Locale = table.Locale;
  967. }
  968. if ((table.Namespace != table.DataSet.Namespace)) {
  969. this.Namespace = table.Namespace;
  970. }
  971. this.Prefix = table.Prefix;
  972. this.MinimumCapacity = table.MinimumCapacity;
  973. }
  974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  976. protected computer_assemblyDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  977. base(info, context) {
  978. this.InitVars();
  979. }
  980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  982. public global::System.Data.DataColumn id_сборкиColumn {
  983. get {
  984. return this.columnid_сборки;
  985. }
  986. }
  987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  989. public global::System.Data.DataColumn Id_компонентовColumn {
  990. get {
  991. return this.columnId_компонентов;
  992. }
  993. }
  994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  996. public global::System.Data.DataColumn КоличествоColumn {
  997. get {
  998. return this.columnКоличество;
  999. }
  1000. }
  1001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1003. public global::System.Data.DataColumn ВидеокартаColumn {
  1004. get {
  1005. return this.columnВидеокарта;
  1006. }
  1007. }
  1008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1010. public global::System.Data.DataColumn Материнская_платаColumn {
  1011. get {
  1012. return this.columnМатеринская_плата;
  1013. }
  1014. }
  1015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1017. public global::System.Data.DataColumn ПроцессорColumn {
  1018. get {
  1019. return this.columnПроцессор;
  1020. }
  1021. }
  1022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1024. public global::System.Data.DataColumn Оперативная_памятьColumn {
  1025. get {
  1026. return this.columnОперативная_память;
  1027. }
  1028. }
  1029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1031. public global::System.Data.DataColumn _Оперативная_памятьColumn {
  1032. get {
  1033. return this._columnОперативная_память;
  1034. }
  1035. }
  1036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1038. public global::System.Data.DataColumn Жетский_дискColumn {
  1039. get {
  1040. return this.columnЖетский_диск;
  1041. }
  1042. }
  1043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1045. public global::System.Data.DataColumn КуллерColumn {
  1046. get {
  1047. return this.columnКуллер;
  1048. }
  1049. }
  1050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1052. public global::System.Data.DataColumn Система_охлажденияColumn {
  1053. get {
  1054. return this.columnСистема_охлаждения;
  1055. }
  1056. }
  1057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1059. public global::System.Data.DataColumn Блок_питанияColumn {
  1060. get {
  1061. return this.columnБлок_питания;
  1062. }
  1063. }
  1064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1066. public global::System.Data.DataColumn SSDColumn {
  1067. get {
  1068. return this.columnSSD;
  1069. }
  1070. }
  1071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1073. [global::System.ComponentModel.Browsable(false)]
  1074. public int Count {
  1075. get {
  1076. return this.Rows.Count;
  1077. }
  1078. }
  1079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1081. public computer_assemblyRow this[int index] {
  1082. get {
  1083. return ((computer_assemblyRow)(this.Rows[index]));
  1084. }
  1085. }
  1086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1087. public event computer_assemblyRowChangeEventHandler computer_assemblyRowChanging;
  1088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1089. public event computer_assemblyRowChangeEventHandler computer_assemblyRowChanged;
  1090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1091. public event computer_assemblyRowChangeEventHandler computer_assemblyRowDeleting;
  1092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1093. public event computer_assemblyRowChangeEventHandler computer_assemblyRowDeleted;
  1094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1096. public void Addcomputer_assemblyRow(computer_assemblyRow row) {
  1097. this.Rows.Add(row);
  1098. }
  1099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1101. public computer_assemblyRow Addcomputer_assemblyRow(int Id_компонентов, int Количество, string Видеокарта, string Материнская_плата, string Процессор, string Оперативная_память, string _Оперативная_память, string Жетский_диск, string Куллер, string Система_охлаждения, string Блок_питания, string SSD) {
  1102. computer_assemblyRow rowcomputer_assemblyRow = ((computer_assemblyRow)(this.NewRow()));
  1103. object[] columnValuesArray = new object[] {
  1104. null,
  1105. Id_компонентов,
  1106. Количество,
  1107. Видеокарта,
  1108. Материнская_плата,
  1109. Процессор,
  1110. Оперативная_память,
  1111. _Оперативная_память,
  1112. Жетский_диск,
  1113. Куллер,
  1114. Система_охлаждения,
  1115. Блок_питания,
  1116. SSD};
  1117. rowcomputer_assemblyRow.ItemArray = columnValuesArray;
  1118. this.Rows.Add(rowcomputer_assemblyRow);
  1119. return rowcomputer_assemblyRow;
  1120. }
  1121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1123. public computer_assemblyRow FindByid_сборки(int id_сборки) {
  1124. return ((computer_assemblyRow)(this.Rows.Find(new object[] {
  1125. id_сборки})));
  1126. }
  1127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1129. public override global::System.Data.DataTable Clone() {
  1130. computer_assemblyDataTable cln = ((computer_assemblyDataTable)(base.Clone()));
  1131. cln.InitVars();
  1132. return cln;
  1133. }
  1134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1136. protected override global::System.Data.DataTable CreateInstance() {
  1137. return new computer_assemblyDataTable();
  1138. }
  1139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1141. internal void InitVars() {
  1142. this.columnid_сборки = base.Columns["id сборки"];
  1143. this.columnId_компонентов = base.Columns["Id компонентов"];
  1144. this.columnКоличество = base.Columns["Количество"];
  1145. this.columnВидеокарта = base.Columns["Видеокарта"];
  1146. this.columnМатеринская_плата = base.Columns["Материнская плата"];
  1147. this.columnПроцессор = base.Columns["Процессор"];
  1148. this.columnОперативная_память = base.Columns["Оперативная память"];
  1149. this._columnОперативная_память = base.Columns["Оперативная_память"];
  1150. this.columnЖетский_диск = base.Columns["Жетский диск"];
  1151. this.columnКуллер = base.Columns["Куллер"];
  1152. this.columnСистема_охлаждения = base.Columns["Система охлаждения"];
  1153. this.columnБлок_питания = base.Columns["Блок питания"];
  1154. this.columnSSD = base.Columns["SSD"];
  1155. }
  1156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1158. private void InitClass() {
  1159. this.columnid_сборки = new global::System.Data.DataColumn("id сборки", typeof(int), null, global::System.Data.MappingType.Element);
  1160. base.Columns.Add(this.columnid_сборки);
  1161. this.columnId_компонентов = new global::System.Data.DataColumn("Id компонентов", typeof(int), null, global::System.Data.MappingType.Element);
  1162. base.Columns.Add(this.columnId_компонентов);
  1163. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  1164. base.Columns.Add(this.columnКоличество);
  1165. this.columnВидеокарта = new global::System.Data.DataColumn("Видеокарта", typeof(string), null, global::System.Data.MappingType.Element);
  1166. base.Columns.Add(this.columnВидеокарта);
  1167. this.columnМатеринская_плата = new global::System.Data.DataColumn("Материнская плата", typeof(string), null, global::System.Data.MappingType.Element);
  1168. base.Columns.Add(this.columnМатеринская_плата);
  1169. this.columnПроцессор = new global::System.Data.DataColumn("Процессор", typeof(string), null, global::System.Data.MappingType.Element);
  1170. base.Columns.Add(this.columnПроцессор);
  1171. this.columnОперативная_память = new global::System.Data.DataColumn("Оперативная память", typeof(string), null, global::System.Data.MappingType.Element);
  1172. base.Columns.Add(this.columnОперативная_память);
  1173. this._columnОперативная_память = new global::System.Data.DataColumn("Оперативная_память", typeof(string), null, global::System.Data.MappingType.Element);
  1174. this._columnОперативная_память.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnОперативная_память");
  1175. this._columnОперативная_память.ExtendedProperties.Add("Generator_UserColumnName", "Оперативная_память");
  1176. base.Columns.Add(this._columnОперативная_память);
  1177. this.columnЖетский_диск = new global::System.Data.DataColumn("Жетский диск", typeof(string), null, global::System.Data.MappingType.Element);
  1178. base.Columns.Add(this.columnЖетский_диск);
  1179. this.columnКуллер = new global::System.Data.DataColumn("Куллер", typeof(string), null, global::System.Data.MappingType.Element);
  1180. base.Columns.Add(this.columnКуллер);
  1181. this.columnСистема_охлаждения = new global::System.Data.DataColumn("Система охлаждения", typeof(string), null, global::System.Data.MappingType.Element);
  1182. base.Columns.Add(this.columnСистема_охлаждения);
  1183. this.columnБлок_питания = new global::System.Data.DataColumn("Блок питания", typeof(string), null, global::System.Data.MappingType.Element);
  1184. base.Columns.Add(this.columnБлок_питания);
  1185. this.columnSSD = new global::System.Data.DataColumn("SSD", typeof(string), null, global::System.Data.MappingType.Element);
  1186. base.Columns.Add(this.columnSSD);
  1187. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1188. this.columnid_сборки}, true));
  1189. this.columnid_сборки.AutoIncrement = true;
  1190. this.columnid_сборки.AutoIncrementSeed = -1;
  1191. this.columnid_сборки.AutoIncrementStep = -1;
  1192. this.columnid_сборки.AllowDBNull = false;
  1193. this.columnid_сборки.ReadOnly = true;
  1194. this.columnid_сборки.Unique = true;
  1195. this.columnВидеокарта.MaxLength = 150;
  1196. this.columnМатеринская_плата.MaxLength = 150;
  1197. this.columnПроцессор.MaxLength = 150;
  1198. this.columnОперативная_память.MaxLength = 150;
  1199. this._columnОперативная_память.MaxLength = 150;
  1200. this.columnЖетский_диск.MaxLength = 150;
  1201. this.columnКуллер.MaxLength = 150;
  1202. this.columnСистема_охлаждения.MaxLength = 150;
  1203. this.columnБлок_питания.MaxLength = 150;
  1204. this.columnSSD.MaxLength = 150;
  1205. }
  1206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1208. public computer_assemblyRow Newcomputer_assemblyRow() {
  1209. return ((computer_assemblyRow)(this.NewRow()));
  1210. }
  1211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1213. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1214. return new computer_assemblyRow(builder);
  1215. }
  1216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1218. protected override global::System.Type GetRowType() {
  1219. return typeof(computer_assemblyRow);
  1220. }
  1221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1223. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1224. base.OnRowChanged(e);
  1225. if ((this.computer_assemblyRowChanged != null)) {
  1226. this.computer_assemblyRowChanged(this, new computer_assemblyRowChangeEvent(((computer_assemblyRow)(e.Row)), e.Action));
  1227. }
  1228. }
  1229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1231. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1232. base.OnRowChanging(e);
  1233. if ((this.computer_assemblyRowChanging != null)) {
  1234. this.computer_assemblyRowChanging(this, new computer_assemblyRowChangeEvent(((computer_assemblyRow)(e.Row)), e.Action));
  1235. }
  1236. }
  1237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1239. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1240. base.OnRowDeleted(e);
  1241. if ((this.computer_assemblyRowDeleted != null)) {
  1242. this.computer_assemblyRowDeleted(this, new computer_assemblyRowChangeEvent(((computer_assemblyRow)(e.Row)), e.Action));
  1243. }
  1244. }
  1245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1247. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1248. base.OnRowDeleting(e);
  1249. if ((this.computer_assemblyRowDeleting != null)) {
  1250. this.computer_assemblyRowDeleting(this, new computer_assemblyRowChangeEvent(((computer_assemblyRow)(e.Row)), e.Action));
  1251. }
  1252. }
  1253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1255. public void Removecomputer_assemblyRow(computer_assemblyRow row) {
  1256. this.Rows.Remove(row);
  1257. }
  1258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1260. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1261. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1262. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1263. digital_world_8DataSet ds = new digital_world_8DataSet();
  1264. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1265. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1266. any1.MinOccurs = new decimal(0);
  1267. any1.MaxOccurs = decimal.MaxValue;
  1268. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1269. sequence.Items.Add(any1);
  1270. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1271. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1272. any2.MinOccurs = new decimal(1);
  1273. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1274. sequence.Items.Add(any2);
  1275. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1276. attribute1.Name = "namespace";
  1277. attribute1.FixedValue = ds.Namespace;
  1278. type.Attributes.Add(attribute1);
  1279. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1280. attribute2.Name = "tableTypeName";
  1281. attribute2.FixedValue = "computer_assemblyDataTable";
  1282. type.Attributes.Add(attribute2);
  1283. type.Particle = sequence;
  1284. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1285. if (xs.Contains(dsSchema.TargetNamespace)) {
  1286. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1287. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1288. try {
  1289. global::System.Xml.Schema.XmlSchema schema = null;
  1290. dsSchema.Write(s1);
  1291. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1292. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1293. s2.SetLength(0);
  1294. schema.Write(s2);
  1295. if ((s1.Length == s2.Length)) {
  1296. s1.Position = 0;
  1297. s2.Position = 0;
  1298. for (; ((s1.Position != s1.Length)
  1299. && (s1.ReadByte() == s2.ReadByte())); ) {
  1300. ;
  1301. }
  1302. if ((s1.Position == s1.Length)) {
  1303. return type;
  1304. }
  1305. }
  1306. }
  1307. }
  1308. finally {
  1309. if ((s1 != null)) {
  1310. s1.Close();
  1311. }
  1312. if ((s2 != null)) {
  1313. s2.Close();
  1314. }
  1315. }
  1316. }
  1317. xs.Add(dsSchema);
  1318. return type;
  1319. }
  1320. }
  1321. /// <summary>
  1322. ///Represents the strongly named DataTable class.
  1323. ///</summary>
  1324. [global::System.Serializable()]
  1325. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1326. public partial class OrderDataTable : global::System.Data.TypedTableBase<OrderRow> {
  1327. private global::System.Data.DataColumn columnId_заказа;
  1328. private global::System.Data.DataColumn columnНомер_заказа;
  1329. private global::System.Data.DataColumn columnДата;
  1330. private global::System.Data.DataColumn columnid_сборки;
  1331. private global::System.Data.DataColumn columnid_статуса;
  1332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1334. public OrderDataTable() {
  1335. this.TableName = "Order";
  1336. this.BeginInit();
  1337. this.InitClass();
  1338. this.EndInit();
  1339. }
  1340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1342. internal OrderDataTable(global::System.Data.DataTable table) {
  1343. this.TableName = table.TableName;
  1344. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1345. this.CaseSensitive = table.CaseSensitive;
  1346. }
  1347. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1348. this.Locale = table.Locale;
  1349. }
  1350. if ((table.Namespace != table.DataSet.Namespace)) {
  1351. this.Namespace = table.Namespace;
  1352. }
  1353. this.Prefix = table.Prefix;
  1354. this.MinimumCapacity = table.MinimumCapacity;
  1355. }
  1356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1358. protected OrderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1359. base(info, context) {
  1360. this.InitVars();
  1361. }
  1362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1364. public global::System.Data.DataColumn Id_заказаColumn {
  1365. get {
  1366. return this.columnId_заказа;
  1367. }
  1368. }
  1369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1371. public global::System.Data.DataColumn Номер_заказаColumn {
  1372. get {
  1373. return this.columnНомер_заказа;
  1374. }
  1375. }
  1376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1378. public global::System.Data.DataColumn ДатаColumn {
  1379. get {
  1380. return this.columnДата;
  1381. }
  1382. }
  1383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1385. public global::System.Data.DataColumn id_сборкиColumn {
  1386. get {
  1387. return this.columnid_сборки;
  1388. }
  1389. }
  1390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1392. public global::System.Data.DataColumn id_статусаColumn {
  1393. get {
  1394. return this.columnid_статуса;
  1395. }
  1396. }
  1397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1399. [global::System.ComponentModel.Browsable(false)]
  1400. public int Count {
  1401. get {
  1402. return this.Rows.Count;
  1403. }
  1404. }
  1405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1407. public OrderRow this[int index] {
  1408. get {
  1409. return ((OrderRow)(this.Rows[index]));
  1410. }
  1411. }
  1412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1413. public event OrderRowChangeEventHandler OrderRowChanging;
  1414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1415. public event OrderRowChangeEventHandler OrderRowChanged;
  1416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1417. public event OrderRowChangeEventHandler OrderRowDeleting;
  1418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1419. public event OrderRowChangeEventHandler OrderRowDeleted;
  1420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1422. public void AddOrderRow(OrderRow row) {
  1423. this.Rows.Add(row);
  1424. }
  1425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1427. public OrderRow AddOrderRow(order_by_clientsRow parentorder_by_clientsRowByFK_Order_order_by_clients, System.DateTime Дата, computer_assemblyRow parentcomputer_assemblyRowByFK_Order_computer_assembly, Order_statusRow parentOrder_statusRowByFK_Order_Order_status) {
  1428. OrderRow rowOrderRow = ((OrderRow)(this.NewRow()));
  1429. object[] columnValuesArray = new object[] {
  1430. null,
  1431. null,
  1432. Дата,
  1433. null,
  1434. null};
  1435. if ((parentorder_by_clientsRowByFK_Order_order_by_clients != null)) {
  1436. columnValuesArray[1] = parentorder_by_clientsRowByFK_Order_order_by_clients[0];
  1437. }
  1438. if ((parentcomputer_assemblyRowByFK_Order_computer_assembly != null)) {
  1439. columnValuesArray[3] = parentcomputer_assemblyRowByFK_Order_computer_assembly[0];
  1440. }
  1441. if ((parentOrder_statusRowByFK_Order_Order_status != null)) {
  1442. columnValuesArray[4] = parentOrder_statusRowByFK_Order_Order_status[0];
  1443. }
  1444. rowOrderRow.ItemArray = columnValuesArray;
  1445. this.Rows.Add(rowOrderRow);
  1446. return rowOrderRow;
  1447. }
  1448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1450. public OrderRow FindById_заказа(int Id_заказа) {
  1451. return ((OrderRow)(this.Rows.Find(new object[] {
  1452. Id_заказа})));
  1453. }
  1454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1456. public override global::System.Data.DataTable Clone() {
  1457. OrderDataTable cln = ((OrderDataTable)(base.Clone()));
  1458. cln.InitVars();
  1459. return cln;
  1460. }
  1461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1463. protected override global::System.Data.DataTable CreateInstance() {
  1464. return new OrderDataTable();
  1465. }
  1466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1468. internal void InitVars() {
  1469. this.columnId_заказа = base.Columns["Id_заказа"];
  1470. this.columnНомер_заказа = base.Columns["Номер заказа"];
  1471. this.columnДата = base.Columns["Дата"];
  1472. this.columnid_сборки = base.Columns["id сборки"];
  1473. this.columnid_статуса = base.Columns["id статуса"];
  1474. }
  1475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1477. private void InitClass() {
  1478. this.columnId_заказа = new global::System.Data.DataColumn("Id_заказа", typeof(int), null, global::System.Data.MappingType.Element);
  1479. base.Columns.Add(this.columnId_заказа);
  1480. this.columnНомер_заказа = new global::System.Data.DataColumn("Номер заказа", typeof(int), null, global::System.Data.MappingType.Element);
  1481. base.Columns.Add(this.columnНомер_заказа);
  1482. this.columnДата = new global::System.Data.DataColumn("Дата", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1483. base.Columns.Add(this.columnДата);
  1484. this.columnid_сборки = new global::System.Data.DataColumn("id сборки", typeof(int), null, global::System.Data.MappingType.Element);
  1485. base.Columns.Add(this.columnid_сборки);
  1486. this.columnid_статуса = new global::System.Data.DataColumn("id статуса", typeof(int), null, global::System.Data.MappingType.Element);
  1487. base.Columns.Add(this.columnid_статуса);
  1488. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1489. this.columnId_заказа}, true));
  1490. this.columnId_заказа.AutoIncrement = true;
  1491. this.columnId_заказа.AutoIncrementSeed = -1;
  1492. this.columnId_заказа.AutoIncrementStep = -1;
  1493. this.columnId_заказа.AllowDBNull = false;
  1494. this.columnId_заказа.ReadOnly = true;
  1495. this.columnId_заказа.Unique = true;
  1496. }
  1497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1499. public OrderRow NewOrderRow() {
  1500. return ((OrderRow)(this.NewRow()));
  1501. }
  1502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1504. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1505. return new OrderRow(builder);
  1506. }
  1507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1509. protected override global::System.Type GetRowType() {
  1510. return typeof(OrderRow);
  1511. }
  1512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1514. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1515. base.OnRowChanged(e);
  1516. if ((this.OrderRowChanged != null)) {
  1517. this.OrderRowChanged(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  1518. }
  1519. }
  1520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1522. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1523. base.OnRowChanging(e);
  1524. if ((this.OrderRowChanging != null)) {
  1525. this.OrderRowChanging(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  1526. }
  1527. }
  1528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1530. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1531. base.OnRowDeleted(e);
  1532. if ((this.OrderRowDeleted != null)) {
  1533. this.OrderRowDeleted(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  1534. }
  1535. }
  1536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1538. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1539. base.OnRowDeleting(e);
  1540. if ((this.OrderRowDeleting != null)) {
  1541. this.OrderRowDeleting(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  1542. }
  1543. }
  1544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1546. public void RemoveOrderRow(OrderRow row) {
  1547. this.Rows.Remove(row);
  1548. }
  1549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1551. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1552. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1553. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1554. digital_world_8DataSet ds = new digital_world_8DataSet();
  1555. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1556. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1557. any1.MinOccurs = new decimal(0);
  1558. any1.MaxOccurs = decimal.MaxValue;
  1559. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1560. sequence.Items.Add(any1);
  1561. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1562. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1563. any2.MinOccurs = new decimal(1);
  1564. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1565. sequence.Items.Add(any2);
  1566. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1567. attribute1.Name = "namespace";
  1568. attribute1.FixedValue = ds.Namespace;
  1569. type.Attributes.Add(attribute1);
  1570. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1571. attribute2.Name = "tableTypeName";
  1572. attribute2.FixedValue = "OrderDataTable";
  1573. type.Attributes.Add(attribute2);
  1574. type.Particle = sequence;
  1575. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1576. if (xs.Contains(dsSchema.TargetNamespace)) {
  1577. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1578. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1579. try {
  1580. global::System.Xml.Schema.XmlSchema schema = null;
  1581. dsSchema.Write(s1);
  1582. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1583. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1584. s2.SetLength(0);
  1585. schema.Write(s2);
  1586. if ((s1.Length == s2.Length)) {
  1587. s1.Position = 0;
  1588. s2.Position = 0;
  1589. for (; ((s1.Position != s1.Length)
  1590. && (s1.ReadByte() == s2.ReadByte())); ) {
  1591. ;
  1592. }
  1593. if ((s1.Position == s1.Length)) {
  1594. return type;
  1595. }
  1596. }
  1597. }
  1598. }
  1599. finally {
  1600. if ((s1 != null)) {
  1601. s1.Close();
  1602. }
  1603. if ((s2 != null)) {
  1604. s2.Close();
  1605. }
  1606. }
  1607. }
  1608. xs.Add(dsSchema);
  1609. return type;
  1610. }
  1611. }
  1612. /// <summary>
  1613. ///Represents the strongly named DataTable class.
  1614. ///</summary>
  1615. [global::System.Serializable()]
  1616. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1617. public partial class order_by_clientsDataTable : global::System.Data.TypedTableBase<order_by_clientsRow> {
  1618. private global::System.Data.DataColumn columnНомер_заказа;
  1619. private global::System.Data.DataColumn columnПожелания;
  1620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1622. public order_by_clientsDataTable() {
  1623. this.TableName = "order_by_clients";
  1624. this.BeginInit();
  1625. this.InitClass();
  1626. this.EndInit();
  1627. }
  1628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1630. internal order_by_clientsDataTable(global::System.Data.DataTable table) {
  1631. this.TableName = table.TableName;
  1632. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1633. this.CaseSensitive = table.CaseSensitive;
  1634. }
  1635. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1636. this.Locale = table.Locale;
  1637. }
  1638. if ((table.Namespace != table.DataSet.Namespace)) {
  1639. this.Namespace = table.Namespace;
  1640. }
  1641. this.Prefix = table.Prefix;
  1642. this.MinimumCapacity = table.MinimumCapacity;
  1643. }
  1644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1646. protected order_by_clientsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1647. base(info, context) {
  1648. this.InitVars();
  1649. }
  1650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1652. public global::System.Data.DataColumn Номер_заказаColumn {
  1653. get {
  1654. return this.columnНомер_заказа;
  1655. }
  1656. }
  1657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1659. public global::System.Data.DataColumn ПожеланияColumn {
  1660. get {
  1661. return this.columnПожелания;
  1662. }
  1663. }
  1664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1666. [global::System.ComponentModel.Browsable(false)]
  1667. public int Count {
  1668. get {
  1669. return this.Rows.Count;
  1670. }
  1671. }
  1672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1674. public order_by_clientsRow this[int index] {
  1675. get {
  1676. return ((order_by_clientsRow)(this.Rows[index]));
  1677. }
  1678. }
  1679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1680. public event order_by_clientsRowChangeEventHandler order_by_clientsRowChanging;
  1681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1682. public event order_by_clientsRowChangeEventHandler order_by_clientsRowChanged;
  1683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1684. public event order_by_clientsRowChangeEventHandler order_by_clientsRowDeleting;
  1685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1686. public event order_by_clientsRowChangeEventHandler order_by_clientsRowDeleted;
  1687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1689. public void Addorder_by_clientsRow(order_by_clientsRow row) {
  1690. this.Rows.Add(row);
  1691. }
  1692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1694. public order_by_clientsRow Addorder_by_clientsRow(string Пожелания) {
  1695. order_by_clientsRow roworder_by_clientsRow = ((order_by_clientsRow)(this.NewRow()));
  1696. object[] columnValuesArray = new object[] {
  1697. null,
  1698. Пожелания};
  1699. roworder_by_clientsRow.ItemArray = columnValuesArray;
  1700. this.Rows.Add(roworder_by_clientsRow);
  1701. return roworder_by_clientsRow;
  1702. }
  1703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1705. public order_by_clientsRow FindByНомер_заказа(int Номер_заказа) {
  1706. return ((order_by_clientsRow)(this.Rows.Find(new object[] {
  1707. Номер_заказа})));
  1708. }
  1709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1711. public override global::System.Data.DataTable Clone() {
  1712. order_by_clientsDataTable cln = ((order_by_clientsDataTable)(base.Clone()));
  1713. cln.InitVars();
  1714. return cln;
  1715. }
  1716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1718. protected override global::System.Data.DataTable CreateInstance() {
  1719. return new order_by_clientsDataTable();
  1720. }
  1721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1723. internal void InitVars() {
  1724. this.columnНомер_заказа = base.Columns["Номер заказа"];
  1725. this.columnПожелания = base.Columns["Пожелания"];
  1726. }
  1727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1729. private void InitClass() {
  1730. this.columnНомер_заказа = new global::System.Data.DataColumn("Номер заказа", typeof(int), null, global::System.Data.MappingType.Element);
  1731. base.Columns.Add(this.columnНомер_заказа);
  1732. this.columnПожелания = new global::System.Data.DataColumn("Пожелания", typeof(string), null, global::System.Data.MappingType.Element);
  1733. base.Columns.Add(this.columnПожелания);
  1734. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1735. this.columnНомер_заказа}, true));
  1736. this.columnНомер_заказа.AutoIncrement = true;
  1737. this.columnНомер_заказа.AutoIncrementSeed = -1;
  1738. this.columnНомер_заказа.AutoIncrementStep = -1;
  1739. this.columnНомер_заказа.AllowDBNull = false;
  1740. this.columnНомер_заказа.ReadOnly = true;
  1741. this.columnНомер_заказа.Unique = true;
  1742. this.columnПожелания.MaxLength = 50;
  1743. }
  1744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1746. public order_by_clientsRow Neworder_by_clientsRow() {
  1747. return ((order_by_clientsRow)(this.NewRow()));
  1748. }
  1749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1751. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1752. return new order_by_clientsRow(builder);
  1753. }
  1754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1756. protected override global::System.Type GetRowType() {
  1757. return typeof(order_by_clientsRow);
  1758. }
  1759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1761. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1762. base.OnRowChanged(e);
  1763. if ((this.order_by_clientsRowChanged != null)) {
  1764. this.order_by_clientsRowChanged(this, new order_by_clientsRowChangeEvent(((order_by_clientsRow)(e.Row)), e.Action));
  1765. }
  1766. }
  1767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1769. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1770. base.OnRowChanging(e);
  1771. if ((this.order_by_clientsRowChanging != null)) {
  1772. this.order_by_clientsRowChanging(this, new order_by_clientsRowChangeEvent(((order_by_clientsRow)(e.Row)), e.Action));
  1773. }
  1774. }
  1775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1777. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1778. base.OnRowDeleted(e);
  1779. if ((this.order_by_clientsRowDeleted != null)) {
  1780. this.order_by_clientsRowDeleted(this, new order_by_clientsRowChangeEvent(((order_by_clientsRow)(e.Row)), e.Action));
  1781. }
  1782. }
  1783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1785. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1786. base.OnRowDeleting(e);
  1787. if ((this.order_by_clientsRowDeleting != null)) {
  1788. this.order_by_clientsRowDeleting(this, new order_by_clientsRowChangeEvent(((order_by_clientsRow)(e.Row)), e.Action));
  1789. }
  1790. }
  1791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1793. public void Removeorder_by_clientsRow(order_by_clientsRow row) {
  1794. this.Rows.Remove(row);
  1795. }
  1796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1798. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1799. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1800. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1801. digital_world_8DataSet ds = new digital_world_8DataSet();
  1802. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1803. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1804. any1.MinOccurs = new decimal(0);
  1805. any1.MaxOccurs = decimal.MaxValue;
  1806. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1807. sequence.Items.Add(any1);
  1808. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1809. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1810. any2.MinOccurs = new decimal(1);
  1811. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1812. sequence.Items.Add(any2);
  1813. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1814. attribute1.Name = "namespace";
  1815. attribute1.FixedValue = ds.Namespace;
  1816. type.Attributes.Add(attribute1);
  1817. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1818. attribute2.Name = "tableTypeName";
  1819. attribute2.FixedValue = "order_by_clientsDataTable";
  1820. type.Attributes.Add(attribute2);
  1821. type.Particle = sequence;
  1822. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1823. if (xs.Contains(dsSchema.TargetNamespace)) {
  1824. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1825. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1826. try {
  1827. global::System.Xml.Schema.XmlSchema schema = null;
  1828. dsSchema.Write(s1);
  1829. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1830. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1831. s2.SetLength(0);
  1832. schema.Write(s2);
  1833. if ((s1.Length == s2.Length)) {
  1834. s1.Position = 0;
  1835. s2.Position = 0;
  1836. for (; ((s1.Position != s1.Length)
  1837. && (s1.ReadByte() == s2.ReadByte())); ) {
  1838. ;
  1839. }
  1840. if ((s1.Position == s1.Length)) {
  1841. return type;
  1842. }
  1843. }
  1844. }
  1845. }
  1846. finally {
  1847. if ((s1 != null)) {
  1848. s1.Close();
  1849. }
  1850. if ((s2 != null)) {
  1851. s2.Close();
  1852. }
  1853. }
  1854. }
  1855. xs.Add(dsSchema);
  1856. return type;
  1857. }
  1858. }
  1859. /// <summary>
  1860. ///Represents the strongly named DataTable class.
  1861. ///</summary>
  1862. [global::System.Serializable()]
  1863. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1864. public partial class Order_statusDataTable : global::System.Data.TypedTableBase<Order_statusRow> {
  1865. private global::System.Data.DataColumn columnid;
  1866. private global::System.Data.DataColumn columnНазвание_статуса;
  1867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1869. public Order_statusDataTable() {
  1870. this.TableName = "Order_status";
  1871. this.BeginInit();
  1872. this.InitClass();
  1873. this.EndInit();
  1874. }
  1875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1877. internal Order_statusDataTable(global::System.Data.DataTable table) {
  1878. this.TableName = table.TableName;
  1879. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1880. this.CaseSensitive = table.CaseSensitive;
  1881. }
  1882. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1883. this.Locale = table.Locale;
  1884. }
  1885. if ((table.Namespace != table.DataSet.Namespace)) {
  1886. this.Namespace = table.Namespace;
  1887. }
  1888. this.Prefix = table.Prefix;
  1889. this.MinimumCapacity = table.MinimumCapacity;
  1890. }
  1891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1893. protected Order_statusDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1894. base(info, context) {
  1895. this.InitVars();
  1896. }
  1897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1899. public global::System.Data.DataColumn idColumn {
  1900. get {
  1901. return this.columnid;
  1902. }
  1903. }
  1904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1906. public global::System.Data.DataColumn Название_статусаColumn {
  1907. get {
  1908. return this.columnНазвание_статуса;
  1909. }
  1910. }
  1911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1913. [global::System.ComponentModel.Browsable(false)]
  1914. public int Count {
  1915. get {
  1916. return this.Rows.Count;
  1917. }
  1918. }
  1919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1921. public Order_statusRow this[int index] {
  1922. get {
  1923. return ((Order_statusRow)(this.Rows[index]));
  1924. }
  1925. }
  1926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1927. public event Order_statusRowChangeEventHandler Order_statusRowChanging;
  1928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1929. public event Order_statusRowChangeEventHandler Order_statusRowChanged;
  1930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1931. public event Order_statusRowChangeEventHandler Order_statusRowDeleting;
  1932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1933. public event Order_statusRowChangeEventHandler Order_statusRowDeleted;
  1934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1936. public void AddOrder_statusRow(Order_statusRow row) {
  1937. this.Rows.Add(row);
  1938. }
  1939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1941. public Order_statusRow AddOrder_statusRow(string Название_статуса) {
  1942. Order_statusRow rowOrder_statusRow = ((Order_statusRow)(this.NewRow()));
  1943. object[] columnValuesArray = new object[] {
  1944. null,
  1945. Название_статуса};
  1946. rowOrder_statusRow.ItemArray = columnValuesArray;
  1947. this.Rows.Add(rowOrder_statusRow);
  1948. return rowOrder_statusRow;
  1949. }
  1950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1952. public Order_statusRow FindByid(int id) {
  1953. return ((Order_statusRow)(this.Rows.Find(new object[] {
  1954. id})));
  1955. }
  1956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1958. public override global::System.Data.DataTable Clone() {
  1959. Order_statusDataTable cln = ((Order_statusDataTable)(base.Clone()));
  1960. cln.InitVars();
  1961. return cln;
  1962. }
  1963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1965. protected override global::System.Data.DataTable CreateInstance() {
  1966. return new Order_statusDataTable();
  1967. }
  1968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1970. internal void InitVars() {
  1971. this.columnid = base.Columns["id"];
  1972. this.columnНазвание_статуса = base.Columns["Название статуса"];
  1973. }
  1974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1976. private void InitClass() {
  1977. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  1978. base.Columns.Add(this.columnid);
  1979. this.columnНазвание_статуса = new global::System.Data.DataColumn("Название статуса", typeof(string), null, global::System.Data.MappingType.Element);
  1980. base.Columns.Add(this.columnНазвание_статуса);
  1981. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1982. this.columnid}, true));
  1983. this.columnid.AutoIncrement = true;
  1984. this.columnid.AutoIncrementSeed = -1;
  1985. this.columnid.AutoIncrementStep = -1;
  1986. this.columnid.AllowDBNull = false;
  1987. this.columnid.ReadOnly = true;
  1988. this.columnid.Unique = true;
  1989. this.columnНазвание_статуса.MaxLength = 50;
  1990. }
  1991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1993. public Order_statusRow NewOrder_statusRow() {
  1994. return ((Order_statusRow)(this.NewRow()));
  1995. }
  1996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1998. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1999. return new Order_statusRow(builder);
  2000. }
  2001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2003. protected override global::System.Type GetRowType() {
  2004. return typeof(Order_statusRow);
  2005. }
  2006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2008. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2009. base.OnRowChanged(e);
  2010. if ((this.Order_statusRowChanged != null)) {
  2011. this.Order_statusRowChanged(this, new Order_statusRowChangeEvent(((Order_statusRow)(e.Row)), e.Action));
  2012. }
  2013. }
  2014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2016. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2017. base.OnRowChanging(e);
  2018. if ((this.Order_statusRowChanging != null)) {
  2019. this.Order_statusRowChanging(this, new Order_statusRowChangeEvent(((Order_statusRow)(e.Row)), e.Action));
  2020. }
  2021. }
  2022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2024. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2025. base.OnRowDeleted(e);
  2026. if ((this.Order_statusRowDeleted != null)) {
  2027. this.Order_statusRowDeleted(this, new Order_statusRowChangeEvent(((Order_statusRow)(e.Row)), e.Action));
  2028. }
  2029. }
  2030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2032. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2033. base.OnRowDeleting(e);
  2034. if ((this.Order_statusRowDeleting != null)) {
  2035. this.Order_statusRowDeleting(this, new Order_statusRowChangeEvent(((Order_statusRow)(e.Row)), e.Action));
  2036. }
  2037. }
  2038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2040. public void RemoveOrder_statusRow(Order_statusRow row) {
  2041. this.Rows.Remove(row);
  2042. }
  2043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2045. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2046. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2047. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2048. digital_world_8DataSet ds = new digital_world_8DataSet();
  2049. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2050. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2051. any1.MinOccurs = new decimal(0);
  2052. any1.MaxOccurs = decimal.MaxValue;
  2053. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2054. sequence.Items.Add(any1);
  2055. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2056. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2057. any2.MinOccurs = new decimal(1);
  2058. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2059. sequence.Items.Add(any2);
  2060. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2061. attribute1.Name = "namespace";
  2062. attribute1.FixedValue = ds.Namespace;
  2063. type.Attributes.Add(attribute1);
  2064. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2065. attribute2.Name = "tableTypeName";
  2066. attribute2.FixedValue = "Order_statusDataTable";
  2067. type.Attributes.Add(attribute2);
  2068. type.Particle = sequence;
  2069. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2070. if (xs.Contains(dsSchema.TargetNamespace)) {
  2071. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2072. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2073. try {
  2074. global::System.Xml.Schema.XmlSchema schema = null;
  2075. dsSchema.Write(s1);
  2076. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2077. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2078. s2.SetLength(0);
  2079. schema.Write(s2);
  2080. if ((s1.Length == s2.Length)) {
  2081. s1.Position = 0;
  2082. s2.Position = 0;
  2083. for (; ((s1.Position != s1.Length)
  2084. && (s1.ReadByte() == s2.ReadByte())); ) {
  2085. ;
  2086. }
  2087. if ((s1.Position == s1.Length)) {
  2088. return type;
  2089. }
  2090. }
  2091. }
  2092. }
  2093. finally {
  2094. if ((s1 != null)) {
  2095. s1.Close();
  2096. }
  2097. if ((s2 != null)) {
  2098. s2.Close();
  2099. }
  2100. }
  2101. }
  2102. xs.Add(dsSchema);
  2103. return type;
  2104. }
  2105. }
  2106. /// <summary>
  2107. ///Represents the strongly named DataTable class.
  2108. ///</summary>
  2109. [global::System.Serializable()]
  2110. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2111. public partial class providerDataTable : global::System.Data.TypedTableBase<providerRow> {
  2112. private global::System.Data.DataColumn columnid;
  2113. private global::System.Data.DataColumn columnназвание;
  2114. private global::System.Data.DataColumn columnСтрана_производитель;
  2115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2117. public providerDataTable() {
  2118. this.TableName = "provider";
  2119. this.BeginInit();
  2120. this.InitClass();
  2121. this.EndInit();
  2122. }
  2123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2125. internal providerDataTable(global::System.Data.DataTable table) {
  2126. this.TableName = table.TableName;
  2127. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2128. this.CaseSensitive = table.CaseSensitive;
  2129. }
  2130. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2131. this.Locale = table.Locale;
  2132. }
  2133. if ((table.Namespace != table.DataSet.Namespace)) {
  2134. this.Namespace = table.Namespace;
  2135. }
  2136. this.Prefix = table.Prefix;
  2137. this.MinimumCapacity = table.MinimumCapacity;
  2138. }
  2139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2141. protected providerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2142. base(info, context) {
  2143. this.InitVars();
  2144. }
  2145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2147. public global::System.Data.DataColumn idColumn {
  2148. get {
  2149. return this.columnid;
  2150. }
  2151. }
  2152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2154. public global::System.Data.DataColumn названиеColumn {
  2155. get {
  2156. return this.columnназвание;
  2157. }
  2158. }
  2159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2161. public global::System.Data.DataColumn Страна_производительColumn {
  2162. get {
  2163. return this.columnСтрана_производитель;
  2164. }
  2165. }
  2166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2168. [global::System.ComponentModel.Browsable(false)]
  2169. public int Count {
  2170. get {
  2171. return this.Rows.Count;
  2172. }
  2173. }
  2174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2176. public providerRow this[int index] {
  2177. get {
  2178. return ((providerRow)(this.Rows[index]));
  2179. }
  2180. }
  2181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2182. public event providerRowChangeEventHandler providerRowChanging;
  2183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2184. public event providerRowChangeEventHandler providerRowChanged;
  2185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2186. public event providerRowChangeEventHandler providerRowDeleting;
  2187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2188. public event providerRowChangeEventHandler providerRowDeleted;
  2189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2191. public void AddproviderRow(providerRow row) {
  2192. this.Rows.Add(row);
  2193. }
  2194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2196. public providerRow AddproviderRow(int id, string название, string Страна_производитель) {
  2197. providerRow rowproviderRow = ((providerRow)(this.NewRow()));
  2198. object[] columnValuesArray = new object[] {
  2199. id,
  2200. название,
  2201. Страна_производитель};
  2202. rowproviderRow.ItemArray = columnValuesArray;
  2203. this.Rows.Add(rowproviderRow);
  2204. return rowproviderRow;
  2205. }
  2206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2208. public providerRow FindByid(int id) {
  2209. return ((providerRow)(this.Rows.Find(new object[] {
  2210. id})));
  2211. }
  2212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2214. public override global::System.Data.DataTable Clone() {
  2215. providerDataTable cln = ((providerDataTable)(base.Clone()));
  2216. cln.InitVars();
  2217. return cln;
  2218. }
  2219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2221. protected override global::System.Data.DataTable CreateInstance() {
  2222. return new providerDataTable();
  2223. }
  2224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2226. internal void InitVars() {
  2227. this.columnid = base.Columns["id"];
  2228. this.columnназвание = base.Columns["название"];
  2229. this.columnСтрана_производитель = base.Columns["Страна производитель"];
  2230. }
  2231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2233. private void InitClass() {
  2234. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  2235. base.Columns.Add(this.columnid);
  2236. this.columnназвание = new global::System.Data.DataColumn("название", typeof(string), null, global::System.Data.MappingType.Element);
  2237. base.Columns.Add(this.columnназвание);
  2238. this.columnСтрана_производитель = new global::System.Data.DataColumn("Страна производитель", typeof(string), null, global::System.Data.MappingType.Element);
  2239. base.Columns.Add(this.columnСтрана_производитель);
  2240. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2241. this.columnid}, true));
  2242. this.columnid.AllowDBNull = false;
  2243. this.columnid.Unique = true;
  2244. this.columnназвание.MaxLength = 50;
  2245. this.columnСтрана_производитель.MaxLength = 50;
  2246. }
  2247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2249. public providerRow NewproviderRow() {
  2250. return ((providerRow)(this.NewRow()));
  2251. }
  2252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2254. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2255. return new providerRow(builder);
  2256. }
  2257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2259. protected override global::System.Type GetRowType() {
  2260. return typeof(providerRow);
  2261. }
  2262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2264. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2265. base.OnRowChanged(e);
  2266. if ((this.providerRowChanged != null)) {
  2267. this.providerRowChanged(this, new providerRowChangeEvent(((providerRow)(e.Row)), e.Action));
  2268. }
  2269. }
  2270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2272. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2273. base.OnRowChanging(e);
  2274. if ((this.providerRowChanging != null)) {
  2275. this.providerRowChanging(this, new providerRowChangeEvent(((providerRow)(e.Row)), e.Action));
  2276. }
  2277. }
  2278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2280. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2281. base.OnRowDeleted(e);
  2282. if ((this.providerRowDeleted != null)) {
  2283. this.providerRowDeleted(this, new providerRowChangeEvent(((providerRow)(e.Row)), e.Action));
  2284. }
  2285. }
  2286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2288. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2289. base.OnRowDeleting(e);
  2290. if ((this.providerRowDeleting != null)) {
  2291. this.providerRowDeleting(this, new providerRowChangeEvent(((providerRow)(e.Row)), e.Action));
  2292. }
  2293. }
  2294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2296. public void RemoveproviderRow(providerRow row) {
  2297. this.Rows.Remove(row);
  2298. }
  2299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2301. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2302. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2303. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2304. digital_world_8DataSet ds = new digital_world_8DataSet();
  2305. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2306. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2307. any1.MinOccurs = new decimal(0);
  2308. any1.MaxOccurs = decimal.MaxValue;
  2309. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2310. sequence.Items.Add(any1);
  2311. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2312. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2313. any2.MinOccurs = new decimal(1);
  2314. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2315. sequence.Items.Add(any2);
  2316. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2317. attribute1.Name = "namespace";
  2318. attribute1.FixedValue = ds.Namespace;
  2319. type.Attributes.Add(attribute1);
  2320. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2321. attribute2.Name = "tableTypeName";
  2322. attribute2.FixedValue = "providerDataTable";
  2323. type.Attributes.Add(attribute2);
  2324. type.Particle = sequence;
  2325. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2326. if (xs.Contains(dsSchema.TargetNamespace)) {
  2327. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2328. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2329. try {
  2330. global::System.Xml.Schema.XmlSchema schema = null;
  2331. dsSchema.Write(s1);
  2332. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2333. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2334. s2.SetLength(0);
  2335. schema.Write(s2);
  2336. if ((s1.Length == s2.Length)) {
  2337. s1.Position = 0;
  2338. s2.Position = 0;
  2339. for (; ((s1.Position != s1.Length)
  2340. && (s1.ReadByte() == s2.ReadByte())); ) {
  2341. ;
  2342. }
  2343. if ((s1.Position == s1.Length)) {
  2344. return type;
  2345. }
  2346. }
  2347. }
  2348. }
  2349. finally {
  2350. if ((s1 != null)) {
  2351. s1.Close();
  2352. }
  2353. if ((s2 != null)) {
  2354. s2.Close();
  2355. }
  2356. }
  2357. }
  2358. xs.Add(dsSchema);
  2359. return type;
  2360. }
  2361. }
  2362. /// <summary>
  2363. ///Represents the strongly named DataTable class.
  2364. ///</summary>
  2365. [global::System.Serializable()]
  2366. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2367. public partial class receipt_of_goodsDataTable : global::System.Data.TypedTableBase<receipt_of_goodsRow> {
  2368. private global::System.Data.DataColumn columnid;
  2369. private global::System.Data.DataColumn columnid_поставщика;
  2370. private global::System.Data.DataColumn columnId_компонентов;
  2371. private global::System.Data.DataColumn columnДата;
  2372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2374. public receipt_of_goodsDataTable() {
  2375. this.TableName = "receipt_of_goods";
  2376. this.BeginInit();
  2377. this.InitClass();
  2378. this.EndInit();
  2379. }
  2380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2382. internal receipt_of_goodsDataTable(global::System.Data.DataTable table) {
  2383. this.TableName = table.TableName;
  2384. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2385. this.CaseSensitive = table.CaseSensitive;
  2386. }
  2387. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2388. this.Locale = table.Locale;
  2389. }
  2390. if ((table.Namespace != table.DataSet.Namespace)) {
  2391. this.Namespace = table.Namespace;
  2392. }
  2393. this.Prefix = table.Prefix;
  2394. this.MinimumCapacity = table.MinimumCapacity;
  2395. }
  2396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2398. protected receipt_of_goodsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2399. base(info, context) {
  2400. this.InitVars();
  2401. }
  2402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2404. public global::System.Data.DataColumn idColumn {
  2405. get {
  2406. return this.columnid;
  2407. }
  2408. }
  2409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2411. public global::System.Data.DataColumn id_поставщикаColumn {
  2412. get {
  2413. return this.columnid_поставщика;
  2414. }
  2415. }
  2416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2418. public global::System.Data.DataColumn Id_компонентовColumn {
  2419. get {
  2420. return this.columnId_компонентов;
  2421. }
  2422. }
  2423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2425. public global::System.Data.DataColumn ДатаColumn {
  2426. get {
  2427. return this.columnДата;
  2428. }
  2429. }
  2430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2432. [global::System.ComponentModel.Browsable(false)]
  2433. public int Count {
  2434. get {
  2435. return this.Rows.Count;
  2436. }
  2437. }
  2438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2440. public receipt_of_goodsRow this[int index] {
  2441. get {
  2442. return ((receipt_of_goodsRow)(this.Rows[index]));
  2443. }
  2444. }
  2445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2446. public event receipt_of_goodsRowChangeEventHandler receipt_of_goodsRowChanging;
  2447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2448. public event receipt_of_goodsRowChangeEventHandler receipt_of_goodsRowChanged;
  2449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2450. public event receipt_of_goodsRowChangeEventHandler receipt_of_goodsRowDeleting;
  2451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2452. public event receipt_of_goodsRowChangeEventHandler receipt_of_goodsRowDeleted;
  2453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2455. public void Addreceipt_of_goodsRow(receipt_of_goodsRow row) {
  2456. this.Rows.Add(row);
  2457. }
  2458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2460. public receipt_of_goodsRow Addreceipt_of_goodsRow(providerRow parentproviderRowByFK_receipt_of_goods_provider, ComponentsRow parentComponentsRowByFK_receipt_of_goods_Components, System.DateTime Дата) {
  2461. receipt_of_goodsRow rowreceipt_of_goodsRow = ((receipt_of_goodsRow)(this.NewRow()));
  2462. object[] columnValuesArray = new object[] {
  2463. null,
  2464. null,
  2465. null,
  2466. Дата};
  2467. if ((parentproviderRowByFK_receipt_of_goods_provider != null)) {
  2468. columnValuesArray[1] = parentproviderRowByFK_receipt_of_goods_provider[0];
  2469. }
  2470. if ((parentComponentsRowByFK_receipt_of_goods_Components != null)) {
  2471. columnValuesArray[2] = parentComponentsRowByFK_receipt_of_goods_Components[0];
  2472. }
  2473. rowreceipt_of_goodsRow.ItemArray = columnValuesArray;
  2474. this.Rows.Add(rowreceipt_of_goodsRow);
  2475. return rowreceipt_of_goodsRow;
  2476. }
  2477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2479. public receipt_of_goodsRow FindByid(int id) {
  2480. return ((receipt_of_goodsRow)(this.Rows.Find(new object[] {
  2481. id})));
  2482. }
  2483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2485. public override global::System.Data.DataTable Clone() {
  2486. receipt_of_goodsDataTable cln = ((receipt_of_goodsDataTable)(base.Clone()));
  2487. cln.InitVars();
  2488. return cln;
  2489. }
  2490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2492. protected override global::System.Data.DataTable CreateInstance() {
  2493. return new receipt_of_goodsDataTable();
  2494. }
  2495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2497. internal void InitVars() {
  2498. this.columnid = base.Columns["id"];
  2499. this.columnid_поставщика = base.Columns["id поставщика"];
  2500. this.columnId_компонентов = base.Columns["Id компонентов"];
  2501. this.columnДата = base.Columns["Дата"];
  2502. }
  2503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2505. private void InitClass() {
  2506. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  2507. base.Columns.Add(this.columnid);
  2508. this.columnid_поставщика = new global::System.Data.DataColumn("id поставщика", typeof(int), null, global::System.Data.MappingType.Element);
  2509. base.Columns.Add(this.columnid_поставщика);
  2510. this.columnId_компонентов = new global::System.Data.DataColumn("Id компонентов", typeof(int), null, global::System.Data.MappingType.Element);
  2511. base.Columns.Add(this.columnId_компонентов);
  2512. this.columnДата = new global::System.Data.DataColumn("Дата", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2513. base.Columns.Add(this.columnДата);
  2514. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2515. this.columnid}, true));
  2516. this.columnid.AutoIncrement = true;
  2517. this.columnid.AutoIncrementSeed = -1;
  2518. this.columnid.AutoIncrementStep = -1;
  2519. this.columnid.AllowDBNull = false;
  2520. this.columnid.ReadOnly = true;
  2521. this.columnid.Unique = true;
  2522. }
  2523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2525. public receipt_of_goodsRow Newreceipt_of_goodsRow() {
  2526. return ((receipt_of_goodsRow)(this.NewRow()));
  2527. }
  2528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2530. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2531. return new receipt_of_goodsRow(builder);
  2532. }
  2533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2535. protected override global::System.Type GetRowType() {
  2536. return typeof(receipt_of_goodsRow);
  2537. }
  2538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2540. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2541. base.OnRowChanged(e);
  2542. if ((this.receipt_of_goodsRowChanged != null)) {
  2543. this.receipt_of_goodsRowChanged(this, new receipt_of_goodsRowChangeEvent(((receipt_of_goodsRow)(e.Row)), e.Action));
  2544. }
  2545. }
  2546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2548. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2549. base.OnRowChanging(e);
  2550. if ((this.receipt_of_goodsRowChanging != null)) {
  2551. this.receipt_of_goodsRowChanging(this, new receipt_of_goodsRowChangeEvent(((receipt_of_goodsRow)(e.Row)), e.Action));
  2552. }
  2553. }
  2554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2556. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2557. base.OnRowDeleted(e);
  2558. if ((this.receipt_of_goodsRowDeleted != null)) {
  2559. this.receipt_of_goodsRowDeleted(this, new receipt_of_goodsRowChangeEvent(((receipt_of_goodsRow)(e.Row)), e.Action));
  2560. }
  2561. }
  2562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2564. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2565. base.OnRowDeleting(e);
  2566. if ((this.receipt_of_goodsRowDeleting != null)) {
  2567. this.receipt_of_goodsRowDeleting(this, new receipt_of_goodsRowChangeEvent(((receipt_of_goodsRow)(e.Row)), e.Action));
  2568. }
  2569. }
  2570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2572. public void Removereceipt_of_goodsRow(receipt_of_goodsRow row) {
  2573. this.Rows.Remove(row);
  2574. }
  2575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2577. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2578. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2579. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2580. digital_world_8DataSet ds = new digital_world_8DataSet();
  2581. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2582. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2583. any1.MinOccurs = new decimal(0);
  2584. any1.MaxOccurs = decimal.MaxValue;
  2585. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2586. sequence.Items.Add(any1);
  2587. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2588. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2589. any2.MinOccurs = new decimal(1);
  2590. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2591. sequence.Items.Add(any2);
  2592. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2593. attribute1.Name = "namespace";
  2594. attribute1.FixedValue = ds.Namespace;
  2595. type.Attributes.Add(attribute1);
  2596. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2597. attribute2.Name = "tableTypeName";
  2598. attribute2.FixedValue = "receipt_of_goodsDataTable";
  2599. type.Attributes.Add(attribute2);
  2600. type.Particle = sequence;
  2601. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2602. if (xs.Contains(dsSchema.TargetNamespace)) {
  2603. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2604. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2605. try {
  2606. global::System.Xml.Schema.XmlSchema schema = null;
  2607. dsSchema.Write(s1);
  2608. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2609. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2610. s2.SetLength(0);
  2611. schema.Write(s2);
  2612. if ((s1.Length == s2.Length)) {
  2613. s1.Position = 0;
  2614. s2.Position = 0;
  2615. for (; ((s1.Position != s1.Length)
  2616. && (s1.ReadByte() == s2.ReadByte())); ) {
  2617. ;
  2618. }
  2619. if ((s1.Position == s1.Length)) {
  2620. return type;
  2621. }
  2622. }
  2623. }
  2624. }
  2625. finally {
  2626. if ((s1 != null)) {
  2627. s1.Close();
  2628. }
  2629. if ((s2 != null)) {
  2630. s2.Close();
  2631. }
  2632. }
  2633. }
  2634. xs.Add(dsSchema);
  2635. return type;
  2636. }
  2637. }
  2638. /// <summary>
  2639. ///Represents the strongly named DataTable class.
  2640. ///</summary>
  2641. [global::System.Serializable()]
  2642. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2643. public partial class RoleDataTable : global::System.Data.TypedTableBase<RoleRow> {
  2644. private global::System.Data.DataColumn columnId;
  2645. private global::System.Data.DataColumn columnНазвание_роли;
  2646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2648. public RoleDataTable() {
  2649. this.TableName = "Role";
  2650. this.BeginInit();
  2651. this.InitClass();
  2652. this.EndInit();
  2653. }
  2654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2656. internal RoleDataTable(global::System.Data.DataTable table) {
  2657. this.TableName = table.TableName;
  2658. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2659. this.CaseSensitive = table.CaseSensitive;
  2660. }
  2661. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2662. this.Locale = table.Locale;
  2663. }
  2664. if ((table.Namespace != table.DataSet.Namespace)) {
  2665. this.Namespace = table.Namespace;
  2666. }
  2667. this.Prefix = table.Prefix;
  2668. this.MinimumCapacity = table.MinimumCapacity;
  2669. }
  2670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2672. protected RoleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2673. base(info, context) {
  2674. this.InitVars();
  2675. }
  2676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2678. public global::System.Data.DataColumn IdColumn {
  2679. get {
  2680. return this.columnId;
  2681. }
  2682. }
  2683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2685. public global::System.Data.DataColumn Название_ролиColumn {
  2686. get {
  2687. return this.columnНазвание_роли;
  2688. }
  2689. }
  2690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2692. [global::System.ComponentModel.Browsable(false)]
  2693. public int Count {
  2694. get {
  2695. return this.Rows.Count;
  2696. }
  2697. }
  2698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2700. public RoleRow this[int index] {
  2701. get {
  2702. return ((RoleRow)(this.Rows[index]));
  2703. }
  2704. }
  2705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2706. public event RoleRowChangeEventHandler RoleRowChanging;
  2707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2708. public event RoleRowChangeEventHandler RoleRowChanged;
  2709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2710. public event RoleRowChangeEventHandler RoleRowDeleting;
  2711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2712. public event RoleRowChangeEventHandler RoleRowDeleted;
  2713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2715. public void AddRoleRow(RoleRow row) {
  2716. this.Rows.Add(row);
  2717. }
  2718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2720. public RoleRow AddRoleRow(int Id, string Название_роли) {
  2721. RoleRow rowRoleRow = ((RoleRow)(this.NewRow()));
  2722. object[] columnValuesArray = new object[] {
  2723. Id,
  2724. Название_роли};
  2725. rowRoleRow.ItemArray = columnValuesArray;
  2726. this.Rows.Add(rowRoleRow);
  2727. return rowRoleRow;
  2728. }
  2729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2731. public RoleRow FindById(int Id) {
  2732. return ((RoleRow)(this.Rows.Find(new object[] {
  2733. Id})));
  2734. }
  2735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2737. public override global::System.Data.DataTable Clone() {
  2738. RoleDataTable cln = ((RoleDataTable)(base.Clone()));
  2739. cln.InitVars();
  2740. return cln;
  2741. }
  2742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2744. protected override global::System.Data.DataTable CreateInstance() {
  2745. return new RoleDataTable();
  2746. }
  2747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2749. internal void InitVars() {
  2750. this.columnId = base.Columns["Id"];
  2751. this.columnНазвание_роли = base.Columns["Название роли"];
  2752. }
  2753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2755. private void InitClass() {
  2756. this.columnId = new global::System.Data.DataColumn("Id", typeof(int), null, global::System.Data.MappingType.Element);
  2757. base.Columns.Add(this.columnId);
  2758. this.columnНазвание_роли = new global::System.Data.DataColumn("Название роли", typeof(string), null, global::System.Data.MappingType.Element);
  2759. base.Columns.Add(this.columnНазвание_роли);
  2760. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2761. this.columnId}, true));
  2762. this.columnId.AllowDBNull = false;
  2763. this.columnId.Unique = true;
  2764. this.columnНазвание_роли.MaxLength = 50;
  2765. }
  2766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2768. public RoleRow NewRoleRow() {
  2769. return ((RoleRow)(this.NewRow()));
  2770. }
  2771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2773. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2774. return new RoleRow(builder);
  2775. }
  2776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2778. protected override global::System.Type GetRowType() {
  2779. return typeof(RoleRow);
  2780. }
  2781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2783. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2784. base.OnRowChanged(e);
  2785. if ((this.RoleRowChanged != null)) {
  2786. this.RoleRowChanged(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  2787. }
  2788. }
  2789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2791. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2792. base.OnRowChanging(e);
  2793. if ((this.RoleRowChanging != null)) {
  2794. this.RoleRowChanging(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  2795. }
  2796. }
  2797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2799. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2800. base.OnRowDeleted(e);
  2801. if ((this.RoleRowDeleted != null)) {
  2802. this.RoleRowDeleted(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  2803. }
  2804. }
  2805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2807. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2808. base.OnRowDeleting(e);
  2809. if ((this.RoleRowDeleting != null)) {
  2810. this.RoleRowDeleting(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  2811. }
  2812. }
  2813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2815. public void RemoveRoleRow(RoleRow row) {
  2816. this.Rows.Remove(row);
  2817. }
  2818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2820. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2821. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2822. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2823. digital_world_8DataSet ds = new digital_world_8DataSet();
  2824. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2825. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2826. any1.MinOccurs = new decimal(0);
  2827. any1.MaxOccurs = decimal.MaxValue;
  2828. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2829. sequence.Items.Add(any1);
  2830. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2831. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2832. any2.MinOccurs = new decimal(1);
  2833. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2834. sequence.Items.Add(any2);
  2835. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2836. attribute1.Name = "namespace";
  2837. attribute1.FixedValue = ds.Namespace;
  2838. type.Attributes.Add(attribute1);
  2839. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2840. attribute2.Name = "tableTypeName";
  2841. attribute2.FixedValue = "RoleDataTable";
  2842. type.Attributes.Add(attribute2);
  2843. type.Particle = sequence;
  2844. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2845. if (xs.Contains(dsSchema.TargetNamespace)) {
  2846. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2847. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2848. try {
  2849. global::System.Xml.Schema.XmlSchema schema = null;
  2850. dsSchema.Write(s1);
  2851. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2852. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2853. s2.SetLength(0);
  2854. schema.Write(s2);
  2855. if ((s1.Length == s2.Length)) {
  2856. s1.Position = 0;
  2857. s2.Position = 0;
  2858. for (; ((s1.Position != s1.Length)
  2859. && (s1.ReadByte() == s2.ReadByte())); ) {
  2860. ;
  2861. }
  2862. if ((s1.Position == s1.Length)) {
  2863. return type;
  2864. }
  2865. }
  2866. }
  2867. }
  2868. finally {
  2869. if ((s1 != null)) {
  2870. s1.Close();
  2871. }
  2872. if ((s2 != null)) {
  2873. s2.Close();
  2874. }
  2875. }
  2876. }
  2877. xs.Add(dsSchema);
  2878. return type;
  2879. }
  2880. }
  2881. /// <summary>
  2882. ///Represents the strongly named DataTable class.
  2883. ///</summary>
  2884. [global::System.Serializable()]
  2885. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2886. public partial class unit_of_measurementDataTable : global::System.Data.TypedTableBase<unit_of_measurementRow> {
  2887. private global::System.Data.DataColumn columnid;
  2888. private global::System.Data.DataColumn columnназвание;
  2889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2891. public unit_of_measurementDataTable() {
  2892. this.TableName = "unit_of_measurement";
  2893. this.BeginInit();
  2894. this.InitClass();
  2895. this.EndInit();
  2896. }
  2897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2899. internal unit_of_measurementDataTable(global::System.Data.DataTable table) {
  2900. this.TableName = table.TableName;
  2901. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2902. this.CaseSensitive = table.CaseSensitive;
  2903. }
  2904. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2905. this.Locale = table.Locale;
  2906. }
  2907. if ((table.Namespace != table.DataSet.Namespace)) {
  2908. this.Namespace = table.Namespace;
  2909. }
  2910. this.Prefix = table.Prefix;
  2911. this.MinimumCapacity = table.MinimumCapacity;
  2912. }
  2913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2915. protected unit_of_measurementDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2916. base(info, context) {
  2917. this.InitVars();
  2918. }
  2919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2921. public global::System.Data.DataColumn idColumn {
  2922. get {
  2923. return this.columnid;
  2924. }
  2925. }
  2926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2928. public global::System.Data.DataColumn названиеColumn {
  2929. get {
  2930. return this.columnназвание;
  2931. }
  2932. }
  2933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2935. [global::System.ComponentModel.Browsable(false)]
  2936. public int Count {
  2937. get {
  2938. return this.Rows.Count;
  2939. }
  2940. }
  2941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2943. public unit_of_measurementRow this[int index] {
  2944. get {
  2945. return ((unit_of_measurementRow)(this.Rows[index]));
  2946. }
  2947. }
  2948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2949. public event unit_of_measurementRowChangeEventHandler unit_of_measurementRowChanging;
  2950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2951. public event unit_of_measurementRowChangeEventHandler unit_of_measurementRowChanged;
  2952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2953. public event unit_of_measurementRowChangeEventHandler unit_of_measurementRowDeleting;
  2954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2955. public event unit_of_measurementRowChangeEventHandler unit_of_measurementRowDeleted;
  2956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2958. public void Addunit_of_measurementRow(unit_of_measurementRow row) {
  2959. this.Rows.Add(row);
  2960. }
  2961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2963. public unit_of_measurementRow Addunit_of_measurementRow(string название) {
  2964. unit_of_measurementRow rowunit_of_measurementRow = ((unit_of_measurementRow)(this.NewRow()));
  2965. object[] columnValuesArray = new object[] {
  2966. null,
  2967. название};
  2968. rowunit_of_measurementRow.ItemArray = columnValuesArray;
  2969. this.Rows.Add(rowunit_of_measurementRow);
  2970. return rowunit_of_measurementRow;
  2971. }
  2972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2974. public unit_of_measurementRow FindByid(int id) {
  2975. return ((unit_of_measurementRow)(this.Rows.Find(new object[] {
  2976. id})));
  2977. }
  2978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2980. public override global::System.Data.DataTable Clone() {
  2981. unit_of_measurementDataTable cln = ((unit_of_measurementDataTable)(base.Clone()));
  2982. cln.InitVars();
  2983. return cln;
  2984. }
  2985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2987. protected override global::System.Data.DataTable CreateInstance() {
  2988. return new unit_of_measurementDataTable();
  2989. }
  2990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2992. internal void InitVars() {
  2993. this.columnid = base.Columns["id"];
  2994. this.columnназвание = base.Columns["название"];
  2995. }
  2996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2998. private void InitClass() {
  2999. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  3000. base.Columns.Add(this.columnid);
  3001. this.columnназвание = new global::System.Data.DataColumn("название", typeof(string), null, global::System.Data.MappingType.Element);
  3002. base.Columns.Add(this.columnназвание);
  3003. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3004. this.columnid}, true));
  3005. this.columnid.AutoIncrement = true;
  3006. this.columnid.AutoIncrementSeed = -1;
  3007. this.columnid.AutoIncrementStep = -1;
  3008. this.columnid.AllowDBNull = false;
  3009. this.columnid.ReadOnly = true;
  3010. this.columnid.Unique = true;
  3011. this.columnназвание.MaxLength = 50;
  3012. }
  3013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3015. public unit_of_measurementRow Newunit_of_measurementRow() {
  3016. return ((unit_of_measurementRow)(this.NewRow()));
  3017. }
  3018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3020. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3021. return new unit_of_measurementRow(builder);
  3022. }
  3023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3025. protected override global::System.Type GetRowType() {
  3026. return typeof(unit_of_measurementRow);
  3027. }
  3028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3030. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3031. base.OnRowChanged(e);
  3032. if ((this.unit_of_measurementRowChanged != null)) {
  3033. this.unit_of_measurementRowChanged(this, new unit_of_measurementRowChangeEvent(((unit_of_measurementRow)(e.Row)), e.Action));
  3034. }
  3035. }
  3036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3038. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3039. base.OnRowChanging(e);
  3040. if ((this.unit_of_measurementRowChanging != null)) {
  3041. this.unit_of_measurementRowChanging(this, new unit_of_measurementRowChangeEvent(((unit_of_measurementRow)(e.Row)), e.Action));
  3042. }
  3043. }
  3044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3046. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3047. base.OnRowDeleted(e);
  3048. if ((this.unit_of_measurementRowDeleted != null)) {
  3049. this.unit_of_measurementRowDeleted(this, new unit_of_measurementRowChangeEvent(((unit_of_measurementRow)(e.Row)), e.Action));
  3050. }
  3051. }
  3052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3054. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3055. base.OnRowDeleting(e);
  3056. if ((this.unit_of_measurementRowDeleting != null)) {
  3057. this.unit_of_measurementRowDeleting(this, new unit_of_measurementRowChangeEvent(((unit_of_measurementRow)(e.Row)), e.Action));
  3058. }
  3059. }
  3060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3062. public void Removeunit_of_measurementRow(unit_of_measurementRow row) {
  3063. this.Rows.Remove(row);
  3064. }
  3065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3067. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3068. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3069. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3070. digital_world_8DataSet ds = new digital_world_8DataSet();
  3071. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3072. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3073. any1.MinOccurs = new decimal(0);
  3074. any1.MaxOccurs = decimal.MaxValue;
  3075. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3076. sequence.Items.Add(any1);
  3077. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3078. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3079. any2.MinOccurs = new decimal(1);
  3080. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3081. sequence.Items.Add(any2);
  3082. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3083. attribute1.Name = "namespace";
  3084. attribute1.FixedValue = ds.Namespace;
  3085. type.Attributes.Add(attribute1);
  3086. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3087. attribute2.Name = "tableTypeName";
  3088. attribute2.FixedValue = "unit_of_measurementDataTable";
  3089. type.Attributes.Add(attribute2);
  3090. type.Particle = sequence;
  3091. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3092. if (xs.Contains(dsSchema.TargetNamespace)) {
  3093. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3094. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3095. try {
  3096. global::System.Xml.Schema.XmlSchema schema = null;
  3097. dsSchema.Write(s1);
  3098. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3099. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3100. s2.SetLength(0);
  3101. schema.Write(s2);
  3102. if ((s1.Length == s2.Length)) {
  3103. s1.Position = 0;
  3104. s2.Position = 0;
  3105. for (; ((s1.Position != s1.Length)
  3106. && (s1.ReadByte() == s2.ReadByte())); ) {
  3107. ;
  3108. }
  3109. if ((s1.Position == s1.Length)) {
  3110. return type;
  3111. }
  3112. }
  3113. }
  3114. }
  3115. finally {
  3116. if ((s1 != null)) {
  3117. s1.Close();
  3118. }
  3119. if ((s2 != null)) {
  3120. s2.Close();
  3121. }
  3122. }
  3123. }
  3124. xs.Add(dsSchema);
  3125. return type;
  3126. }
  3127. }
  3128. /// <summary>
  3129. ///Represents the strongly named DataTable class.
  3130. ///</summary>
  3131. [global::System.Serializable()]
  3132. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3133. public partial class UsersDataTable : global::System.Data.TypedTableBase<UsersRow> {
  3134. private global::System.Data.DataColumn columnId;
  3135. private global::System.Data.DataColumn columnUsername;
  3136. private global::System.Data.DataColumn columnPassword;
  3137. private global::System.Data.DataColumn columnRole;
  3138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3140. public UsersDataTable() {
  3141. this.TableName = "Users";
  3142. this.BeginInit();
  3143. this.InitClass();
  3144. this.EndInit();
  3145. }
  3146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3148. internal UsersDataTable(global::System.Data.DataTable table) {
  3149. this.TableName = table.TableName;
  3150. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3151. this.CaseSensitive = table.CaseSensitive;
  3152. }
  3153. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3154. this.Locale = table.Locale;
  3155. }
  3156. if ((table.Namespace != table.DataSet.Namespace)) {
  3157. this.Namespace = table.Namespace;
  3158. }
  3159. this.Prefix = table.Prefix;
  3160. this.MinimumCapacity = table.MinimumCapacity;
  3161. }
  3162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3164. protected UsersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3165. base(info, context) {
  3166. this.InitVars();
  3167. }
  3168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3170. public global::System.Data.DataColumn IdColumn {
  3171. get {
  3172. return this.columnId;
  3173. }
  3174. }
  3175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3177. public global::System.Data.DataColumn UsernameColumn {
  3178. get {
  3179. return this.columnUsername;
  3180. }
  3181. }
  3182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3184. public global::System.Data.DataColumn PasswordColumn {
  3185. get {
  3186. return this.columnPassword;
  3187. }
  3188. }
  3189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3191. public global::System.Data.DataColumn RoleColumn {
  3192. get {
  3193. return this.columnRole;
  3194. }
  3195. }
  3196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3198. [global::System.ComponentModel.Browsable(false)]
  3199. public int Count {
  3200. get {
  3201. return this.Rows.Count;
  3202. }
  3203. }
  3204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3206. public UsersRow this[int index] {
  3207. get {
  3208. return ((UsersRow)(this.Rows[index]));
  3209. }
  3210. }
  3211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3212. public event UsersRowChangeEventHandler UsersRowChanging;
  3213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3214. public event UsersRowChangeEventHandler UsersRowChanged;
  3215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3216. public event UsersRowChangeEventHandler UsersRowDeleting;
  3217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3218. public event UsersRowChangeEventHandler UsersRowDeleted;
  3219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3221. public void AddUsersRow(UsersRow row) {
  3222. this.Rows.Add(row);
  3223. }
  3224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3226. public UsersRow AddUsersRow(int Id, string Username, string Password, RoleRow parentRoleRowByFK_Users_Role) {
  3227. UsersRow rowUsersRow = ((UsersRow)(this.NewRow()));
  3228. object[] columnValuesArray = new object[] {
  3229. Id,
  3230. Username,
  3231. Password,
  3232. null};
  3233. if ((parentRoleRowByFK_Users_Role != null)) {
  3234. columnValuesArray[3] = parentRoleRowByFK_Users_Role[0];
  3235. }
  3236. rowUsersRow.ItemArray = columnValuesArray;
  3237. this.Rows.Add(rowUsersRow);
  3238. return rowUsersRow;
  3239. }
  3240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3242. public UsersRow FindById(int Id) {
  3243. return ((UsersRow)(this.Rows.Find(new object[] {
  3244. Id})));
  3245. }
  3246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3248. public override global::System.Data.DataTable Clone() {
  3249. UsersDataTable cln = ((UsersDataTable)(base.Clone()));
  3250. cln.InitVars();
  3251. return cln;
  3252. }
  3253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3255. protected override global::System.Data.DataTable CreateInstance() {
  3256. return new UsersDataTable();
  3257. }
  3258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3260. internal void InitVars() {
  3261. this.columnId = base.Columns["Id"];
  3262. this.columnUsername = base.Columns["Username"];
  3263. this.columnPassword = base.Columns["Password"];
  3264. this.columnRole = base.Columns["Role"];
  3265. }
  3266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3268. private void InitClass() {
  3269. this.columnId = new global::System.Data.DataColumn("Id", typeof(int), null, global::System.Data.MappingType.Element);
  3270. base.Columns.Add(this.columnId);
  3271. this.columnUsername = new global::System.Data.DataColumn("Username", typeof(string), null, global::System.Data.MappingType.Element);
  3272. base.Columns.Add(this.columnUsername);
  3273. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  3274. base.Columns.Add(this.columnPassword);
  3275. this.columnRole = new global::System.Data.DataColumn("Role", typeof(int), null, global::System.Data.MappingType.Element);
  3276. base.Columns.Add(this.columnRole);
  3277. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3278. this.columnId}, true));
  3279. this.columnId.AllowDBNull = false;
  3280. this.columnId.Unique = true;
  3281. this.columnUsername.MaxLength = 50;
  3282. this.columnPassword.MaxLength = 50;
  3283. }
  3284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3286. public UsersRow NewUsersRow() {
  3287. return ((UsersRow)(this.NewRow()));
  3288. }
  3289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3291. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3292. return new UsersRow(builder);
  3293. }
  3294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3296. protected override global::System.Type GetRowType() {
  3297. return typeof(UsersRow);
  3298. }
  3299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3301. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3302. base.OnRowChanged(e);
  3303. if ((this.UsersRowChanged != null)) {
  3304. this.UsersRowChanged(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  3305. }
  3306. }
  3307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3309. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3310. base.OnRowChanging(e);
  3311. if ((this.UsersRowChanging != null)) {
  3312. this.UsersRowChanging(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  3313. }
  3314. }
  3315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3317. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3318. base.OnRowDeleted(e);
  3319. if ((this.UsersRowDeleted != null)) {
  3320. this.UsersRowDeleted(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  3321. }
  3322. }
  3323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3325. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3326. base.OnRowDeleting(e);
  3327. if ((this.UsersRowDeleting != null)) {
  3328. this.UsersRowDeleting(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  3329. }
  3330. }
  3331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3333. public void RemoveUsersRow(UsersRow row) {
  3334. this.Rows.Remove(row);
  3335. }
  3336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3338. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3339. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3340. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3341. digital_world_8DataSet ds = new digital_world_8DataSet();
  3342. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3343. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3344. any1.MinOccurs = new decimal(0);
  3345. any1.MaxOccurs = decimal.MaxValue;
  3346. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3347. sequence.Items.Add(any1);
  3348. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3349. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3350. any2.MinOccurs = new decimal(1);
  3351. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3352. sequence.Items.Add(any2);
  3353. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3354. attribute1.Name = "namespace";
  3355. attribute1.FixedValue = ds.Namespace;
  3356. type.Attributes.Add(attribute1);
  3357. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3358. attribute2.Name = "tableTypeName";
  3359. attribute2.FixedValue = "UsersDataTable";
  3360. type.Attributes.Add(attribute2);
  3361. type.Particle = sequence;
  3362. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3363. if (xs.Contains(dsSchema.TargetNamespace)) {
  3364. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3365. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3366. try {
  3367. global::System.Xml.Schema.XmlSchema schema = null;
  3368. dsSchema.Write(s1);
  3369. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3370. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3371. s2.SetLength(0);
  3372. schema.Write(s2);
  3373. if ((s1.Length == s2.Length)) {
  3374. s1.Position = 0;
  3375. s2.Position = 0;
  3376. for (; ((s1.Position != s1.Length)
  3377. && (s1.ReadByte() == s2.ReadByte())); ) {
  3378. ;
  3379. }
  3380. if ((s1.Position == s1.Length)) {
  3381. return type;
  3382. }
  3383. }
  3384. }
  3385. }
  3386. finally {
  3387. if ((s1 != null)) {
  3388. s1.Close();
  3389. }
  3390. if ((s2 != null)) {
  3391. s2.Close();
  3392. }
  3393. }
  3394. }
  3395. xs.Add(dsSchema);
  3396. return type;
  3397. }
  3398. }
  3399. /// <summary>
  3400. ///Represents the strongly named DataTable class.
  3401. ///</summary>
  3402. [global::System.Serializable()]
  3403. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3404. public partial class PostavkaDataTable : global::System.Data.TypedTableBase<PostavkaRow> {
  3405. private global::System.Data.DataColumn columnДата;
  3406. private global::System.Data.DataColumn columnНаименование_поставщика;
  3407. private global::System.Data.DataColumn columnНазвание_материала;
  3408. private global::System.Data.DataColumn columnТип_материала;
  3409. private global::System.Data.DataColumn columnколичество;
  3410. private global::System.Data.DataColumn columnЕдиница_измерения;
  3411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3413. public PostavkaDataTable() {
  3414. this.TableName = "Postavka";
  3415. this.BeginInit();
  3416. this.InitClass();
  3417. this.EndInit();
  3418. }
  3419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3421. internal PostavkaDataTable(global::System.Data.DataTable table) {
  3422. this.TableName = table.TableName;
  3423. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3424. this.CaseSensitive = table.CaseSensitive;
  3425. }
  3426. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3427. this.Locale = table.Locale;
  3428. }
  3429. if ((table.Namespace != table.DataSet.Namespace)) {
  3430. this.Namespace = table.Namespace;
  3431. }
  3432. this.Prefix = table.Prefix;
  3433. this.MinimumCapacity = table.MinimumCapacity;
  3434. }
  3435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3437. protected PostavkaDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3438. base(info, context) {
  3439. this.InitVars();
  3440. }
  3441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3443. public global::System.Data.DataColumn ДатаColumn {
  3444. get {
  3445. return this.columnДата;
  3446. }
  3447. }
  3448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3450. public global::System.Data.DataColumn Наименование_поставщикаColumn {
  3451. get {
  3452. return this.columnНаименование_поставщика;
  3453. }
  3454. }
  3455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3457. public global::System.Data.DataColumn Название_материалаColumn {
  3458. get {
  3459. return this.columnНазвание_материала;
  3460. }
  3461. }
  3462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3464. public global::System.Data.DataColumn Тип_материалаColumn {
  3465. get {
  3466. return this.columnТип_материала;
  3467. }
  3468. }
  3469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3471. public global::System.Data.DataColumn количествоColumn {
  3472. get {
  3473. return this.columnколичество;
  3474. }
  3475. }
  3476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3478. public global::System.Data.DataColumn Единица_измеренияColumn {
  3479. get {
  3480. return this.columnЕдиница_измерения;
  3481. }
  3482. }
  3483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3485. [global::System.ComponentModel.Browsable(false)]
  3486. public int Count {
  3487. get {
  3488. return this.Rows.Count;
  3489. }
  3490. }
  3491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3493. public PostavkaRow this[int index] {
  3494. get {
  3495. return ((PostavkaRow)(this.Rows[index]));
  3496. }
  3497. }
  3498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3499. public event PostavkaRowChangeEventHandler PostavkaRowChanging;
  3500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3501. public event PostavkaRowChangeEventHandler PostavkaRowChanged;
  3502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3503. public event PostavkaRowChangeEventHandler PostavkaRowDeleting;
  3504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3505. public event PostavkaRowChangeEventHandler PostavkaRowDeleted;
  3506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3508. public void AddPostavkaRow(PostavkaRow row) {
  3509. this.Rows.Add(row);
  3510. }
  3511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3513. public PostavkaRow AddPostavkaRow(System.DateTime Дата, string Наименование_поставщика, string Название_материала, string Тип_материала, int количество, string Единица_измерения) {
  3514. PostavkaRow rowPostavkaRow = ((PostavkaRow)(this.NewRow()));
  3515. object[] columnValuesArray = new object[] {
  3516. Дата,
  3517. Наименование_поставщика,
  3518. Название_материала,
  3519. Тип_материала,
  3520. количество,
  3521. Единица_измерения};
  3522. rowPostavkaRow.ItemArray = columnValuesArray;
  3523. this.Rows.Add(rowPostavkaRow);
  3524. return rowPostavkaRow;
  3525. }
  3526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3528. public override global::System.Data.DataTable Clone() {
  3529. PostavkaDataTable cln = ((PostavkaDataTable)(base.Clone()));
  3530. cln.InitVars();
  3531. return cln;
  3532. }
  3533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3535. protected override global::System.Data.DataTable CreateInstance() {
  3536. return new PostavkaDataTable();
  3537. }
  3538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3540. internal void InitVars() {
  3541. this.columnДата = base.Columns["Дата"];
  3542. this.columnНаименование_поставщика = base.Columns["Наименование поставщика"];
  3543. this.columnНазвание_материала = base.Columns["Название материала"];
  3544. this.columnТип_материала = base.Columns["Тип_материала"];
  3545. this.columnколичество = base.Columns["количество"];
  3546. this.columnЕдиница_измерения = base.Columns["Единица измерения"];
  3547. }
  3548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3550. private void InitClass() {
  3551. this.columnДата = new global::System.Data.DataColumn("Дата", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3552. base.Columns.Add(this.columnДата);
  3553. this.columnНаименование_поставщика = new global::System.Data.DataColumn("Наименование поставщика", typeof(string), null, global::System.Data.MappingType.Element);
  3554. base.Columns.Add(this.columnНаименование_поставщика);
  3555. this.columnНазвание_материала = new global::System.Data.DataColumn("Название материала", typeof(string), null, global::System.Data.MappingType.Element);
  3556. base.Columns.Add(this.columnНазвание_материала);
  3557. this.columnТип_материала = new global::System.Data.DataColumn("Тип_материала", typeof(string), null, global::System.Data.MappingType.Element);
  3558. base.Columns.Add(this.columnТип_материала);
  3559. this.columnколичество = new global::System.Data.DataColumn("количество", typeof(int), null, global::System.Data.MappingType.Element);
  3560. base.Columns.Add(this.columnколичество);
  3561. this.columnЕдиница_измерения = new global::System.Data.DataColumn("Единица измерения", typeof(string), null, global::System.Data.MappingType.Element);
  3562. base.Columns.Add(this.columnЕдиница_измерения);
  3563. this.columnНаименование_поставщика.MaxLength = 50;
  3564. this.columnНазвание_материала.MaxLength = 2147483647;
  3565. this.columnТип_материала.MaxLength = 50;
  3566. this.columnЕдиница_измерения.MaxLength = 50;
  3567. }
  3568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3570. public PostavkaRow NewPostavkaRow() {
  3571. return ((PostavkaRow)(this.NewRow()));
  3572. }
  3573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3575. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3576. return new PostavkaRow(builder);
  3577. }
  3578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3580. protected override global::System.Type GetRowType() {
  3581. return typeof(PostavkaRow);
  3582. }
  3583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3585. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3586. base.OnRowChanged(e);
  3587. if ((this.PostavkaRowChanged != null)) {
  3588. this.PostavkaRowChanged(this, new PostavkaRowChangeEvent(((PostavkaRow)(e.Row)), e.Action));
  3589. }
  3590. }
  3591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3593. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3594. base.OnRowChanging(e);
  3595. if ((this.PostavkaRowChanging != null)) {
  3596. this.PostavkaRowChanging(this, new PostavkaRowChangeEvent(((PostavkaRow)(e.Row)), e.Action));
  3597. }
  3598. }
  3599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3601. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3602. base.OnRowDeleted(e);
  3603. if ((this.PostavkaRowDeleted != null)) {
  3604. this.PostavkaRowDeleted(this, new PostavkaRowChangeEvent(((PostavkaRow)(e.Row)), e.Action));
  3605. }
  3606. }
  3607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3609. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3610. base.OnRowDeleting(e);
  3611. if ((this.PostavkaRowDeleting != null)) {
  3612. this.PostavkaRowDeleting(this, new PostavkaRowChangeEvent(((PostavkaRow)(e.Row)), e.Action));
  3613. }
  3614. }
  3615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3617. public void RemovePostavkaRow(PostavkaRow row) {
  3618. this.Rows.Remove(row);
  3619. }
  3620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3622. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3623. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3624. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3625. digital_world_8DataSet ds = new digital_world_8DataSet();
  3626. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3627. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3628. any1.MinOccurs = new decimal(0);
  3629. any1.MaxOccurs = decimal.MaxValue;
  3630. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3631. sequence.Items.Add(any1);
  3632. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3633. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3634. any2.MinOccurs = new decimal(1);
  3635. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3636. sequence.Items.Add(any2);
  3637. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3638. attribute1.Name = "namespace";
  3639. attribute1.FixedValue = ds.Namespace;
  3640. type.Attributes.Add(attribute1);
  3641. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3642. attribute2.Name = "tableTypeName";
  3643. attribute2.FixedValue = "PostavkaDataTable";
  3644. type.Attributes.Add(attribute2);
  3645. type.Particle = sequence;
  3646. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3647. if (xs.Contains(dsSchema.TargetNamespace)) {
  3648. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3649. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3650. try {
  3651. global::System.Xml.Schema.XmlSchema schema = null;
  3652. dsSchema.Write(s1);
  3653. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3654. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3655. s2.SetLength(0);
  3656. schema.Write(s2);
  3657. if ((s1.Length == s2.Length)) {
  3658. s1.Position = 0;
  3659. s2.Position = 0;
  3660. for (; ((s1.Position != s1.Length)
  3661. && (s1.ReadByte() == s2.ReadByte())); ) {
  3662. ;
  3663. }
  3664. if ((s1.Position == s1.Length)) {
  3665. return type;
  3666. }
  3667. }
  3668. }
  3669. }
  3670. finally {
  3671. if ((s1 != null)) {
  3672. s1.Close();
  3673. }
  3674. if ((s2 != null)) {
  3675. s2.Close();
  3676. }
  3677. }
  3678. }
  3679. xs.Add(dsSchema);
  3680. return type;
  3681. }
  3682. }
  3683. /// <summary>
  3684. ///Represents the strongly named DataTable class.
  3685. ///</summary>
  3686. [global::System.Serializable()]
  3687. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3688. public partial class ZakazDataTable : global::System.Data.TypedTableBase<ZakazRow> {
  3689. private global::System.Data.DataColumn columnНомер_заказа;
  3690. private global::System.Data.DataColumn columnНазвание_статуса;
  3691. private global::System.Data.DataColumn columnВидеокарта;
  3692. private global::System.Data.DataColumn columnМатеринская_плата;
  3693. private global::System.Data.DataColumn columnПроцессор;
  3694. private global::System.Data.DataColumn columnОперативная_память;
  3695. private global::System.Data.DataColumn _columnОперативная_память;
  3696. private global::System.Data.DataColumn columnЖетский_диск;
  3697. private global::System.Data.DataColumn columnКуллер;
  3698. private global::System.Data.DataColumn columnСистема_охлаждения;
  3699. private global::System.Data.DataColumn columnБлок_питания;
  3700. private global::System.Data.DataColumn columnSSD;
  3701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3703. public ZakazDataTable() {
  3704. this.TableName = "Zakaz";
  3705. this.BeginInit();
  3706. this.InitClass();
  3707. this.EndInit();
  3708. }
  3709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3711. internal ZakazDataTable(global::System.Data.DataTable table) {
  3712. this.TableName = table.TableName;
  3713. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3714. this.CaseSensitive = table.CaseSensitive;
  3715. }
  3716. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3717. this.Locale = table.Locale;
  3718. }
  3719. if ((table.Namespace != table.DataSet.Namespace)) {
  3720. this.Namespace = table.Namespace;
  3721. }
  3722. this.Prefix = table.Prefix;
  3723. this.MinimumCapacity = table.MinimumCapacity;
  3724. }
  3725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3727. protected ZakazDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3728. base(info, context) {
  3729. this.InitVars();
  3730. }
  3731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3733. public global::System.Data.DataColumn Номер_заказаColumn {
  3734. get {
  3735. return this.columnНомер_заказа;
  3736. }
  3737. }
  3738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3740. public global::System.Data.DataColumn Название_статусаColumn {
  3741. get {
  3742. return this.columnНазвание_статуса;
  3743. }
  3744. }
  3745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3747. public global::System.Data.DataColumn ВидеокартаColumn {
  3748. get {
  3749. return this.columnВидеокарта;
  3750. }
  3751. }
  3752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3754. public global::System.Data.DataColumn Материнская_платаColumn {
  3755. get {
  3756. return this.columnМатеринская_плата;
  3757. }
  3758. }
  3759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3761. public global::System.Data.DataColumn ПроцессорColumn {
  3762. get {
  3763. return this.columnПроцессор;
  3764. }
  3765. }
  3766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3768. public global::System.Data.DataColumn Оперативная_памятьColumn {
  3769. get {
  3770. return this.columnОперативная_память;
  3771. }
  3772. }
  3773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3775. public global::System.Data.DataColumn _Оперативная_памятьColumn {
  3776. get {
  3777. return this._columnОперативная_память;
  3778. }
  3779. }
  3780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3782. public global::System.Data.DataColumn Жетский_дискColumn {
  3783. get {
  3784. return this.columnЖетский_диск;
  3785. }
  3786. }
  3787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3789. public global::System.Data.DataColumn КуллерColumn {
  3790. get {
  3791. return this.columnКуллер;
  3792. }
  3793. }
  3794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3796. public global::System.Data.DataColumn Система_охлажденияColumn {
  3797. get {
  3798. return this.columnСистема_охлаждения;
  3799. }
  3800. }
  3801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3803. public global::System.Data.DataColumn Блок_питанияColumn {
  3804. get {
  3805. return this.columnБлок_питания;
  3806. }
  3807. }
  3808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3810. public global::System.Data.DataColumn SSDColumn {
  3811. get {
  3812. return this.columnSSD;
  3813. }
  3814. }
  3815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3817. [global::System.ComponentModel.Browsable(false)]
  3818. public int Count {
  3819. get {
  3820. return this.Rows.Count;
  3821. }
  3822. }
  3823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3825. public ZakazRow this[int index] {
  3826. get {
  3827. return ((ZakazRow)(this.Rows[index]));
  3828. }
  3829. }
  3830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3831. public event ZakazRowChangeEventHandler ZakazRowChanging;
  3832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3833. public event ZakazRowChangeEventHandler ZakazRowChanged;
  3834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3835. public event ZakazRowChangeEventHandler ZakazRowDeleting;
  3836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3837. public event ZakazRowChangeEventHandler ZakazRowDeleted;
  3838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3840. public void AddZakazRow(ZakazRow row) {
  3841. this.Rows.Add(row);
  3842. }
  3843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3845. public ZakazRow AddZakazRow(int Номер_заказа, string Название_статуса, string Видеокарта, string Материнская_плата, string Процессор, string Оперативная_память, string _Оперативная_память, string Жетский_диск, string Куллер, string Система_охлаждения, string Блок_питания, string SSD) {
  3846. ZakazRow rowZakazRow = ((ZakazRow)(this.NewRow()));
  3847. object[] columnValuesArray = new object[] {
  3848. Номер_заказа,
  3849. Название_статуса,
  3850. Видеокарта,
  3851. Материнская_плата,
  3852. Процессор,
  3853. Оперативная_память,
  3854. _Оперативная_память,
  3855. Жетский_диск,
  3856. Куллер,
  3857. Система_охлаждения,
  3858. Блок_питания,
  3859. SSD};
  3860. rowZakazRow.ItemArray = columnValuesArray;
  3861. this.Rows.Add(rowZakazRow);
  3862. return rowZakazRow;
  3863. }
  3864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3866. public override global::System.Data.DataTable Clone() {
  3867. ZakazDataTable cln = ((ZakazDataTable)(base.Clone()));
  3868. cln.InitVars();
  3869. return cln;
  3870. }
  3871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3873. protected override global::System.Data.DataTable CreateInstance() {
  3874. return new ZakazDataTable();
  3875. }
  3876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3878. internal void InitVars() {
  3879. this.columnНомер_заказа = base.Columns["Номер заказа"];
  3880. this.columnНазвание_статуса = base.Columns["Название статуса"];
  3881. this.columnВидеокарта = base.Columns["Видеокарта"];
  3882. this.columnМатеринская_плата = base.Columns["Материнская плата"];
  3883. this.columnПроцессор = base.Columns["Процессор"];
  3884. this.columnОперативная_память = base.Columns["Оперативная память"];
  3885. this._columnОперативная_память = base.Columns["Оперативная_память"];
  3886. this.columnЖетский_диск = base.Columns["Жетский диск"];
  3887. this.columnКуллер = base.Columns["Куллер"];
  3888. this.columnСистема_охлаждения = base.Columns["Система охлаждения"];
  3889. this.columnБлок_питания = base.Columns["Блок питания"];
  3890. this.columnSSD = base.Columns["SSD"];
  3891. }
  3892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3894. private void InitClass() {
  3895. this.columnНомер_заказа = new global::System.Data.DataColumn("Номер заказа", typeof(int), null, global::System.Data.MappingType.Element);
  3896. base.Columns.Add(this.columnНомер_заказа);
  3897. this.columnНазвание_статуса = new global::System.Data.DataColumn("Название статуса", typeof(string), null, global::System.Data.MappingType.Element);
  3898. base.Columns.Add(this.columnНазвание_статуса);
  3899. this.columnВидеокарта = new global::System.Data.DataColumn("Видеокарта", typeof(string), null, global::System.Data.MappingType.Element);
  3900. base.Columns.Add(this.columnВидеокарта);
  3901. this.columnМатеринская_плата = new global::System.Data.DataColumn("Материнская плата", typeof(string), null, global::System.Data.MappingType.Element);
  3902. base.Columns.Add(this.columnМатеринская_плата);
  3903. this.columnПроцессор = new global::System.Data.DataColumn("Процессор", typeof(string), null, global::System.Data.MappingType.Element);
  3904. base.Columns.Add(this.columnПроцессор);
  3905. this.columnОперативная_память = new global::System.Data.DataColumn("Оперативная память", typeof(string), null, global::System.Data.MappingType.Element);
  3906. base.Columns.Add(this.columnОперативная_память);
  3907. this._columnОперативная_память = new global::System.Data.DataColumn("Оперативная_память", typeof(string), null, global::System.Data.MappingType.Element);
  3908. this._columnОперативная_память.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnОперативная_память");
  3909. this._columnОперативная_память.ExtendedProperties.Add("Generator_UserColumnName", "Оперативная_память");
  3910. base.Columns.Add(this._columnОперативная_память);
  3911. this.columnЖетский_диск = new global::System.Data.DataColumn("Жетский диск", typeof(string), null, global::System.Data.MappingType.Element);
  3912. base.Columns.Add(this.columnЖетский_диск);
  3913. this.columnКуллер = new global::System.Data.DataColumn("Куллер", typeof(string), null, global::System.Data.MappingType.Element);
  3914. base.Columns.Add(this.columnКуллер);
  3915. this.columnСистема_охлаждения = new global::System.Data.DataColumn("Система охлаждения", typeof(string), null, global::System.Data.MappingType.Element);
  3916. base.Columns.Add(this.columnСистема_охлаждения);
  3917. this.columnБлок_питания = new global::System.Data.DataColumn("Блок питания", typeof(string), null, global::System.Data.MappingType.Element);
  3918. base.Columns.Add(this.columnБлок_питания);
  3919. this.columnSSD = new global::System.Data.DataColumn("SSD", typeof(string), null, global::System.Data.MappingType.Element);
  3920. base.Columns.Add(this.columnSSD);
  3921. this.columnНазвание_статуса.MaxLength = 50;
  3922. this.columnВидеокарта.MaxLength = 150;
  3923. this.columnМатеринская_плата.MaxLength = 150;
  3924. this.columnПроцессор.MaxLength = 150;
  3925. this.columnОперативная_память.MaxLength = 150;
  3926. this._columnОперативная_память.MaxLength = 150;
  3927. this.columnЖетский_диск.MaxLength = 150;
  3928. this.columnКуллер.MaxLength = 150;
  3929. this.columnСистема_охлаждения.MaxLength = 150;
  3930. this.columnБлок_питания.MaxLength = 150;
  3931. this.columnSSD.MaxLength = 150;
  3932. }
  3933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3935. public ZakazRow NewZakazRow() {
  3936. return ((ZakazRow)(this.NewRow()));
  3937. }
  3938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3940. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3941. return new ZakazRow(builder);
  3942. }
  3943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3945. protected override global::System.Type GetRowType() {
  3946. return typeof(ZakazRow);
  3947. }
  3948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3950. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3951. base.OnRowChanged(e);
  3952. if ((this.ZakazRowChanged != null)) {
  3953. this.ZakazRowChanged(this, new ZakazRowChangeEvent(((ZakazRow)(e.Row)), e.Action));
  3954. }
  3955. }
  3956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3958. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3959. base.OnRowChanging(e);
  3960. if ((this.ZakazRowChanging != null)) {
  3961. this.ZakazRowChanging(this, new ZakazRowChangeEvent(((ZakazRow)(e.Row)), e.Action));
  3962. }
  3963. }
  3964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3966. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3967. base.OnRowDeleted(e);
  3968. if ((this.ZakazRowDeleted != null)) {
  3969. this.ZakazRowDeleted(this, new ZakazRowChangeEvent(((ZakazRow)(e.Row)), e.Action));
  3970. }
  3971. }
  3972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3974. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3975. base.OnRowDeleting(e);
  3976. if ((this.ZakazRowDeleting != null)) {
  3977. this.ZakazRowDeleting(this, new ZakazRowChangeEvent(((ZakazRow)(e.Row)), e.Action));
  3978. }
  3979. }
  3980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3982. public void RemoveZakazRow(ZakazRow row) {
  3983. this.Rows.Remove(row);
  3984. }
  3985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3987. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3988. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3989. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3990. digital_world_8DataSet ds = new digital_world_8DataSet();
  3991. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3992. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3993. any1.MinOccurs = new decimal(0);
  3994. any1.MaxOccurs = decimal.MaxValue;
  3995. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3996. sequence.Items.Add(any1);
  3997. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3998. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3999. any2.MinOccurs = new decimal(1);
  4000. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4001. sequence.Items.Add(any2);
  4002. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4003. attribute1.Name = "namespace";
  4004. attribute1.FixedValue = ds.Namespace;
  4005. type.Attributes.Add(attribute1);
  4006. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4007. attribute2.Name = "tableTypeName";
  4008. attribute2.FixedValue = "ZakazDataTable";
  4009. type.Attributes.Add(attribute2);
  4010. type.Particle = sequence;
  4011. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4012. if (xs.Contains(dsSchema.TargetNamespace)) {
  4013. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4014. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4015. try {
  4016. global::System.Xml.Schema.XmlSchema schema = null;
  4017. dsSchema.Write(s1);
  4018. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4019. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4020. s2.SetLength(0);
  4021. schema.Write(s2);
  4022. if ((s1.Length == s2.Length)) {
  4023. s1.Position = 0;
  4024. s2.Position = 0;
  4025. for (; ((s1.Position != s1.Length)
  4026. && (s1.ReadByte() == s2.ReadByte())); ) {
  4027. ;
  4028. }
  4029. if ((s1.Position == s1.Length)) {
  4030. return type;
  4031. }
  4032. }
  4033. }
  4034. }
  4035. finally {
  4036. if ((s1 != null)) {
  4037. s1.Close();
  4038. }
  4039. if ((s2 != null)) {
  4040. s2.Close();
  4041. }
  4042. }
  4043. }
  4044. xs.Add(dsSchema);
  4045. return type;
  4046. }
  4047. }
  4048. /// <summary>
  4049. ///Represents strongly named DataRow class.
  4050. ///</summary>
  4051. public partial class ComponentsRow : global::System.Data.DataRow {
  4052. private ComponentsDataTable tableComponents;
  4053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4055. internal ComponentsRow(global::System.Data.DataRowBuilder rb) :
  4056. base(rb) {
  4057. this.tableComponents = ((ComponentsDataTable)(this.Table));
  4058. }
  4059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4061. public int id {
  4062. get {
  4063. return ((int)(this[this.tableComponents.idColumn]));
  4064. }
  4065. set {
  4066. this[this.tableComponents.idColumn] = value;
  4067. }
  4068. }
  4069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4071. public string Название {
  4072. get {
  4073. try {
  4074. return ((string)(this[this.tableComponents.НазваниеColumn]));
  4075. }
  4076. catch (global::System.InvalidCastException e) {
  4077. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'Components\' равно DBNull.", e);
  4078. }
  4079. }
  4080. set {
  4081. this[this.tableComponents.НазваниеColumn] = value;
  4082. }
  4083. }
  4084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4086. public int Id_единицы_измерения {
  4087. get {
  4088. try {
  4089. return ((int)(this[this.tableComponents.Id_единицы_измеренияColumn]));
  4090. }
  4091. catch (global::System.InvalidCastException e) {
  4092. throw new global::System.Data.StrongTypingException("Значение для столбца \'Id единицы измерения\' в таблице \'Components\' равно DBNull.", e);
  4093. }
  4094. }
  4095. set {
  4096. this[this.tableComponents.Id_единицы_измеренияColumn] = value;
  4097. }
  4098. }
  4099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4101. public string Тип_материала {
  4102. get {
  4103. try {
  4104. return ((string)(this[this.tableComponents.Тип_материалаColumn]));
  4105. }
  4106. catch (global::System.InvalidCastException e) {
  4107. throw new global::System.Data.StrongTypingException("Значение для столбца \'Тип_материала\' в таблице \'Components\' равно DBNull.", e);
  4108. }
  4109. }
  4110. set {
  4111. this[this.tableComponents.Тип_материалаColumn] = value;
  4112. }
  4113. }
  4114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4116. public int Цена {
  4117. get {
  4118. try {
  4119. return ((int)(this[this.tableComponents.ЦенаColumn]));
  4120. }
  4121. catch (global::System.InvalidCastException e) {
  4122. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Components\' равно DBNull.", e);
  4123. }
  4124. }
  4125. set {
  4126. this[this.tableComponents.ЦенаColumn] = value;
  4127. }
  4128. }
  4129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4131. public int количество {
  4132. get {
  4133. try {
  4134. return ((int)(this[this.tableComponents.количествоColumn]));
  4135. }
  4136. catch (global::System.InvalidCastException e) {
  4137. throw new global::System.Data.StrongTypingException("Значение для столбца \'количество\' в таблице \'Components\' равно DBNull.", e);
  4138. }
  4139. }
  4140. set {
  4141. this[this.tableComponents.количествоColumn] = value;
  4142. }
  4143. }
  4144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4146. public unit_of_measurementRow unit_of_measurementRow {
  4147. get {
  4148. return ((unit_of_measurementRow)(this.GetParentRow(this.Table.ParentRelations["FK_Components_unit_of_measurement"])));
  4149. }
  4150. set {
  4151. this.SetParentRow(value, this.Table.ParentRelations["FK_Components_unit_of_measurement"]);
  4152. }
  4153. }
  4154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4156. public bool IsНазваниеNull() {
  4157. return this.IsNull(this.tableComponents.НазваниеColumn);
  4158. }
  4159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4161. public void SetНазваниеNull() {
  4162. this[this.tableComponents.НазваниеColumn] = global::System.Convert.DBNull;
  4163. }
  4164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4166. public bool IsId_единицы_измеренияNull() {
  4167. return this.IsNull(this.tableComponents.Id_единицы_измеренияColumn);
  4168. }
  4169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4171. public void SetId_единицы_измеренияNull() {
  4172. this[this.tableComponents.Id_единицы_измеренияColumn] = global::System.Convert.DBNull;
  4173. }
  4174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4176. public bool IsТип_материалаNull() {
  4177. return this.IsNull(this.tableComponents.Тип_материалаColumn);
  4178. }
  4179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4181. public void SetТип_материалаNull() {
  4182. this[this.tableComponents.Тип_материалаColumn] = global::System.Convert.DBNull;
  4183. }
  4184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4186. public bool IsЦенаNull() {
  4187. return this.IsNull(this.tableComponents.ЦенаColumn);
  4188. }
  4189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4191. public void SetЦенаNull() {
  4192. this[this.tableComponents.ЦенаColumn] = global::System.Convert.DBNull;
  4193. }
  4194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4196. public bool IsколичествоNull() {
  4197. return this.IsNull(this.tableComponents.количествоColumn);
  4198. }
  4199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4201. public void SetколичествоNull() {
  4202. this[this.tableComponents.количествоColumn] = global::System.Convert.DBNull;
  4203. }
  4204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4206. public receipt_of_goodsRow[] Getreceipt_of_goodsRows() {
  4207. if ((this.Table.ChildRelations["FK_receipt_of_goods_Components"] == null)) {
  4208. return new receipt_of_goodsRow[0];
  4209. }
  4210. else {
  4211. return ((receipt_of_goodsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_receipt_of_goods_Components"])));
  4212. }
  4213. }
  4214. }
  4215. /// <summary>
  4216. ///Represents strongly named DataRow class.
  4217. ///</summary>
  4218. public partial class computer_assemblyRow : global::System.Data.DataRow {
  4219. private computer_assemblyDataTable tablecomputer_assembly;
  4220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4222. internal computer_assemblyRow(global::System.Data.DataRowBuilder rb) :
  4223. base(rb) {
  4224. this.tablecomputer_assembly = ((computer_assemblyDataTable)(this.Table));
  4225. }
  4226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4228. public int id_сборки {
  4229. get {
  4230. return ((int)(this[this.tablecomputer_assembly.id_сборкиColumn]));
  4231. }
  4232. set {
  4233. this[this.tablecomputer_assembly.id_сборкиColumn] = value;
  4234. }
  4235. }
  4236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4238. public int Id_компонентов {
  4239. get {
  4240. try {
  4241. return ((int)(this[this.tablecomputer_assembly.Id_компонентовColumn]));
  4242. }
  4243. catch (global::System.InvalidCastException e) {
  4244. throw new global::System.Data.StrongTypingException("Значение для столбца \'Id компонентов\' в таблице \'computer_assembly\' равно DBNull." +
  4245. "", e);
  4246. }
  4247. }
  4248. set {
  4249. this[this.tablecomputer_assembly.Id_компонентовColumn] = value;
  4250. }
  4251. }
  4252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4254. public int Количество {
  4255. get {
  4256. try {
  4257. return ((int)(this[this.tablecomputer_assembly.КоличествоColumn]));
  4258. }
  4259. catch (global::System.InvalidCastException e) {
  4260. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'computer_assembly\' равно DBNull.", e);
  4261. }
  4262. }
  4263. set {
  4264. this[this.tablecomputer_assembly.КоличествоColumn] = value;
  4265. }
  4266. }
  4267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4269. public string Видеокарта {
  4270. get {
  4271. try {
  4272. return ((string)(this[this.tablecomputer_assembly.ВидеокартаColumn]));
  4273. }
  4274. catch (global::System.InvalidCastException e) {
  4275. throw new global::System.Data.StrongTypingException("Значение для столбца \'Видеокарта\' в таблице \'computer_assembly\' равно DBNull.", e);
  4276. }
  4277. }
  4278. set {
  4279. this[this.tablecomputer_assembly.ВидеокартаColumn] = value;
  4280. }
  4281. }
  4282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4284. public string Материнская_плата {
  4285. get {
  4286. try {
  4287. return ((string)(this[this.tablecomputer_assembly.Материнская_платаColumn]));
  4288. }
  4289. catch (global::System.InvalidCastException e) {
  4290. throw new global::System.Data.StrongTypingException("Значение для столбца \'Материнская плата\' в таблице \'computer_assembly\' равно DBNu" +
  4291. "ll.", e);
  4292. }
  4293. }
  4294. set {
  4295. this[this.tablecomputer_assembly.Материнская_платаColumn] = value;
  4296. }
  4297. }
  4298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4300. public string Процессор {
  4301. get {
  4302. try {
  4303. return ((string)(this[this.tablecomputer_assembly.ПроцессорColumn]));
  4304. }
  4305. catch (global::System.InvalidCastException e) {
  4306. throw new global::System.Data.StrongTypingException("Значение для столбца \'Процессор\' в таблице \'computer_assembly\' равно DBNull.", e);
  4307. }
  4308. }
  4309. set {
  4310. this[this.tablecomputer_assembly.ПроцессорColumn] = value;
  4311. }
  4312. }
  4313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4315. public string Оперативная_память {
  4316. get {
  4317. try {
  4318. return ((string)(this[this.tablecomputer_assembly.Оперативная_памятьColumn]));
  4319. }
  4320. catch (global::System.InvalidCastException e) {
  4321. throw new global::System.Data.StrongTypingException("Значение для столбца \'Оперативная память\' в таблице \'computer_assembly\' равно DBN" +
  4322. "ull.", e);
  4323. }
  4324. }
  4325. set {
  4326. this[this.tablecomputer_assembly.Оперативная_памятьColumn] = value;
  4327. }
  4328. }
  4329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4331. public string _Оперативная_память {
  4332. get {
  4333. try {
  4334. return ((string)(this[this.tablecomputer_assembly._Оперативная_памятьColumn]));
  4335. }
  4336. catch (global::System.InvalidCastException e) {
  4337. throw new global::System.Data.StrongTypingException("Значение для столбца \'Оперативная_память\' в таблице \'computer_assembly\' равно DBN" +
  4338. "ull.", e);
  4339. }
  4340. }
  4341. set {
  4342. this[this.tablecomputer_assembly._Оперативная_памятьColumn] = value;
  4343. }
  4344. }
  4345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4347. public string Жетский_диск {
  4348. get {
  4349. try {
  4350. return ((string)(this[this.tablecomputer_assembly.Жетский_дискColumn]));
  4351. }
  4352. catch (global::System.InvalidCastException e) {
  4353. throw new global::System.Data.StrongTypingException("Значение для столбца \'Жетский диск\' в таблице \'computer_assembly\' равно DBNull.", e);
  4354. }
  4355. }
  4356. set {
  4357. this[this.tablecomputer_assembly.Жетский_дискColumn] = value;
  4358. }
  4359. }
  4360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4362. public string Куллер {
  4363. get {
  4364. try {
  4365. return ((string)(this[this.tablecomputer_assembly.КуллерColumn]));
  4366. }
  4367. catch (global::System.InvalidCastException e) {
  4368. throw new global::System.Data.StrongTypingException("Значение для столбца \'Куллер\' в таблице \'computer_assembly\' равно DBNull.", e);
  4369. }
  4370. }
  4371. set {
  4372. this[this.tablecomputer_assembly.КуллерColumn] = value;
  4373. }
  4374. }
  4375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4377. public string Система_охлаждения {
  4378. get {
  4379. try {
  4380. return ((string)(this[this.tablecomputer_assembly.Система_охлажденияColumn]));
  4381. }
  4382. catch (global::System.InvalidCastException e) {
  4383. throw new global::System.Data.StrongTypingException("Значение для столбца \'Система охлаждения\' в таблице \'computer_assembly\' равно DBN" +
  4384. "ull.", e);
  4385. }
  4386. }
  4387. set {
  4388. this[this.tablecomputer_assembly.Система_охлажденияColumn] = value;
  4389. }
  4390. }
  4391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4393. public string Блок_питания {
  4394. get {
  4395. try {
  4396. return ((string)(this[this.tablecomputer_assembly.Блок_питанияColumn]));
  4397. }
  4398. catch (global::System.InvalidCastException e) {
  4399. throw new global::System.Data.StrongTypingException("Значение для столбца \'Блок питания\' в таблице \'computer_assembly\' равно DBNull.", e);
  4400. }
  4401. }
  4402. set {
  4403. this[this.tablecomputer_assembly.Блок_питанияColumn] = value;
  4404. }
  4405. }
  4406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4408. public string SSD {
  4409. get {
  4410. try {
  4411. return ((string)(this[this.tablecomputer_assembly.SSDColumn]));
  4412. }
  4413. catch (global::System.InvalidCastException e) {
  4414. throw new global::System.Data.StrongTypingException("Значение для столбца \'SSD\' в таблице \'computer_assembly\' равно DBNull.", e);
  4415. }
  4416. }
  4417. set {
  4418. this[this.tablecomputer_assembly.SSDColumn] = value;
  4419. }
  4420. }
  4421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4423. public bool IsId_компонентовNull() {
  4424. return this.IsNull(this.tablecomputer_assembly.Id_компонентовColumn);
  4425. }
  4426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4428. public void SetId_компонентовNull() {
  4429. this[this.tablecomputer_assembly.Id_компонентовColumn] = global::System.Convert.DBNull;
  4430. }
  4431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4433. public bool IsКоличествоNull() {
  4434. return this.IsNull(this.tablecomputer_assembly.КоличествоColumn);
  4435. }
  4436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4438. public void SetКоличествоNull() {
  4439. this[this.tablecomputer_assembly.КоличествоColumn] = global::System.Convert.DBNull;
  4440. }
  4441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4443. public bool IsВидеокартаNull() {
  4444. return this.IsNull(this.tablecomputer_assembly.ВидеокартаColumn);
  4445. }
  4446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4448. public void SetВидеокартаNull() {
  4449. this[this.tablecomputer_assembly.ВидеокартаColumn] = global::System.Convert.DBNull;
  4450. }
  4451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4453. public bool IsМатеринская_платаNull() {
  4454. return this.IsNull(this.tablecomputer_assembly.Материнская_платаColumn);
  4455. }
  4456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4458. public void SetМатеринская_платаNull() {
  4459. this[this.tablecomputer_assembly.Материнская_платаColumn] = global::System.Convert.DBNull;
  4460. }
  4461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4463. public bool IsПроцессорNull() {
  4464. return this.IsNull(this.tablecomputer_assembly.ПроцессорColumn);
  4465. }
  4466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4468. public void SetПроцессорNull() {
  4469. this[this.tablecomputer_assembly.ПроцессорColumn] = global::System.Convert.DBNull;
  4470. }
  4471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4473. public bool IsОперативная_памятьNull() {
  4474. return this.IsNull(this.tablecomputer_assembly.Оперативная_памятьColumn);
  4475. }
  4476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4478. public void SetОперативная_памятьNull() {
  4479. this[this.tablecomputer_assembly.Оперативная_памятьColumn] = global::System.Convert.DBNull;
  4480. }
  4481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4483. public bool Is_Оперативная_памятьNull() {
  4484. return this.IsNull(this.tablecomputer_assembly._Оперативная_памятьColumn);
  4485. }
  4486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4488. public void Set_Оперативная_памятьNull() {
  4489. this[this.tablecomputer_assembly._Оперативная_памятьColumn] = global::System.Convert.DBNull;
  4490. }
  4491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4493. public bool IsЖетский_дискNull() {
  4494. return this.IsNull(this.tablecomputer_assembly.Жетский_дискColumn);
  4495. }
  4496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4498. public void SetЖетский_дискNull() {
  4499. this[this.tablecomputer_assembly.Жетский_дискColumn] = global::System.Convert.DBNull;
  4500. }
  4501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4503. public bool IsКуллерNull() {
  4504. return this.IsNull(this.tablecomputer_assembly.КуллерColumn);
  4505. }
  4506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4508. public void SetКуллерNull() {
  4509. this[this.tablecomputer_assembly.КуллерColumn] = global::System.Convert.DBNull;
  4510. }
  4511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4513. public bool IsСистема_охлажденияNull() {
  4514. return this.IsNull(this.tablecomputer_assembly.Система_охлажденияColumn);
  4515. }
  4516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4518. public void SetСистема_охлажденияNull() {
  4519. this[this.tablecomputer_assembly.Система_охлажденияColumn] = global::System.Convert.DBNull;
  4520. }
  4521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4523. public bool IsБлок_питанияNull() {
  4524. return this.IsNull(this.tablecomputer_assembly.Блок_питанияColumn);
  4525. }
  4526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4528. public void SetБлок_питанияNull() {
  4529. this[this.tablecomputer_assembly.Блок_питанияColumn] = global::System.Convert.DBNull;
  4530. }
  4531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4533. public bool IsSSDNull() {
  4534. return this.IsNull(this.tablecomputer_assembly.SSDColumn);
  4535. }
  4536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4538. public void SetSSDNull() {
  4539. this[this.tablecomputer_assembly.SSDColumn] = global::System.Convert.DBNull;
  4540. }
  4541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4543. public OrderRow[] GetOrderRows() {
  4544. if ((this.Table.ChildRelations["FK_Order_computer_assembly"] == null)) {
  4545. return new OrderRow[0];
  4546. }
  4547. else {
  4548. return ((OrderRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Order_computer_assembly"])));
  4549. }
  4550. }
  4551. }
  4552. /// <summary>
  4553. ///Represents strongly named DataRow class.
  4554. ///</summary>
  4555. public partial class OrderRow : global::System.Data.DataRow {
  4556. private OrderDataTable tableOrder;
  4557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4559. internal OrderRow(global::System.Data.DataRowBuilder rb) :
  4560. base(rb) {
  4561. this.tableOrder = ((OrderDataTable)(this.Table));
  4562. }
  4563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4565. public int Id_заказа {
  4566. get {
  4567. return ((int)(this[this.tableOrder.Id_заказаColumn]));
  4568. }
  4569. set {
  4570. this[this.tableOrder.Id_заказаColumn] = value;
  4571. }
  4572. }
  4573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4575. public int Номер_заказа {
  4576. get {
  4577. try {
  4578. return ((int)(this[this.tableOrder.Номер_заказаColumn]));
  4579. }
  4580. catch (global::System.InvalidCastException e) {
  4581. throw new global::System.Data.StrongTypingException("Значение для столбца \'Номер заказа\' в таблице \'Order\' равно DBNull.", e);
  4582. }
  4583. }
  4584. set {
  4585. this[this.tableOrder.Номер_заказаColumn] = value;
  4586. }
  4587. }
  4588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4590. public System.DateTime Дата {
  4591. get {
  4592. try {
  4593. return ((global::System.DateTime)(this[this.tableOrder.ДатаColumn]));
  4594. }
  4595. catch (global::System.InvalidCastException e) {
  4596. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата\' в таблице \'Order\' равно DBNull.", e);
  4597. }
  4598. }
  4599. set {
  4600. this[this.tableOrder.ДатаColumn] = value;
  4601. }
  4602. }
  4603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4605. public int id_сборки {
  4606. get {
  4607. try {
  4608. return ((int)(this[this.tableOrder.id_сборкиColumn]));
  4609. }
  4610. catch (global::System.InvalidCastException e) {
  4611. throw new global::System.Data.StrongTypingException("Значение для столбца \'id сборки\' в таблице \'Order\' равно DBNull.", e);
  4612. }
  4613. }
  4614. set {
  4615. this[this.tableOrder.id_сборкиColumn] = value;
  4616. }
  4617. }
  4618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4620. public int id_статуса {
  4621. get {
  4622. try {
  4623. return ((int)(this[this.tableOrder.id_статусаColumn]));
  4624. }
  4625. catch (global::System.InvalidCastException e) {
  4626. throw new global::System.Data.StrongTypingException("Значение для столбца \'id статуса\' в таблице \'Order\' равно DBNull.", e);
  4627. }
  4628. }
  4629. set {
  4630. this[this.tableOrder.id_статусаColumn] = value;
  4631. }
  4632. }
  4633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4635. public computer_assemblyRow computer_assemblyRow {
  4636. get {
  4637. return ((computer_assemblyRow)(this.GetParentRow(this.Table.ParentRelations["FK_Order_computer_assembly"])));
  4638. }
  4639. set {
  4640. this.SetParentRow(value, this.Table.ParentRelations["FK_Order_computer_assembly"]);
  4641. }
  4642. }
  4643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4645. public order_by_clientsRow order_by_clientsRow {
  4646. get {
  4647. return ((order_by_clientsRow)(this.GetParentRow(this.Table.ParentRelations["FK_Order_order_by_clients"])));
  4648. }
  4649. set {
  4650. this.SetParentRow(value, this.Table.ParentRelations["FK_Order_order_by_clients"]);
  4651. }
  4652. }
  4653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4655. public Order_statusRow Order_statusRow {
  4656. get {
  4657. return ((Order_statusRow)(this.GetParentRow(this.Table.ParentRelations["FK_Order_Order_status"])));
  4658. }
  4659. set {
  4660. this.SetParentRow(value, this.Table.ParentRelations["FK_Order_Order_status"]);
  4661. }
  4662. }
  4663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4665. public bool IsНомер_заказаNull() {
  4666. return this.IsNull(this.tableOrder.Номер_заказаColumn);
  4667. }
  4668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4670. public void SetНомер_заказаNull() {
  4671. this[this.tableOrder.Номер_заказаColumn] = global::System.Convert.DBNull;
  4672. }
  4673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4675. public bool IsДатаNull() {
  4676. return this.IsNull(this.tableOrder.ДатаColumn);
  4677. }
  4678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4680. public void SetДатаNull() {
  4681. this[this.tableOrder.ДатаColumn] = global::System.Convert.DBNull;
  4682. }
  4683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4685. public bool Isid_сборкиNull() {
  4686. return this.IsNull(this.tableOrder.id_сборкиColumn);
  4687. }
  4688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4690. public void Setid_сборкиNull() {
  4691. this[this.tableOrder.id_сборкиColumn] = global::System.Convert.DBNull;
  4692. }
  4693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4695. public bool Isid_статусаNull() {
  4696. return this.IsNull(this.tableOrder.id_статусаColumn);
  4697. }
  4698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4700. public void Setid_статусаNull() {
  4701. this[this.tableOrder.id_статусаColumn] = global::System.Convert.DBNull;
  4702. }
  4703. }
  4704. /// <summary>
  4705. ///Represents strongly named DataRow class.
  4706. ///</summary>
  4707. public partial class order_by_clientsRow : global::System.Data.DataRow {
  4708. private order_by_clientsDataTable tableorder_by_clients;
  4709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4711. internal order_by_clientsRow(global::System.Data.DataRowBuilder rb) :
  4712. base(rb) {
  4713. this.tableorder_by_clients = ((order_by_clientsDataTable)(this.Table));
  4714. }
  4715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4717. public int Номер_заказа {
  4718. get {
  4719. return ((int)(this[this.tableorder_by_clients.Номер_заказаColumn]));
  4720. }
  4721. set {
  4722. this[this.tableorder_by_clients.Номер_заказаColumn] = value;
  4723. }
  4724. }
  4725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4727. public string Пожелания {
  4728. get {
  4729. try {
  4730. return ((string)(this[this.tableorder_by_clients.ПожеланияColumn]));
  4731. }
  4732. catch (global::System.InvalidCastException e) {
  4733. throw new global::System.Data.StrongTypingException("Значение для столбца \'Пожелания\' в таблице \'order_by_clients\' равно DBNull.", e);
  4734. }
  4735. }
  4736. set {
  4737. this[this.tableorder_by_clients.ПожеланияColumn] = value;
  4738. }
  4739. }
  4740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4742. public bool IsПожеланияNull() {
  4743. return this.IsNull(this.tableorder_by_clients.ПожеланияColumn);
  4744. }
  4745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4747. public void SetПожеланияNull() {
  4748. this[this.tableorder_by_clients.ПожеланияColumn] = global::System.Convert.DBNull;
  4749. }
  4750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4752. public OrderRow[] GetOrderRows() {
  4753. if ((this.Table.ChildRelations["FK_Order_order_by_clients"] == null)) {
  4754. return new OrderRow[0];
  4755. }
  4756. else {
  4757. return ((OrderRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Order_order_by_clients"])));
  4758. }
  4759. }
  4760. }
  4761. /// <summary>
  4762. ///Represents strongly named DataRow class.
  4763. ///</summary>
  4764. public partial class Order_statusRow : global::System.Data.DataRow {
  4765. private Order_statusDataTable tableOrder_status;
  4766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4768. internal Order_statusRow(global::System.Data.DataRowBuilder rb) :
  4769. base(rb) {
  4770. this.tableOrder_status = ((Order_statusDataTable)(this.Table));
  4771. }
  4772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4774. public int id {
  4775. get {
  4776. return ((int)(this[this.tableOrder_status.idColumn]));
  4777. }
  4778. set {
  4779. this[this.tableOrder_status.idColumn] = value;
  4780. }
  4781. }
  4782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4784. public string Название_статуса {
  4785. get {
  4786. try {
  4787. return ((string)(this[this.tableOrder_status.Название_статусаColumn]));
  4788. }
  4789. catch (global::System.InvalidCastException e) {
  4790. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название статуса\' в таблице \'Order_status\' равно DBNull.", e);
  4791. }
  4792. }
  4793. set {
  4794. this[this.tableOrder_status.Название_статусаColumn] = value;
  4795. }
  4796. }
  4797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4799. public bool IsНазвание_статусаNull() {
  4800. return this.IsNull(this.tableOrder_status.Название_статусаColumn);
  4801. }
  4802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4804. public void SetНазвание_статусаNull() {
  4805. this[this.tableOrder_status.Название_статусаColumn] = global::System.Convert.DBNull;
  4806. }
  4807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4809. public OrderRow[] GetOrderRows() {
  4810. if ((this.Table.ChildRelations["FK_Order_Order_status"] == null)) {
  4811. return new OrderRow[0];
  4812. }
  4813. else {
  4814. return ((OrderRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Order_Order_status"])));
  4815. }
  4816. }
  4817. }
  4818. /// <summary>
  4819. ///Represents strongly named DataRow class.
  4820. ///</summary>
  4821. public partial class providerRow : global::System.Data.DataRow {
  4822. private providerDataTable tableprovider;
  4823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4825. internal providerRow(global::System.Data.DataRowBuilder rb) :
  4826. base(rb) {
  4827. this.tableprovider = ((providerDataTable)(this.Table));
  4828. }
  4829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4831. public int id {
  4832. get {
  4833. return ((int)(this[this.tableprovider.idColumn]));
  4834. }
  4835. set {
  4836. this[this.tableprovider.idColumn] = value;
  4837. }
  4838. }
  4839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4841. public string название {
  4842. get {
  4843. try {
  4844. return ((string)(this[this.tableprovider.названиеColumn]));
  4845. }
  4846. catch (global::System.InvalidCastException e) {
  4847. throw new global::System.Data.StrongTypingException("Значение для столбца \'название\' в таблице \'provider\' равно DBNull.", e);
  4848. }
  4849. }
  4850. set {
  4851. this[this.tableprovider.названиеColumn] = value;
  4852. }
  4853. }
  4854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4856. public string Страна_производитель {
  4857. get {
  4858. try {
  4859. return ((string)(this[this.tableprovider.Страна_производительColumn]));
  4860. }
  4861. catch (global::System.InvalidCastException e) {
  4862. throw new global::System.Data.StrongTypingException("Значение для столбца \'Страна производитель\' в таблице \'provider\' равно DBNull.", e);
  4863. }
  4864. }
  4865. set {
  4866. this[this.tableprovider.Страна_производительColumn] = value;
  4867. }
  4868. }
  4869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4871. public bool IsназваниеNull() {
  4872. return this.IsNull(this.tableprovider.названиеColumn);
  4873. }
  4874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4876. public void SetназваниеNull() {
  4877. this[this.tableprovider.названиеColumn] = global::System.Convert.DBNull;
  4878. }
  4879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4881. public bool IsСтрана_производительNull() {
  4882. return this.IsNull(this.tableprovider.Страна_производительColumn);
  4883. }
  4884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4886. public void SetСтрана_производительNull() {
  4887. this[this.tableprovider.Страна_производительColumn] = global::System.Convert.DBNull;
  4888. }
  4889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4891. public receipt_of_goodsRow[] Getreceipt_of_goodsRows() {
  4892. if ((this.Table.ChildRelations["FK_receipt_of_goods_provider"] == null)) {
  4893. return new receipt_of_goodsRow[0];
  4894. }
  4895. else {
  4896. return ((receipt_of_goodsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_receipt_of_goods_provider"])));
  4897. }
  4898. }
  4899. }
  4900. /// <summary>
  4901. ///Represents strongly named DataRow class.
  4902. ///</summary>
  4903. public partial class receipt_of_goodsRow : global::System.Data.DataRow {
  4904. private receipt_of_goodsDataTable tablereceipt_of_goods;
  4905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4907. internal receipt_of_goodsRow(global::System.Data.DataRowBuilder rb) :
  4908. base(rb) {
  4909. this.tablereceipt_of_goods = ((receipt_of_goodsDataTable)(this.Table));
  4910. }
  4911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4913. public int id {
  4914. get {
  4915. return ((int)(this[this.tablereceipt_of_goods.idColumn]));
  4916. }
  4917. set {
  4918. this[this.tablereceipt_of_goods.idColumn] = value;
  4919. }
  4920. }
  4921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4923. public int id_поставщика {
  4924. get {
  4925. try {
  4926. return ((int)(this[this.tablereceipt_of_goods.id_поставщикаColumn]));
  4927. }
  4928. catch (global::System.InvalidCastException e) {
  4929. throw new global::System.Data.StrongTypingException("Значение для столбца \'id поставщика\' в таблице \'receipt_of_goods\' равно DBNull.", e);
  4930. }
  4931. }
  4932. set {
  4933. this[this.tablereceipt_of_goods.id_поставщикаColumn] = value;
  4934. }
  4935. }
  4936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4938. public int Id_компонентов {
  4939. get {
  4940. try {
  4941. return ((int)(this[this.tablereceipt_of_goods.Id_компонентовColumn]));
  4942. }
  4943. catch (global::System.InvalidCastException e) {
  4944. throw new global::System.Data.StrongTypingException("Значение для столбца \'Id компонентов\' в таблице \'receipt_of_goods\' равно DBNull.", e);
  4945. }
  4946. }
  4947. set {
  4948. this[this.tablereceipt_of_goods.Id_компонентовColumn] = value;
  4949. }
  4950. }
  4951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4953. public System.DateTime Дата {
  4954. get {
  4955. try {
  4956. return ((global::System.DateTime)(this[this.tablereceipt_of_goods.ДатаColumn]));
  4957. }
  4958. catch (global::System.InvalidCastException e) {
  4959. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата\' в таблице \'receipt_of_goods\' равно DBNull.", e);
  4960. }
  4961. }
  4962. set {
  4963. this[this.tablereceipt_of_goods.ДатаColumn] = value;
  4964. }
  4965. }
  4966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4968. public ComponentsRow ComponentsRow {
  4969. get {
  4970. return ((ComponentsRow)(this.GetParentRow(this.Table.ParentRelations["FK_receipt_of_goods_Components"])));
  4971. }
  4972. set {
  4973. this.SetParentRow(value, this.Table.ParentRelations["FK_receipt_of_goods_Components"]);
  4974. }
  4975. }
  4976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4978. public providerRow providerRow {
  4979. get {
  4980. return ((providerRow)(this.GetParentRow(this.Table.ParentRelations["FK_receipt_of_goods_provider"])));
  4981. }
  4982. set {
  4983. this.SetParentRow(value, this.Table.ParentRelations["FK_receipt_of_goods_provider"]);
  4984. }
  4985. }
  4986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4988. public bool Isid_поставщикаNull() {
  4989. return this.IsNull(this.tablereceipt_of_goods.id_поставщикаColumn);
  4990. }
  4991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4993. public void Setid_поставщикаNull() {
  4994. this[this.tablereceipt_of_goods.id_поставщикаColumn] = global::System.Convert.DBNull;
  4995. }
  4996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4998. public bool IsId_компонентовNull() {
  4999. return this.IsNull(this.tablereceipt_of_goods.Id_компонентовColumn);
  5000. }
  5001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5003. public void SetId_компонентовNull() {
  5004. this[this.tablereceipt_of_goods.Id_компонентовColumn] = global::System.Convert.DBNull;
  5005. }
  5006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5008. public bool IsДатаNull() {
  5009. return this.IsNull(this.tablereceipt_of_goods.ДатаColumn);
  5010. }
  5011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5013. public void SetДатаNull() {
  5014. this[this.tablereceipt_of_goods.ДатаColumn] = global::System.Convert.DBNull;
  5015. }
  5016. }
  5017. /// <summary>
  5018. ///Represents strongly named DataRow class.
  5019. ///</summary>
  5020. public partial class RoleRow : global::System.Data.DataRow {
  5021. private RoleDataTable tableRole;
  5022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5024. internal RoleRow(global::System.Data.DataRowBuilder rb) :
  5025. base(rb) {
  5026. this.tableRole = ((RoleDataTable)(this.Table));
  5027. }
  5028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5030. public int Id {
  5031. get {
  5032. return ((int)(this[this.tableRole.IdColumn]));
  5033. }
  5034. set {
  5035. this[this.tableRole.IdColumn] = value;
  5036. }
  5037. }
  5038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5040. public string Название_роли {
  5041. get {
  5042. try {
  5043. return ((string)(this[this.tableRole.Название_ролиColumn]));
  5044. }
  5045. catch (global::System.InvalidCastException e) {
  5046. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название роли\' в таблице \'Role\' равно DBNull.", e);
  5047. }
  5048. }
  5049. set {
  5050. this[this.tableRole.Название_ролиColumn] = value;
  5051. }
  5052. }
  5053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5055. public bool IsНазвание_ролиNull() {
  5056. return this.IsNull(this.tableRole.Название_ролиColumn);
  5057. }
  5058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5060. public void SetНазвание_ролиNull() {
  5061. this[this.tableRole.Название_ролиColumn] = global::System.Convert.DBNull;
  5062. }
  5063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5065. public UsersRow[] GetUsersRows() {
  5066. if ((this.Table.ChildRelations["FK_Users_Role"] == null)) {
  5067. return new UsersRow[0];
  5068. }
  5069. else {
  5070. return ((UsersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Users_Role"])));
  5071. }
  5072. }
  5073. }
  5074. /// <summary>
  5075. ///Represents strongly named DataRow class.
  5076. ///</summary>
  5077. public partial class unit_of_measurementRow : global::System.Data.DataRow {
  5078. private unit_of_measurementDataTable tableunit_of_measurement;
  5079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5081. internal unit_of_measurementRow(global::System.Data.DataRowBuilder rb) :
  5082. base(rb) {
  5083. this.tableunit_of_measurement = ((unit_of_measurementDataTable)(this.Table));
  5084. }
  5085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5087. public int id {
  5088. get {
  5089. return ((int)(this[this.tableunit_of_measurement.idColumn]));
  5090. }
  5091. set {
  5092. this[this.tableunit_of_measurement.idColumn] = value;
  5093. }
  5094. }
  5095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5097. public string название {
  5098. get {
  5099. try {
  5100. return ((string)(this[this.tableunit_of_measurement.названиеColumn]));
  5101. }
  5102. catch (global::System.InvalidCastException e) {
  5103. throw new global::System.Data.StrongTypingException("Значение для столбца \'название\' в таблице \'unit_of_measurement\' равно DBNull.", e);
  5104. }
  5105. }
  5106. set {
  5107. this[this.tableunit_of_measurement.названиеColumn] = value;
  5108. }
  5109. }
  5110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5112. public bool IsназваниеNull() {
  5113. return this.IsNull(this.tableunit_of_measurement.названиеColumn);
  5114. }
  5115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5117. public void SetназваниеNull() {
  5118. this[this.tableunit_of_measurement.названиеColumn] = global::System.Convert.DBNull;
  5119. }
  5120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5122. public ComponentsRow[] GetComponentsRows() {
  5123. if ((this.Table.ChildRelations["FK_Components_unit_of_measurement"] == null)) {
  5124. return new ComponentsRow[0];
  5125. }
  5126. else {
  5127. return ((ComponentsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Components_unit_of_measurement"])));
  5128. }
  5129. }
  5130. }
  5131. /// <summary>
  5132. ///Represents strongly named DataRow class.
  5133. ///</summary>
  5134. public partial class UsersRow : global::System.Data.DataRow {
  5135. private UsersDataTable tableUsers;
  5136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5138. internal UsersRow(global::System.Data.DataRowBuilder rb) :
  5139. base(rb) {
  5140. this.tableUsers = ((UsersDataTable)(this.Table));
  5141. }
  5142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5144. public int Id {
  5145. get {
  5146. return ((int)(this[this.tableUsers.IdColumn]));
  5147. }
  5148. set {
  5149. this[this.tableUsers.IdColumn] = value;
  5150. }
  5151. }
  5152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5154. public string Username {
  5155. get {
  5156. try {
  5157. return ((string)(this[this.tableUsers.UsernameColumn]));
  5158. }
  5159. catch (global::System.InvalidCastException e) {
  5160. throw new global::System.Data.StrongTypingException("Значение для столбца \'Username\' в таблице \'Users\' равно DBNull.", e);
  5161. }
  5162. }
  5163. set {
  5164. this[this.tableUsers.UsernameColumn] = value;
  5165. }
  5166. }
  5167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5169. public string Password {
  5170. get {
  5171. try {
  5172. return ((string)(this[this.tableUsers.PasswordColumn]));
  5173. }
  5174. catch (global::System.InvalidCastException e) {
  5175. throw new global::System.Data.StrongTypingException("Значение для столбца \'Password\' в таблице \'Users\' равно DBNull.", e);
  5176. }
  5177. }
  5178. set {
  5179. this[this.tableUsers.PasswordColumn] = value;
  5180. }
  5181. }
  5182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5184. public int Role {
  5185. get {
  5186. try {
  5187. return ((int)(this[this.tableUsers.RoleColumn]));
  5188. }
  5189. catch (global::System.InvalidCastException e) {
  5190. throw new global::System.Data.StrongTypingException("Значение для столбца \'Role\' в таблице \'Users\' равно DBNull.", e);
  5191. }
  5192. }
  5193. set {
  5194. this[this.tableUsers.RoleColumn] = value;
  5195. }
  5196. }
  5197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5199. public RoleRow RoleRow {
  5200. get {
  5201. return ((RoleRow)(this.GetParentRow(this.Table.ParentRelations["FK_Users_Role"])));
  5202. }
  5203. set {
  5204. this.SetParentRow(value, this.Table.ParentRelations["FK_Users_Role"]);
  5205. }
  5206. }
  5207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5209. public bool IsUsernameNull() {
  5210. return this.IsNull(this.tableUsers.UsernameColumn);
  5211. }
  5212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5214. public void SetUsernameNull() {
  5215. this[this.tableUsers.UsernameColumn] = global::System.Convert.DBNull;
  5216. }
  5217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5219. public bool IsPasswordNull() {
  5220. return this.IsNull(this.tableUsers.PasswordColumn);
  5221. }
  5222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5224. public void SetPasswordNull() {
  5225. this[this.tableUsers.PasswordColumn] = global::System.Convert.DBNull;
  5226. }
  5227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5229. public bool IsRoleNull() {
  5230. return this.IsNull(this.tableUsers.RoleColumn);
  5231. }
  5232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5234. public void SetRoleNull() {
  5235. this[this.tableUsers.RoleColumn] = global::System.Convert.DBNull;
  5236. }
  5237. }
  5238. /// <summary>
  5239. ///Represents strongly named DataRow class.
  5240. ///</summary>
  5241. public partial class PostavkaRow : global::System.Data.DataRow {
  5242. private PostavkaDataTable tablePostavka;
  5243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5245. internal PostavkaRow(global::System.Data.DataRowBuilder rb) :
  5246. base(rb) {
  5247. this.tablePostavka = ((PostavkaDataTable)(this.Table));
  5248. }
  5249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5251. public System.DateTime Дата {
  5252. get {
  5253. try {
  5254. return ((global::System.DateTime)(this[this.tablePostavka.ДатаColumn]));
  5255. }
  5256. catch (global::System.InvalidCastException e) {
  5257. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата\' в таблице \'Postavka\' равно DBNull.", e);
  5258. }
  5259. }
  5260. set {
  5261. this[this.tablePostavka.ДатаColumn] = value;
  5262. }
  5263. }
  5264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5266. public string Наименование_поставщика {
  5267. get {
  5268. try {
  5269. return ((string)(this[this.tablePostavka.Наименование_поставщикаColumn]));
  5270. }
  5271. catch (global::System.InvalidCastException e) {
  5272. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование поставщика\' в таблице \'Postavka\' равно DBNull." +
  5273. "", e);
  5274. }
  5275. }
  5276. set {
  5277. this[this.tablePostavka.Наименование_поставщикаColumn] = value;
  5278. }
  5279. }
  5280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5282. public string Название_материала {
  5283. get {
  5284. try {
  5285. return ((string)(this[this.tablePostavka.Название_материалаColumn]));
  5286. }
  5287. catch (global::System.InvalidCastException e) {
  5288. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название материала\' в таблице \'Postavka\' равно DBNull.", e);
  5289. }
  5290. }
  5291. set {
  5292. this[this.tablePostavka.Название_материалаColumn] = value;
  5293. }
  5294. }
  5295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5297. public string Тип_материала {
  5298. get {
  5299. try {
  5300. return ((string)(this[this.tablePostavka.Тип_материалаColumn]));
  5301. }
  5302. catch (global::System.InvalidCastException e) {
  5303. throw new global::System.Data.StrongTypingException("Значение для столбца \'Тип_материала\' в таблице \'Postavka\' равно DBNull.", e);
  5304. }
  5305. }
  5306. set {
  5307. this[this.tablePostavka.Тип_материалаColumn] = value;
  5308. }
  5309. }
  5310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5312. public int количество {
  5313. get {
  5314. try {
  5315. return ((int)(this[this.tablePostavka.количествоColumn]));
  5316. }
  5317. catch (global::System.InvalidCastException e) {
  5318. throw new global::System.Data.StrongTypingException("Значение для столбца \'количество\' в таблице \'Postavka\' равно DBNull.", e);
  5319. }
  5320. }
  5321. set {
  5322. this[this.tablePostavka.количествоColumn] = value;
  5323. }
  5324. }
  5325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5327. public string Единица_измерения {
  5328. get {
  5329. try {
  5330. return ((string)(this[this.tablePostavka.Единица_измеренияColumn]));
  5331. }
  5332. catch (global::System.InvalidCastException e) {
  5333. throw new global::System.Data.StrongTypingException("Значение для столбца \'Единица измерения\' в таблице \'Postavka\' равно DBNull.", e);
  5334. }
  5335. }
  5336. set {
  5337. this[this.tablePostavka.Единица_измеренияColumn] = value;
  5338. }
  5339. }
  5340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5342. public bool IsДатаNull() {
  5343. return this.IsNull(this.tablePostavka.ДатаColumn);
  5344. }
  5345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5347. public void SetДатаNull() {
  5348. this[this.tablePostavka.ДатаColumn] = global::System.Convert.DBNull;
  5349. }
  5350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5352. public bool IsНаименование_поставщикаNull() {
  5353. return this.IsNull(this.tablePostavka.Наименование_поставщикаColumn);
  5354. }
  5355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5357. public void SetНаименование_поставщикаNull() {
  5358. this[this.tablePostavka.Наименование_поставщикаColumn] = global::System.Convert.DBNull;
  5359. }
  5360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5362. public bool IsНазвание_материалаNull() {
  5363. return this.IsNull(this.tablePostavka.Название_материалаColumn);
  5364. }
  5365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5367. public void SetНазвание_материалаNull() {
  5368. this[this.tablePostavka.Название_материалаColumn] = global::System.Convert.DBNull;
  5369. }
  5370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5372. public bool IsТип_материалаNull() {
  5373. return this.IsNull(this.tablePostavka.Тип_материалаColumn);
  5374. }
  5375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5377. public void SetТип_материалаNull() {
  5378. this[this.tablePostavka.Тип_материалаColumn] = global::System.Convert.DBNull;
  5379. }
  5380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5382. public bool IsколичествоNull() {
  5383. return this.IsNull(this.tablePostavka.количествоColumn);
  5384. }
  5385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5387. public void SetколичествоNull() {
  5388. this[this.tablePostavka.количествоColumn] = global::System.Convert.DBNull;
  5389. }
  5390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5392. public bool IsЕдиница_измеренияNull() {
  5393. return this.IsNull(this.tablePostavka.Единица_измеренияColumn);
  5394. }
  5395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5397. public void SetЕдиница_измеренияNull() {
  5398. this[this.tablePostavka.Единица_измеренияColumn] = global::System.Convert.DBNull;
  5399. }
  5400. }
  5401. /// <summary>
  5402. ///Represents strongly named DataRow class.
  5403. ///</summary>
  5404. public partial class ZakazRow : global::System.Data.DataRow {
  5405. private ZakazDataTable tableZakaz;
  5406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5408. internal ZakazRow(global::System.Data.DataRowBuilder rb) :
  5409. base(rb) {
  5410. this.tableZakaz = ((ZakazDataTable)(this.Table));
  5411. }
  5412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5414. public int Номер_заказа {
  5415. get {
  5416. try {
  5417. return ((int)(this[this.tableZakaz.Номер_заказаColumn]));
  5418. }
  5419. catch (global::System.InvalidCastException e) {
  5420. throw new global::System.Data.StrongTypingException("Значение для столбца \'Номер заказа\' в таблице \'Zakaz\' равно DBNull.", e);
  5421. }
  5422. }
  5423. set {
  5424. this[this.tableZakaz.Номер_заказаColumn] = value;
  5425. }
  5426. }
  5427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5429. public string Название_статуса {
  5430. get {
  5431. try {
  5432. return ((string)(this[this.tableZakaz.Название_статусаColumn]));
  5433. }
  5434. catch (global::System.InvalidCastException e) {
  5435. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название статуса\' в таблице \'Zakaz\' равно DBNull.", e);
  5436. }
  5437. }
  5438. set {
  5439. this[this.tableZakaz.Название_статусаColumn] = value;
  5440. }
  5441. }
  5442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5444. public string Видеокарта {
  5445. get {
  5446. try {
  5447. return ((string)(this[this.tableZakaz.ВидеокартаColumn]));
  5448. }
  5449. catch (global::System.InvalidCastException e) {
  5450. throw new global::System.Data.StrongTypingException("Значение для столбца \'Видеокарта\' в таблице \'Zakaz\' равно DBNull.", e);
  5451. }
  5452. }
  5453. set {
  5454. this[this.tableZakaz.ВидеокартаColumn] = value;
  5455. }
  5456. }
  5457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5459. public string Материнская_плата {
  5460. get {
  5461. try {
  5462. return ((string)(this[this.tableZakaz.Материнская_платаColumn]));
  5463. }
  5464. catch (global::System.InvalidCastException e) {
  5465. throw new global::System.Data.StrongTypingException("Значение для столбца \'Материнская плата\' в таблице \'Zakaz\' равно DBNull.", e);
  5466. }
  5467. }
  5468. set {
  5469. this[this.tableZakaz.Материнская_платаColumn] = value;
  5470. }
  5471. }
  5472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5474. public string Процессор {
  5475. get {
  5476. try {
  5477. return ((string)(this[this.tableZakaz.ПроцессорColumn]));
  5478. }
  5479. catch (global::System.InvalidCastException e) {
  5480. throw new global::System.Data.StrongTypingException("Значение для столбца \'Процессор\' в таблице \'Zakaz\' равно DBNull.", e);
  5481. }
  5482. }
  5483. set {
  5484. this[this.tableZakaz.ПроцессорColumn] = value;
  5485. }
  5486. }
  5487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5489. public string Оперативная_память {
  5490. get {
  5491. try {
  5492. return ((string)(this[this.tableZakaz.Оперативная_памятьColumn]));
  5493. }
  5494. catch (global::System.InvalidCastException e) {
  5495. throw new global::System.Data.StrongTypingException("Значение для столбца \'Оперативная память\' в таблице \'Zakaz\' равно DBNull.", e);
  5496. }
  5497. }
  5498. set {
  5499. this[this.tableZakaz.Оперативная_памятьColumn] = value;
  5500. }
  5501. }
  5502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5504. public string _Оперативная_память {
  5505. get {
  5506. try {
  5507. return ((string)(this[this.tableZakaz._Оперативная_памятьColumn]));
  5508. }
  5509. catch (global::System.InvalidCastException e) {
  5510. throw new global::System.Data.StrongTypingException("Значение для столбца \'Оперативная_память\' в таблице \'Zakaz\' равно DBNull.", e);
  5511. }
  5512. }
  5513. set {
  5514. this[this.tableZakaz._Оперативная_памятьColumn] = value;
  5515. }
  5516. }
  5517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5519. public string Жетский_диск {
  5520. get {
  5521. try {
  5522. return ((string)(this[this.tableZakaz.Жетский_дискColumn]));
  5523. }
  5524. catch (global::System.InvalidCastException e) {
  5525. throw new global::System.Data.StrongTypingException("Значение для столбца \'Жетский диск\' в таблице \'Zakaz\' равно DBNull.", e);
  5526. }
  5527. }
  5528. set {
  5529. this[this.tableZakaz.Жетский_дискColumn] = value;
  5530. }
  5531. }
  5532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5534. public string Куллер {
  5535. get {
  5536. try {
  5537. return ((string)(this[this.tableZakaz.КуллерColumn]));
  5538. }
  5539. catch (global::System.InvalidCastException e) {
  5540. throw new global::System.Data.StrongTypingException("Значение для столбца \'Куллер\' в таблице \'Zakaz\' равно DBNull.", e);
  5541. }
  5542. }
  5543. set {
  5544. this[this.tableZakaz.КуллерColumn] = value;
  5545. }
  5546. }
  5547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5549. public string Система_охлаждения {
  5550. get {
  5551. try {
  5552. return ((string)(this[this.tableZakaz.Система_охлажденияColumn]));
  5553. }
  5554. catch (global::System.InvalidCastException e) {
  5555. throw new global::System.Data.StrongTypingException("Значение для столбца \'Система охлаждения\' в таблице \'Zakaz\' равно DBNull.", e);
  5556. }
  5557. }
  5558. set {
  5559. this[this.tableZakaz.Система_охлажденияColumn] = value;
  5560. }
  5561. }
  5562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5564. public string Блок_питания {
  5565. get {
  5566. try {
  5567. return ((string)(this[this.tableZakaz.Блок_питанияColumn]));
  5568. }
  5569. catch (global::System.InvalidCastException e) {
  5570. throw new global::System.Data.StrongTypingException("Значение для столбца \'Блок питания\' в таблице \'Zakaz\' равно DBNull.", e);
  5571. }
  5572. }
  5573. set {
  5574. this[this.tableZakaz.Блок_питанияColumn] = value;
  5575. }
  5576. }
  5577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5579. public string SSD {
  5580. get {
  5581. try {
  5582. return ((string)(this[this.tableZakaz.SSDColumn]));
  5583. }
  5584. catch (global::System.InvalidCastException e) {
  5585. throw new global::System.Data.StrongTypingException("Значение для столбца \'SSD\' в таблице \'Zakaz\' равно DBNull.", e);
  5586. }
  5587. }
  5588. set {
  5589. this[this.tableZakaz.SSDColumn] = value;
  5590. }
  5591. }
  5592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5594. public bool IsНомер_заказаNull() {
  5595. return this.IsNull(this.tableZakaz.Номер_заказаColumn);
  5596. }
  5597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5599. public void SetНомер_заказаNull() {
  5600. this[this.tableZakaz.Номер_заказаColumn] = global::System.Convert.DBNull;
  5601. }
  5602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5604. public bool IsНазвание_статусаNull() {
  5605. return this.IsNull(this.tableZakaz.Название_статусаColumn);
  5606. }
  5607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5609. public void SetНазвание_статусаNull() {
  5610. this[this.tableZakaz.Название_статусаColumn] = global::System.Convert.DBNull;
  5611. }
  5612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5614. public bool IsВидеокартаNull() {
  5615. return this.IsNull(this.tableZakaz.ВидеокартаColumn);
  5616. }
  5617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5619. public void SetВидеокартаNull() {
  5620. this[this.tableZakaz.ВидеокартаColumn] = global::System.Convert.DBNull;
  5621. }
  5622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5624. public bool IsМатеринская_платаNull() {
  5625. return this.IsNull(this.tableZakaz.Материнская_платаColumn);
  5626. }
  5627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5629. public void SetМатеринская_платаNull() {
  5630. this[this.tableZakaz.Материнская_платаColumn] = global::System.Convert.DBNull;
  5631. }
  5632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5634. public bool IsПроцессорNull() {
  5635. return this.IsNull(this.tableZakaz.ПроцессорColumn);
  5636. }
  5637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5639. public void SetПроцессорNull() {
  5640. this[this.tableZakaz.ПроцессорColumn] = global::System.Convert.DBNull;
  5641. }
  5642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5644. public bool IsОперативная_памятьNull() {
  5645. return this.IsNull(this.tableZakaz.Оперативная_памятьColumn);
  5646. }
  5647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5649. public void SetОперативная_памятьNull() {
  5650. this[this.tableZakaz.Оперативная_памятьColumn] = global::System.Convert.DBNull;
  5651. }
  5652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5654. public bool Is_Оперативная_памятьNull() {
  5655. return this.IsNull(this.tableZakaz._Оперативная_памятьColumn);
  5656. }
  5657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5659. public void Set_Оперативная_памятьNull() {
  5660. this[this.tableZakaz._Оперативная_памятьColumn] = global::System.Convert.DBNull;
  5661. }
  5662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5664. public bool IsЖетский_дискNull() {
  5665. return this.IsNull(this.tableZakaz.Жетский_дискColumn);
  5666. }
  5667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5669. public void SetЖетский_дискNull() {
  5670. this[this.tableZakaz.Жетский_дискColumn] = global::System.Convert.DBNull;
  5671. }
  5672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5674. public bool IsКуллерNull() {
  5675. return this.IsNull(this.tableZakaz.КуллерColumn);
  5676. }
  5677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5679. public void SetКуллерNull() {
  5680. this[this.tableZakaz.КуллерColumn] = global::System.Convert.DBNull;
  5681. }
  5682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5684. public bool IsСистема_охлажденияNull() {
  5685. return this.IsNull(this.tableZakaz.Система_охлажденияColumn);
  5686. }
  5687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5689. public void SetСистема_охлажденияNull() {
  5690. this[this.tableZakaz.Система_охлажденияColumn] = global::System.Convert.DBNull;
  5691. }
  5692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5694. public bool IsБлок_питанияNull() {
  5695. return this.IsNull(this.tableZakaz.Блок_питанияColumn);
  5696. }
  5697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5699. public void SetБлок_питанияNull() {
  5700. this[this.tableZakaz.Блок_питанияColumn] = global::System.Convert.DBNull;
  5701. }
  5702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5704. public bool IsSSDNull() {
  5705. return this.IsNull(this.tableZakaz.SSDColumn);
  5706. }
  5707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5709. public void SetSSDNull() {
  5710. this[this.tableZakaz.SSDColumn] = global::System.Convert.DBNull;
  5711. }
  5712. }
  5713. /// <summary>
  5714. ///Row event argument class
  5715. ///</summary>
  5716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5717. public class ComponentsRowChangeEvent : global::System.EventArgs {
  5718. private ComponentsRow eventRow;
  5719. private global::System.Data.DataRowAction eventAction;
  5720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5722. public ComponentsRowChangeEvent(ComponentsRow row, global::System.Data.DataRowAction action) {
  5723. this.eventRow = row;
  5724. this.eventAction = action;
  5725. }
  5726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5728. public ComponentsRow Row {
  5729. get {
  5730. return this.eventRow;
  5731. }
  5732. }
  5733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5735. public global::System.Data.DataRowAction Action {
  5736. get {
  5737. return this.eventAction;
  5738. }
  5739. }
  5740. }
  5741. /// <summary>
  5742. ///Row event argument class
  5743. ///</summary>
  5744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5745. public class computer_assemblyRowChangeEvent : global::System.EventArgs {
  5746. private computer_assemblyRow eventRow;
  5747. private global::System.Data.DataRowAction eventAction;
  5748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5750. public computer_assemblyRowChangeEvent(computer_assemblyRow row, global::System.Data.DataRowAction action) {
  5751. this.eventRow = row;
  5752. this.eventAction = action;
  5753. }
  5754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5756. public computer_assemblyRow Row {
  5757. get {
  5758. return this.eventRow;
  5759. }
  5760. }
  5761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5763. public global::System.Data.DataRowAction Action {
  5764. get {
  5765. return this.eventAction;
  5766. }
  5767. }
  5768. }
  5769. /// <summary>
  5770. ///Row event argument class
  5771. ///</summary>
  5772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5773. public class OrderRowChangeEvent : global::System.EventArgs {
  5774. private OrderRow eventRow;
  5775. private global::System.Data.DataRowAction eventAction;
  5776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5778. public OrderRowChangeEvent(OrderRow row, global::System.Data.DataRowAction action) {
  5779. this.eventRow = row;
  5780. this.eventAction = action;
  5781. }
  5782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5784. public OrderRow Row {
  5785. get {
  5786. return this.eventRow;
  5787. }
  5788. }
  5789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5791. public global::System.Data.DataRowAction Action {
  5792. get {
  5793. return this.eventAction;
  5794. }
  5795. }
  5796. }
  5797. /// <summary>
  5798. ///Row event argument class
  5799. ///</summary>
  5800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5801. public class order_by_clientsRowChangeEvent : global::System.EventArgs {
  5802. private order_by_clientsRow eventRow;
  5803. private global::System.Data.DataRowAction eventAction;
  5804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5806. public order_by_clientsRowChangeEvent(order_by_clientsRow row, global::System.Data.DataRowAction action) {
  5807. this.eventRow = row;
  5808. this.eventAction = action;
  5809. }
  5810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5812. public order_by_clientsRow Row {
  5813. get {
  5814. return this.eventRow;
  5815. }
  5816. }
  5817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5819. public global::System.Data.DataRowAction Action {
  5820. get {
  5821. return this.eventAction;
  5822. }
  5823. }
  5824. }
  5825. /// <summary>
  5826. ///Row event argument class
  5827. ///</summary>
  5828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5829. public class Order_statusRowChangeEvent : global::System.EventArgs {
  5830. private Order_statusRow eventRow;
  5831. private global::System.Data.DataRowAction eventAction;
  5832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5834. public Order_statusRowChangeEvent(Order_statusRow row, global::System.Data.DataRowAction action) {
  5835. this.eventRow = row;
  5836. this.eventAction = action;
  5837. }
  5838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5840. public Order_statusRow Row {
  5841. get {
  5842. return this.eventRow;
  5843. }
  5844. }
  5845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5847. public global::System.Data.DataRowAction Action {
  5848. get {
  5849. return this.eventAction;
  5850. }
  5851. }
  5852. }
  5853. /// <summary>
  5854. ///Row event argument class
  5855. ///</summary>
  5856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5857. public class providerRowChangeEvent : global::System.EventArgs {
  5858. private providerRow eventRow;
  5859. private global::System.Data.DataRowAction eventAction;
  5860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5862. public providerRowChangeEvent(providerRow row, global::System.Data.DataRowAction action) {
  5863. this.eventRow = row;
  5864. this.eventAction = action;
  5865. }
  5866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5868. public providerRow Row {
  5869. get {
  5870. return this.eventRow;
  5871. }
  5872. }
  5873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5875. public global::System.Data.DataRowAction Action {
  5876. get {
  5877. return this.eventAction;
  5878. }
  5879. }
  5880. }
  5881. /// <summary>
  5882. ///Row event argument class
  5883. ///</summary>
  5884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5885. public class receipt_of_goodsRowChangeEvent : global::System.EventArgs {
  5886. private receipt_of_goodsRow eventRow;
  5887. private global::System.Data.DataRowAction eventAction;
  5888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5890. public receipt_of_goodsRowChangeEvent(receipt_of_goodsRow row, global::System.Data.DataRowAction action) {
  5891. this.eventRow = row;
  5892. this.eventAction = action;
  5893. }
  5894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5896. public receipt_of_goodsRow Row {
  5897. get {
  5898. return this.eventRow;
  5899. }
  5900. }
  5901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5903. public global::System.Data.DataRowAction Action {
  5904. get {
  5905. return this.eventAction;
  5906. }
  5907. }
  5908. }
  5909. /// <summary>
  5910. ///Row event argument class
  5911. ///</summary>
  5912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5913. public class RoleRowChangeEvent : global::System.EventArgs {
  5914. private RoleRow eventRow;
  5915. private global::System.Data.DataRowAction eventAction;
  5916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5918. public RoleRowChangeEvent(RoleRow row, global::System.Data.DataRowAction action) {
  5919. this.eventRow = row;
  5920. this.eventAction = action;
  5921. }
  5922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5924. public RoleRow Row {
  5925. get {
  5926. return this.eventRow;
  5927. }
  5928. }
  5929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5931. public global::System.Data.DataRowAction Action {
  5932. get {
  5933. return this.eventAction;
  5934. }
  5935. }
  5936. }
  5937. /// <summary>
  5938. ///Row event argument class
  5939. ///</summary>
  5940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5941. public class unit_of_measurementRowChangeEvent : global::System.EventArgs {
  5942. private unit_of_measurementRow eventRow;
  5943. private global::System.Data.DataRowAction eventAction;
  5944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5946. public unit_of_measurementRowChangeEvent(unit_of_measurementRow row, global::System.Data.DataRowAction action) {
  5947. this.eventRow = row;
  5948. this.eventAction = action;
  5949. }
  5950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5952. public unit_of_measurementRow Row {
  5953. get {
  5954. return this.eventRow;
  5955. }
  5956. }
  5957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5959. public global::System.Data.DataRowAction Action {
  5960. get {
  5961. return this.eventAction;
  5962. }
  5963. }
  5964. }
  5965. /// <summary>
  5966. ///Row event argument class
  5967. ///</summary>
  5968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5969. public class UsersRowChangeEvent : global::System.EventArgs {
  5970. private UsersRow eventRow;
  5971. private global::System.Data.DataRowAction eventAction;
  5972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5974. public UsersRowChangeEvent(UsersRow row, global::System.Data.DataRowAction action) {
  5975. this.eventRow = row;
  5976. this.eventAction = action;
  5977. }
  5978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5980. public UsersRow Row {
  5981. get {
  5982. return this.eventRow;
  5983. }
  5984. }
  5985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5987. public global::System.Data.DataRowAction Action {
  5988. get {
  5989. return this.eventAction;
  5990. }
  5991. }
  5992. }
  5993. /// <summary>
  5994. ///Row event argument class
  5995. ///</summary>
  5996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5997. public class PostavkaRowChangeEvent : global::System.EventArgs {
  5998. private PostavkaRow eventRow;
  5999. private global::System.Data.DataRowAction eventAction;
  6000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6002. public PostavkaRowChangeEvent(PostavkaRow row, global::System.Data.DataRowAction action) {
  6003. this.eventRow = row;
  6004. this.eventAction = action;
  6005. }
  6006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6008. public PostavkaRow Row {
  6009. get {
  6010. return this.eventRow;
  6011. }
  6012. }
  6013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6015. public global::System.Data.DataRowAction Action {
  6016. get {
  6017. return this.eventAction;
  6018. }
  6019. }
  6020. }
  6021. /// <summary>
  6022. ///Row event argument class
  6023. ///</summary>
  6024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6025. public class ZakazRowChangeEvent : global::System.EventArgs {
  6026. private ZakazRow eventRow;
  6027. private global::System.Data.DataRowAction eventAction;
  6028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6030. public ZakazRowChangeEvent(ZakazRow row, global::System.Data.DataRowAction action) {
  6031. this.eventRow = row;
  6032. this.eventAction = action;
  6033. }
  6034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6036. public ZakazRow Row {
  6037. get {
  6038. return this.eventRow;
  6039. }
  6040. }
  6041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6043. public global::System.Data.DataRowAction Action {
  6044. get {
  6045. return this.eventAction;
  6046. }
  6047. }
  6048. }
  6049. }
  6050. }
  6051. namespace Digital_World_08.digital_world_8DataSetTableAdapters {
  6052. /// <summary>
  6053. ///Represents the connection and commands used to retrieve and save data.
  6054. ///</summary>
  6055. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6056. [global::System.ComponentModel.ToolboxItem(true)]
  6057. [global::System.ComponentModel.DataObjectAttribute(true)]
  6058. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6059. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6060. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6061. public partial class ComponentsTableAdapter : global::System.ComponentModel.Component {
  6062. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6063. private global::System.Data.SqlClient.SqlConnection _connection;
  6064. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6065. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6066. private bool _clearBeforeFill;
  6067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6069. public ComponentsTableAdapter() {
  6070. this.ClearBeforeFill = true;
  6071. }
  6072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6074. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6075. get {
  6076. if ((this._adapter == null)) {
  6077. this.InitAdapter();
  6078. }
  6079. return this._adapter;
  6080. }
  6081. }
  6082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6084. internal global::System.Data.SqlClient.SqlConnection Connection {
  6085. get {
  6086. if ((this._connection == null)) {
  6087. this.InitConnection();
  6088. }
  6089. return this._connection;
  6090. }
  6091. set {
  6092. this._connection = value;
  6093. if ((this.Adapter.InsertCommand != null)) {
  6094. this.Adapter.InsertCommand.Connection = value;
  6095. }
  6096. if ((this.Adapter.DeleteCommand != null)) {
  6097. this.Adapter.DeleteCommand.Connection = value;
  6098. }
  6099. if ((this.Adapter.UpdateCommand != null)) {
  6100. this.Adapter.UpdateCommand.Connection = value;
  6101. }
  6102. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6103. if ((this.CommandCollection[i] != null)) {
  6104. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6105. }
  6106. }
  6107. }
  6108. }
  6109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6111. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6112. get {
  6113. return this._transaction;
  6114. }
  6115. set {
  6116. this._transaction = value;
  6117. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6118. this.CommandCollection[i].Transaction = this._transaction;
  6119. }
  6120. if (((this.Adapter != null)
  6121. && (this.Adapter.DeleteCommand != null))) {
  6122. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6123. }
  6124. if (((this.Adapter != null)
  6125. && (this.Adapter.InsertCommand != null))) {
  6126. this.Adapter.InsertCommand.Transaction = this._transaction;
  6127. }
  6128. if (((this.Adapter != null)
  6129. && (this.Adapter.UpdateCommand != null))) {
  6130. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6131. }
  6132. }
  6133. }
  6134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6136. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6137. get {
  6138. if ((this._commandCollection == null)) {
  6139. this.InitCommandCollection();
  6140. }
  6141. return this._commandCollection;
  6142. }
  6143. }
  6144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6146. public bool ClearBeforeFill {
  6147. get {
  6148. return this._clearBeforeFill;
  6149. }
  6150. set {
  6151. this._clearBeforeFill = value;
  6152. }
  6153. }
  6154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6156. private void InitAdapter() {
  6157. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6158. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6159. tableMapping.SourceTable = "Table";
  6160. tableMapping.DataSetTable = "Components";
  6161. tableMapping.ColumnMappings.Add("id", "id");
  6162. tableMapping.ColumnMappings.Add("Название", "Название");
  6163. tableMapping.ColumnMappings.Add("Id единицы измерения", "Id единицы измерения");
  6164. tableMapping.ColumnMappings.Add("Тип_материала", "Тип_материала");
  6165. tableMapping.ColumnMappings.Add("Цена", "Цена");
  6166. tableMapping.ColumnMappings.Add("количество", "количество");
  6167. this._adapter.TableMappings.Add(tableMapping);
  6168. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6169. this._adapter.DeleteCommand.Connection = this.Connection;
  6170. 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_количество)))";
  6171. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6172. 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, "", "", ""));
  6173. 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, "", "", ""));
  6174. 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, "", "", ""));
  6175. 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, "", "", ""));
  6176. 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, "", "", ""));
  6177. 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, "", "", ""));
  6178. 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, "", "", ""));
  6179. 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, "", "", ""));
  6180. 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, "", "", ""));
  6181. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6182. this._adapter.InsertCommand.Connection = this.Connection;
  6183. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Components] ([Название], [Id единицы измерения], [Тип_материала], [Цена], [количество]) VALUES (@Название, @Id_единицы_измерения, @Тип_материала, @Цена, @количество);
  6184. SELECT id, Название, [Id единицы измерения], Тип_материала, Цена, количество FROM Components WHERE (id = SCOPE_IDENTITY())";
  6185. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6186. 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, "", "", ""));
  6187. 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, "", "", ""));
  6188. 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, "", "", ""));
  6189. 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, "", "", ""));
  6190. 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, "", "", ""));
  6191. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6192. this._adapter.UpdateCommand.Connection = this.Connection;
  6193. 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_количество)));
  6194. SELECT id, Название, [Id единицы измерения], Тип_материала, Цена, количество FROM Components WHERE (id = @id)";
  6195. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6196. 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, "", "", ""));
  6197. 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, "", "", ""));
  6198. 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, "", "", ""));
  6199. 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, "", "", ""));
  6200. 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, "", "", ""));
  6201. 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, "", "", ""));
  6202. 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, "", "", ""));
  6203. 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, "", "", ""));
  6204. 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, "", "", ""));
  6205. 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, "", "", ""));
  6206. 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, "", "", ""));
  6207. 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, "", "", ""));
  6208. 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, "", "", ""));
  6209. 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, "", "", ""));
  6210. 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, "", "", ""));
  6211. }
  6212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6214. private void InitConnection() {
  6215. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6216. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString;
  6217. }
  6218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6220. private void InitCommandCollection() {
  6221. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6222. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6223. this._commandCollection[0].Connection = this.Connection;
  6224. this._commandCollection[0].CommandText = "SELECT id, Название, [Id единицы измерения], Тип_материала, Цена, количество FROM" +
  6225. " dbo.Components";
  6226. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6227. }
  6228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6230. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6231. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6232. public virtual int Fill(digital_world_8DataSet.ComponentsDataTable dataTable) {
  6233. this.Adapter.SelectCommand = this.CommandCollection[0];
  6234. if ((this.ClearBeforeFill == true)) {
  6235. dataTable.Clear();
  6236. }
  6237. int returnValue = this.Adapter.Fill(dataTable);
  6238. return returnValue;
  6239. }
  6240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6242. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6243. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6244. public virtual digital_world_8DataSet.ComponentsDataTable GetData() {
  6245. this.Adapter.SelectCommand = this.CommandCollection[0];
  6246. digital_world_8DataSet.ComponentsDataTable dataTable = new digital_world_8DataSet.ComponentsDataTable();
  6247. this.Adapter.Fill(dataTable);
  6248. return dataTable;
  6249. }
  6250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6252. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6253. public virtual int Update(digital_world_8DataSet.ComponentsDataTable dataTable) {
  6254. return this.Adapter.Update(dataTable);
  6255. }
  6256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6258. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6259. public virtual int Update(digital_world_8DataSet dataSet) {
  6260. return this.Adapter.Update(dataSet, "Components");
  6261. }
  6262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6264. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6265. public virtual int Update(global::System.Data.DataRow dataRow) {
  6266. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6267. dataRow});
  6268. }
  6269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6271. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6272. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6273. return this.Adapter.Update(dataRows);
  6274. }
  6275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6277. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6278. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6279. 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_количество) {
  6280. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  6281. if ((Original_Id_единицы_измерения.HasValue == true)) {
  6282. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6283. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_Id_единицы_измерения.Value));
  6284. }
  6285. else {
  6286. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6287. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6288. }
  6289. if ((Original_Тип_материала == null)) {
  6290. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6291. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6292. }
  6293. else {
  6294. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6295. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Тип_материала));
  6296. }
  6297. if ((Original_Цена.HasValue == true)) {
  6298. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6299. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Цена.Value));
  6300. }
  6301. else {
  6302. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6303. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6304. }
  6305. if ((Original_количество.HasValue == true)) {
  6306. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6307. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_количество.Value));
  6308. }
  6309. else {
  6310. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6311. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6312. }
  6313. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6314. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6315. != global::System.Data.ConnectionState.Open)) {
  6316. this.Adapter.DeleteCommand.Connection.Open();
  6317. }
  6318. try {
  6319. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6320. return returnValue;
  6321. }
  6322. finally {
  6323. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6324. this.Adapter.DeleteCommand.Connection.Close();
  6325. }
  6326. }
  6327. }
  6328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6330. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6331. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6332. public virtual int Insert(string Название, global::System.Nullable<int> Id_единицы_измерения, string Тип_материала, global::System.Nullable<int> Цена, global::System.Nullable<int> количество) {
  6333. if ((Название == null)) {
  6334. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6335. }
  6336. else {
  6337. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  6338. }
  6339. if ((Id_единицы_измерения.HasValue == true)) {
  6340. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Id_единицы_измерения.Value));
  6341. }
  6342. else {
  6343. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6344. }
  6345. if ((Тип_материала == null)) {
  6346. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6347. }
  6348. else {
  6349. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Тип_материала));
  6350. }
  6351. if ((Цена.HasValue == true)) {
  6352. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Цена.Value));
  6353. }
  6354. else {
  6355. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6356. }
  6357. if ((количество.HasValue == true)) {
  6358. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(количество.Value));
  6359. }
  6360. else {
  6361. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6362. }
  6363. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6364. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6365. != global::System.Data.ConnectionState.Open)) {
  6366. this.Adapter.InsertCommand.Connection.Open();
  6367. }
  6368. try {
  6369. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6370. return returnValue;
  6371. }
  6372. finally {
  6373. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6374. this.Adapter.InsertCommand.Connection.Close();
  6375. }
  6376. }
  6377. }
  6378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6380. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6381. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6382. 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) {
  6383. if ((Название == null)) {
  6384. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6385. }
  6386. else {
  6387. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  6388. }
  6389. if ((Id_единицы_измерения.HasValue == true)) {
  6390. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Id_единицы_измерения.Value));
  6391. }
  6392. else {
  6393. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6394. }
  6395. if ((Тип_материала == null)) {
  6396. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6397. }
  6398. else {
  6399. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Тип_материала));
  6400. }
  6401. if ((Цена.HasValue == true)) {
  6402. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Цена.Value));
  6403. }
  6404. else {
  6405. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6406. }
  6407. if ((количество.HasValue == true)) {
  6408. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(количество.Value));
  6409. }
  6410. else {
  6411. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6412. }
  6413. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_id));
  6414. if ((Original_Id_единицы_измерения.HasValue == true)) {
  6415. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  6416. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Id_единицы_измерения.Value));
  6417. }
  6418. else {
  6419. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  6420. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  6421. }
  6422. if ((Original_Тип_материала == null)) {
  6423. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  6424. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  6425. }
  6426. else {
  6427. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  6428. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Тип_материала));
  6429. }
  6430. if ((Original_Цена.HasValue == true)) {
  6431. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  6432. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_Цена.Value));
  6433. }
  6434. else {
  6435. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  6436. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  6437. }
  6438. if ((Original_количество.HasValue == true)) {
  6439. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  6440. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_количество.Value));
  6441. }
  6442. else {
  6443. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  6444. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  6445. }
  6446. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(id));
  6447. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6448. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6449. != global::System.Data.ConnectionState.Open)) {
  6450. this.Adapter.UpdateCommand.Connection.Open();
  6451. }
  6452. try {
  6453. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6454. return returnValue;
  6455. }
  6456. finally {
  6457. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6458. this.Adapter.UpdateCommand.Connection.Close();
  6459. }
  6460. }
  6461. }
  6462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6464. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6465. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6466. 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_количество) {
  6467. return this.Update(Название, Id_единицы_измерения, Тип_материала, Цена, количество, Original_id, Original_Id_единицы_измерения, Original_Тип_материала, Original_Цена, Original_количество, Original_id);
  6468. }
  6469. }
  6470. /// <summary>
  6471. ///Represents the connection and commands used to retrieve and save data.
  6472. ///</summary>
  6473. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6474. [global::System.ComponentModel.ToolboxItem(true)]
  6475. [global::System.ComponentModel.DataObjectAttribute(true)]
  6476. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6477. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6478. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6479. public partial class computer_assemblyTableAdapter : global::System.ComponentModel.Component {
  6480. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6481. private global::System.Data.SqlClient.SqlConnection _connection;
  6482. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6483. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6484. private bool _clearBeforeFill;
  6485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6487. public computer_assemblyTableAdapter() {
  6488. this.ClearBeforeFill = true;
  6489. }
  6490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6492. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6493. get {
  6494. if ((this._adapter == null)) {
  6495. this.InitAdapter();
  6496. }
  6497. return this._adapter;
  6498. }
  6499. }
  6500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6502. internal global::System.Data.SqlClient.SqlConnection Connection {
  6503. get {
  6504. if ((this._connection == null)) {
  6505. this.InitConnection();
  6506. }
  6507. return this._connection;
  6508. }
  6509. set {
  6510. this._connection = value;
  6511. if ((this.Adapter.InsertCommand != null)) {
  6512. this.Adapter.InsertCommand.Connection = value;
  6513. }
  6514. if ((this.Adapter.DeleteCommand != null)) {
  6515. this.Adapter.DeleteCommand.Connection = value;
  6516. }
  6517. if ((this.Adapter.UpdateCommand != null)) {
  6518. this.Adapter.UpdateCommand.Connection = value;
  6519. }
  6520. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6521. if ((this.CommandCollection[i] != null)) {
  6522. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6523. }
  6524. }
  6525. }
  6526. }
  6527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6529. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6530. get {
  6531. return this._transaction;
  6532. }
  6533. set {
  6534. this._transaction = value;
  6535. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6536. this.CommandCollection[i].Transaction = this._transaction;
  6537. }
  6538. if (((this.Adapter != null)
  6539. && (this.Adapter.DeleteCommand != null))) {
  6540. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6541. }
  6542. if (((this.Adapter != null)
  6543. && (this.Adapter.InsertCommand != null))) {
  6544. this.Adapter.InsertCommand.Transaction = this._transaction;
  6545. }
  6546. if (((this.Adapter != null)
  6547. && (this.Adapter.UpdateCommand != null))) {
  6548. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6549. }
  6550. }
  6551. }
  6552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6554. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6555. get {
  6556. if ((this._commandCollection == null)) {
  6557. this.InitCommandCollection();
  6558. }
  6559. return this._commandCollection;
  6560. }
  6561. }
  6562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6564. public bool ClearBeforeFill {
  6565. get {
  6566. return this._clearBeforeFill;
  6567. }
  6568. set {
  6569. this._clearBeforeFill = value;
  6570. }
  6571. }
  6572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6574. private void InitAdapter() {
  6575. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6576. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6577. tableMapping.SourceTable = "Table";
  6578. tableMapping.DataSetTable = "computer_assembly";
  6579. tableMapping.ColumnMappings.Add("id сборки", "id сборки");
  6580. tableMapping.ColumnMappings.Add("Id компонентов", "Id компонентов");
  6581. tableMapping.ColumnMappings.Add("Количество", "Количество");
  6582. tableMapping.ColumnMappings.Add("Видеокарта", "Видеокарта");
  6583. tableMapping.ColumnMappings.Add("Материнская плата", "Материнская плата");
  6584. tableMapping.ColumnMappings.Add("Процессор", "Процессор");
  6585. tableMapping.ColumnMappings.Add("Оперативная память", "Оперативная память");
  6586. tableMapping.ColumnMappings.Add("Оперативная_память", "Оперативная_память");
  6587. tableMapping.ColumnMappings.Add("Жетский диск", "Жетский диск");
  6588. tableMapping.ColumnMappings.Add("Куллер", "Куллер");
  6589. tableMapping.ColumnMappings.Add("Система охлаждения", "Система охлаждения");
  6590. tableMapping.ColumnMappings.Add("Блок питания", "Блок питания");
  6591. tableMapping.ColumnMappings.Add("SSD", "SSD");
  6592. this._adapter.TableMappings.Add(tableMapping);
  6593. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6594. this._adapter.DeleteCommand.Connection = this.Connection;
  6595. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[computer_assembly] 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_Процессор)) 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)))";
  6596. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6597. 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, "", "", ""));
  6598. 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, "", "", ""));
  6599. 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, "", "", ""));
  6600. 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, "", "", ""));
  6601. 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, "", "", ""));
  6602. 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, "", "", ""));
  6603. 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, "", "", ""));
  6604. 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, "", "", ""));
  6605. 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, "", "", ""));
  6606. 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, "", "", ""));
  6607. 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, "", "", ""));
  6608. 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, "", "", ""));
  6609. 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, "", "", ""));
  6610. 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, "", "", ""));
  6611. 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, "", "", ""));
  6612. 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, "", "", ""));
  6613. 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, "", "", ""));
  6614. 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, "", "", ""));
  6615. 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, "", "", ""));
  6616. 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, "", "", ""));
  6617. 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, "", "", ""));
  6618. 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, "", "", ""));
  6619. 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, "", "", ""));
  6620. 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, "", "", ""));
  6621. 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, "", "", ""));
  6622. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6623. this._adapter.InsertCommand.Connection = this.Connection;
  6624. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[computer_assembly] ([Id компонентов], [Количество], [Видеокарта], [Материнская плата], [Процессор], [Оперативная память], [Оперативная_память], [Жетский диск], [Куллер], [Система охлаждения], [Блок питания], [SSD]) VALUES (@Id_компонентов, @Количество, @Видеокарта, @Материнская_плата, @Процессор, @p1, @Оперативная_память, @Жетский_диск, @Куллер, @Система_охлаждения, @Блок_питания, @SSD);
  6625. SELECT [id сборки], [Id компонентов], Количество, Видеокарта, [Материнская плата], Процессор, [Оперативная память], Оперативная_память, [Жетский диск], Куллер, [Система охлаждения], [Блок питания], SSD FROM computer_assembly WHERE ([id сборки] = SCOPE_IDENTITY())";
  6626. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6627. 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, "", "", ""));
  6628. 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, "", "", ""));
  6629. 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, "", "", ""));
  6630. 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, "", "", ""));
  6631. 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, "", "", ""));
  6632. 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, "", "", ""));
  6633. 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, "", "", ""));
  6634. 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, "", "", ""));
  6635. 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, "", "", ""));
  6636. 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, "", "", ""));
  6637. 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, "", "", ""));
  6638. 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, "", "", ""));
  6639. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6640. this._adapter.UpdateCommand.Connection = this.Connection;
  6641. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[computer_assembly] SET [Id компонентов] = @Id_компонентов, [Количес" +
  6642. "тво] = @Количество, [Видеокарта] = @Видеокарта, [Материнская плата] = @Материнск" +
  6643. "ая_плата, [Процессор] = @Процессор, [Оперативная память] = @p1, [Оперативная_пам" +
  6644. "ять] = @Оперативная_память, [Жетский диск] = @Жетский_диск, [Куллер] = @Куллер, " +
  6645. "[Система охлаждения] = @Система_охлаждения, [Блок питания] = @Блок_питания, [SSD" +
  6646. "] = @SSD WHERE (([id сборки] = @Original_id_сборки) AND ((@IsNull_Id_компонентов" +
  6647. " = 1 AND [Id компонентов] IS NULL) OR ([Id компонентов] = @Original_Id_компонент" +
  6648. "ов)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @" +
  6649. "Original_Количество)) AND ((@IsNull_Видеокарта = 1 AND [Видеокарта] IS NULL) OR " +
  6650. "([Видеокарта] = @Original_Видеокарта)) AND ((@IsNull_Материнская_плата = 1 AND [" +
  6651. "Материнская плата] IS NULL) OR ([Материнская плата] = @Original_Материнская_плат" +
  6652. "а)) AND ((@IsNull_Процессор = 1 AND [Процессор] IS NULL) OR ([Процессор] = @Orig" +
  6653. "inal_Процессор)) AND ((@p3 = 1 AND [Оперативная память] IS NULL) OR ([Оперативна" +
  6654. "я память] = @p2)) AND ((@IsNull_Оперативная_память = 1 AND [Оперативная_память] " +
  6655. "IS NULL) OR ([Оперативная_память] = @Original_Оперативная_память)) AND ((@IsNull" +
  6656. "_Жетский_диск = 1 AND [Жетский диск] IS NULL) OR ([Жетский диск] = @Original_Жет" +
  6657. "ский_диск)) AND ((@IsNull_Куллер = 1 AND [Куллер] IS NULL) OR ([Куллер] = @Origi" +
  6658. "nal_Куллер)) AND ((@IsNull_Система_охлаждения = 1 AND [Система охлаждения] IS NU" +
  6659. "LL) OR ([Система охлаждения] = @Original_Система_охлаждения)) AND ((@IsNull_Блок" +
  6660. "_питания = 1 AND [Блок питания] IS NULL) OR ([Блок питания] = @Original_Блок_пит" +
  6661. "ания)) AND ((@IsNull_SSD = 1 AND [SSD] IS NULL) OR ([SSD] = @Original_SSD)));\r\nS" +
  6662. "ELECT [id сборки], [Id компонентов], Количество, Видеокарта, [Материнская плата]" +
  6663. ", Процессор, [Оперативная память], Оперативная_память, [Жетский диск], Куллер, [" +
  6664. "Система охлаждения], [Блок питания], SSD FROM computer_assembly WHERE ([id сборк" +
  6665. "и] = @id_сборки)";
  6666. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6667. 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, "", "", ""));
  6668. 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, "", "", ""));
  6669. 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, "", "", ""));
  6670. 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, "", "", ""));
  6671. 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, "", "", ""));
  6672. 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, "", "", ""));
  6673. 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, "", "", ""));
  6674. 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, "", "", ""));
  6675. 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, "", "", ""));
  6676. 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, "", "", ""));
  6677. 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, "", "", ""));
  6678. 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, "", "", ""));
  6679. 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, "", "", ""));
  6680. 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, "", "", ""));
  6681. 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, "", "", ""));
  6682. 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, "", "", ""));
  6683. 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, "", "", ""));
  6684. 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, "", "", ""));
  6685. 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, "", "", ""));
  6686. 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, "", "", ""));
  6687. 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, "", "", ""));
  6688. 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, "", "", ""));
  6689. 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, "", "", ""));
  6690. 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, "", "", ""));
  6691. 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, "", "", ""));
  6692. 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, "", "", ""));
  6693. 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, "", "", ""));
  6694. 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, "", "", ""));
  6695. 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, "", "", ""));
  6696. 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, "", "", ""));
  6697. 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, "", "", ""));
  6698. 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, "", "", ""));
  6699. 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, "", "", ""));
  6700. 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, "", "", ""));
  6701. 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, "", "", ""));
  6702. 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, "", "", ""));
  6703. 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, "", "", ""));
  6704. 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, "", "", ""));
  6705. }
  6706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6708. private void InitConnection() {
  6709. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6710. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString;
  6711. }
  6712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6714. private void InitCommandCollection() {
  6715. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6716. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6717. this._commandCollection[0].Connection = this.Connection;
  6718. this._commandCollection[0].CommandText = "SELECT [id сборки], [Id компонентов], Количество, Видеокарта, [Материнская плата]" +
  6719. ", Процессор, [Оперативная память], Оперативная_память, [Жетский диск], Куллер, [" +
  6720. "Система охлаждения], [Блок питания], SSD FROM dbo.computer_assembly";
  6721. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6722. }
  6723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6725. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6726. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6727. public virtual int Fill(digital_world_8DataSet.computer_assemblyDataTable dataTable) {
  6728. this.Adapter.SelectCommand = this.CommandCollection[0];
  6729. if ((this.ClearBeforeFill == true)) {
  6730. dataTable.Clear();
  6731. }
  6732. int returnValue = this.Adapter.Fill(dataTable);
  6733. return returnValue;
  6734. }
  6735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6737. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6738. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6739. public virtual digital_world_8DataSet.computer_assemblyDataTable GetData() {
  6740. this.Adapter.SelectCommand = this.CommandCollection[0];
  6741. digital_world_8DataSet.computer_assemblyDataTable dataTable = new digital_world_8DataSet.computer_assemblyDataTable();
  6742. this.Adapter.Fill(dataTable);
  6743. return dataTable;
  6744. }
  6745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6747. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6748. public virtual int Update(digital_world_8DataSet.computer_assemblyDataTable dataTable) {
  6749. return this.Adapter.Update(dataTable);
  6750. }
  6751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6753. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6754. public virtual int Update(digital_world_8DataSet dataSet) {
  6755. return this.Adapter.Update(dataSet, "computer_assembly");
  6756. }
  6757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6759. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6760. public virtual int Update(global::System.Data.DataRow dataRow) {
  6761. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6762. dataRow});
  6763. }
  6764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6766. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6767. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6768. return this.Adapter.Update(dataRows);
  6769. }
  6770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6772. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6773. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6774. public virtual int Delete(int Original_id_сборки, global::System.Nullable<int> Original_Id_компонентов, global::System.Nullable<int> Original_Количество, string Original_Видеокарта, string Original_Материнская_плата, string Original_Процессор, string p2, string Original_Оперативная_память, string Original_Жетский_диск, string Original_Куллер, string Original_Система_охлаждения, string Original_Блок_питания, string Original_SSD) {
  6775. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_сборки));
  6776. if ((Original_Id_компонентов.HasValue == true)) {
  6777. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6778. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_Id_компонентов.Value));
  6779. }
  6780. else {
  6781. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6782. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6783. }
  6784. if ((Original_Количество.HasValue == true)) {
  6785. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6786. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Количество.Value));
  6787. }
  6788. else {
  6789. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6790. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6791. }
  6792. if ((Original_Видеокарта == null)) {
  6793. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6794. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6795. }
  6796. else {
  6797. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6798. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Видеокарта));
  6799. }
  6800. if ((Original_Материнская_плата == null)) {
  6801. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6802. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6803. }
  6804. else {
  6805. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6806. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Материнская_плата));
  6807. }
  6808. if ((Original_Процессор == null)) {
  6809. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6810. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6811. }
  6812. else {
  6813. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6814. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Процессор));
  6815. }
  6816. if ((p2 == null)) {
  6817. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  6818. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  6819. }
  6820. else {
  6821. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  6822. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(p2));
  6823. }
  6824. if ((Original_Оперативная_память == null)) {
  6825. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  6826. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  6827. }
  6828. else {
  6829. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  6830. this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_Оперативная_память));
  6831. }
  6832. if ((Original_Жетский_диск == null)) {
  6833. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
  6834. this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
  6835. }
  6836. else {
  6837. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
  6838. this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_Жетский_диск));
  6839. }
  6840. if ((Original_Куллер == null)) {
  6841. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
  6842. this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
  6843. }
  6844. else {
  6845. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
  6846. this.Adapter.DeleteCommand.Parameters[18].Value = ((string)(Original_Куллер));
  6847. }
  6848. if ((Original_Система_охлаждения == null)) {
  6849. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
  6850. this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
  6851. }
  6852. else {
  6853. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
  6854. this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_Система_охлаждения));
  6855. }
  6856. if ((Original_Блок_питания == null)) {
  6857. this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
  6858. this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
  6859. }
  6860. else {
  6861. this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
  6862. this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_Блок_питания));
  6863. }
  6864. if ((Original_SSD == null)) {
  6865. this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1));
  6866. this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value;
  6867. }
  6868. else {
  6869. this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0));
  6870. this.Adapter.DeleteCommand.Parameters[24].Value = ((string)(Original_SSD));
  6871. }
  6872. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6873. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6874. != global::System.Data.ConnectionState.Open)) {
  6875. this.Adapter.DeleteCommand.Connection.Open();
  6876. }
  6877. try {
  6878. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6879. return returnValue;
  6880. }
  6881. finally {
  6882. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6883. this.Adapter.DeleteCommand.Connection.Close();
  6884. }
  6885. }
  6886. }
  6887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6889. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6890. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6891. public virtual int Insert(global::System.Nullable<int> Id_компонентов, global::System.Nullable<int> Количество, string Видеокарта, string Материнская_плата, string Процессор, string p1, string Оперативная_память, string Жетский_диск, string Куллер, string Система_охлаждения, string Блок_питания, string SSD) {
  6892. if ((Id_компонентов.HasValue == true)) {
  6893. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Id_компонентов.Value));
  6894. }
  6895. else {
  6896. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6897. }
  6898. if ((Количество.HasValue == true)) {
  6899. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Количество.Value));
  6900. }
  6901. else {
  6902. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6903. }
  6904. if ((Видеокарта == null)) {
  6905. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6906. }
  6907. else {
  6908. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Видеокарта));
  6909. }
  6910. if ((Материнская_плата == null)) {
  6911. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6912. }
  6913. else {
  6914. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Материнская_плата));
  6915. }
  6916. if ((Процессор == null)) {
  6917. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6918. }
  6919. else {
  6920. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Процессор));
  6921. }
  6922. if ((p1 == null)) {
  6923. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6924. }
  6925. else {
  6926. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(p1));
  6927. }
  6928. if ((Оперативная_память == null)) {
  6929. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  6930. }
  6931. else {
  6932. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Оперативная_память));
  6933. }
  6934. if ((Жетский_диск == null)) {
  6935. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  6936. }
  6937. else {
  6938. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Жетский_диск));
  6939. }
  6940. if ((Куллер == null)) {
  6941. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  6942. }
  6943. else {
  6944. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(Куллер));
  6945. }
  6946. if ((Система_охлаждения == null)) {
  6947. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  6948. }
  6949. else {
  6950. this.Adapter.InsertCommand.Parameters[9].Value = ((string)(Система_охлаждения));
  6951. }
  6952. if ((Блок_питания == null)) {
  6953. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  6954. }
  6955. else {
  6956. this.Adapter.InsertCommand.Parameters[10].Value = ((string)(Блок_питания));
  6957. }
  6958. if ((SSD == null)) {
  6959. this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
  6960. }
  6961. else {
  6962. this.Adapter.InsertCommand.Parameters[11].Value = ((string)(SSD));
  6963. }
  6964. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6965. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6966. != global::System.Data.ConnectionState.Open)) {
  6967. this.Adapter.InsertCommand.Connection.Open();
  6968. }
  6969. try {
  6970. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6971. return returnValue;
  6972. }
  6973. finally {
  6974. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6975. this.Adapter.InsertCommand.Connection.Close();
  6976. }
  6977. }
  6978. }
  6979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6981. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6982. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6983. public virtual int Update(
  6984. global::System.Nullable<int> Id_компонентов,
  6985. global::System.Nullable<int> Количество,
  6986. string Видеокарта,
  6987. string Материнская_плата,
  6988. string Процессор,
  6989. string p1,
  6990. string Оперативная_память,
  6991. string Жетский_диск,
  6992. string Куллер,
  6993. string Система_охлаждения,
  6994. string Блок_питания,
  6995. string SSD,
  6996. int Original_id_сборки,
  6997. global::System.Nullable<int> Original_Id_компонентов,
  6998. global::System.Nullable<int> Original_Количество,
  6999. string Original_Видеокарта,
  7000. string Original_Материнская_плата,
  7001. string Original_Процессор,
  7002. string p2,
  7003. string Original_Оперативная_память,
  7004. string Original_Жетский_диск,
  7005. string Original_Куллер,
  7006. string Original_Система_охлаждения,
  7007. string Original_Блок_питания,
  7008. string Original_SSD,
  7009. int id_сборки) {
  7010. if ((Id_компонентов.HasValue == true)) {
  7011. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Id_компонентов.Value));
  7012. }
  7013. else {
  7014. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7015. }
  7016. if ((Количество.HasValue == true)) {
  7017. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Количество.Value));
  7018. }
  7019. else {
  7020. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7021. }
  7022. if ((Видеокарта == null)) {
  7023. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7024. }
  7025. else {
  7026. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Видеокарта));
  7027. }
  7028. if ((Материнская_плата == null)) {
  7029. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7030. }
  7031. else {
  7032. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Материнская_плата));
  7033. }
  7034. if ((Процессор == null)) {
  7035. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7036. }
  7037. else {
  7038. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Процессор));
  7039. }
  7040. if ((p1 == null)) {
  7041. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7042. }
  7043. else {
  7044. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(p1));
  7045. }
  7046. if ((Оперативная_память == null)) {
  7047. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  7048. }
  7049. else {
  7050. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Оперативная_память));
  7051. }
  7052. if ((Жетский_диск == null)) {
  7053. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  7054. }
  7055. else {
  7056. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Жетский_диск));
  7057. }
  7058. if ((Куллер == null)) {
  7059. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7060. }
  7061. else {
  7062. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Куллер));
  7063. }
  7064. if ((Система_охлаждения == null)) {
  7065. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  7066. }
  7067. else {
  7068. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Система_охлаждения));
  7069. }
  7070. if ((Блок_питания == null)) {
  7071. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7072. }
  7073. else {
  7074. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Блок_питания));
  7075. }
  7076. if ((SSD == null)) {
  7077. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  7078. }
  7079. else {
  7080. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(SSD));
  7081. }
  7082. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_id_сборки));
  7083. if ((Original_Id_компонентов.HasValue == true)) {
  7084. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  7085. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_Id_компонентов.Value));
  7086. }
  7087. else {
  7088. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  7089. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  7090. }
  7091. if ((Original_Количество.HasValue == true)) {
  7092. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  7093. this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_Количество.Value));
  7094. }
  7095. else {
  7096. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  7097. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  7098. }
  7099. if ((Original_Видеокарта == null)) {
  7100. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  7101. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  7102. }
  7103. else {
  7104. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  7105. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Видеокарта));
  7106. }
  7107. if ((Original_Материнская_плата == null)) {
  7108. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
  7109. this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
  7110. }
  7111. else {
  7112. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
  7113. this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_Материнская_плата));
  7114. }
  7115. if ((Original_Процессор == null)) {
  7116. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
  7117. this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
  7118. }
  7119. else {
  7120. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
  7121. this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_Процессор));
  7122. }
  7123. if ((p2 == null)) {
  7124. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
  7125. this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
  7126. }
  7127. else {
  7128. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
  7129. this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(p2));
  7130. }
  7131. if ((Original_Оперативная_память == null)) {
  7132. this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1));
  7133. this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value;
  7134. }
  7135. else {
  7136. this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0));
  7137. this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_Оперативная_память));
  7138. }
  7139. if ((Original_Жетский_диск == null)) {
  7140. this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(1));
  7141. this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value;
  7142. }
  7143. else {
  7144. this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(0));
  7145. this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(Original_Жетский_диск));
  7146. }
  7147. if ((Original_Куллер == null)) {
  7148. this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1));
  7149. this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value;
  7150. }
  7151. else {
  7152. this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0));
  7153. this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(Original_Куллер));
  7154. }
  7155. if ((Original_Система_охлаждения == null)) {
  7156. this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1));
  7157. this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value;
  7158. }
  7159. else {
  7160. this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0));
  7161. this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_Система_охлаждения));
  7162. }
  7163. if ((Original_Блок_питания == null)) {
  7164. this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(1));
  7165. this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value;
  7166. }
  7167. else {
  7168. this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(0));
  7169. this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(Original_Блок_питания));
  7170. }
  7171. if ((Original_SSD == null)) {
  7172. this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1));
  7173. this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value;
  7174. }
  7175. else {
  7176. this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0));
  7177. this.Adapter.UpdateCommand.Parameters[36].Value = ((string)(Original_SSD));
  7178. }
  7179. this.Adapter.UpdateCommand.Parameters[37].Value = ((int)(id_сборки));
  7180. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7181. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7182. != global::System.Data.ConnectionState.Open)) {
  7183. this.Adapter.UpdateCommand.Connection.Open();
  7184. }
  7185. try {
  7186. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7187. return returnValue;
  7188. }
  7189. finally {
  7190. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7191. this.Adapter.UpdateCommand.Connection.Close();
  7192. }
  7193. }
  7194. }
  7195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7197. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7198. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7199. public virtual int Update(
  7200. global::System.Nullable<int> Id_компонентов,
  7201. global::System.Nullable<int> Количество,
  7202. string Видеокарта,
  7203. string Материнская_плата,
  7204. string Процессор,
  7205. string p1,
  7206. string Оперативная_память,
  7207. string Жетский_диск,
  7208. string Куллер,
  7209. string Система_охлаждения,
  7210. string Блок_питания,
  7211. string SSD,
  7212. int Original_id_сборки,
  7213. global::System.Nullable<int> Original_Id_компонентов,
  7214. global::System.Nullable<int> Original_Количество,
  7215. string Original_Видеокарта,
  7216. string Original_Материнская_плата,
  7217. string Original_Процессор,
  7218. string p2,
  7219. string Original_Оперативная_память,
  7220. string Original_Жетский_диск,
  7221. string Original_Куллер,
  7222. string Original_Система_охлаждения,
  7223. string Original_Блок_питания,
  7224. string Original_SSD) {
  7225. return this.Update(Id_компонентов, Количество, Видеокарта, Материнская_плата, Процессор, p1, Оперативная_память, Жетский_диск, Куллер, Система_охлаждения, Блок_питания, SSD, Original_id_сборки, Original_Id_компонентов, Original_Количество, Original_Видеокарта, Original_Материнская_плата, Original_Процессор, p2, Original_Оперативная_память, Original_Жетский_диск, Original_Куллер, Original_Система_охлаждения, Original_Блок_питания, Original_SSD, Original_id_сборки);
  7226. }
  7227. }
  7228. /// <summary>
  7229. ///Represents the connection and commands used to retrieve and save data.
  7230. ///</summary>
  7231. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7232. [global::System.ComponentModel.ToolboxItem(true)]
  7233. [global::System.ComponentModel.DataObjectAttribute(true)]
  7234. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7235. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7236. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7237. public partial class OrderTableAdapter : global::System.ComponentModel.Component {
  7238. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7239. private global::System.Data.SqlClient.SqlConnection _connection;
  7240. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7241. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7242. private bool _clearBeforeFill;
  7243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7245. public OrderTableAdapter() {
  7246. this.ClearBeforeFill = true;
  7247. }
  7248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7250. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7251. get {
  7252. if ((this._adapter == null)) {
  7253. this.InitAdapter();
  7254. }
  7255. return this._adapter;
  7256. }
  7257. }
  7258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7260. internal global::System.Data.SqlClient.SqlConnection Connection {
  7261. get {
  7262. if ((this._connection == null)) {
  7263. this.InitConnection();
  7264. }
  7265. return this._connection;
  7266. }
  7267. set {
  7268. this._connection = value;
  7269. if ((this.Adapter.InsertCommand != null)) {
  7270. this.Adapter.InsertCommand.Connection = value;
  7271. }
  7272. if ((this.Adapter.DeleteCommand != null)) {
  7273. this.Adapter.DeleteCommand.Connection = value;
  7274. }
  7275. if ((this.Adapter.UpdateCommand != null)) {
  7276. this.Adapter.UpdateCommand.Connection = value;
  7277. }
  7278. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7279. if ((this.CommandCollection[i] != null)) {
  7280. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7281. }
  7282. }
  7283. }
  7284. }
  7285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7287. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7288. get {
  7289. return this._transaction;
  7290. }
  7291. set {
  7292. this._transaction = value;
  7293. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7294. this.CommandCollection[i].Transaction = this._transaction;
  7295. }
  7296. if (((this.Adapter != null)
  7297. && (this.Adapter.DeleteCommand != null))) {
  7298. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7299. }
  7300. if (((this.Adapter != null)
  7301. && (this.Adapter.InsertCommand != null))) {
  7302. this.Adapter.InsertCommand.Transaction = this._transaction;
  7303. }
  7304. if (((this.Adapter != null)
  7305. && (this.Adapter.UpdateCommand != null))) {
  7306. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7307. }
  7308. }
  7309. }
  7310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7312. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7313. get {
  7314. if ((this._commandCollection == null)) {
  7315. this.InitCommandCollection();
  7316. }
  7317. return this._commandCollection;
  7318. }
  7319. }
  7320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7322. public bool ClearBeforeFill {
  7323. get {
  7324. return this._clearBeforeFill;
  7325. }
  7326. set {
  7327. this._clearBeforeFill = value;
  7328. }
  7329. }
  7330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7332. private void InitAdapter() {
  7333. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7334. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7335. tableMapping.SourceTable = "Table";
  7336. tableMapping.DataSetTable = "Order";
  7337. tableMapping.ColumnMappings.Add("Id_заказа", "Id_заказа");
  7338. tableMapping.ColumnMappings.Add("Номер заказа", "Номер заказа");
  7339. tableMapping.ColumnMappings.Add("Дата", "Дата");
  7340. tableMapping.ColumnMappings.Add("id сборки", "id сборки");
  7341. tableMapping.ColumnMappings.Add("id статуса", "id статуса");
  7342. this._adapter.TableMappings.Add(tableMapping);
  7343. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7344. this._adapter.DeleteCommand.Connection = this.Connection;
  7345. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[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_id_статуса = 1 AND [id статуса] IS NULL) OR ([id статуса] = @Original_id_статуса)))";
  7346. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7347. 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, "", "", ""));
  7348. 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, "", "", ""));
  7349. 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, "", "", ""));
  7350. 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, "", "", ""));
  7351. 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, "", "", ""));
  7352. 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, "", "", ""));
  7353. 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, "", "", ""));
  7354. 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, "", "", ""));
  7355. 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, "", "", ""));
  7356. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7357. this._adapter.InsertCommand.Connection = this.Connection;
  7358. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Order] ([Номер заказа], [Дата], [id сборки], [id статуса]) VAL" +
  7359. "UES (@Номер_заказа, @Дата, @id_сборки, @id_статуса);\r\nSELECT Id_заказа, [Номер з" +
  7360. "аказа], Дата, [id сборки], [id статуса] FROM [Order] WHERE (Id_заказа = SCOPE_ID" +
  7361. "ENTITY())";
  7362. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7363. 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, "", "", ""));
  7364. 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, "", "", ""));
  7365. 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, "", "", ""));
  7366. 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, "", "", ""));
  7367. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7368. this._adapter.UpdateCommand.Connection = this.Connection;
  7369. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Order] SET [Номер заказа] = @Номер_заказа, [Дата] = @Дата, [id сборки] = @id_сборки, [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_id_статуса = 1 AND [id статуса] IS NULL) OR ([id статуса] = @Original_id_статуса)));
  7370. SELECT Id_заказа, [Номер заказа], Дата, [id сборки], [id статуса] FROM [Order] WHERE (Id_заказа = @Id_заказа)";
  7371. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7372. 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, "", "", ""));
  7373. 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, "", "", ""));
  7374. 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, "", "", ""));
  7375. 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, "", "", ""));
  7376. 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, "", "", ""));
  7377. 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, "", "", ""));
  7378. 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, "", "", ""));
  7379. 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, "", "", ""));
  7380. 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, "", "", ""));
  7381. 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, "", "", ""));
  7382. 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, "", "", ""));
  7383. 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, "", "", ""));
  7384. 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, "", "", ""));
  7385. 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, "", "", ""));
  7386. }
  7387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7389. private void InitConnection() {
  7390. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7391. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString;
  7392. }
  7393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7395. private void InitCommandCollection() {
  7396. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7397. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7398. this._commandCollection[0].Connection = this.Connection;
  7399. this._commandCollection[0].CommandText = "SELECT Id_заказа, [Номер заказа], Дата, [id сборки], [id статуса] FROM dbo.[Order" +
  7400. "]";
  7401. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7402. }
  7403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7405. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7406. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7407. public virtual int Fill(digital_world_8DataSet.OrderDataTable dataTable) {
  7408. this.Adapter.SelectCommand = this.CommandCollection[0];
  7409. if ((this.ClearBeforeFill == true)) {
  7410. dataTable.Clear();
  7411. }
  7412. int returnValue = this.Adapter.Fill(dataTable);
  7413. return returnValue;
  7414. }
  7415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7417. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7418. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7419. public virtual digital_world_8DataSet.OrderDataTable GetData() {
  7420. this.Adapter.SelectCommand = this.CommandCollection[0];
  7421. digital_world_8DataSet.OrderDataTable dataTable = new digital_world_8DataSet.OrderDataTable();
  7422. this.Adapter.Fill(dataTable);
  7423. return dataTable;
  7424. }
  7425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7427. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7428. public virtual int Update(digital_world_8DataSet.OrderDataTable dataTable) {
  7429. return this.Adapter.Update(dataTable);
  7430. }
  7431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7433. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7434. public virtual int Update(digital_world_8DataSet dataSet) {
  7435. return this.Adapter.Update(dataSet, "Order");
  7436. }
  7437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7439. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7440. public virtual int Update(global::System.Data.DataRow dataRow) {
  7441. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7442. dataRow});
  7443. }
  7444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7446. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7447. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7448. return this.Adapter.Update(dataRows);
  7449. }
  7450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7452. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7453. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7454. 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_id_статуса) {
  7455. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Id_заказа));
  7456. if ((Original_Номер_заказа.HasValue == true)) {
  7457. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7458. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_Номер_заказа.Value));
  7459. }
  7460. else {
  7461. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7462. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7463. }
  7464. if ((Original_Дата.HasValue == true)) {
  7465. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7466. this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_Дата.Value));
  7467. }
  7468. else {
  7469. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7470. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7471. }
  7472. if ((Original_id_сборки.HasValue == true)) {
  7473. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7474. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_id_сборки.Value));
  7475. }
  7476. else {
  7477. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7478. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7479. }
  7480. if ((Original_id_статуса.HasValue == true)) {
  7481. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  7482. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_id_статуса.Value));
  7483. }
  7484. else {
  7485. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  7486. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  7487. }
  7488. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7489. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7490. != global::System.Data.ConnectionState.Open)) {
  7491. this.Adapter.DeleteCommand.Connection.Open();
  7492. }
  7493. try {
  7494. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7495. return returnValue;
  7496. }
  7497. finally {
  7498. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7499. this.Adapter.DeleteCommand.Connection.Close();
  7500. }
  7501. }
  7502. }
  7503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7505. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7506. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7507. public virtual int Insert(global::System.Nullable<int> Номер_заказа, global::System.Nullable<global::System.DateTime> Дата, global::System.Nullable<int> id_сборки, global::System.Nullable<int> id_статуса) {
  7508. if ((Номер_заказа.HasValue == true)) {
  7509. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Номер_заказа.Value));
  7510. }
  7511. else {
  7512. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7513. }
  7514. if ((Дата.HasValue == true)) {
  7515. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Дата.Value));
  7516. }
  7517. else {
  7518. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7519. }
  7520. if ((id_сборки.HasValue == true)) {
  7521. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(id_сборки.Value));
  7522. }
  7523. else {
  7524. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7525. }
  7526. if ((id_статуса.HasValue == true)) {
  7527. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(id_статуса.Value));
  7528. }
  7529. else {
  7530. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7531. }
  7532. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7533. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7534. != global::System.Data.ConnectionState.Open)) {
  7535. this.Adapter.InsertCommand.Connection.Open();
  7536. }
  7537. try {
  7538. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7539. return returnValue;
  7540. }
  7541. finally {
  7542. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7543. this.Adapter.InsertCommand.Connection.Close();
  7544. }
  7545. }
  7546. }
  7547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7549. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7550. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7551. public virtual int Update(global::System.Nullable<int> Номер_заказа, global::System.Nullable<global::System.DateTime> Дата, global::System.Nullable<int> id_сборки, global::System.Nullable<int> id_статуса, 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_id_статуса, int Id_заказа) {
  7552. if ((Номер_заказа.HasValue == true)) {
  7553. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Номер_заказа.Value));
  7554. }
  7555. else {
  7556. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7557. }
  7558. if ((Дата.HasValue == true)) {
  7559. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(Дата.Value));
  7560. }
  7561. else {
  7562. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7563. }
  7564. if ((id_сборки.HasValue == true)) {
  7565. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(id_сборки.Value));
  7566. }
  7567. else {
  7568. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7569. }
  7570. if ((id_статуса.HasValue == true)) {
  7571. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(id_статуса.Value));
  7572. }
  7573. else {
  7574. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7575. }
  7576. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_Id_заказа));
  7577. if ((Original_Номер_заказа.HasValue == true)) {
  7578. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  7579. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_Номер_заказа.Value));
  7580. }
  7581. else {
  7582. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  7583. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  7584. }
  7585. if ((Original_Дата.HasValue == true)) {
  7586. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  7587. this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_Дата.Value));
  7588. }
  7589. else {
  7590. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  7591. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7592. }
  7593. if ((Original_id_сборки.HasValue == true)) {
  7594. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  7595. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_id_сборки.Value));
  7596. }
  7597. else {
  7598. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  7599. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7600. }
  7601. if ((Original_id_статуса.HasValue == true)) {
  7602. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  7603. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_id_статуса.Value));
  7604. }
  7605. else {
  7606. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  7607. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  7608. }
  7609. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Id_заказа));
  7610. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7611. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7612. != global::System.Data.ConnectionState.Open)) {
  7613. this.Adapter.UpdateCommand.Connection.Open();
  7614. }
  7615. try {
  7616. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7617. return returnValue;
  7618. }
  7619. finally {
  7620. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7621. this.Adapter.UpdateCommand.Connection.Close();
  7622. }
  7623. }
  7624. }
  7625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7627. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7628. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7629. public virtual int Update(global::System.Nullable<int> Номер_заказа, global::System.Nullable<global::System.DateTime> Дата, global::System.Nullable<int> id_сборки, global::System.Nullable<int> id_статуса, 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_id_статуса) {
  7630. return this.Update(Номер_заказа, Дата, id_сборки, id_статуса, Original_Id_заказа, Original_Номер_заказа, Original_Дата, Original_id_сборки, Original_id_статуса, Original_Id_заказа);
  7631. }
  7632. }
  7633. /// <summary>
  7634. ///Represents the connection and commands used to retrieve and save data.
  7635. ///</summary>
  7636. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7637. [global::System.ComponentModel.ToolboxItem(true)]
  7638. [global::System.ComponentModel.DataObjectAttribute(true)]
  7639. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7640. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7641. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7642. public partial class order_by_clientsTableAdapter : global::System.ComponentModel.Component {
  7643. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7644. private global::System.Data.SqlClient.SqlConnection _connection;
  7645. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7646. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7647. private bool _clearBeforeFill;
  7648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7650. public order_by_clientsTableAdapter() {
  7651. this.ClearBeforeFill = true;
  7652. }
  7653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7655. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7656. get {
  7657. if ((this._adapter == null)) {
  7658. this.InitAdapter();
  7659. }
  7660. return this._adapter;
  7661. }
  7662. }
  7663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7665. internal global::System.Data.SqlClient.SqlConnection Connection {
  7666. get {
  7667. if ((this._connection == null)) {
  7668. this.InitConnection();
  7669. }
  7670. return this._connection;
  7671. }
  7672. set {
  7673. this._connection = value;
  7674. if ((this.Adapter.InsertCommand != null)) {
  7675. this.Adapter.InsertCommand.Connection = value;
  7676. }
  7677. if ((this.Adapter.DeleteCommand != null)) {
  7678. this.Adapter.DeleteCommand.Connection = value;
  7679. }
  7680. if ((this.Adapter.UpdateCommand != null)) {
  7681. this.Adapter.UpdateCommand.Connection = value;
  7682. }
  7683. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7684. if ((this.CommandCollection[i] != null)) {
  7685. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7686. }
  7687. }
  7688. }
  7689. }
  7690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7692. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7693. get {
  7694. return this._transaction;
  7695. }
  7696. set {
  7697. this._transaction = value;
  7698. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7699. this.CommandCollection[i].Transaction = this._transaction;
  7700. }
  7701. if (((this.Adapter != null)
  7702. && (this.Adapter.DeleteCommand != null))) {
  7703. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7704. }
  7705. if (((this.Adapter != null)
  7706. && (this.Adapter.InsertCommand != null))) {
  7707. this.Adapter.InsertCommand.Transaction = this._transaction;
  7708. }
  7709. if (((this.Adapter != null)
  7710. && (this.Adapter.UpdateCommand != null))) {
  7711. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7712. }
  7713. }
  7714. }
  7715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7717. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7718. get {
  7719. if ((this._commandCollection == null)) {
  7720. this.InitCommandCollection();
  7721. }
  7722. return this._commandCollection;
  7723. }
  7724. }
  7725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7727. public bool ClearBeforeFill {
  7728. get {
  7729. return this._clearBeforeFill;
  7730. }
  7731. set {
  7732. this._clearBeforeFill = value;
  7733. }
  7734. }
  7735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7737. private void InitAdapter() {
  7738. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7739. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7740. tableMapping.SourceTable = "Table";
  7741. tableMapping.DataSetTable = "order_by_clients";
  7742. tableMapping.ColumnMappings.Add("Номер заказа", "Номер заказа");
  7743. tableMapping.ColumnMappings.Add("Пожелания", "Пожелания");
  7744. this._adapter.TableMappings.Add(tableMapping);
  7745. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7746. this._adapter.DeleteCommand.Connection = this.Connection;
  7747. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[order_by_clients] WHERE (([Номер заказа] = @Original_Номер_зак" +
  7748. "аза) AND ((@IsNull_Пожелания = 1 AND [Пожелания] IS NULL) OR ([Пожелания] = @Ori" +
  7749. "ginal_Пожелания)))";
  7750. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7751. 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, "", "", ""));
  7752. 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, "", "", ""));
  7753. 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, "", "", ""));
  7754. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7755. this._adapter.InsertCommand.Connection = this.Connection;
  7756. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[order_by_clients] ([Пожелания]) VALUES (@Пожелания);\r\nSELECT [" +
  7757. "Номер заказа], Пожелания FROM order_by_clients WHERE ([Номер заказа] = SCOPE_IDE" +
  7758. "NTITY())";
  7759. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7760. 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, "", "", ""));
  7761. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7762. this._adapter.UpdateCommand.Connection = this.Connection;
  7763. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[order_by_clients] SET [Пожелания] = @Пожелания WHERE (([Номер заказа] = @Original_Номер_заказа) AND ((@IsNull_Пожелания = 1 AND [Пожелания] IS NULL) OR ([Пожелания] = @Original_Пожелания)));
  7764. SELECT [Номер заказа], Пожелания FROM order_by_clients WHERE ([Номер заказа] = @Номер_заказа)";
  7765. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7766. 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, "", "", ""));
  7767. 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, "", "", ""));
  7768. 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, "", "", ""));
  7769. 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, "", "", ""));
  7770. 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, "", "", ""));
  7771. }
  7772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7774. private void InitConnection() {
  7775. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7776. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString;
  7777. }
  7778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7780. private void InitCommandCollection() {
  7781. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7782. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7783. this._commandCollection[0].Connection = this.Connection;
  7784. this._commandCollection[0].CommandText = "SELECT [Номер заказа], Пожелания FROM dbo.order_by_clients";
  7785. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7786. }
  7787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7789. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7790. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7791. public virtual int Fill(digital_world_8DataSet.order_by_clientsDataTable dataTable) {
  7792. this.Adapter.SelectCommand = this.CommandCollection[0];
  7793. if ((this.ClearBeforeFill == true)) {
  7794. dataTable.Clear();
  7795. }
  7796. int returnValue = this.Adapter.Fill(dataTable);
  7797. return returnValue;
  7798. }
  7799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7801. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7802. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7803. public virtual digital_world_8DataSet.order_by_clientsDataTable GetData() {
  7804. this.Adapter.SelectCommand = this.CommandCollection[0];
  7805. digital_world_8DataSet.order_by_clientsDataTable dataTable = new digital_world_8DataSet.order_by_clientsDataTable();
  7806. this.Adapter.Fill(dataTable);
  7807. return dataTable;
  7808. }
  7809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7811. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7812. public virtual int Update(digital_world_8DataSet.order_by_clientsDataTable dataTable) {
  7813. return this.Adapter.Update(dataTable);
  7814. }
  7815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7817. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7818. public virtual int Update(digital_world_8DataSet dataSet) {
  7819. return this.Adapter.Update(dataSet, "order_by_clients");
  7820. }
  7821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7823. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7824. public virtual int Update(global::System.Data.DataRow dataRow) {
  7825. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7826. dataRow});
  7827. }
  7828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7830. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7831. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7832. return this.Adapter.Update(dataRows);
  7833. }
  7834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7836. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7837. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7838. public virtual int Delete(int Original_Номер_заказа, string Original_Пожелания) {
  7839. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Номер_заказа));
  7840. if ((Original_Пожелания == null)) {
  7841. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7842. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7843. }
  7844. else {
  7845. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7846. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Пожелания));
  7847. }
  7848. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7849. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7850. != global::System.Data.ConnectionState.Open)) {
  7851. this.Adapter.DeleteCommand.Connection.Open();
  7852. }
  7853. try {
  7854. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7855. return returnValue;
  7856. }
  7857. finally {
  7858. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7859. this.Adapter.DeleteCommand.Connection.Close();
  7860. }
  7861. }
  7862. }
  7863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7865. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7866. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7867. public virtual int Insert(string Пожелания) {
  7868. if ((Пожелания == null)) {
  7869. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7870. }
  7871. else {
  7872. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Пожелания));
  7873. }
  7874. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7875. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7876. != global::System.Data.ConnectionState.Open)) {
  7877. this.Adapter.InsertCommand.Connection.Open();
  7878. }
  7879. try {
  7880. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7881. return returnValue;
  7882. }
  7883. finally {
  7884. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7885. this.Adapter.InsertCommand.Connection.Close();
  7886. }
  7887. }
  7888. }
  7889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7891. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7892. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7893. public virtual int Update(string Пожелания, int Original_Номер_заказа, string Original_Пожелания, int Номер_заказа) {
  7894. if ((Пожелания == null)) {
  7895. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7896. }
  7897. else {
  7898. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Пожелания));
  7899. }
  7900. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_Номер_заказа));
  7901. if ((Original_Пожелания == null)) {
  7902. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  7903. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7904. }
  7905. else {
  7906. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  7907. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Пожелания));
  7908. }
  7909. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Номер_заказа));
  7910. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7911. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7912. != global::System.Data.ConnectionState.Open)) {
  7913. this.Adapter.UpdateCommand.Connection.Open();
  7914. }
  7915. try {
  7916. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7917. return returnValue;
  7918. }
  7919. finally {
  7920. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7921. this.Adapter.UpdateCommand.Connection.Close();
  7922. }
  7923. }
  7924. }
  7925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7927. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7928. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7929. public virtual int Update(string Пожелания, int Original_Номер_заказа, string Original_Пожелания) {
  7930. return this.Update(Пожелания, Original_Номер_заказа, Original_Пожелания, Original_Номер_заказа);
  7931. }
  7932. }
  7933. /// <summary>
  7934. ///Represents the connection and commands used to retrieve and save data.
  7935. ///</summary>
  7936. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7937. [global::System.ComponentModel.ToolboxItem(true)]
  7938. [global::System.ComponentModel.DataObjectAttribute(true)]
  7939. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7940. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7941. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7942. public partial class Order_statusTableAdapter : global::System.ComponentModel.Component {
  7943. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7944. private global::System.Data.SqlClient.SqlConnection _connection;
  7945. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7946. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7947. private bool _clearBeforeFill;
  7948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7950. public Order_statusTableAdapter() {
  7951. this.ClearBeforeFill = true;
  7952. }
  7953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7955. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7956. get {
  7957. if ((this._adapter == null)) {
  7958. this.InitAdapter();
  7959. }
  7960. return this._adapter;
  7961. }
  7962. }
  7963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7965. internal global::System.Data.SqlClient.SqlConnection Connection {
  7966. get {
  7967. if ((this._connection == null)) {
  7968. this.InitConnection();
  7969. }
  7970. return this._connection;
  7971. }
  7972. set {
  7973. this._connection = value;
  7974. if ((this.Adapter.InsertCommand != null)) {
  7975. this.Adapter.InsertCommand.Connection = value;
  7976. }
  7977. if ((this.Adapter.DeleteCommand != null)) {
  7978. this.Adapter.DeleteCommand.Connection = value;
  7979. }
  7980. if ((this.Adapter.UpdateCommand != null)) {
  7981. this.Adapter.UpdateCommand.Connection = value;
  7982. }
  7983. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7984. if ((this.CommandCollection[i] != null)) {
  7985. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7986. }
  7987. }
  7988. }
  7989. }
  7990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7992. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7993. get {
  7994. return this._transaction;
  7995. }
  7996. set {
  7997. this._transaction = value;
  7998. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7999. this.CommandCollection[i].Transaction = this._transaction;
  8000. }
  8001. if (((this.Adapter != null)
  8002. && (this.Adapter.DeleteCommand != null))) {
  8003. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8004. }
  8005. if (((this.Adapter != null)
  8006. && (this.Adapter.InsertCommand != null))) {
  8007. this.Adapter.InsertCommand.Transaction = this._transaction;
  8008. }
  8009. if (((this.Adapter != null)
  8010. && (this.Adapter.UpdateCommand != null))) {
  8011. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8012. }
  8013. }
  8014. }
  8015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8017. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8018. get {
  8019. if ((this._commandCollection == null)) {
  8020. this.InitCommandCollection();
  8021. }
  8022. return this._commandCollection;
  8023. }
  8024. }
  8025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8027. public bool ClearBeforeFill {
  8028. get {
  8029. return this._clearBeforeFill;
  8030. }
  8031. set {
  8032. this._clearBeforeFill = value;
  8033. }
  8034. }
  8035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8037. private void InitAdapter() {
  8038. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8039. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8040. tableMapping.SourceTable = "Table";
  8041. tableMapping.DataSetTable = "Order_status";
  8042. tableMapping.ColumnMappings.Add("id", "id");
  8043. tableMapping.ColumnMappings.Add("Название статуса", "Название статуса");
  8044. this._adapter.TableMappings.Add(tableMapping);
  8045. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8046. this._adapter.DeleteCommand.Connection = this.Connection;
  8047. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Order_status] WHERE (([id] = @Original_id) AND ((@IsNull_Назва" +
  8048. "ние_статуса = 1 AND [Название статуса] IS NULL) OR ([Название статуса] = @Origin" +
  8049. "al_Название_статуса)))";
  8050. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8051. 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, "", "", ""));
  8052. 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, "", "", ""));
  8053. 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, "", "", ""));
  8054. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8055. this._adapter.InsertCommand.Connection = this.Connection;
  8056. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Order_status] ([Название статуса]) VALUES (@Название_статуса);" +
  8057. "\r\nSELECT id, [Название статуса] FROM Order_status WHERE (id = SCOPE_IDENTITY())";
  8058. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8059. 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, "", "", ""));
  8060. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8061. this._adapter.UpdateCommand.Connection = this.Connection;
  8062. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Order_status] SET [Название статуса] = @Название_статуса WHERE (([id] = @Original_id) AND ((@IsNull_Название_статуса = 1 AND [Название статуса] IS NULL) OR ([Название статуса] = @Original_Название_статуса)));
  8063. SELECT id, [Название статуса] FROM Order_status WHERE (id = @id)";
  8064. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8065. 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, "", "", ""));
  8066. 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, "", "", ""));
  8067. 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, "", "", ""));
  8068. 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, "", "", ""));
  8069. 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, "", "", ""));
  8070. }
  8071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8073. private void InitConnection() {
  8074. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8075. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString;
  8076. }
  8077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8079. private void InitCommandCollection() {
  8080. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8081. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8082. this._commandCollection[0].Connection = this.Connection;
  8083. this._commandCollection[0].CommandText = "SELECT id, [Название статуса] FROM dbo.Order_status";
  8084. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8085. }
  8086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8088. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8089. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8090. public virtual int Fill(digital_world_8DataSet.Order_statusDataTable dataTable) {
  8091. this.Adapter.SelectCommand = this.CommandCollection[0];
  8092. if ((this.ClearBeforeFill == true)) {
  8093. dataTable.Clear();
  8094. }
  8095. int returnValue = this.Adapter.Fill(dataTable);
  8096. return returnValue;
  8097. }
  8098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8100. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8101. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8102. public virtual digital_world_8DataSet.Order_statusDataTable GetData() {
  8103. this.Adapter.SelectCommand = this.CommandCollection[0];
  8104. digital_world_8DataSet.Order_statusDataTable dataTable = new digital_world_8DataSet.Order_statusDataTable();
  8105. this.Adapter.Fill(dataTable);
  8106. return dataTable;
  8107. }
  8108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8110. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8111. public virtual int Update(digital_world_8DataSet.Order_statusDataTable dataTable) {
  8112. return this.Adapter.Update(dataTable);
  8113. }
  8114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8116. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8117. public virtual int Update(digital_world_8DataSet dataSet) {
  8118. return this.Adapter.Update(dataSet, "Order_status");
  8119. }
  8120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8122. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8123. public virtual int Update(global::System.Data.DataRow dataRow) {
  8124. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8125. dataRow});
  8126. }
  8127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8129. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8130. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8131. return this.Adapter.Update(dataRows);
  8132. }
  8133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8135. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8136. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8137. public virtual int Delete(int Original_id, string Original_Название_статуса) {
  8138. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  8139. if ((Original_Название_статуса == null)) {
  8140. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8141. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8142. }
  8143. else {
  8144. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8145. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название_статуса));
  8146. }
  8147. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8148. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8149. != global::System.Data.ConnectionState.Open)) {
  8150. this.Adapter.DeleteCommand.Connection.Open();
  8151. }
  8152. try {
  8153. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8154. return returnValue;
  8155. }
  8156. finally {
  8157. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8158. this.Adapter.DeleteCommand.Connection.Close();
  8159. }
  8160. }
  8161. }
  8162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8164. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8165. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8166. public virtual int Insert(string Название_статуса) {
  8167. if ((Название_статуса == null)) {
  8168. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8169. }
  8170. else {
  8171. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название_статуса));
  8172. }
  8173. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8174. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8175. != global::System.Data.ConnectionState.Open)) {
  8176. this.Adapter.InsertCommand.Connection.Open();
  8177. }
  8178. try {
  8179. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8180. return returnValue;
  8181. }
  8182. finally {
  8183. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8184. this.Adapter.InsertCommand.Connection.Close();
  8185. }
  8186. }
  8187. }
  8188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8190. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8191. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8192. public virtual int Update(string Название_статуса, int Original_id, string Original_Название_статуса, int id) {
  8193. if ((Название_статуса == null)) {
  8194. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8195. }
  8196. else {
  8197. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название_статуса));
  8198. }
  8199. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_id));
  8200. if ((Original_Название_статуса == null)) {
  8201. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  8202. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8203. }
  8204. else {
  8205. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  8206. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Название_статуса));
  8207. }
  8208. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(id));
  8209. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8210. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8211. != global::System.Data.ConnectionState.Open)) {
  8212. this.Adapter.UpdateCommand.Connection.Open();
  8213. }
  8214. try {
  8215. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8216. return returnValue;
  8217. }
  8218. finally {
  8219. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8220. this.Adapter.UpdateCommand.Connection.Close();
  8221. }
  8222. }
  8223. }
  8224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8226. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8227. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8228. public virtual int Update(string Название_статуса, int Original_id, string Original_Название_статуса) {
  8229. return this.Update(Название_статуса, Original_id, Original_Название_статуса, Original_id);
  8230. }
  8231. }
  8232. /// <summary>
  8233. ///Represents the connection and commands used to retrieve and save data.
  8234. ///</summary>
  8235. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8236. [global::System.ComponentModel.ToolboxItem(true)]
  8237. [global::System.ComponentModel.DataObjectAttribute(true)]
  8238. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8239. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8240. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8241. public partial class providerTableAdapter : global::System.ComponentModel.Component {
  8242. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8243. private global::System.Data.SqlClient.SqlConnection _connection;
  8244. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8245. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8246. private bool _clearBeforeFill;
  8247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8249. public providerTableAdapter() {
  8250. this.ClearBeforeFill = true;
  8251. }
  8252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8254. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8255. get {
  8256. if ((this._adapter == null)) {
  8257. this.InitAdapter();
  8258. }
  8259. return this._adapter;
  8260. }
  8261. }
  8262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8264. internal global::System.Data.SqlClient.SqlConnection Connection {
  8265. get {
  8266. if ((this._connection == null)) {
  8267. this.InitConnection();
  8268. }
  8269. return this._connection;
  8270. }
  8271. set {
  8272. this._connection = value;
  8273. if ((this.Adapter.InsertCommand != null)) {
  8274. this.Adapter.InsertCommand.Connection = value;
  8275. }
  8276. if ((this.Adapter.DeleteCommand != null)) {
  8277. this.Adapter.DeleteCommand.Connection = value;
  8278. }
  8279. if ((this.Adapter.UpdateCommand != null)) {
  8280. this.Adapter.UpdateCommand.Connection = value;
  8281. }
  8282. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8283. if ((this.CommandCollection[i] != null)) {
  8284. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8285. }
  8286. }
  8287. }
  8288. }
  8289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8291. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8292. get {
  8293. return this._transaction;
  8294. }
  8295. set {
  8296. this._transaction = value;
  8297. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8298. this.CommandCollection[i].Transaction = this._transaction;
  8299. }
  8300. if (((this.Adapter != null)
  8301. && (this.Adapter.DeleteCommand != null))) {
  8302. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8303. }
  8304. if (((this.Adapter != null)
  8305. && (this.Adapter.InsertCommand != null))) {
  8306. this.Adapter.InsertCommand.Transaction = this._transaction;
  8307. }
  8308. if (((this.Adapter != null)
  8309. && (this.Adapter.UpdateCommand != null))) {
  8310. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8311. }
  8312. }
  8313. }
  8314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8316. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8317. get {
  8318. if ((this._commandCollection == null)) {
  8319. this.InitCommandCollection();
  8320. }
  8321. return this._commandCollection;
  8322. }
  8323. }
  8324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8326. public bool ClearBeforeFill {
  8327. get {
  8328. return this._clearBeforeFill;
  8329. }
  8330. set {
  8331. this._clearBeforeFill = value;
  8332. }
  8333. }
  8334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8336. private void InitAdapter() {
  8337. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8338. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8339. tableMapping.SourceTable = "Table";
  8340. tableMapping.DataSetTable = "provider";
  8341. tableMapping.ColumnMappings.Add("id", "id");
  8342. tableMapping.ColumnMappings.Add("название", "название");
  8343. tableMapping.ColumnMappings.Add("Страна производитель", "Страна производитель");
  8344. this._adapter.TableMappings.Add(tableMapping);
  8345. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8346. this._adapter.DeleteCommand.Connection = this.Connection;
  8347. 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_Страна_производитель)))";
  8348. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8349. 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, "", "", ""));
  8350. 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, "", "", ""));
  8351. 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, "", "", ""));
  8352. 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, "", "", ""));
  8353. 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, "", "", ""));
  8354. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8355. this._adapter.InsertCommand.Connection = this.Connection;
  8356. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[provider] ([id], [название], [Страна производитель]) VALUES (@" +
  8357. "id, @название, @Страна_производитель);\r\nSELECT id, название, [Страна производите" +
  8358. "ль] FROM provider WHERE (id = @id)";
  8359. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8360. 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, "", "", ""));
  8361. 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, "", "", ""));
  8362. 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, "", "", ""));
  8363. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8364. this._adapter.UpdateCommand.Connection = this.Connection;
  8365. 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_Страна_производитель)));
  8366. SELECT id, название, [Страна производитель] FROM provider WHERE (id = @id)";
  8367. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8368. 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, "", "", ""));
  8369. 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, "", "", ""));
  8370. 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, "", "", ""));
  8371. 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, "", "", ""));
  8372. 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, "", "", ""));
  8373. 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, "", "", ""));
  8374. 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, "", "", ""));
  8375. 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, "", "", ""));
  8376. }
  8377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8379. private void InitConnection() {
  8380. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8381. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString;
  8382. }
  8383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8385. private void InitCommandCollection() {
  8386. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8387. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8388. this._commandCollection[0].Connection = this.Connection;
  8389. this._commandCollection[0].CommandText = "SELECT id, название, [Страна производитель] FROM dbo.provider";
  8390. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8391. }
  8392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8394. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8395. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8396. public virtual int Fill(digital_world_8DataSet.providerDataTable dataTable) {
  8397. this.Adapter.SelectCommand = this.CommandCollection[0];
  8398. if ((this.ClearBeforeFill == true)) {
  8399. dataTable.Clear();
  8400. }
  8401. int returnValue = this.Adapter.Fill(dataTable);
  8402. return returnValue;
  8403. }
  8404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8406. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8407. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8408. public virtual digital_world_8DataSet.providerDataTable GetData() {
  8409. this.Adapter.SelectCommand = this.CommandCollection[0];
  8410. digital_world_8DataSet.providerDataTable dataTable = new digital_world_8DataSet.providerDataTable();
  8411. this.Adapter.Fill(dataTable);
  8412. return dataTable;
  8413. }
  8414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8416. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8417. public virtual int Update(digital_world_8DataSet.providerDataTable dataTable) {
  8418. return this.Adapter.Update(dataTable);
  8419. }
  8420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8422. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8423. public virtual int Update(digital_world_8DataSet dataSet) {
  8424. return this.Adapter.Update(dataSet, "provider");
  8425. }
  8426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8428. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8429. public virtual int Update(global::System.Data.DataRow dataRow) {
  8430. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8431. dataRow});
  8432. }
  8433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8435. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8436. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8437. return this.Adapter.Update(dataRows);
  8438. }
  8439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8441. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8442. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8443. public virtual int Delete(int Original_id, string Original_название, string Original_Страна_производитель) {
  8444. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  8445. if ((Original_название == null)) {
  8446. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8447. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8448. }
  8449. else {
  8450. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8451. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_название));
  8452. }
  8453. if ((Original_Страна_производитель == null)) {
  8454. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8455. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8456. }
  8457. else {
  8458. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8459. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Страна_производитель));
  8460. }
  8461. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8462. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8463. != global::System.Data.ConnectionState.Open)) {
  8464. this.Adapter.DeleteCommand.Connection.Open();
  8465. }
  8466. try {
  8467. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8468. return returnValue;
  8469. }
  8470. finally {
  8471. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8472. this.Adapter.DeleteCommand.Connection.Close();
  8473. }
  8474. }
  8475. }
  8476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8478. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8479. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8480. public virtual int Insert(int id, string название, string Страна_производитель) {
  8481. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id));
  8482. if ((название == null)) {
  8483. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8484. }
  8485. else {
  8486. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(название));
  8487. }
  8488. if ((Страна_производитель == null)) {
  8489. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8490. }
  8491. else {
  8492. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Страна_производитель));
  8493. }
  8494. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8495. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8496. != global::System.Data.ConnectionState.Open)) {
  8497. this.Adapter.InsertCommand.Connection.Open();
  8498. }
  8499. try {
  8500. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8501. return returnValue;
  8502. }
  8503. finally {
  8504. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8505. this.Adapter.InsertCommand.Connection.Close();
  8506. }
  8507. }
  8508. }
  8509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8511. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8512. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8513. public virtual int Update(int id, string название, string Страна_производитель, int Original_id, string Original_название, string Original_Страна_производитель) {
  8514. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(id));
  8515. if ((название == null)) {
  8516. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8517. }
  8518. else {
  8519. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(название));
  8520. }
  8521. if ((Страна_производитель == null)) {
  8522. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8523. }
  8524. else {
  8525. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Страна_производитель));
  8526. }
  8527. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_id));
  8528. if ((Original_название == null)) {
  8529. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  8530. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8531. }
  8532. else {
  8533. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  8534. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_название));
  8535. }
  8536. if ((Original_Страна_производитель == null)) {
  8537. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  8538. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  8539. }
  8540. else {
  8541. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  8542. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Страна_производитель));
  8543. }
  8544. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8545. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8546. != global::System.Data.ConnectionState.Open)) {
  8547. this.Adapter.UpdateCommand.Connection.Open();
  8548. }
  8549. try {
  8550. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8551. return returnValue;
  8552. }
  8553. finally {
  8554. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8555. this.Adapter.UpdateCommand.Connection.Close();
  8556. }
  8557. }
  8558. }
  8559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8561. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8562. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8563. public virtual int Update(string название, string Страна_производитель, int Original_id, string Original_название, string Original_Страна_производитель) {
  8564. return this.Update(Original_id, название, Страна_производитель, Original_id, Original_название, Original_Страна_производитель);
  8565. }
  8566. }
  8567. /// <summary>
  8568. ///Represents the connection and commands used to retrieve and save data.
  8569. ///</summary>
  8570. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8571. [global::System.ComponentModel.ToolboxItem(true)]
  8572. [global::System.ComponentModel.DataObjectAttribute(true)]
  8573. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8574. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8575. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8576. public partial class receipt_of_goodsTableAdapter : global::System.ComponentModel.Component {
  8577. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8578. private global::System.Data.SqlClient.SqlConnection _connection;
  8579. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8580. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8581. private bool _clearBeforeFill;
  8582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8584. public receipt_of_goodsTableAdapter() {
  8585. this.ClearBeforeFill = true;
  8586. }
  8587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8589. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8590. get {
  8591. if ((this._adapter == null)) {
  8592. this.InitAdapter();
  8593. }
  8594. return this._adapter;
  8595. }
  8596. }
  8597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8599. internal global::System.Data.SqlClient.SqlConnection Connection {
  8600. get {
  8601. if ((this._connection == null)) {
  8602. this.InitConnection();
  8603. }
  8604. return this._connection;
  8605. }
  8606. set {
  8607. this._connection = value;
  8608. if ((this.Adapter.InsertCommand != null)) {
  8609. this.Adapter.InsertCommand.Connection = value;
  8610. }
  8611. if ((this.Adapter.DeleteCommand != null)) {
  8612. this.Adapter.DeleteCommand.Connection = value;
  8613. }
  8614. if ((this.Adapter.UpdateCommand != null)) {
  8615. this.Adapter.UpdateCommand.Connection = value;
  8616. }
  8617. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8618. if ((this.CommandCollection[i] != null)) {
  8619. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8620. }
  8621. }
  8622. }
  8623. }
  8624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8626. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8627. get {
  8628. return this._transaction;
  8629. }
  8630. set {
  8631. this._transaction = value;
  8632. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8633. this.CommandCollection[i].Transaction = this._transaction;
  8634. }
  8635. if (((this.Adapter != null)
  8636. && (this.Adapter.DeleteCommand != null))) {
  8637. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8638. }
  8639. if (((this.Adapter != null)
  8640. && (this.Adapter.InsertCommand != null))) {
  8641. this.Adapter.InsertCommand.Transaction = this._transaction;
  8642. }
  8643. if (((this.Adapter != null)
  8644. && (this.Adapter.UpdateCommand != null))) {
  8645. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8646. }
  8647. }
  8648. }
  8649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8651. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8652. get {
  8653. if ((this._commandCollection == null)) {
  8654. this.InitCommandCollection();
  8655. }
  8656. return this._commandCollection;
  8657. }
  8658. }
  8659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8661. public bool ClearBeforeFill {
  8662. get {
  8663. return this._clearBeforeFill;
  8664. }
  8665. set {
  8666. this._clearBeforeFill = value;
  8667. }
  8668. }
  8669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8671. private void InitAdapter() {
  8672. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8673. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8674. tableMapping.SourceTable = "Table";
  8675. tableMapping.DataSetTable = "receipt_of_goods";
  8676. tableMapping.ColumnMappings.Add("id", "id");
  8677. tableMapping.ColumnMappings.Add("id поставщика", "id поставщика");
  8678. tableMapping.ColumnMappings.Add("Id компонентов", "Id компонентов");
  8679. tableMapping.ColumnMappings.Add("Дата", "Дата");
  8680. this._adapter.TableMappings.Add(tableMapping);
  8681. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8682. this._adapter.DeleteCommand.Connection = this.Connection;
  8683. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[receipt_of_goods] WHERE (([id] = @Original_id) AND ((@IsNull_id_поставщика = 1 AND [id поставщика] IS NULL) OR ([id поставщика] = @Original_id_поставщика)) AND ((@IsNull_Id_компонентов = 1 AND [Id компонентов] IS NULL) OR ([Id компонентов] = @Original_Id_компонентов)) AND ((@IsNull_Дата = 1 AND [Дата] IS NULL) OR ([Дата] = @Original_Дата)))";
  8684. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8685. 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, "", "", ""));
  8686. 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, "", "", ""));
  8687. 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, "", "", ""));
  8688. 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, "", "", ""));
  8689. 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, "", "", ""));
  8690. 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, "", "", ""));
  8691. 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, "", "", ""));
  8692. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8693. this._adapter.InsertCommand.Connection = this.Connection;
  8694. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[receipt_of_goods] ([id поставщика], [Id компонентов], [Дата]) " +
  8695. "VALUES (@id_поставщика, @Id_компонентов, @Дата);\r\nSELECT id, [id поставщика], [I" +
  8696. "d компонентов], Дата FROM receipt_of_goods WHERE (id = SCOPE_IDENTITY())";
  8697. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8698. 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, "", "", ""));
  8699. 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, "", "", ""));
  8700. 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, "", "", ""));
  8701. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8702. this._adapter.UpdateCommand.Connection = this.Connection;
  8703. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[receipt_of_goods] SET [id поставщика] = @id_поставщика, [Id компонентов] = @Id_компонентов, [Дата] = @Дата WHERE (([id] = @Original_id) AND ((@IsNull_id_поставщика = 1 AND [id поставщика] IS NULL) OR ([id поставщика] = @Original_id_поставщика)) AND ((@IsNull_Id_компонентов = 1 AND [Id компонентов] IS NULL) OR ([Id компонентов] = @Original_Id_компонентов)) AND ((@IsNull_Дата = 1 AND [Дата] IS NULL) OR ([Дата] = @Original_Дата)));
  8704. SELECT id, [id поставщика], [Id компонентов], Дата FROM receipt_of_goods WHERE (id = @id)";
  8705. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8706. 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, "", "", ""));
  8707. 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, "", "", ""));
  8708. 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, "", "", ""));
  8709. 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, "", "", ""));
  8710. 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, "", "", ""));
  8711. 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, "", "", ""));
  8712. 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, "", "", ""));
  8713. 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, "", "", ""));
  8714. 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, "", "", ""));
  8715. 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, "", "", ""));
  8716. 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, "", "", ""));
  8717. }
  8718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8720. private void InitConnection() {
  8721. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8722. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString;
  8723. }
  8724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8726. private void InitCommandCollection() {
  8727. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8728. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8729. this._commandCollection[0].Connection = this.Connection;
  8730. this._commandCollection[0].CommandText = "SELECT id, [id поставщика], [Id компонентов], Дата FROM dbo.receipt_of_goods";
  8731. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8732. }
  8733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8735. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8736. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8737. public virtual int Fill(digital_world_8DataSet.receipt_of_goodsDataTable dataTable) {
  8738. this.Adapter.SelectCommand = this.CommandCollection[0];
  8739. if ((this.ClearBeforeFill == true)) {
  8740. dataTable.Clear();
  8741. }
  8742. int returnValue = this.Adapter.Fill(dataTable);
  8743. return returnValue;
  8744. }
  8745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8747. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8748. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8749. public virtual digital_world_8DataSet.receipt_of_goodsDataTable GetData() {
  8750. this.Adapter.SelectCommand = this.CommandCollection[0];
  8751. digital_world_8DataSet.receipt_of_goodsDataTable dataTable = new digital_world_8DataSet.receipt_of_goodsDataTable();
  8752. this.Adapter.Fill(dataTable);
  8753. return dataTable;
  8754. }
  8755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8757. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8758. public virtual int Update(digital_world_8DataSet.receipt_of_goodsDataTable dataTable) {
  8759. return this.Adapter.Update(dataTable);
  8760. }
  8761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8763. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8764. public virtual int Update(digital_world_8DataSet dataSet) {
  8765. return this.Adapter.Update(dataSet, "receipt_of_goods");
  8766. }
  8767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8769. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8770. public virtual int Update(global::System.Data.DataRow dataRow) {
  8771. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8772. dataRow});
  8773. }
  8774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8776. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8777. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8778. return this.Adapter.Update(dataRows);
  8779. }
  8780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8782. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8783. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8784. public virtual int Delete(int Original_id, global::System.Nullable<int> Original_id_поставщика, global::System.Nullable<int> Original_Id_компонентов, global::System.Nullable<global::System.DateTime> Original_Дата) {
  8785. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  8786. if ((Original_id_поставщика.HasValue == true)) {
  8787. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8788. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_id_поставщика.Value));
  8789. }
  8790. else {
  8791. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8792. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8793. }
  8794. if ((Original_Id_компонентов.HasValue == true)) {
  8795. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8796. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Id_компонентов.Value));
  8797. }
  8798. else {
  8799. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8800. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8801. }
  8802. if ((Original_Дата.HasValue == true)) {
  8803. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  8804. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_Дата.Value));
  8805. }
  8806. else {
  8807. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  8808. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  8809. }
  8810. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8811. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8812. != global::System.Data.ConnectionState.Open)) {
  8813. this.Adapter.DeleteCommand.Connection.Open();
  8814. }
  8815. try {
  8816. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8817. return returnValue;
  8818. }
  8819. finally {
  8820. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8821. this.Adapter.DeleteCommand.Connection.Close();
  8822. }
  8823. }
  8824. }
  8825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8827. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8828. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8829. public virtual int Insert(global::System.Nullable<int> id_поставщика, global::System.Nullable<int> Id_компонентов, global::System.Nullable<global::System.DateTime> Дата) {
  8830. if ((id_поставщика.HasValue == true)) {
  8831. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id_поставщика.Value));
  8832. }
  8833. else {
  8834. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8835. }
  8836. if ((Id_компонентов.HasValue == true)) {
  8837. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Id_компонентов.Value));
  8838. }
  8839. else {
  8840. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8841. }
  8842. if ((Дата.HasValue == true)) {
  8843. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(Дата.Value));
  8844. }
  8845. else {
  8846. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8847. }
  8848. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8849. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8850. != global::System.Data.ConnectionState.Open)) {
  8851. this.Adapter.InsertCommand.Connection.Open();
  8852. }
  8853. try {
  8854. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8855. return returnValue;
  8856. }
  8857. finally {
  8858. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8859. this.Adapter.InsertCommand.Connection.Close();
  8860. }
  8861. }
  8862. }
  8863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8865. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8866. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8867. public virtual int Update(global::System.Nullable<int> id_поставщика, global::System.Nullable<int> Id_компонентов, global::System.Nullable<global::System.DateTime> Дата, int Original_id, global::System.Nullable<int> Original_id_поставщика, global::System.Nullable<int> Original_Id_компонентов, global::System.Nullable<global::System.DateTime> Original_Дата, int id) {
  8868. if ((id_поставщика.HasValue == true)) {
  8869. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(id_поставщика.Value));
  8870. }
  8871. else {
  8872. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8873. }
  8874. if ((Id_компонентов.HasValue == true)) {
  8875. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Id_компонентов.Value));
  8876. }
  8877. else {
  8878. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8879. }
  8880. if ((Дата.HasValue == true)) {
  8881. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(Дата.Value));
  8882. }
  8883. else {
  8884. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8885. }
  8886. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_id));
  8887. if ((Original_id_поставщика.HasValue == true)) {
  8888. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  8889. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_id_поставщика.Value));
  8890. }
  8891. else {
  8892. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  8893. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8894. }
  8895. if ((Original_Id_компонентов.HasValue == true)) {
  8896. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  8897. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Id_компонентов.Value));
  8898. }
  8899. else {
  8900. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  8901. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  8902. }
  8903. if ((Original_Дата.HasValue == true)) {
  8904. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  8905. this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(Original_Дата.Value));
  8906. }
  8907. else {
  8908. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  8909. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  8910. }
  8911. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(id));
  8912. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8913. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8914. != global::System.Data.ConnectionState.Open)) {
  8915. this.Adapter.UpdateCommand.Connection.Open();
  8916. }
  8917. try {
  8918. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8919. return returnValue;
  8920. }
  8921. finally {
  8922. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8923. this.Adapter.UpdateCommand.Connection.Close();
  8924. }
  8925. }
  8926. }
  8927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8929. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8930. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8931. public virtual int Update(global::System.Nullable<int> id_поставщика, global::System.Nullable<int> Id_компонентов, global::System.Nullable<global::System.DateTime> Дата, int Original_id, global::System.Nullable<int> Original_id_поставщика, global::System.Nullable<int> Original_Id_компонентов, global::System.Nullable<global::System.DateTime> Original_Дата) {
  8932. return this.Update(id_поставщика, Id_компонентов, Дата, Original_id, Original_id_поставщика, Original_Id_компонентов, Original_Дата, Original_id);
  8933. }
  8934. }
  8935. /// <summary>
  8936. ///Represents the connection and commands used to retrieve and save data.
  8937. ///</summary>
  8938. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8939. [global::System.ComponentModel.ToolboxItem(true)]
  8940. [global::System.ComponentModel.DataObjectAttribute(true)]
  8941. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8942. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8943. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8944. public partial class RoleTableAdapter : global::System.ComponentModel.Component {
  8945. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8946. private global::System.Data.SqlClient.SqlConnection _connection;
  8947. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8948. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8949. private bool _clearBeforeFill;
  8950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8952. public RoleTableAdapter() {
  8953. this.ClearBeforeFill = true;
  8954. }
  8955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8957. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8958. get {
  8959. if ((this._adapter == null)) {
  8960. this.InitAdapter();
  8961. }
  8962. return this._adapter;
  8963. }
  8964. }
  8965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8967. internal global::System.Data.SqlClient.SqlConnection Connection {
  8968. get {
  8969. if ((this._connection == null)) {
  8970. this.InitConnection();
  8971. }
  8972. return this._connection;
  8973. }
  8974. set {
  8975. this._connection = value;
  8976. if ((this.Adapter.InsertCommand != null)) {
  8977. this.Adapter.InsertCommand.Connection = value;
  8978. }
  8979. if ((this.Adapter.DeleteCommand != null)) {
  8980. this.Adapter.DeleteCommand.Connection = value;
  8981. }
  8982. if ((this.Adapter.UpdateCommand != null)) {
  8983. this.Adapter.UpdateCommand.Connection = value;
  8984. }
  8985. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8986. if ((this.CommandCollection[i] != null)) {
  8987. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8988. }
  8989. }
  8990. }
  8991. }
  8992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8994. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8995. get {
  8996. return this._transaction;
  8997. }
  8998. set {
  8999. this._transaction = value;
  9000. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9001. this.CommandCollection[i].Transaction = this._transaction;
  9002. }
  9003. if (((this.Adapter != null)
  9004. && (this.Adapter.DeleteCommand != null))) {
  9005. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9006. }
  9007. if (((this.Adapter != null)
  9008. && (this.Adapter.InsertCommand != null))) {
  9009. this.Adapter.InsertCommand.Transaction = this._transaction;
  9010. }
  9011. if (((this.Adapter != null)
  9012. && (this.Adapter.UpdateCommand != null))) {
  9013. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9014. }
  9015. }
  9016. }
  9017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9019. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9020. get {
  9021. if ((this._commandCollection == null)) {
  9022. this.InitCommandCollection();
  9023. }
  9024. return this._commandCollection;
  9025. }
  9026. }
  9027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9029. public bool ClearBeforeFill {
  9030. get {
  9031. return this._clearBeforeFill;
  9032. }
  9033. set {
  9034. this._clearBeforeFill = value;
  9035. }
  9036. }
  9037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9039. private void InitAdapter() {
  9040. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9041. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9042. tableMapping.SourceTable = "Table";
  9043. tableMapping.DataSetTable = "Role";
  9044. tableMapping.ColumnMappings.Add("Id", "Id");
  9045. tableMapping.ColumnMappings.Add("Название роли", "Название роли");
  9046. this._adapter.TableMappings.Add(tableMapping);
  9047. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9048. this._adapter.DeleteCommand.Connection = this.Connection;
  9049. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Role] WHERE (([Id] = @Original_Id) AND ((@IsNull_Название_роли" +
  9050. " = 1 AND [Название роли] IS NULL) OR ([Название роли] = @Original_Название_роли)" +
  9051. "))";
  9052. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9053. 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, "", "", ""));
  9054. 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, "", "", ""));
  9055. 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, "", "", ""));
  9056. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9057. this._adapter.InsertCommand.Connection = this.Connection;
  9058. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Role] ([Id], [Название роли]) VALUES (@Id, @Название_роли);\r\nS" +
  9059. "ELECT Id, [Название роли] FROM Role WHERE (Id = @Id)";
  9060. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9061. 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, "", "", ""));
  9062. 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, "", "", ""));
  9063. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9064. this._adapter.UpdateCommand.Connection = this.Connection;
  9065. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Role] SET [Id] = @Id, [Название роли] = @Название_роли WHERE (([Id] = @Original_Id) AND ((@IsNull_Название_роли = 1 AND [Название роли] IS NULL) OR ([Название роли] = @Original_Название_роли)));
  9066. SELECT Id, [Название роли] FROM Role WHERE (Id = @Id)";
  9067. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9068. 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, "", "", ""));
  9069. 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, "", "", ""));
  9070. 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, "", "", ""));
  9071. 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, "", "", ""));
  9072. 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, "", "", ""));
  9073. }
  9074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9076. private void InitConnection() {
  9077. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9078. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString;
  9079. }
  9080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9082. private void InitCommandCollection() {
  9083. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9084. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9085. this._commandCollection[0].Connection = this.Connection;
  9086. this._commandCollection[0].CommandText = "SELECT Id, [Название роли] FROM dbo.Role";
  9087. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9088. }
  9089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9091. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9092. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9093. public virtual int Fill(digital_world_8DataSet.RoleDataTable dataTable) {
  9094. this.Adapter.SelectCommand = this.CommandCollection[0];
  9095. if ((this.ClearBeforeFill == true)) {
  9096. dataTable.Clear();
  9097. }
  9098. int returnValue = this.Adapter.Fill(dataTable);
  9099. return returnValue;
  9100. }
  9101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9103. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9104. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9105. public virtual digital_world_8DataSet.RoleDataTable GetData() {
  9106. this.Adapter.SelectCommand = this.CommandCollection[0];
  9107. digital_world_8DataSet.RoleDataTable dataTable = new digital_world_8DataSet.RoleDataTable();
  9108. this.Adapter.Fill(dataTable);
  9109. return dataTable;
  9110. }
  9111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9113. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9114. public virtual int Update(digital_world_8DataSet.RoleDataTable dataTable) {
  9115. return this.Adapter.Update(dataTable);
  9116. }
  9117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9119. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9120. public virtual int Update(digital_world_8DataSet dataSet) {
  9121. return this.Adapter.Update(dataSet, "Role");
  9122. }
  9123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9125. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9126. public virtual int Update(global::System.Data.DataRow dataRow) {
  9127. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9128. dataRow});
  9129. }
  9130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9132. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9133. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9134. return this.Adapter.Update(dataRows);
  9135. }
  9136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9138. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9139. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9140. public virtual int Delete(int Original_Id, string Original_Название_роли) {
  9141. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Id));
  9142. if ((Original_Название_роли == null)) {
  9143. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9144. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9145. }
  9146. else {
  9147. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9148. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название_роли));
  9149. }
  9150. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9151. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9152. != global::System.Data.ConnectionState.Open)) {
  9153. this.Adapter.DeleteCommand.Connection.Open();
  9154. }
  9155. try {
  9156. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9157. return returnValue;
  9158. }
  9159. finally {
  9160. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9161. this.Adapter.DeleteCommand.Connection.Close();
  9162. }
  9163. }
  9164. }
  9165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9167. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9168. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9169. public virtual int Insert(int Id, string Название_роли) {
  9170. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Id));
  9171. if ((Название_роли == null)) {
  9172. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9173. }
  9174. else {
  9175. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Название_роли));
  9176. }
  9177. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9178. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9179. != global::System.Data.ConnectionState.Open)) {
  9180. this.Adapter.InsertCommand.Connection.Open();
  9181. }
  9182. try {
  9183. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9184. return returnValue;
  9185. }
  9186. finally {
  9187. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9188. this.Adapter.InsertCommand.Connection.Close();
  9189. }
  9190. }
  9191. }
  9192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9194. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9195. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9196. public virtual int Update(int Id, string Название_роли, int Original_Id, string Original_Название_роли) {
  9197. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Id));
  9198. if ((Название_роли == null)) {
  9199. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9200. }
  9201. else {
  9202. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Название_роли));
  9203. }
  9204. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_Id));
  9205. if ((Original_Название_роли == null)) {
  9206. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  9207. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9208. }
  9209. else {
  9210. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  9211. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Название_роли));
  9212. }
  9213. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9214. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9215. != global::System.Data.ConnectionState.Open)) {
  9216. this.Adapter.UpdateCommand.Connection.Open();
  9217. }
  9218. try {
  9219. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9220. return returnValue;
  9221. }
  9222. finally {
  9223. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9224. this.Adapter.UpdateCommand.Connection.Close();
  9225. }
  9226. }
  9227. }
  9228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9230. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9231. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9232. public virtual int Update(string Название_роли, int Original_Id, string Original_Название_роли) {
  9233. return this.Update(Original_Id, Название_роли, Original_Id, Original_Название_роли);
  9234. }
  9235. }
  9236. /// <summary>
  9237. ///Represents the connection and commands used to retrieve and save data.
  9238. ///</summary>
  9239. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9240. [global::System.ComponentModel.ToolboxItem(true)]
  9241. [global::System.ComponentModel.DataObjectAttribute(true)]
  9242. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9243. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9244. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9245. public partial class unit_of_measurementTableAdapter : global::System.ComponentModel.Component {
  9246. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9247. private global::System.Data.SqlClient.SqlConnection _connection;
  9248. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9249. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9250. private bool _clearBeforeFill;
  9251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9253. public unit_of_measurementTableAdapter() {
  9254. this.ClearBeforeFill = true;
  9255. }
  9256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9258. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9259. get {
  9260. if ((this._adapter == null)) {
  9261. this.InitAdapter();
  9262. }
  9263. return this._adapter;
  9264. }
  9265. }
  9266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9268. internal global::System.Data.SqlClient.SqlConnection Connection {
  9269. get {
  9270. if ((this._connection == null)) {
  9271. this.InitConnection();
  9272. }
  9273. return this._connection;
  9274. }
  9275. set {
  9276. this._connection = value;
  9277. if ((this.Adapter.InsertCommand != null)) {
  9278. this.Adapter.InsertCommand.Connection = value;
  9279. }
  9280. if ((this.Adapter.DeleteCommand != null)) {
  9281. this.Adapter.DeleteCommand.Connection = value;
  9282. }
  9283. if ((this.Adapter.UpdateCommand != null)) {
  9284. this.Adapter.UpdateCommand.Connection = value;
  9285. }
  9286. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9287. if ((this.CommandCollection[i] != null)) {
  9288. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9289. }
  9290. }
  9291. }
  9292. }
  9293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9295. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9296. get {
  9297. return this._transaction;
  9298. }
  9299. set {
  9300. this._transaction = value;
  9301. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9302. this.CommandCollection[i].Transaction = this._transaction;
  9303. }
  9304. if (((this.Adapter != null)
  9305. && (this.Adapter.DeleteCommand != null))) {
  9306. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9307. }
  9308. if (((this.Adapter != null)
  9309. && (this.Adapter.InsertCommand != null))) {
  9310. this.Adapter.InsertCommand.Transaction = this._transaction;
  9311. }
  9312. if (((this.Adapter != null)
  9313. && (this.Adapter.UpdateCommand != null))) {
  9314. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9315. }
  9316. }
  9317. }
  9318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9320. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9321. get {
  9322. if ((this._commandCollection == null)) {
  9323. this.InitCommandCollection();
  9324. }
  9325. return this._commandCollection;
  9326. }
  9327. }
  9328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9330. public bool ClearBeforeFill {
  9331. get {
  9332. return this._clearBeforeFill;
  9333. }
  9334. set {
  9335. this._clearBeforeFill = value;
  9336. }
  9337. }
  9338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9340. private void InitAdapter() {
  9341. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9342. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9343. tableMapping.SourceTable = "Table";
  9344. tableMapping.DataSetTable = "unit_of_measurement";
  9345. tableMapping.ColumnMappings.Add("id", "id");
  9346. tableMapping.ColumnMappings.Add("название", "название");
  9347. this._adapter.TableMappings.Add(tableMapping);
  9348. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9349. this._adapter.DeleteCommand.Connection = this.Connection;
  9350. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[unit_of_measurement] WHERE (([id] = @Original_id) AND ((@IsNul" +
  9351. "l_название = 1 AND [название] IS NULL) OR ([название] = @Original_название)))";
  9352. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9353. 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, "", "", ""));
  9354. 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, "", "", ""));
  9355. 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, "", "", ""));
  9356. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9357. this._adapter.InsertCommand.Connection = this.Connection;
  9358. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[unit_of_measurement] ([название]) VALUES (@название);\r\nSELECT " +
  9359. "id, название FROM unit_of_measurement WHERE (id = SCOPE_IDENTITY())";
  9360. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9361. 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, "", "", ""));
  9362. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9363. this._adapter.UpdateCommand.Connection = this.Connection;
  9364. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[unit_of_measurement] SET [название] = @название WHERE (([id] = @Ori" +
  9365. "ginal_id) AND ((@IsNull_название = 1 AND [название] IS NULL) OR ([название] = @O" +
  9366. "riginal_название)));\r\nSELECT id, название FROM unit_of_measurement WHERE (id = @" +
  9367. "id)";
  9368. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9369. 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, "", "", ""));
  9370. 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, "", "", ""));
  9371. 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, "", "", ""));
  9372. 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, "", "", ""));
  9373. 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, "", "", ""));
  9374. }
  9375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9377. private void InitConnection() {
  9378. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9379. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString;
  9380. }
  9381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9383. private void InitCommandCollection() {
  9384. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9385. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9386. this._commandCollection[0].Connection = this.Connection;
  9387. this._commandCollection[0].CommandText = "SELECT id, название FROM dbo.unit_of_measurement";
  9388. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9389. }
  9390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9392. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9393. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9394. public virtual int Fill(digital_world_8DataSet.unit_of_measurementDataTable dataTable) {
  9395. this.Adapter.SelectCommand = this.CommandCollection[0];
  9396. if ((this.ClearBeforeFill == true)) {
  9397. dataTable.Clear();
  9398. }
  9399. int returnValue = this.Adapter.Fill(dataTable);
  9400. return returnValue;
  9401. }
  9402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9404. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9405. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9406. public virtual digital_world_8DataSet.unit_of_measurementDataTable GetData() {
  9407. this.Adapter.SelectCommand = this.CommandCollection[0];
  9408. digital_world_8DataSet.unit_of_measurementDataTable dataTable = new digital_world_8DataSet.unit_of_measurementDataTable();
  9409. this.Adapter.Fill(dataTable);
  9410. return dataTable;
  9411. }
  9412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9414. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9415. public virtual int Update(digital_world_8DataSet.unit_of_measurementDataTable dataTable) {
  9416. return this.Adapter.Update(dataTable);
  9417. }
  9418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9420. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9421. public virtual int Update(digital_world_8DataSet dataSet) {
  9422. return this.Adapter.Update(dataSet, "unit_of_measurement");
  9423. }
  9424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9426. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9427. public virtual int Update(global::System.Data.DataRow dataRow) {
  9428. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9429. dataRow});
  9430. }
  9431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9433. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9434. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9435. return this.Adapter.Update(dataRows);
  9436. }
  9437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9439. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9440. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9441. public virtual int Delete(int Original_id, string Original_название) {
  9442. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  9443. if ((Original_название == null)) {
  9444. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9445. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9446. }
  9447. else {
  9448. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9449. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_название));
  9450. }
  9451. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9452. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9453. != global::System.Data.ConnectionState.Open)) {
  9454. this.Adapter.DeleteCommand.Connection.Open();
  9455. }
  9456. try {
  9457. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9458. return returnValue;
  9459. }
  9460. finally {
  9461. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9462. this.Adapter.DeleteCommand.Connection.Close();
  9463. }
  9464. }
  9465. }
  9466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9468. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9469. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9470. public virtual int Insert(string название) {
  9471. if ((название == null)) {
  9472. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9473. }
  9474. else {
  9475. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(название));
  9476. }
  9477. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9478. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9479. != global::System.Data.ConnectionState.Open)) {
  9480. this.Adapter.InsertCommand.Connection.Open();
  9481. }
  9482. try {
  9483. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9484. return returnValue;
  9485. }
  9486. finally {
  9487. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9488. this.Adapter.InsertCommand.Connection.Close();
  9489. }
  9490. }
  9491. }
  9492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9494. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9495. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9496. public virtual int Update(string название, int Original_id, string Original_название, int id) {
  9497. if ((название == null)) {
  9498. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9499. }
  9500. else {
  9501. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(название));
  9502. }
  9503. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_id));
  9504. if ((Original_название == null)) {
  9505. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  9506. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9507. }
  9508. else {
  9509. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  9510. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_название));
  9511. }
  9512. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(id));
  9513. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9514. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9515. != global::System.Data.ConnectionState.Open)) {
  9516. this.Adapter.UpdateCommand.Connection.Open();
  9517. }
  9518. try {
  9519. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9520. return returnValue;
  9521. }
  9522. finally {
  9523. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9524. this.Adapter.UpdateCommand.Connection.Close();
  9525. }
  9526. }
  9527. }
  9528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9530. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9531. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9532. public virtual int Update(string название, int Original_id, string Original_название) {
  9533. return this.Update(название, Original_id, Original_название, Original_id);
  9534. }
  9535. }
  9536. /// <summary>
  9537. ///Represents the connection and commands used to retrieve and save data.
  9538. ///</summary>
  9539. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9540. [global::System.ComponentModel.ToolboxItem(true)]
  9541. [global::System.ComponentModel.DataObjectAttribute(true)]
  9542. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9543. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9544. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9545. public partial class UsersTableAdapter : global::System.ComponentModel.Component {
  9546. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9547. private global::System.Data.SqlClient.SqlConnection _connection;
  9548. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9549. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9550. private bool _clearBeforeFill;
  9551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9553. public UsersTableAdapter() {
  9554. this.ClearBeforeFill = true;
  9555. }
  9556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9558. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9559. get {
  9560. if ((this._adapter == null)) {
  9561. this.InitAdapter();
  9562. }
  9563. return this._adapter;
  9564. }
  9565. }
  9566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9568. internal global::System.Data.SqlClient.SqlConnection Connection {
  9569. get {
  9570. if ((this._connection == null)) {
  9571. this.InitConnection();
  9572. }
  9573. return this._connection;
  9574. }
  9575. set {
  9576. this._connection = value;
  9577. if ((this.Adapter.InsertCommand != null)) {
  9578. this.Adapter.InsertCommand.Connection = value;
  9579. }
  9580. if ((this.Adapter.DeleteCommand != null)) {
  9581. this.Adapter.DeleteCommand.Connection = value;
  9582. }
  9583. if ((this.Adapter.UpdateCommand != null)) {
  9584. this.Adapter.UpdateCommand.Connection = value;
  9585. }
  9586. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9587. if ((this.CommandCollection[i] != null)) {
  9588. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9589. }
  9590. }
  9591. }
  9592. }
  9593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9595. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9596. get {
  9597. return this._transaction;
  9598. }
  9599. set {
  9600. this._transaction = value;
  9601. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9602. this.CommandCollection[i].Transaction = this._transaction;
  9603. }
  9604. if (((this.Adapter != null)
  9605. && (this.Adapter.DeleteCommand != null))) {
  9606. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9607. }
  9608. if (((this.Adapter != null)
  9609. && (this.Adapter.InsertCommand != null))) {
  9610. this.Adapter.InsertCommand.Transaction = this._transaction;
  9611. }
  9612. if (((this.Adapter != null)
  9613. && (this.Adapter.UpdateCommand != null))) {
  9614. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9615. }
  9616. }
  9617. }
  9618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9620. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9621. get {
  9622. if ((this._commandCollection == null)) {
  9623. this.InitCommandCollection();
  9624. }
  9625. return this._commandCollection;
  9626. }
  9627. }
  9628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9630. public bool ClearBeforeFill {
  9631. get {
  9632. return this._clearBeforeFill;
  9633. }
  9634. set {
  9635. this._clearBeforeFill = value;
  9636. }
  9637. }
  9638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9640. private void InitAdapter() {
  9641. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9642. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9643. tableMapping.SourceTable = "Table";
  9644. tableMapping.DataSetTable = "Users";
  9645. tableMapping.ColumnMappings.Add("Id", "Id");
  9646. tableMapping.ColumnMappings.Add("Username", "Username");
  9647. tableMapping.ColumnMappings.Add("Password", "Password");
  9648. tableMapping.ColumnMappings.Add("Role", "Role");
  9649. this._adapter.TableMappings.Add(tableMapping);
  9650. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9651. this._adapter.DeleteCommand.Connection = this.Connection;
  9652. 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)))";
  9653. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9654. 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, "", "", ""));
  9655. 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, "", "", ""));
  9656. 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, "", "", ""));
  9657. 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, "", "", ""));
  9658. 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, "", "", ""));
  9659. 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, "", "", ""));
  9660. 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, "", "", ""));
  9661. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9662. this._adapter.InsertCommand.Connection = this.Connection;
  9663. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Users] ([Id], [Username], [Password], [Role]) VALUES (@Id, @Us" +
  9664. "ername, @Password, @Role);\r\nSELECT Id, Username, Password, Role FROM Users WHERE" +
  9665. " (Id = @Id)";
  9666. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9667. 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, "", "", ""));
  9668. 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, "", "", ""));
  9669. 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, "", "", ""));
  9670. 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, "", "", ""));
  9671. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9672. this._adapter.UpdateCommand.Connection = this.Connection;
  9673. 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)));
  9674. SELECT Id, Username, Password, Role FROM Users WHERE (Id = @Id)";
  9675. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9676. 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, "", "", ""));
  9677. 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, "", "", ""));
  9678. 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, "", "", ""));
  9679. 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, "", "", ""));
  9680. 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, "", "", ""));
  9681. 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, "", "", ""));
  9682. 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, "", "", ""));
  9683. 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, "", "", ""));
  9684. 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, "", "", ""));
  9685. 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, "", "", ""));
  9686. 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, "", "", ""));
  9687. }
  9688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9690. private void InitConnection() {
  9691. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9692. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString;
  9693. }
  9694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9696. private void InitCommandCollection() {
  9697. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9698. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9699. this._commandCollection[0].Connection = this.Connection;
  9700. this._commandCollection[0].CommandText = "SELECT Id, Username, Password, Role FROM dbo.Users";
  9701. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9702. }
  9703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9705. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9706. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9707. public virtual int Fill(digital_world_8DataSet.UsersDataTable dataTable) {
  9708. this.Adapter.SelectCommand = this.CommandCollection[0];
  9709. if ((this.ClearBeforeFill == true)) {
  9710. dataTable.Clear();
  9711. }
  9712. int returnValue = this.Adapter.Fill(dataTable);
  9713. return returnValue;
  9714. }
  9715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9717. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9718. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9719. public virtual digital_world_8DataSet.UsersDataTable GetData() {
  9720. this.Adapter.SelectCommand = this.CommandCollection[0];
  9721. digital_world_8DataSet.UsersDataTable dataTable = new digital_world_8DataSet.UsersDataTable();
  9722. this.Adapter.Fill(dataTable);
  9723. return dataTable;
  9724. }
  9725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9727. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9728. public virtual int Update(digital_world_8DataSet.UsersDataTable dataTable) {
  9729. return this.Adapter.Update(dataTable);
  9730. }
  9731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9733. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9734. public virtual int Update(digital_world_8DataSet dataSet) {
  9735. return this.Adapter.Update(dataSet, "Users");
  9736. }
  9737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9739. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9740. public virtual int Update(global::System.Data.DataRow dataRow) {
  9741. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9742. dataRow});
  9743. }
  9744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9746. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9747. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9748. return this.Adapter.Update(dataRows);
  9749. }
  9750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9752. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9753. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9754. public virtual int Delete(int Original_Id, string Original_Username, string Original_Password, global::System.Nullable<int> Original_Role) {
  9755. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Id));
  9756. if ((Original_Username == null)) {
  9757. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9758. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9759. }
  9760. else {
  9761. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9762. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Username));
  9763. }
  9764. if ((Original_Password == null)) {
  9765. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  9766. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  9767. }
  9768. else {
  9769. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  9770. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Password));
  9771. }
  9772. if ((Original_Role.HasValue == true)) {
  9773. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  9774. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Role.Value));
  9775. }
  9776. else {
  9777. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  9778. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  9779. }
  9780. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9781. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9782. != global::System.Data.ConnectionState.Open)) {
  9783. this.Adapter.DeleteCommand.Connection.Open();
  9784. }
  9785. try {
  9786. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9787. return returnValue;
  9788. }
  9789. finally {
  9790. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9791. this.Adapter.DeleteCommand.Connection.Close();
  9792. }
  9793. }
  9794. }
  9795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9797. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9798. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9799. public virtual int Insert(int Id, string Username, string Password, global::System.Nullable<int> Role) {
  9800. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Id));
  9801. if ((Username == null)) {
  9802. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9803. }
  9804. else {
  9805. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Username));
  9806. }
  9807. if ((Password == null)) {
  9808. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  9809. }
  9810. else {
  9811. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Password));
  9812. }
  9813. if ((Role.HasValue == true)) {
  9814. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Role.Value));
  9815. }
  9816. else {
  9817. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9818. }
  9819. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9820. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9821. != global::System.Data.ConnectionState.Open)) {
  9822. this.Adapter.InsertCommand.Connection.Open();
  9823. }
  9824. try {
  9825. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9826. return returnValue;
  9827. }
  9828. finally {
  9829. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9830. this.Adapter.InsertCommand.Connection.Close();
  9831. }
  9832. }
  9833. }
  9834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9836. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9837. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9838. 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) {
  9839. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Id));
  9840. if ((Username == null)) {
  9841. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9842. }
  9843. else {
  9844. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Username));
  9845. }
  9846. if ((Password == null)) {
  9847. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  9848. }
  9849. else {
  9850. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Password));
  9851. }
  9852. if ((Role.HasValue == true)) {
  9853. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Role.Value));
  9854. }
  9855. else {
  9856. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9857. }
  9858. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_Id));
  9859. if ((Original_Username == null)) {
  9860. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  9861. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  9862. }
  9863. else {
  9864. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  9865. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Username));
  9866. }
  9867. if ((Original_Password == null)) {
  9868. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  9869. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  9870. }
  9871. else {
  9872. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  9873. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Password));
  9874. }
  9875. if ((Original_Role.HasValue == true)) {
  9876. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  9877. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_Role.Value));
  9878. }
  9879. else {
  9880. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  9881. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  9882. }
  9883. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9884. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9885. != global::System.Data.ConnectionState.Open)) {
  9886. this.Adapter.UpdateCommand.Connection.Open();
  9887. }
  9888. try {
  9889. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9890. return returnValue;
  9891. }
  9892. finally {
  9893. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9894. this.Adapter.UpdateCommand.Connection.Close();
  9895. }
  9896. }
  9897. }
  9898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9900. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9901. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9902. 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) {
  9903. return this.Update(Original_Id, Username, Password, Role, Original_Id, Original_Username, Original_Password, Original_Role);
  9904. }
  9905. }
  9906. /// <summary>
  9907. ///Represents the connection and commands used to retrieve and save data.
  9908. ///</summary>
  9909. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9910. [global::System.ComponentModel.ToolboxItem(true)]
  9911. [global::System.ComponentModel.DataObjectAttribute(true)]
  9912. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9913. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9914. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9915. public partial class PostavkaTableAdapter : global::System.ComponentModel.Component {
  9916. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9917. private global::System.Data.SqlClient.SqlConnection _connection;
  9918. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9919. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9920. private bool _clearBeforeFill;
  9921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9923. public PostavkaTableAdapter() {
  9924. this.ClearBeforeFill = true;
  9925. }
  9926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9928. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9929. get {
  9930. if ((this._adapter == null)) {
  9931. this.InitAdapter();
  9932. }
  9933. return this._adapter;
  9934. }
  9935. }
  9936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9938. internal global::System.Data.SqlClient.SqlConnection Connection {
  9939. get {
  9940. if ((this._connection == null)) {
  9941. this.InitConnection();
  9942. }
  9943. return this._connection;
  9944. }
  9945. set {
  9946. this._connection = value;
  9947. if ((this.Adapter.InsertCommand != null)) {
  9948. this.Adapter.InsertCommand.Connection = value;
  9949. }
  9950. if ((this.Adapter.DeleteCommand != null)) {
  9951. this.Adapter.DeleteCommand.Connection = value;
  9952. }
  9953. if ((this.Adapter.UpdateCommand != null)) {
  9954. this.Adapter.UpdateCommand.Connection = value;
  9955. }
  9956. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9957. if ((this.CommandCollection[i] != null)) {
  9958. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9959. }
  9960. }
  9961. }
  9962. }
  9963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9965. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9966. get {
  9967. return this._transaction;
  9968. }
  9969. set {
  9970. this._transaction = value;
  9971. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9972. this.CommandCollection[i].Transaction = this._transaction;
  9973. }
  9974. if (((this.Adapter != null)
  9975. && (this.Adapter.DeleteCommand != null))) {
  9976. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9977. }
  9978. if (((this.Adapter != null)
  9979. && (this.Adapter.InsertCommand != null))) {
  9980. this.Adapter.InsertCommand.Transaction = this._transaction;
  9981. }
  9982. if (((this.Adapter != null)
  9983. && (this.Adapter.UpdateCommand != null))) {
  9984. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9985. }
  9986. }
  9987. }
  9988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9990. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9991. get {
  9992. if ((this._commandCollection == null)) {
  9993. this.InitCommandCollection();
  9994. }
  9995. return this._commandCollection;
  9996. }
  9997. }
  9998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10000. public bool ClearBeforeFill {
  10001. get {
  10002. return this._clearBeforeFill;
  10003. }
  10004. set {
  10005. this._clearBeforeFill = value;
  10006. }
  10007. }
  10008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10010. private void InitAdapter() {
  10011. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10012. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10013. tableMapping.SourceTable = "Table";
  10014. tableMapping.DataSetTable = "Postavka";
  10015. tableMapping.ColumnMappings.Add("Дата", "Дата");
  10016. tableMapping.ColumnMappings.Add("Наименование поставщика", "Наименование поставщика");
  10017. tableMapping.ColumnMappings.Add("Название материала", "Название материала");
  10018. tableMapping.ColumnMappings.Add("Тип_материала", "Тип_материала");
  10019. tableMapping.ColumnMappings.Add("количество", "количество");
  10020. tableMapping.ColumnMappings.Add("Единица измерения", "Единица измерения");
  10021. this._adapter.TableMappings.Add(tableMapping);
  10022. }
  10023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10025. private void InitConnection() {
  10026. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10027. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString;
  10028. }
  10029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10031. private void InitCommandCollection() {
  10032. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10033. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10034. this._commandCollection[0].Connection = this.Connection;
  10035. this._commandCollection[0].CommandText = "SELECT Дата, [Наименование поставщика], [Название материала], Тип_материала, коли" +
  10036. "чество, [Единица измерения] FROM dbo.Postavka";
  10037. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10038. }
  10039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10041. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10042. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10043. public virtual int Fill(digital_world_8DataSet.PostavkaDataTable dataTable) {
  10044. this.Adapter.SelectCommand = this.CommandCollection[0];
  10045. if ((this.ClearBeforeFill == true)) {
  10046. dataTable.Clear();
  10047. }
  10048. int returnValue = this.Adapter.Fill(dataTable);
  10049. return returnValue;
  10050. }
  10051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10053. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10054. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10055. public virtual digital_world_8DataSet.PostavkaDataTable GetData() {
  10056. this.Adapter.SelectCommand = this.CommandCollection[0];
  10057. digital_world_8DataSet.PostavkaDataTable dataTable = new digital_world_8DataSet.PostavkaDataTable();
  10058. this.Adapter.Fill(dataTable);
  10059. return dataTable;
  10060. }
  10061. }
  10062. /// <summary>
  10063. ///Represents the connection and commands used to retrieve and save data.
  10064. ///</summary>
  10065. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10066. [global::System.ComponentModel.ToolboxItem(true)]
  10067. [global::System.ComponentModel.DataObjectAttribute(true)]
  10068. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10069. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10070. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10071. public partial class ZakazTableAdapter : global::System.ComponentModel.Component {
  10072. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10073. private global::System.Data.SqlClient.SqlConnection _connection;
  10074. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10075. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10076. private bool _clearBeforeFill;
  10077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10079. public ZakazTableAdapter() {
  10080. this.ClearBeforeFill = true;
  10081. }
  10082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10084. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10085. get {
  10086. if ((this._adapter == null)) {
  10087. this.InitAdapter();
  10088. }
  10089. return this._adapter;
  10090. }
  10091. }
  10092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10094. internal global::System.Data.SqlClient.SqlConnection Connection {
  10095. get {
  10096. if ((this._connection == null)) {
  10097. this.InitConnection();
  10098. }
  10099. return this._connection;
  10100. }
  10101. set {
  10102. this._connection = value;
  10103. if ((this.Adapter.InsertCommand != null)) {
  10104. this.Adapter.InsertCommand.Connection = value;
  10105. }
  10106. if ((this.Adapter.DeleteCommand != null)) {
  10107. this.Adapter.DeleteCommand.Connection = value;
  10108. }
  10109. if ((this.Adapter.UpdateCommand != null)) {
  10110. this.Adapter.UpdateCommand.Connection = value;
  10111. }
  10112. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10113. if ((this.CommandCollection[i] != null)) {
  10114. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10115. }
  10116. }
  10117. }
  10118. }
  10119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10121. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10122. get {
  10123. return this._transaction;
  10124. }
  10125. set {
  10126. this._transaction = value;
  10127. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10128. this.CommandCollection[i].Transaction = this._transaction;
  10129. }
  10130. if (((this.Adapter != null)
  10131. && (this.Adapter.DeleteCommand != null))) {
  10132. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10133. }
  10134. if (((this.Adapter != null)
  10135. && (this.Adapter.InsertCommand != null))) {
  10136. this.Adapter.InsertCommand.Transaction = this._transaction;
  10137. }
  10138. if (((this.Adapter != null)
  10139. && (this.Adapter.UpdateCommand != null))) {
  10140. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10141. }
  10142. }
  10143. }
  10144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10146. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10147. get {
  10148. if ((this._commandCollection == null)) {
  10149. this.InitCommandCollection();
  10150. }
  10151. return this._commandCollection;
  10152. }
  10153. }
  10154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10156. public bool ClearBeforeFill {
  10157. get {
  10158. return this._clearBeforeFill;
  10159. }
  10160. set {
  10161. this._clearBeforeFill = value;
  10162. }
  10163. }
  10164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10166. private void InitAdapter() {
  10167. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10168. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10169. tableMapping.SourceTable = "Table";
  10170. tableMapping.DataSetTable = "Zakaz";
  10171. tableMapping.ColumnMappings.Add("Номер заказа", "Номер заказа");
  10172. tableMapping.ColumnMappings.Add("Название статуса", "Название статуса");
  10173. tableMapping.ColumnMappings.Add("Видеокарта", "Видеокарта");
  10174. tableMapping.ColumnMappings.Add("Материнская плата", "Материнская плата");
  10175. tableMapping.ColumnMappings.Add("Процессор", "Процессор");
  10176. tableMapping.ColumnMappings.Add("Оперативная память", "Оперативная память");
  10177. tableMapping.ColumnMappings.Add("Оперативная_память", "Оперативная_память");
  10178. tableMapping.ColumnMappings.Add("Жетский диск", "Жетский диск");
  10179. tableMapping.ColumnMappings.Add("Куллер", "Куллер");
  10180. tableMapping.ColumnMappings.Add("Система охлаждения", "Система охлаждения");
  10181. tableMapping.ColumnMappings.Add("Блок питания", "Блок питания");
  10182. tableMapping.ColumnMappings.Add("SSD", "SSD");
  10183. this._adapter.TableMappings.Add(tableMapping);
  10184. }
  10185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10187. private void InitConnection() {
  10188. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10189. this._connection.ConnectionString = global::Digital_World_08.Properties.Settings.Default.digital_world_8ConnectionString;
  10190. }
  10191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10193. private void InitCommandCollection() {
  10194. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10195. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10196. this._commandCollection[0].Connection = this.Connection;
  10197. this._commandCollection[0].CommandText = "SELECT [Номер заказа], [Название статуса], Видеокарта, [Материнская плата], Проце" +
  10198. "ссор, [Оперативная память], Оперативная_память, [Жетский диск], Куллер, [Система" +
  10199. " охлаждения], [Блок питания], SSD FROM dbo.Zakaz";
  10200. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10201. }
  10202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10204. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10205. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10206. public virtual int Fill(digital_world_8DataSet.ZakazDataTable dataTable) {
  10207. this.Adapter.SelectCommand = this.CommandCollection[0];
  10208. if ((this.ClearBeforeFill == true)) {
  10209. dataTable.Clear();
  10210. }
  10211. int returnValue = this.Adapter.Fill(dataTable);
  10212. return returnValue;
  10213. }
  10214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10216. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10217. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10218. public virtual digital_world_8DataSet.ZakazDataTable GetData() {
  10219. this.Adapter.SelectCommand = this.CommandCollection[0];
  10220. digital_world_8DataSet.ZakazDataTable dataTable = new digital_world_8DataSet.ZakazDataTable();
  10221. this.Adapter.Fill(dataTable);
  10222. return dataTable;
  10223. }
  10224. }
  10225. /// <summary>
  10226. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  10227. ///</summary>
  10228. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10229. [global::System.ComponentModel.ToolboxItem(true)]
  10230. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  10231. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10232. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  10233. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  10234. private UpdateOrderOption _updateOrder;
  10235. private ComponentsTableAdapter _componentsTableAdapter;
  10236. private computer_assemblyTableAdapter _computer_assemblyTableAdapter;
  10237. private OrderTableAdapter _orderTableAdapter;
  10238. private order_by_clientsTableAdapter _order_by_clientsTableAdapter;
  10239. private Order_statusTableAdapter _order_statusTableAdapter;
  10240. private providerTableAdapter _providerTableAdapter;
  10241. private receipt_of_goodsTableAdapter _receipt_of_goodsTableAdapter;
  10242. private RoleTableAdapter _roleTableAdapter;
  10243. private unit_of_measurementTableAdapter _unit_of_measurementTableAdapter;
  10244. private UsersTableAdapter _usersTableAdapter;
  10245. private bool _backupDataSetBeforeUpdate;
  10246. private global::System.Data.IDbConnection _connection;
  10247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10249. public UpdateOrderOption UpdateOrder {
  10250. get {
  10251. return this._updateOrder;
  10252. }
  10253. set {
  10254. this._updateOrder = value;
  10255. }
  10256. }
  10257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10259. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10260. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10261. "a", "System.Drawing.Design.UITypeEditor")]
  10262. public ComponentsTableAdapter ComponentsTableAdapter {
  10263. get {
  10264. return this._componentsTableAdapter;
  10265. }
  10266. set {
  10267. this._componentsTableAdapter = value;
  10268. }
  10269. }
  10270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10272. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10273. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10274. "a", "System.Drawing.Design.UITypeEditor")]
  10275. public computer_assemblyTableAdapter computer_assemblyTableAdapter {
  10276. get {
  10277. return this._computer_assemblyTableAdapter;
  10278. }
  10279. set {
  10280. this._computer_assemblyTableAdapter = value;
  10281. }
  10282. }
  10283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10285. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10286. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10287. "a", "System.Drawing.Design.UITypeEditor")]
  10288. public OrderTableAdapter OrderTableAdapter {
  10289. get {
  10290. return this._orderTableAdapter;
  10291. }
  10292. set {
  10293. this._orderTableAdapter = value;
  10294. }
  10295. }
  10296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10298. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10299. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10300. "a", "System.Drawing.Design.UITypeEditor")]
  10301. public order_by_clientsTableAdapter order_by_clientsTableAdapter {
  10302. get {
  10303. return this._order_by_clientsTableAdapter;
  10304. }
  10305. set {
  10306. this._order_by_clientsTableAdapter = value;
  10307. }
  10308. }
  10309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10311. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10312. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10313. "a", "System.Drawing.Design.UITypeEditor")]
  10314. public Order_statusTableAdapter Order_statusTableAdapter {
  10315. get {
  10316. return this._order_statusTableAdapter;
  10317. }
  10318. set {
  10319. this._order_statusTableAdapter = value;
  10320. }
  10321. }
  10322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10324. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10325. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10326. "a", "System.Drawing.Design.UITypeEditor")]
  10327. public providerTableAdapter providerTableAdapter {
  10328. get {
  10329. return this._providerTableAdapter;
  10330. }
  10331. set {
  10332. this._providerTableAdapter = value;
  10333. }
  10334. }
  10335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10337. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10338. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10339. "a", "System.Drawing.Design.UITypeEditor")]
  10340. public receipt_of_goodsTableAdapter receipt_of_goodsTableAdapter {
  10341. get {
  10342. return this._receipt_of_goodsTableAdapter;
  10343. }
  10344. set {
  10345. this._receipt_of_goodsTableAdapter = value;
  10346. }
  10347. }
  10348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10350. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10351. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10352. "a", "System.Drawing.Design.UITypeEditor")]
  10353. public RoleTableAdapter RoleTableAdapter {
  10354. get {
  10355. return this._roleTableAdapter;
  10356. }
  10357. set {
  10358. this._roleTableAdapter = value;
  10359. }
  10360. }
  10361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10363. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10364. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10365. "a", "System.Drawing.Design.UITypeEditor")]
  10366. public unit_of_measurementTableAdapter unit_of_measurementTableAdapter {
  10367. get {
  10368. return this._unit_of_measurementTableAdapter;
  10369. }
  10370. set {
  10371. this._unit_of_measurementTableAdapter = value;
  10372. }
  10373. }
  10374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10376. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10377. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10378. "a", "System.Drawing.Design.UITypeEditor")]
  10379. public UsersTableAdapter UsersTableAdapter {
  10380. get {
  10381. return this._usersTableAdapter;
  10382. }
  10383. set {
  10384. this._usersTableAdapter = value;
  10385. }
  10386. }
  10387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10389. public bool BackupDataSetBeforeUpdate {
  10390. get {
  10391. return this._backupDataSetBeforeUpdate;
  10392. }
  10393. set {
  10394. this._backupDataSetBeforeUpdate = value;
  10395. }
  10396. }
  10397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10399. [global::System.ComponentModel.Browsable(false)]
  10400. public global::System.Data.IDbConnection Connection {
  10401. get {
  10402. if ((this._connection != null)) {
  10403. return this._connection;
  10404. }
  10405. if (((this._componentsTableAdapter != null)
  10406. && (this._componentsTableAdapter.Connection != null))) {
  10407. return this._componentsTableAdapter.Connection;
  10408. }
  10409. if (((this._computer_assemblyTableAdapter != null)
  10410. && (this._computer_assemblyTableAdapter.Connection != null))) {
  10411. return this._computer_assemblyTableAdapter.Connection;
  10412. }
  10413. if (((this._orderTableAdapter != null)
  10414. && (this._orderTableAdapter.Connection != null))) {
  10415. return this._orderTableAdapter.Connection;
  10416. }
  10417. if (((this._order_by_clientsTableAdapter != null)
  10418. && (this._order_by_clientsTableAdapter.Connection != null))) {
  10419. return this._order_by_clientsTableAdapter.Connection;
  10420. }
  10421. if (((this._order_statusTableAdapter != null)
  10422. && (this._order_statusTableAdapter.Connection != null))) {
  10423. return this._order_statusTableAdapter.Connection;
  10424. }
  10425. if (((this._providerTableAdapter != null)
  10426. && (this._providerTableAdapter.Connection != null))) {
  10427. return this._providerTableAdapter.Connection;
  10428. }
  10429. if (((this._receipt_of_goodsTableAdapter != null)
  10430. && (this._receipt_of_goodsTableAdapter.Connection != null))) {
  10431. return this._receipt_of_goodsTableAdapter.Connection;
  10432. }
  10433. if (((this._roleTableAdapter != null)
  10434. && (this._roleTableAdapter.Connection != null))) {
  10435. return this._roleTableAdapter.Connection;
  10436. }
  10437. if (((this._unit_of_measurementTableAdapter != null)
  10438. && (this._unit_of_measurementTableAdapter.Connection != null))) {
  10439. return this._unit_of_measurementTableAdapter.Connection;
  10440. }
  10441. if (((this._usersTableAdapter != null)
  10442. && (this._usersTableAdapter.Connection != null))) {
  10443. return this._usersTableAdapter.Connection;
  10444. }
  10445. return null;
  10446. }
  10447. set {
  10448. this._connection = value;
  10449. }
  10450. }
  10451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10453. [global::System.ComponentModel.Browsable(false)]
  10454. public int TableAdapterInstanceCount {
  10455. get {
  10456. int count = 0;
  10457. if ((this._componentsTableAdapter != null)) {
  10458. count = (count + 1);
  10459. }
  10460. if ((this._computer_assemblyTableAdapter != null)) {
  10461. count = (count + 1);
  10462. }
  10463. if ((this._orderTableAdapter != null)) {
  10464. count = (count + 1);
  10465. }
  10466. if ((this._order_by_clientsTableAdapter != null)) {
  10467. count = (count + 1);
  10468. }
  10469. if ((this._order_statusTableAdapter != null)) {
  10470. count = (count + 1);
  10471. }
  10472. if ((this._providerTableAdapter != null)) {
  10473. count = (count + 1);
  10474. }
  10475. if ((this._receipt_of_goodsTableAdapter != null)) {
  10476. count = (count + 1);
  10477. }
  10478. if ((this._roleTableAdapter != null)) {
  10479. count = (count + 1);
  10480. }
  10481. if ((this._unit_of_measurementTableAdapter != null)) {
  10482. count = (count + 1);
  10483. }
  10484. if ((this._usersTableAdapter != null)) {
  10485. count = (count + 1);
  10486. }
  10487. return count;
  10488. }
  10489. }
  10490. /// <summary>
  10491. ///Update rows in top-down order.
  10492. ///</summary>
  10493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10495. private int UpdateUpdatedRows(digital_world_8DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10496. int result = 0;
  10497. if ((this._unit_of_measurementTableAdapter != null)) {
  10498. global::System.Data.DataRow[] updatedRows = dataSet.unit_of_measurement.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10499. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10500. if (((updatedRows != null)
  10501. && (0 < updatedRows.Length))) {
  10502. result = (result + this._unit_of_measurementTableAdapter.Update(updatedRows));
  10503. allChangedRows.AddRange(updatedRows);
  10504. }
  10505. }
  10506. if ((this._componentsTableAdapter != null)) {
  10507. global::System.Data.DataRow[] updatedRows = dataSet.Components.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10508. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10509. if (((updatedRows != null)
  10510. && (0 < updatedRows.Length))) {
  10511. result = (result + this._componentsTableAdapter.Update(updatedRows));
  10512. allChangedRows.AddRange(updatedRows);
  10513. }
  10514. }
  10515. if ((this._computer_assemblyTableAdapter != null)) {
  10516. global::System.Data.DataRow[] updatedRows = dataSet.computer_assembly.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10517. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10518. if (((updatedRows != null)
  10519. && (0 < updatedRows.Length))) {
  10520. result = (result + this._computer_assemblyTableAdapter.Update(updatedRows));
  10521. allChangedRows.AddRange(updatedRows);
  10522. }
  10523. }
  10524. if ((this._order_by_clientsTableAdapter != null)) {
  10525. global::System.Data.DataRow[] updatedRows = dataSet.order_by_clients.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10526. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10527. if (((updatedRows != null)
  10528. && (0 < updatedRows.Length))) {
  10529. result = (result + this._order_by_clientsTableAdapter.Update(updatedRows));
  10530. allChangedRows.AddRange(updatedRows);
  10531. }
  10532. }
  10533. if ((this._order_statusTableAdapter != null)) {
  10534. global::System.Data.DataRow[] updatedRows = dataSet.Order_status.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10535. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10536. if (((updatedRows != null)
  10537. && (0 < updatedRows.Length))) {
  10538. result = (result + this._order_statusTableAdapter.Update(updatedRows));
  10539. allChangedRows.AddRange(updatedRows);
  10540. }
  10541. }
  10542. if ((this._providerTableAdapter != null)) {
  10543. global::System.Data.DataRow[] updatedRows = dataSet.provider.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10544. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10545. if (((updatedRows != null)
  10546. && (0 < updatedRows.Length))) {
  10547. result = (result + this._providerTableAdapter.Update(updatedRows));
  10548. allChangedRows.AddRange(updatedRows);
  10549. }
  10550. }
  10551. if ((this._roleTableAdapter != null)) {
  10552. global::System.Data.DataRow[] updatedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10553. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10554. if (((updatedRows != null)
  10555. && (0 < updatedRows.Length))) {
  10556. result = (result + this._roleTableAdapter.Update(updatedRows));
  10557. allChangedRows.AddRange(updatedRows);
  10558. }
  10559. }
  10560. if ((this._orderTableAdapter != null)) {
  10561. global::System.Data.DataRow[] updatedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10562. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10563. if (((updatedRows != null)
  10564. && (0 < updatedRows.Length))) {
  10565. result = (result + this._orderTableAdapter.Update(updatedRows));
  10566. allChangedRows.AddRange(updatedRows);
  10567. }
  10568. }
  10569. if ((this._receipt_of_goodsTableAdapter != null)) {
  10570. global::System.Data.DataRow[] updatedRows = dataSet.receipt_of_goods.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10571. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10572. if (((updatedRows != null)
  10573. && (0 < updatedRows.Length))) {
  10574. result = (result + this._receipt_of_goodsTableAdapter.Update(updatedRows));
  10575. allChangedRows.AddRange(updatedRows);
  10576. }
  10577. }
  10578. if ((this._usersTableAdapter != null)) {
  10579. global::System.Data.DataRow[] updatedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10580. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10581. if (((updatedRows != null)
  10582. && (0 < updatedRows.Length))) {
  10583. result = (result + this._usersTableAdapter.Update(updatedRows));
  10584. allChangedRows.AddRange(updatedRows);
  10585. }
  10586. }
  10587. return result;
  10588. }
  10589. /// <summary>
  10590. ///Insert rows in top-down order.
  10591. ///</summary>
  10592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10594. private int UpdateInsertedRows(digital_world_8DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10595. int result = 0;
  10596. if ((this._unit_of_measurementTableAdapter != null)) {
  10597. global::System.Data.DataRow[] addedRows = dataSet.unit_of_measurement.Select(null, null, global::System.Data.DataViewRowState.Added);
  10598. if (((addedRows != null)
  10599. && (0 < addedRows.Length))) {
  10600. result = (result + this._unit_of_measurementTableAdapter.Update(addedRows));
  10601. allAddedRows.AddRange(addedRows);
  10602. }
  10603. }
  10604. if ((this._componentsTableAdapter != null)) {
  10605. global::System.Data.DataRow[] addedRows = dataSet.Components.Select(null, null, global::System.Data.DataViewRowState.Added);
  10606. if (((addedRows != null)
  10607. && (0 < addedRows.Length))) {
  10608. result = (result + this._componentsTableAdapter.Update(addedRows));
  10609. allAddedRows.AddRange(addedRows);
  10610. }
  10611. }
  10612. if ((this._computer_assemblyTableAdapter != null)) {
  10613. global::System.Data.DataRow[] addedRows = dataSet.computer_assembly.Select(null, null, global::System.Data.DataViewRowState.Added);
  10614. if (((addedRows != null)
  10615. && (0 < addedRows.Length))) {
  10616. result = (result + this._computer_assemblyTableAdapter.Update(addedRows));
  10617. allAddedRows.AddRange(addedRows);
  10618. }
  10619. }
  10620. if ((this._order_by_clientsTableAdapter != null)) {
  10621. global::System.Data.DataRow[] addedRows = dataSet.order_by_clients.Select(null, null, global::System.Data.DataViewRowState.Added);
  10622. if (((addedRows != null)
  10623. && (0 < addedRows.Length))) {
  10624. result = (result + this._order_by_clientsTableAdapter.Update(addedRows));
  10625. allAddedRows.AddRange(addedRows);
  10626. }
  10627. }
  10628. if ((this._order_statusTableAdapter != null)) {
  10629. global::System.Data.DataRow[] addedRows = dataSet.Order_status.Select(null, null, global::System.Data.DataViewRowState.Added);
  10630. if (((addedRows != null)
  10631. && (0 < addedRows.Length))) {
  10632. result = (result + this._order_statusTableAdapter.Update(addedRows));
  10633. allAddedRows.AddRange(addedRows);
  10634. }
  10635. }
  10636. if ((this._providerTableAdapter != null)) {
  10637. global::System.Data.DataRow[] addedRows = dataSet.provider.Select(null, null, global::System.Data.DataViewRowState.Added);
  10638. if (((addedRows != null)
  10639. && (0 < addedRows.Length))) {
  10640. result = (result + this._providerTableAdapter.Update(addedRows));
  10641. allAddedRows.AddRange(addedRows);
  10642. }
  10643. }
  10644. if ((this._roleTableAdapter != null)) {
  10645. global::System.Data.DataRow[] addedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Added);
  10646. if (((addedRows != null)
  10647. && (0 < addedRows.Length))) {
  10648. result = (result + this._roleTableAdapter.Update(addedRows));
  10649. allAddedRows.AddRange(addedRows);
  10650. }
  10651. }
  10652. if ((this._orderTableAdapter != null)) {
  10653. global::System.Data.DataRow[] addedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.Added);
  10654. if (((addedRows != null)
  10655. && (0 < addedRows.Length))) {
  10656. result = (result + this._orderTableAdapter.Update(addedRows));
  10657. allAddedRows.AddRange(addedRows);
  10658. }
  10659. }
  10660. if ((this._receipt_of_goodsTableAdapter != null)) {
  10661. global::System.Data.DataRow[] addedRows = dataSet.receipt_of_goods.Select(null, null, global::System.Data.DataViewRowState.Added);
  10662. if (((addedRows != null)
  10663. && (0 < addedRows.Length))) {
  10664. result = (result + this._receipt_of_goodsTableAdapter.Update(addedRows));
  10665. allAddedRows.AddRange(addedRows);
  10666. }
  10667. }
  10668. if ((this._usersTableAdapter != null)) {
  10669. global::System.Data.DataRow[] addedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Added);
  10670. if (((addedRows != null)
  10671. && (0 < addedRows.Length))) {
  10672. result = (result + this._usersTableAdapter.Update(addedRows));
  10673. allAddedRows.AddRange(addedRows);
  10674. }
  10675. }
  10676. return result;
  10677. }
  10678. /// <summary>
  10679. ///Delete rows in bottom-up order.
  10680. ///</summary>
  10681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10683. private int UpdateDeletedRows(digital_world_8DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  10684. int result = 0;
  10685. if ((this._usersTableAdapter != null)) {
  10686. global::System.Data.DataRow[] deletedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10687. if (((deletedRows != null)
  10688. && (0 < deletedRows.Length))) {
  10689. result = (result + this._usersTableAdapter.Update(deletedRows));
  10690. allChangedRows.AddRange(deletedRows);
  10691. }
  10692. }
  10693. if ((this._receipt_of_goodsTableAdapter != null)) {
  10694. global::System.Data.DataRow[] deletedRows = dataSet.receipt_of_goods.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10695. if (((deletedRows != null)
  10696. && (0 < deletedRows.Length))) {
  10697. result = (result + this._receipt_of_goodsTableAdapter.Update(deletedRows));
  10698. allChangedRows.AddRange(deletedRows);
  10699. }
  10700. }
  10701. if ((this._orderTableAdapter != null)) {
  10702. global::System.Data.DataRow[] deletedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10703. if (((deletedRows != null)
  10704. && (0 < deletedRows.Length))) {
  10705. result = (result + this._orderTableAdapter.Update(deletedRows));
  10706. allChangedRows.AddRange(deletedRows);
  10707. }
  10708. }
  10709. if ((this._roleTableAdapter != null)) {
  10710. global::System.Data.DataRow[] deletedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10711. if (((deletedRows != null)
  10712. && (0 < deletedRows.Length))) {
  10713. result = (result + this._roleTableAdapter.Update(deletedRows));
  10714. allChangedRows.AddRange(deletedRows);
  10715. }
  10716. }
  10717. if ((this._providerTableAdapter != null)) {
  10718. global::System.Data.DataRow[] deletedRows = dataSet.provider.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10719. if (((deletedRows != null)
  10720. && (0 < deletedRows.Length))) {
  10721. result = (result + this._providerTableAdapter.Update(deletedRows));
  10722. allChangedRows.AddRange(deletedRows);
  10723. }
  10724. }
  10725. if ((this._order_statusTableAdapter != null)) {
  10726. global::System.Data.DataRow[] deletedRows = dataSet.Order_status.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10727. if (((deletedRows != null)
  10728. && (0 < deletedRows.Length))) {
  10729. result = (result + this._order_statusTableAdapter.Update(deletedRows));
  10730. allChangedRows.AddRange(deletedRows);
  10731. }
  10732. }
  10733. if ((this._order_by_clientsTableAdapter != null)) {
  10734. global::System.Data.DataRow[] deletedRows = dataSet.order_by_clients.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10735. if (((deletedRows != null)
  10736. && (0 < deletedRows.Length))) {
  10737. result = (result + this._order_by_clientsTableAdapter.Update(deletedRows));
  10738. allChangedRows.AddRange(deletedRows);
  10739. }
  10740. }
  10741. if ((this._computer_assemblyTableAdapter != null)) {
  10742. global::System.Data.DataRow[] deletedRows = dataSet.computer_assembly.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10743. if (((deletedRows != null)
  10744. && (0 < deletedRows.Length))) {
  10745. result = (result + this._computer_assemblyTableAdapter.Update(deletedRows));
  10746. allChangedRows.AddRange(deletedRows);
  10747. }
  10748. }
  10749. if ((this._componentsTableAdapter != null)) {
  10750. global::System.Data.DataRow[] deletedRows = dataSet.Components.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10751. if (((deletedRows != null)
  10752. && (0 < deletedRows.Length))) {
  10753. result = (result + this._componentsTableAdapter.Update(deletedRows));
  10754. allChangedRows.AddRange(deletedRows);
  10755. }
  10756. }
  10757. if ((this._unit_of_measurementTableAdapter != null)) {
  10758. global::System.Data.DataRow[] deletedRows = dataSet.unit_of_measurement.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10759. if (((deletedRows != null)
  10760. && (0 < deletedRows.Length))) {
  10761. result = (result + this._unit_of_measurementTableAdapter.Update(deletedRows));
  10762. allChangedRows.AddRange(deletedRows);
  10763. }
  10764. }
  10765. return result;
  10766. }
  10767. /// <summary>
  10768. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  10769. ///</summary>
  10770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10772. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10773. if (((updatedRows == null)
  10774. || (updatedRows.Length < 1))) {
  10775. return updatedRows;
  10776. }
  10777. if (((allAddedRows == null)
  10778. || (allAddedRows.Count < 1))) {
  10779. return updatedRows;
  10780. }
  10781. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10782. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  10783. global::System.Data.DataRow row = updatedRows[i];
  10784. if ((allAddedRows.Contains(row) == false)) {
  10785. realUpdatedRows.Add(row);
  10786. }
  10787. }
  10788. return realUpdatedRows.ToArray();
  10789. }
  10790. /// <summary>
  10791. ///Update all changes to the dataset.
  10792. ///</summary>
  10793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10795. public virtual int UpdateAll(digital_world_8DataSet dataSet) {
  10796. if ((dataSet == null)) {
  10797. throw new global::System.ArgumentNullException("dataSet");
  10798. }
  10799. if ((dataSet.HasChanges() == false)) {
  10800. return 0;
  10801. }
  10802. if (((this._componentsTableAdapter != null)
  10803. && (this.MatchTableAdapterConnection(this._componentsTableAdapter.Connection) == false))) {
  10804. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10805. "r, должны использовать одинаковую строку подключения.");
  10806. }
  10807. if (((this._computer_assemblyTableAdapter != null)
  10808. && (this.MatchTableAdapterConnection(this._computer_assemblyTableAdapter.Connection) == false))) {
  10809. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10810. "r, должны использовать одинаковую строку подключения.");
  10811. }
  10812. if (((this._orderTableAdapter != null)
  10813. && (this.MatchTableAdapterConnection(this._orderTableAdapter.Connection) == false))) {
  10814. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10815. "r, должны использовать одинаковую строку подключения.");
  10816. }
  10817. if (((this._order_by_clientsTableAdapter != null)
  10818. && (this.MatchTableAdapterConnection(this._order_by_clientsTableAdapter.Connection) == false))) {
  10819. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10820. "r, должны использовать одинаковую строку подключения.");
  10821. }
  10822. if (((this._order_statusTableAdapter != null)
  10823. && (this.MatchTableAdapterConnection(this._order_statusTableAdapter.Connection) == false))) {
  10824. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10825. "r, должны использовать одинаковую строку подключения.");
  10826. }
  10827. if (((this._providerTableAdapter != null)
  10828. && (this.MatchTableAdapterConnection(this._providerTableAdapter.Connection) == false))) {
  10829. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10830. "r, должны использовать одинаковую строку подключения.");
  10831. }
  10832. if (((this._receipt_of_goodsTableAdapter != null)
  10833. && (this.MatchTableAdapterConnection(this._receipt_of_goodsTableAdapter.Connection) == false))) {
  10834. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10835. "r, должны использовать одинаковую строку подключения.");
  10836. }
  10837. if (((this._roleTableAdapter != null)
  10838. && (this.MatchTableAdapterConnection(this._roleTableAdapter.Connection) == false))) {
  10839. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10840. "r, должны использовать одинаковую строку подключения.");
  10841. }
  10842. if (((this._unit_of_measurementTableAdapter != null)
  10843. && (this.MatchTableAdapterConnection(this._unit_of_measurementTableAdapter.Connection) == false))) {
  10844. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10845. "r, должны использовать одинаковую строку подключения.");
  10846. }
  10847. if (((this._usersTableAdapter != null)
  10848. && (this.MatchTableAdapterConnection(this._usersTableAdapter.Connection) == false))) {
  10849. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10850. "r, должны использовать одинаковую строку подключения.");
  10851. }
  10852. global::System.Data.IDbConnection workConnection = this.Connection;
  10853. if ((workConnection == null)) {
  10854. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  10855. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  10856. }
  10857. bool workConnOpened = false;
  10858. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  10859. == global::System.Data.ConnectionState.Broken)) {
  10860. workConnection.Close();
  10861. }
  10862. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  10863. workConnection.Open();
  10864. workConnOpened = true;
  10865. }
  10866. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  10867. if ((workTransaction == null)) {
  10868. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  10869. "и или текущее состояние не позволяет начать транзакцию.");
  10870. }
  10871. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10872. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10873. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  10874. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  10875. int result = 0;
  10876. global::System.Data.DataSet backupDataSet = null;
  10877. if (this.BackupDataSetBeforeUpdate) {
  10878. backupDataSet = new global::System.Data.DataSet();
  10879. backupDataSet.Merge(dataSet);
  10880. }
  10881. try {
  10882. // ---- Prepare for update -----------
  10883. //
  10884. if ((this._componentsTableAdapter != null)) {
  10885. revertConnections.Add(this._componentsTableAdapter, this._componentsTableAdapter.Connection);
  10886. this._componentsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10887. this._componentsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10888. if (this._componentsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10889. this._componentsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10890. adaptersWithAcceptChangesDuringUpdate.Add(this._componentsTableAdapter.Adapter);
  10891. }
  10892. }
  10893. if ((this._computer_assemblyTableAdapter != null)) {
  10894. revertConnections.Add(this._computer_assemblyTableAdapter, this._computer_assemblyTableAdapter.Connection);
  10895. this._computer_assemblyTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10896. this._computer_assemblyTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10897. if (this._computer_assemblyTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10898. this._computer_assemblyTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10899. adaptersWithAcceptChangesDuringUpdate.Add(this._computer_assemblyTableAdapter.Adapter);
  10900. }
  10901. }
  10902. if ((this._orderTableAdapter != null)) {
  10903. revertConnections.Add(this._orderTableAdapter, this._orderTableAdapter.Connection);
  10904. this._orderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10905. this._orderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10906. if (this._orderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10907. this._orderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10908. adaptersWithAcceptChangesDuringUpdate.Add(this._orderTableAdapter.Adapter);
  10909. }
  10910. }
  10911. if ((this._order_by_clientsTableAdapter != null)) {
  10912. revertConnections.Add(this._order_by_clientsTableAdapter, this._order_by_clientsTableAdapter.Connection);
  10913. this._order_by_clientsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10914. this._order_by_clientsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10915. if (this._order_by_clientsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10916. this._order_by_clientsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10917. adaptersWithAcceptChangesDuringUpdate.Add(this._order_by_clientsTableAdapter.Adapter);
  10918. }
  10919. }
  10920. if ((this._order_statusTableAdapter != null)) {
  10921. revertConnections.Add(this._order_statusTableAdapter, this._order_statusTableAdapter.Connection);
  10922. this._order_statusTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10923. this._order_statusTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10924. if (this._order_statusTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10925. this._order_statusTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10926. adaptersWithAcceptChangesDuringUpdate.Add(this._order_statusTableAdapter.Adapter);
  10927. }
  10928. }
  10929. if ((this._providerTableAdapter != null)) {
  10930. revertConnections.Add(this._providerTableAdapter, this._providerTableAdapter.Connection);
  10931. this._providerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10932. this._providerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10933. if (this._providerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10934. this._providerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10935. adaptersWithAcceptChangesDuringUpdate.Add(this._providerTableAdapter.Adapter);
  10936. }
  10937. }
  10938. if ((this._receipt_of_goodsTableAdapter != null)) {
  10939. revertConnections.Add(this._receipt_of_goodsTableAdapter, this._receipt_of_goodsTableAdapter.Connection);
  10940. this._receipt_of_goodsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10941. this._receipt_of_goodsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10942. if (this._receipt_of_goodsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10943. this._receipt_of_goodsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10944. adaptersWithAcceptChangesDuringUpdate.Add(this._receipt_of_goodsTableAdapter.Adapter);
  10945. }
  10946. }
  10947. if ((this._roleTableAdapter != null)) {
  10948. revertConnections.Add(this._roleTableAdapter, this._roleTableAdapter.Connection);
  10949. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10950. this._roleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10951. if (this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10952. this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10953. adaptersWithAcceptChangesDuringUpdate.Add(this._roleTableAdapter.Adapter);
  10954. }
  10955. }
  10956. if ((this._unit_of_measurementTableAdapter != null)) {
  10957. revertConnections.Add(this._unit_of_measurementTableAdapter, this._unit_of_measurementTableAdapter.Connection);
  10958. this._unit_of_measurementTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10959. this._unit_of_measurementTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10960. if (this._unit_of_measurementTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10961. this._unit_of_measurementTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10962. adaptersWithAcceptChangesDuringUpdate.Add(this._unit_of_measurementTableAdapter.Adapter);
  10963. }
  10964. }
  10965. if ((this._usersTableAdapter != null)) {
  10966. revertConnections.Add(this._usersTableAdapter, this._usersTableAdapter.Connection);
  10967. this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10968. this._usersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10969. if (this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10970. this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10971. adaptersWithAcceptChangesDuringUpdate.Add(this._usersTableAdapter.Adapter);
  10972. }
  10973. }
  10974. //
  10975. //---- Perform updates -----------
  10976. //
  10977. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  10978. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  10979. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  10980. }
  10981. else {
  10982. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  10983. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  10984. }
  10985. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  10986. //
  10987. //---- Commit updates -----------
  10988. //
  10989. workTransaction.Commit();
  10990. if ((0 < allAddedRows.Count)) {
  10991. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  10992. allAddedRows.CopyTo(rows);
  10993. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10994. global::System.Data.DataRow row = rows[i];
  10995. row.AcceptChanges();
  10996. }
  10997. }
  10998. if ((0 < allChangedRows.Count)) {
  10999. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  11000. allChangedRows.CopyTo(rows);
  11001. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11002. global::System.Data.DataRow row = rows[i];
  11003. row.AcceptChanges();
  11004. }
  11005. }
  11006. }
  11007. catch (global::System.Exception ex) {
  11008. workTransaction.Rollback();
  11009. // ---- Restore the dataset -----------
  11010. if (this.BackupDataSetBeforeUpdate) {
  11011. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  11012. dataSet.Clear();
  11013. dataSet.Merge(backupDataSet);
  11014. }
  11015. else {
  11016. if ((0 < allAddedRows.Count)) {
  11017. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11018. allAddedRows.CopyTo(rows);
  11019. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11020. global::System.Data.DataRow row = rows[i];
  11021. row.AcceptChanges();
  11022. row.SetAdded();
  11023. }
  11024. }
  11025. }
  11026. throw ex;
  11027. }
  11028. finally {
  11029. if (workConnOpened) {
  11030. workConnection.Close();
  11031. }
  11032. if ((this._componentsTableAdapter != null)) {
  11033. this._componentsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._componentsTableAdapter]));
  11034. this._componentsTableAdapter.Transaction = null;
  11035. }
  11036. if ((this._computer_assemblyTableAdapter != null)) {
  11037. this._computer_assemblyTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._computer_assemblyTableAdapter]));
  11038. this._computer_assemblyTableAdapter.Transaction = null;
  11039. }
  11040. if ((this._orderTableAdapter != null)) {
  11041. this._orderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._orderTableAdapter]));
  11042. this._orderTableAdapter.Transaction = null;
  11043. }
  11044. if ((this._order_by_clientsTableAdapter != null)) {
  11045. this._order_by_clientsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._order_by_clientsTableAdapter]));
  11046. this._order_by_clientsTableAdapter.Transaction = null;
  11047. }
  11048. if ((this._order_statusTableAdapter != null)) {
  11049. this._order_statusTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._order_statusTableAdapter]));
  11050. this._order_statusTableAdapter.Transaction = null;
  11051. }
  11052. if ((this._providerTableAdapter != null)) {
  11053. this._providerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._providerTableAdapter]));
  11054. this._providerTableAdapter.Transaction = null;
  11055. }
  11056. if ((this._receipt_of_goodsTableAdapter != null)) {
  11057. this._receipt_of_goodsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._receipt_of_goodsTableAdapter]));
  11058. this._receipt_of_goodsTableAdapter.Transaction = null;
  11059. }
  11060. if ((this._roleTableAdapter != null)) {
  11061. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._roleTableAdapter]));
  11062. this._roleTableAdapter.Transaction = null;
  11063. }
  11064. if ((this._unit_of_measurementTableAdapter != null)) {
  11065. this._unit_of_measurementTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._unit_of_measurementTableAdapter]));
  11066. this._unit_of_measurementTableAdapter.Transaction = null;
  11067. }
  11068. if ((this._usersTableAdapter != null)) {
  11069. this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._usersTableAdapter]));
  11070. this._usersTableAdapter.Transaction = null;
  11071. }
  11072. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  11073. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  11074. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  11075. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  11076. global::System.Data.Common.DataAdapter adapter = adapters[i];
  11077. adapter.AcceptChangesDuringUpdate = true;
  11078. }
  11079. }
  11080. }
  11081. return result;
  11082. }
  11083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11085. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  11086. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  11087. }
  11088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11090. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  11091. if ((this._connection != null)) {
  11092. return true;
  11093. }
  11094. if (((this.Connection == null)
  11095. || (inputConnection == null))) {
  11096. return true;
  11097. }
  11098. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  11099. return true;
  11100. }
  11101. return false;
  11102. }
  11103. /// <summary>
  11104. ///Update Order Option
  11105. ///</summary>
  11106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11107. public enum UpdateOrderOption {
  11108. InsertUpdateDelete = 0,
  11109. UpdateInsertDelete = 1,
  11110. }
  11111. /// <summary>
  11112. ///Used to sort self-referenced table's rows
  11113. ///</summary>
  11114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11115. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  11116. private global::System.Data.DataRelation _relation;
  11117. private int _childFirst;
  11118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11120. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  11121. this._relation = relation;
  11122. if (childFirst) {
  11123. this._childFirst = -1;
  11124. }
  11125. else {
  11126. this._childFirst = 1;
  11127. }
  11128. }
  11129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11131. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  11132. global::System.Diagnostics.Debug.Assert((row != null));
  11133. global::System.Data.DataRow root = row;
  11134. distance = 0;
  11135. 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>();
  11136. traversedRows[row] = row;
  11137. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11138. for (
  11139. ; ((parent != null)
  11140. && (traversedRows.ContainsKey(parent) == false));
  11141. ) {
  11142. distance = (distance + 1);
  11143. root = parent;
  11144. traversedRows[parent] = parent;
  11145. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11146. }
  11147. if ((distance == 0)) {
  11148. traversedRows.Clear();
  11149. traversedRows[row] = row;
  11150. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11151. for (
  11152. ; ((parent != null)
  11153. && (traversedRows.ContainsKey(parent) == false));
  11154. ) {
  11155. distance = (distance + 1);
  11156. root = parent;
  11157. traversedRows[parent] = parent;
  11158. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11159. }
  11160. }
  11161. return root;
  11162. }
  11163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11165. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  11166. if (object.ReferenceEquals(row1, row2)) {
  11167. return 0;
  11168. }
  11169. if ((row1 == null)) {
  11170. return -1;
  11171. }
  11172. if ((row2 == null)) {
  11173. return 1;
  11174. }
  11175. int distance1 = 0;
  11176. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  11177. int distance2 = 0;
  11178. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  11179. if (object.ReferenceEquals(root1, root2)) {
  11180. return (this._childFirst * distance1.CompareTo(distance2));
  11181. }
  11182. else {
  11183. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  11184. && (root2.Table != null)));
  11185. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  11186. return -1;
  11187. }
  11188. else {
  11189. return 1;
  11190. }
  11191. }
  11192. }
  11193. }
  11194. }
  11195. }
  11196. #pragma warning restore 1591