KazarinDE_03DataSet1.Designer.cs 772 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace KazarinDE {
  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("KazarinDE_03DataSet1")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class KazarinDE_03DataSet1 : global::System.Data.DataSet {
  22. private ЕдиницыИзмеренияDataTable tableЕдиницыИзмерения;
  23. private ЗаказыDataTable tableЗаказы;
  24. private КлиентыDataTable tableКлиенты;
  25. private КомплектующиеDataTable tableКомплектующие;
  26. private КомпьютерыDataTable tableКомпьютеры;
  27. private ОписаниеСборкиDataTable tableОписаниеСборки;
  28. private ПоставщикиDataTable tableПоставщики;
  29. private РолиDataTable tableРоли;
  30. private СборкаDataTable tableСборка;
  31. private СотрудникиDataTable tableСотрудники;
  32. private СтатусыЗаказаDataTable tableСтатусыЗаказа;
  33. private ТипыКомплектующихDataTable tableТипыКомплектующих;
  34. private global::System.Data.DataRelation relationFK_Заказы_Клиенты;
  35. private global::System.Data.DataRelation relationFK_Заказы_Сборка;
  36. private global::System.Data.DataRelation relationFK_Заказы_Сотрудники;
  37. private global::System.Data.DataRelation relationFK_Заказы_СтатусыЗаказа;
  38. private global::System.Data.DataRelation relationFK_Комплектующие_ЕдиницыИзмерения;
  39. private global::System.Data.DataRelation relationFK_Комплектующие_Поставщики;
  40. private global::System.Data.DataRelation relationFK_Комплектующие_ТипыКомплектующих;
  41. private global::System.Data.DataRelation relationFK_ОписаниеСборки_Комплектующие;
  42. private global::System.Data.DataRelation relationFK_ОписаниеСборки_Компьютеры;
  43. private global::System.Data.DataRelation relationFK_Сборка_Компьютеры;
  44. private global::System.Data.DataRelation relationFK_Сборка_Сотрудники;
  45. private global::System.Data.DataRelation relationFK_Сотрудники_Роли;
  46. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  47. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  48. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  49. public KazarinDE_03DataSet1() {
  50. this.BeginInit();
  51. this.InitClass();
  52. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  53. base.Tables.CollectionChanged += schemaChangedHandler;
  54. base.Relations.CollectionChanged += schemaChangedHandler;
  55. this.EndInit();
  56. }
  57. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  58. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  59. protected KazarinDE_03DataSet1(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  60. base(info, context, false) {
  61. if ((this.IsBinarySerialized(info, context) == true)) {
  62. this.InitVars(false);
  63. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  64. this.Tables.CollectionChanged += schemaChangedHandler1;
  65. this.Relations.CollectionChanged += schemaChangedHandler1;
  66. return;
  67. }
  68. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  69. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  70. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  71. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  72. if ((ds.Tables["ЕдиницыИзмерения"] != null)) {
  73. base.Tables.Add(new ЕдиницыИзмеренияDataTable(ds.Tables["ЕдиницыИзмерения"]));
  74. }
  75. if ((ds.Tables["Заказы"] != null)) {
  76. base.Tables.Add(new ЗаказыDataTable(ds.Tables["Заказы"]));
  77. }
  78. if ((ds.Tables["Клиенты"] != null)) {
  79. base.Tables.Add(new КлиентыDataTable(ds.Tables["Клиенты"]));
  80. }
  81. if ((ds.Tables["Комплектующие"] != null)) {
  82. base.Tables.Add(new КомплектующиеDataTable(ds.Tables["Комплектующие"]));
  83. }
  84. if ((ds.Tables["Компьютеры"] != null)) {
  85. base.Tables.Add(new КомпьютерыDataTable(ds.Tables["Компьютеры"]));
  86. }
  87. if ((ds.Tables["ОписаниеСборки"] != null)) {
  88. base.Tables.Add(new ОписаниеСборкиDataTable(ds.Tables["ОписаниеСборки"]));
  89. }
  90. if ((ds.Tables["Поставщики"] != null)) {
  91. base.Tables.Add(new ПоставщикиDataTable(ds.Tables["Поставщики"]));
  92. }
  93. if ((ds.Tables["Роли"] != null)) {
  94. base.Tables.Add(new РолиDataTable(ds.Tables["Роли"]));
  95. }
  96. if ((ds.Tables["Сборка"] != null)) {
  97. base.Tables.Add(new СборкаDataTable(ds.Tables["Сборка"]));
  98. }
  99. if ((ds.Tables["Сотрудники"] != null)) {
  100. base.Tables.Add(new СотрудникиDataTable(ds.Tables["Сотрудники"]));
  101. }
  102. if ((ds.Tables["СтатусыЗаказа"] != null)) {
  103. base.Tables.Add(new СтатусыЗаказаDataTable(ds.Tables["СтатусыЗаказа"]));
  104. }
  105. if ((ds.Tables["ТипыКомплектующих"] != null)) {
  106. base.Tables.Add(new ТипыКомплектующихDataTable(ds.Tables["ТипыКомплектующих"]));
  107. }
  108. this.DataSetName = ds.DataSetName;
  109. this.Prefix = ds.Prefix;
  110. this.Namespace = ds.Namespace;
  111. this.Locale = ds.Locale;
  112. this.CaseSensitive = ds.CaseSensitive;
  113. this.EnforceConstraints = ds.EnforceConstraints;
  114. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  115. this.InitVars();
  116. }
  117. else {
  118. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  119. }
  120. this.GetSerializationData(info, context);
  121. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  122. base.Tables.CollectionChanged += schemaChangedHandler;
  123. this.Relations.CollectionChanged += schemaChangedHandler;
  124. }
  125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  127. [global::System.ComponentModel.Browsable(false)]
  128. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  129. public ЕдиницыИзмеренияDataTable ЕдиницыИзмерения {
  130. get {
  131. return this.tableЕдиницыИзмерения;
  132. }
  133. }
  134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  136. [global::System.ComponentModel.Browsable(false)]
  137. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  138. public ЗаказыDataTable Заказы {
  139. get {
  140. return this.tableЗаказы;
  141. }
  142. }
  143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  145. [global::System.ComponentModel.Browsable(false)]
  146. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  147. public КлиентыDataTable Клиенты {
  148. get {
  149. return this.tableКлиенты;
  150. }
  151. }
  152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  154. [global::System.ComponentModel.Browsable(false)]
  155. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  156. public КомплектующиеDataTable Комплектующие {
  157. get {
  158. return this.tableКомплектующие;
  159. }
  160. }
  161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  163. [global::System.ComponentModel.Browsable(false)]
  164. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  165. public КомпьютерыDataTable Компьютеры {
  166. get {
  167. return this.tableКомпьютеры;
  168. }
  169. }
  170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  172. [global::System.ComponentModel.Browsable(false)]
  173. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  174. public ОписаниеСборкиDataTable ОписаниеСборки {
  175. get {
  176. return this.tableОписаниеСборки;
  177. }
  178. }
  179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  181. [global::System.ComponentModel.Browsable(false)]
  182. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  183. public ПоставщикиDataTable Поставщики {
  184. get {
  185. return this.tableПоставщики;
  186. }
  187. }
  188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  190. [global::System.ComponentModel.Browsable(false)]
  191. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  192. public РолиDataTable Роли {
  193. get {
  194. return this.tableРоли;
  195. }
  196. }
  197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  199. [global::System.ComponentModel.Browsable(false)]
  200. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  201. public СборкаDataTable Сборка {
  202. get {
  203. return this.tableСборка;
  204. }
  205. }
  206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  208. [global::System.ComponentModel.Browsable(false)]
  209. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  210. public СотрудникиDataTable Сотрудники {
  211. get {
  212. return this.tableСотрудники;
  213. }
  214. }
  215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  217. [global::System.ComponentModel.Browsable(false)]
  218. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  219. public СтатусыЗаказаDataTable СтатусыЗаказа {
  220. get {
  221. return this.tableСтатусыЗаказа;
  222. }
  223. }
  224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  226. [global::System.ComponentModel.Browsable(false)]
  227. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  228. public ТипыКомплектующихDataTable ТипыКомплектующих {
  229. get {
  230. return this.tableТипыКомплектующих;
  231. }
  232. }
  233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  235. [global::System.ComponentModel.BrowsableAttribute(true)]
  236. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  237. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  238. get {
  239. return this._schemaSerializationMode;
  240. }
  241. set {
  242. this._schemaSerializationMode = value;
  243. }
  244. }
  245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  247. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  248. public new global::System.Data.DataTableCollection Tables {
  249. get {
  250. return base.Tables;
  251. }
  252. }
  253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  255. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  256. public new global::System.Data.DataRelationCollection Relations {
  257. get {
  258. return base.Relations;
  259. }
  260. }
  261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  263. protected override void InitializeDerivedDataSet() {
  264. this.BeginInit();
  265. this.InitClass();
  266. this.EndInit();
  267. }
  268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  270. public override global::System.Data.DataSet Clone() {
  271. KazarinDE_03DataSet1 cln = ((KazarinDE_03DataSet1)(base.Clone()));
  272. cln.InitVars();
  273. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  274. return cln;
  275. }
  276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  278. protected override bool ShouldSerializeTables() {
  279. return false;
  280. }
  281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  283. protected override bool ShouldSerializeRelations() {
  284. return false;
  285. }
  286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  288. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  289. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  290. this.Reset();
  291. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  292. ds.ReadXml(reader);
  293. if ((ds.Tables["ЕдиницыИзмерения"] != null)) {
  294. base.Tables.Add(new ЕдиницыИзмеренияDataTable(ds.Tables["ЕдиницыИзмерения"]));
  295. }
  296. if ((ds.Tables["Заказы"] != null)) {
  297. base.Tables.Add(new ЗаказыDataTable(ds.Tables["Заказы"]));
  298. }
  299. if ((ds.Tables["Клиенты"] != null)) {
  300. base.Tables.Add(new КлиентыDataTable(ds.Tables["Клиенты"]));
  301. }
  302. if ((ds.Tables["Комплектующие"] != null)) {
  303. base.Tables.Add(new КомплектующиеDataTable(ds.Tables["Комплектующие"]));
  304. }
  305. if ((ds.Tables["Компьютеры"] != null)) {
  306. base.Tables.Add(new КомпьютерыDataTable(ds.Tables["Компьютеры"]));
  307. }
  308. if ((ds.Tables["ОписаниеСборки"] != null)) {
  309. base.Tables.Add(new ОписаниеСборкиDataTable(ds.Tables["ОписаниеСборки"]));
  310. }
  311. if ((ds.Tables["Поставщики"] != null)) {
  312. base.Tables.Add(new ПоставщикиDataTable(ds.Tables["Поставщики"]));
  313. }
  314. if ((ds.Tables["Роли"] != null)) {
  315. base.Tables.Add(new РолиDataTable(ds.Tables["Роли"]));
  316. }
  317. if ((ds.Tables["Сборка"] != null)) {
  318. base.Tables.Add(new СборкаDataTable(ds.Tables["Сборка"]));
  319. }
  320. if ((ds.Tables["Сотрудники"] != null)) {
  321. base.Tables.Add(new СотрудникиDataTable(ds.Tables["Сотрудники"]));
  322. }
  323. if ((ds.Tables["СтатусыЗаказа"] != null)) {
  324. base.Tables.Add(new СтатусыЗаказаDataTable(ds.Tables["СтатусыЗаказа"]));
  325. }
  326. if ((ds.Tables["ТипыКомплектующих"] != null)) {
  327. base.Tables.Add(new ТипыКомплектующихDataTable(ds.Tables["ТипыКомплектующих"]));
  328. }
  329. this.DataSetName = ds.DataSetName;
  330. this.Prefix = ds.Prefix;
  331. this.Namespace = ds.Namespace;
  332. this.Locale = ds.Locale;
  333. this.CaseSensitive = ds.CaseSensitive;
  334. this.EnforceConstraints = ds.EnforceConstraints;
  335. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  336. this.InitVars();
  337. }
  338. else {
  339. this.ReadXml(reader);
  340. this.InitVars();
  341. }
  342. }
  343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  345. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  346. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  347. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  348. stream.Position = 0;
  349. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  350. }
  351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  353. internal void InitVars() {
  354. this.InitVars(true);
  355. }
  356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  358. internal void InitVars(bool initTable) {
  359. this.tableЕдиницыИзмерения = ((ЕдиницыИзмеренияDataTable)(base.Tables["ЕдиницыИзмерения"]));
  360. if ((initTable == true)) {
  361. if ((this.tableЕдиницыИзмерения != null)) {
  362. this.tableЕдиницыИзмерения.InitVars();
  363. }
  364. }
  365. this.tableЗаказы = ((ЗаказыDataTable)(base.Tables["Заказы"]));
  366. if ((initTable == true)) {
  367. if ((this.tableЗаказы != null)) {
  368. this.tableЗаказы.InitVars();
  369. }
  370. }
  371. this.tableКлиенты = ((КлиентыDataTable)(base.Tables["Клиенты"]));
  372. if ((initTable == true)) {
  373. if ((this.tableКлиенты != null)) {
  374. this.tableКлиенты.InitVars();
  375. }
  376. }
  377. this.tableКомплектующие = ((КомплектующиеDataTable)(base.Tables["Комплектующие"]));
  378. if ((initTable == true)) {
  379. if ((this.tableКомплектующие != null)) {
  380. this.tableКомплектующие.InitVars();
  381. }
  382. }
  383. this.tableКомпьютеры = ((КомпьютерыDataTable)(base.Tables["Компьютеры"]));
  384. if ((initTable == true)) {
  385. if ((this.tableКомпьютеры != null)) {
  386. this.tableКомпьютеры.InitVars();
  387. }
  388. }
  389. this.tableОписаниеСборки = ((ОписаниеСборкиDataTable)(base.Tables["ОписаниеСборки"]));
  390. if ((initTable == true)) {
  391. if ((this.tableОписаниеСборки != null)) {
  392. this.tableОписаниеСборки.InitVars();
  393. }
  394. }
  395. this.tableПоставщики = ((ПоставщикиDataTable)(base.Tables["Поставщики"]));
  396. if ((initTable == true)) {
  397. if ((this.tableПоставщики != null)) {
  398. this.tableПоставщики.InitVars();
  399. }
  400. }
  401. this.tableРоли = ((РолиDataTable)(base.Tables["Роли"]));
  402. if ((initTable == true)) {
  403. if ((this.tableРоли != null)) {
  404. this.tableРоли.InitVars();
  405. }
  406. }
  407. this.tableСборка = ((СборкаDataTable)(base.Tables["Сборка"]));
  408. if ((initTable == true)) {
  409. if ((this.tableСборка != null)) {
  410. this.tableСборка.InitVars();
  411. }
  412. }
  413. this.tableСотрудники = ((СотрудникиDataTable)(base.Tables["Сотрудники"]));
  414. if ((initTable == true)) {
  415. if ((this.tableСотрудники != null)) {
  416. this.tableСотрудники.InitVars();
  417. }
  418. }
  419. this.tableСтатусыЗаказа = ((СтатусыЗаказаDataTable)(base.Tables["СтатусыЗаказа"]));
  420. if ((initTable == true)) {
  421. if ((this.tableСтатусыЗаказа != null)) {
  422. this.tableСтатусыЗаказа.InitVars();
  423. }
  424. }
  425. this.tableТипыКомплектующих = ((ТипыКомплектующихDataTable)(base.Tables["ТипыКомплектующих"]));
  426. if ((initTable == true)) {
  427. if ((this.tableТипыКомплектующих != null)) {
  428. this.tableТипыКомплектующих.InitVars();
  429. }
  430. }
  431. this.relationFK_Заказы_Клиенты = this.Relations["FK_Заказы_Клиенты"];
  432. this.relationFK_Заказы_Сборка = this.Relations["FK_Заказы_Сборка"];
  433. this.relationFK_Заказы_Сотрудники = this.Relations["FK_Заказы_Сотрудники"];
  434. this.relationFK_Заказы_СтатусыЗаказа = this.Relations["FK_Заказы_СтатусыЗаказа"];
  435. this.relationFK_Комплектующие_ЕдиницыИзмерения = this.Relations["FK_Комплектующие_ЕдиницыИзмерения"];
  436. this.relationFK_Комплектующие_Поставщики = this.Relations["FK_Комплектующие_Поставщики"];
  437. this.relationFK_Комплектующие_ТипыКомплектующих = this.Relations["FK_Комплектующие_ТипыКомплектующих"];
  438. this.relationFK_ОписаниеСборки_Комплектующие = this.Relations["FK_ОписаниеСборки_Комплектующие"];
  439. this.relationFK_ОписаниеСборки_Компьютеры = this.Relations["FK_ОписаниеСборки_Компьютеры"];
  440. this.relationFK_Сборка_Компьютеры = this.Relations["FK_Сборка_Компьютеры"];
  441. this.relationFK_Сборка_Сотрудники = this.Relations["FK_Сборка_Сотрудники"];
  442. this.relationFK_Сотрудники_Роли = this.Relations["FK_Сотрудники_Роли"];
  443. }
  444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  446. private void InitClass() {
  447. this.DataSetName = "KazarinDE_03DataSet1";
  448. this.Prefix = "";
  449. this.Namespace = "http://tempuri.org/KazarinDE_03DataSet1.xsd";
  450. this.EnforceConstraints = true;
  451. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  452. this.tableЕдиницыИзмерения = new ЕдиницыИзмеренияDataTable();
  453. base.Tables.Add(this.tableЕдиницыИзмерения);
  454. this.tableЗаказы = new ЗаказыDataTable();
  455. base.Tables.Add(this.tableЗаказы);
  456. this.tableКлиенты = new КлиентыDataTable();
  457. base.Tables.Add(this.tableКлиенты);
  458. this.tableКомплектующие = new КомплектующиеDataTable();
  459. base.Tables.Add(this.tableКомплектующие);
  460. this.tableКомпьютеры = new КомпьютерыDataTable();
  461. base.Tables.Add(this.tableКомпьютеры);
  462. this.tableОписаниеСборки = new ОписаниеСборкиDataTable();
  463. base.Tables.Add(this.tableОписаниеСборки);
  464. this.tableПоставщики = new ПоставщикиDataTable();
  465. base.Tables.Add(this.tableПоставщики);
  466. this.tableРоли = new РолиDataTable();
  467. base.Tables.Add(this.tableРоли);
  468. this.tableСборка = new СборкаDataTable();
  469. base.Tables.Add(this.tableСборка);
  470. this.tableСотрудники = new СотрудникиDataTable();
  471. base.Tables.Add(this.tableСотрудники);
  472. this.tableСтатусыЗаказа = new СтатусыЗаказаDataTable();
  473. base.Tables.Add(this.tableСтатусыЗаказа);
  474. this.tableТипыКомплектующих = new ТипыКомплектующихDataTable();
  475. base.Tables.Add(this.tableТипыКомплектующих);
  476. this.relationFK_Заказы_Клиенты = new global::System.Data.DataRelation("FK_Заказы_Клиенты", new global::System.Data.DataColumn[] {
  477. this.tableКлиенты.ID_КлиентаColumn}, new global::System.Data.DataColumn[] {
  478. this.tableЗаказы.ID_КлиентаColumn}, false);
  479. this.Relations.Add(this.relationFK_Заказы_Клиенты);
  480. this.relationFK_Заказы_Сборка = new global::System.Data.DataRelation("FK_Заказы_Сборка", new global::System.Data.DataColumn[] {
  481. this.tableСборка.ID_СборкиColumn}, new global::System.Data.DataColumn[] {
  482. this.tableЗаказы.ID_СборкиColumn}, false);
  483. this.Relations.Add(this.relationFK_Заказы_Сборка);
  484. this.relationFK_Заказы_Сотрудники = new global::System.Data.DataRelation("FK_Заказы_Сотрудники", new global::System.Data.DataColumn[] {
  485. this.tableСотрудники.IDColumn}, new global::System.Data.DataColumn[] {
  486. this.tableЗаказы.ID_СотрудникаColumn}, false);
  487. this.Relations.Add(this.relationFK_Заказы_Сотрудники);
  488. this.relationFK_Заказы_СтатусыЗаказа = new global::System.Data.DataRelation("FK_Заказы_СтатусыЗаказа", new global::System.Data.DataColumn[] {
  489. this.tableСтатусыЗаказа.ID_СтатусаColumn}, new global::System.Data.DataColumn[] {
  490. this.tableЗаказы.СтатусЗаказаColumn}, false);
  491. this.Relations.Add(this.relationFK_Заказы_СтатусыЗаказа);
  492. this.relationFK_Комплектующие_ЕдиницыИзмерения = new global::System.Data.DataRelation("FK_Комплектующие_ЕдиницыИзмерения", new global::System.Data.DataColumn[] {
  493. this.tableЕдиницыИзмерения.ID_ЕдиницИзмеренияColumn}, new global::System.Data.DataColumn[] {
  494. this.tableКомплектующие.ЕдиницыИзмеренияColumn}, false);
  495. this.Relations.Add(this.relationFK_Комплектующие_ЕдиницыИзмерения);
  496. this.relationFK_Комплектующие_Поставщики = new global::System.Data.DataRelation("FK_Комплектующие_Поставщики", new global::System.Data.DataColumn[] {
  497. this.tableПоставщики.ID_ПоставщикаColumn}, new global::System.Data.DataColumn[] {
  498. this.tableКомплектующие.ПоставщикColumn}, false);
  499. this.Relations.Add(this.relationFK_Комплектующие_Поставщики);
  500. this.relationFK_Комплектующие_ТипыКомплектующих = new global::System.Data.DataRelation("FK_Комплектующие_ТипыКомплектующих", new global::System.Data.DataColumn[] {
  501. this.tableТипыКомплектующих.ID_ТипаColumn}, new global::System.Data.DataColumn[] {
  502. this.tableКомплектующие.ТипColumn}, false);
  503. this.Relations.Add(this.relationFK_Комплектующие_ТипыКомплектующих);
  504. this.relationFK_ОписаниеСборки_Комплектующие = new global::System.Data.DataRelation("FK_ОписаниеСборки_Комплектующие", new global::System.Data.DataColumn[] {
  505. this.tableКомплектующие.ID_КомплектующегоColumn}, new global::System.Data.DataColumn[] {
  506. this.tableОписаниеСборки.ID_КомплектующегоColumn}, false);
  507. this.Relations.Add(this.relationFK_ОписаниеСборки_Комплектующие);
  508. this.relationFK_ОписаниеСборки_Компьютеры = new global::System.Data.DataRelation("FK_ОписаниеСборки_Компьютеры", new global::System.Data.DataColumn[] {
  509. this.tableКомпьютеры.ID_ПКColumn}, new global::System.Data.DataColumn[] {
  510. this.tableОписаниеСборки.ID_ПКColumn}, false);
  511. this.Relations.Add(this.relationFK_ОписаниеСборки_Компьютеры);
  512. this.relationFK_Сборка_Компьютеры = new global::System.Data.DataRelation("FK_Сборка_Компьютеры", new global::System.Data.DataColumn[] {
  513. this.tableКомпьютеры.ID_ПКColumn}, new global::System.Data.DataColumn[] {
  514. this.tableСборка.ID_ПКColumn}, false);
  515. this.Relations.Add(this.relationFK_Сборка_Компьютеры);
  516. this.relationFK_Сборка_Сотрудники = new global::System.Data.DataRelation("FK_Сборка_Сотрудники", new global::System.Data.DataColumn[] {
  517. this.tableСотрудники.IDColumn}, new global::System.Data.DataColumn[] {
  518. this.tableСборка.ID_МастераColumn}, false);
  519. this.Relations.Add(this.relationFK_Сборка_Сотрудники);
  520. this.relationFK_Сотрудники_Роли = new global::System.Data.DataRelation("FK_Сотрудники_Роли", new global::System.Data.DataColumn[] {
  521. this.tableРоли.ID_РолиColumn}, new global::System.Data.DataColumn[] {
  522. this.tableСотрудники.РольColumn}, false);
  523. this.Relations.Add(this.relationFK_Сотрудники_Роли);
  524. }
  525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  527. private bool ShouldSerializeЕдиницыИзмерения() {
  528. return false;
  529. }
  530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  532. private bool ShouldSerializeЗаказы() {
  533. return false;
  534. }
  535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  537. private bool ShouldSerializeКлиенты() {
  538. return false;
  539. }
  540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  542. private bool ShouldSerializeКомплектующие() {
  543. return false;
  544. }
  545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  547. private bool ShouldSerializeКомпьютеры() {
  548. return false;
  549. }
  550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  552. private bool ShouldSerializeОписаниеСборки() {
  553. return false;
  554. }
  555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  557. private bool ShouldSerializeПоставщики() {
  558. return false;
  559. }
  560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  562. private bool ShouldSerializeРоли() {
  563. return false;
  564. }
  565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  567. private bool ShouldSerializeСборка() {
  568. return false;
  569. }
  570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  572. private bool ShouldSerializeСотрудники() {
  573. return false;
  574. }
  575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  577. private bool ShouldSerializeСтатусыЗаказа() {
  578. return false;
  579. }
  580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  582. private bool ShouldSerializeТипыКомплектующих() {
  583. return false;
  584. }
  585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  587. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  588. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  589. this.InitVars();
  590. }
  591. }
  592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  594. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  595. KazarinDE_03DataSet1 ds = new KazarinDE_03DataSet1();
  596. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  597. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  598. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  599. any.Namespace = ds.Namespace;
  600. sequence.Items.Add(any);
  601. type.Particle = sequence;
  602. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  603. if (xs.Contains(dsSchema.TargetNamespace)) {
  604. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  605. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  606. try {
  607. global::System.Xml.Schema.XmlSchema schema = null;
  608. dsSchema.Write(s1);
  609. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  610. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  611. s2.SetLength(0);
  612. schema.Write(s2);
  613. if ((s1.Length == s2.Length)) {
  614. s1.Position = 0;
  615. s2.Position = 0;
  616. for (; ((s1.Position != s1.Length)
  617. && (s1.ReadByte() == s2.ReadByte())); ) {
  618. ;
  619. }
  620. if ((s1.Position == s1.Length)) {
  621. return type;
  622. }
  623. }
  624. }
  625. }
  626. finally {
  627. if ((s1 != null)) {
  628. s1.Close();
  629. }
  630. if ((s2 != null)) {
  631. s2.Close();
  632. }
  633. }
  634. }
  635. xs.Add(dsSchema);
  636. return type;
  637. }
  638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  639. public delegate void ЕдиницыИзмеренияRowChangeEventHandler(object sender, ЕдиницыИзмеренияRowChangeEvent e);
  640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  641. public delegate void ЗаказыRowChangeEventHandler(object sender, ЗаказыRowChangeEvent e);
  642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  643. public delegate void КлиентыRowChangeEventHandler(object sender, КлиентыRowChangeEvent e);
  644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  645. public delegate void КомплектующиеRowChangeEventHandler(object sender, КомплектующиеRowChangeEvent e);
  646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  647. public delegate void КомпьютерыRowChangeEventHandler(object sender, КомпьютерыRowChangeEvent e);
  648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  649. public delegate void ОписаниеСборкиRowChangeEventHandler(object sender, ОписаниеСборкиRowChangeEvent e);
  650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  651. public delegate void ПоставщикиRowChangeEventHandler(object sender, ПоставщикиRowChangeEvent e);
  652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  653. public delegate void РолиRowChangeEventHandler(object sender, РолиRowChangeEvent e);
  654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  655. public delegate void СборкаRowChangeEventHandler(object sender, СборкаRowChangeEvent e);
  656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  657. public delegate void СотрудникиRowChangeEventHandler(object sender, СотрудникиRowChangeEvent e);
  658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  659. public delegate void СтатусыЗаказаRowChangeEventHandler(object sender, СтатусыЗаказаRowChangeEvent e);
  660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  661. public delegate void ТипыКомплектующихRowChangeEventHandler(object sender, ТипыКомплектующихRowChangeEvent e);
  662. /// <summary>
  663. ///Represents the strongly named DataTable class.
  664. ///</summary>
  665. [global::System.Serializable()]
  666. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  667. public partial class ЕдиницыИзмеренияDataTable : global::System.Data.TypedTableBase<ЕдиницыИзмеренияRow> {
  668. private global::System.Data.DataColumn columnID_ЕдиницИзмерения;
  669. private global::System.Data.DataColumn columnНазвание;
  670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  672. public ЕдиницыИзмеренияDataTable() {
  673. this.TableName = "ЕдиницыИзмерения";
  674. this.BeginInit();
  675. this.InitClass();
  676. this.EndInit();
  677. }
  678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  680. internal ЕдиницыИзмеренияDataTable(global::System.Data.DataTable table) {
  681. this.TableName = table.TableName;
  682. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  683. this.CaseSensitive = table.CaseSensitive;
  684. }
  685. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  686. this.Locale = table.Locale;
  687. }
  688. if ((table.Namespace != table.DataSet.Namespace)) {
  689. this.Namespace = table.Namespace;
  690. }
  691. this.Prefix = table.Prefix;
  692. this.MinimumCapacity = table.MinimumCapacity;
  693. }
  694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  696. protected ЕдиницыИзмеренияDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  697. base(info, context) {
  698. this.InitVars();
  699. }
  700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  702. public global::System.Data.DataColumn ID_ЕдиницИзмеренияColumn {
  703. get {
  704. return this.columnID_ЕдиницИзмерения;
  705. }
  706. }
  707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  709. public global::System.Data.DataColumn НазваниеColumn {
  710. get {
  711. return this.columnНазвание;
  712. }
  713. }
  714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  716. [global::System.ComponentModel.Browsable(false)]
  717. public int Count {
  718. get {
  719. return this.Rows.Count;
  720. }
  721. }
  722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  724. public ЕдиницыИзмеренияRow this[int index] {
  725. get {
  726. return ((ЕдиницыИзмеренияRow)(this.Rows[index]));
  727. }
  728. }
  729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  730. public event ЕдиницыИзмеренияRowChangeEventHandler ЕдиницыИзмеренияRowChanging;
  731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  732. public event ЕдиницыИзмеренияRowChangeEventHandler ЕдиницыИзмеренияRowChanged;
  733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  734. public event ЕдиницыИзмеренияRowChangeEventHandler ЕдиницыИзмеренияRowDeleting;
  735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  736. public event ЕдиницыИзмеренияRowChangeEventHandler ЕдиницыИзмеренияRowDeleted;
  737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  739. public void AddЕдиницыИзмеренияRow(ЕдиницыИзмеренияRow row) {
  740. this.Rows.Add(row);
  741. }
  742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  744. public ЕдиницыИзмеренияRow AddЕдиницыИзмеренияRow(string Название) {
  745. ЕдиницыИзмеренияRow rowЕдиницыИзмеренияRow = ((ЕдиницыИзмеренияRow)(this.NewRow()));
  746. object[] columnValuesArray = new object[] {
  747. null,
  748. Название};
  749. rowЕдиницыИзмеренияRow.ItemArray = columnValuesArray;
  750. this.Rows.Add(rowЕдиницыИзмеренияRow);
  751. return rowЕдиницыИзмеренияRow;
  752. }
  753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  755. public ЕдиницыИзмеренияRow FindByID_ЕдиницИзмерения(int ID_ЕдиницИзмерения) {
  756. return ((ЕдиницыИзмеренияRow)(this.Rows.Find(new object[] {
  757. ID_ЕдиницИзмерения})));
  758. }
  759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  761. public override global::System.Data.DataTable Clone() {
  762. ЕдиницыИзмеренияDataTable cln = ((ЕдиницыИзмеренияDataTable)(base.Clone()));
  763. cln.InitVars();
  764. return cln;
  765. }
  766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  768. protected override global::System.Data.DataTable CreateInstance() {
  769. return new ЕдиницыИзмеренияDataTable();
  770. }
  771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  773. internal void InitVars() {
  774. this.columnID_ЕдиницИзмерения = base.Columns["ID_ЕдиницИзмерения"];
  775. this.columnНазвание = base.Columns["Название"];
  776. }
  777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  779. private void InitClass() {
  780. this.columnID_ЕдиницИзмерения = new global::System.Data.DataColumn("ID_ЕдиницИзмерения", typeof(int), null, global::System.Data.MappingType.Element);
  781. base.Columns.Add(this.columnID_ЕдиницИзмерения);
  782. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  783. base.Columns.Add(this.columnНазвание);
  784. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  785. this.columnID_ЕдиницИзмерения}, true));
  786. this.columnID_ЕдиницИзмерения.AutoIncrement = true;
  787. this.columnID_ЕдиницИзмерения.AutoIncrementSeed = -1;
  788. this.columnID_ЕдиницИзмерения.AutoIncrementStep = -1;
  789. this.columnID_ЕдиницИзмерения.AllowDBNull = false;
  790. this.columnID_ЕдиницИзмерения.ReadOnly = true;
  791. this.columnID_ЕдиницИзмерения.Unique = true;
  792. this.columnНазвание.MaxLength = 50;
  793. }
  794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  796. public ЕдиницыИзмеренияRow NewЕдиницыИзмеренияRow() {
  797. return ((ЕдиницыИзмеренияRow)(this.NewRow()));
  798. }
  799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  801. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  802. return new ЕдиницыИзмеренияRow(builder);
  803. }
  804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  806. protected override global::System.Type GetRowType() {
  807. return typeof(ЕдиницыИзмеренияRow);
  808. }
  809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  811. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  812. base.OnRowChanged(e);
  813. if ((this.ЕдиницыИзмеренияRowChanged != null)) {
  814. this.ЕдиницыИзмеренияRowChanged(this, new ЕдиницыИзмеренияRowChangeEvent(((ЕдиницыИзмеренияRow)(e.Row)), e.Action));
  815. }
  816. }
  817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  819. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  820. base.OnRowChanging(e);
  821. if ((this.ЕдиницыИзмеренияRowChanging != null)) {
  822. this.ЕдиницыИзмеренияRowChanging(this, new ЕдиницыИзмеренияRowChangeEvent(((ЕдиницыИзмеренияRow)(e.Row)), e.Action));
  823. }
  824. }
  825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  827. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  828. base.OnRowDeleted(e);
  829. if ((this.ЕдиницыИзмеренияRowDeleted != null)) {
  830. this.ЕдиницыИзмеренияRowDeleted(this, new ЕдиницыИзмеренияRowChangeEvent(((ЕдиницыИзмеренияRow)(e.Row)), e.Action));
  831. }
  832. }
  833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  835. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  836. base.OnRowDeleting(e);
  837. if ((this.ЕдиницыИзмеренияRowDeleting != null)) {
  838. this.ЕдиницыИзмеренияRowDeleting(this, new ЕдиницыИзмеренияRowChangeEvent(((ЕдиницыИзмеренияRow)(e.Row)), e.Action));
  839. }
  840. }
  841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  843. public void RemoveЕдиницыИзмеренияRow(ЕдиницыИзмеренияRow row) {
  844. this.Rows.Remove(row);
  845. }
  846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  848. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  849. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  850. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  851. KazarinDE_03DataSet1 ds = new KazarinDE_03DataSet1();
  852. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  853. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  854. any1.MinOccurs = new decimal(0);
  855. any1.MaxOccurs = decimal.MaxValue;
  856. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  857. sequence.Items.Add(any1);
  858. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  859. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  860. any2.MinOccurs = new decimal(1);
  861. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  862. sequence.Items.Add(any2);
  863. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  864. attribute1.Name = "namespace";
  865. attribute1.FixedValue = ds.Namespace;
  866. type.Attributes.Add(attribute1);
  867. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  868. attribute2.Name = "tableTypeName";
  869. attribute2.FixedValue = "ЕдиницыИзмеренияDataTable";
  870. type.Attributes.Add(attribute2);
  871. type.Particle = sequence;
  872. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  873. if (xs.Contains(dsSchema.TargetNamespace)) {
  874. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  875. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  876. try {
  877. global::System.Xml.Schema.XmlSchema schema = null;
  878. dsSchema.Write(s1);
  879. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  880. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  881. s2.SetLength(0);
  882. schema.Write(s2);
  883. if ((s1.Length == s2.Length)) {
  884. s1.Position = 0;
  885. s2.Position = 0;
  886. for (; ((s1.Position != s1.Length)
  887. && (s1.ReadByte() == s2.ReadByte())); ) {
  888. ;
  889. }
  890. if ((s1.Position == s1.Length)) {
  891. return type;
  892. }
  893. }
  894. }
  895. }
  896. finally {
  897. if ((s1 != null)) {
  898. s1.Close();
  899. }
  900. if ((s2 != null)) {
  901. s2.Close();
  902. }
  903. }
  904. }
  905. xs.Add(dsSchema);
  906. return type;
  907. }
  908. }
  909. /// <summary>
  910. ///Represents the strongly named DataTable class.
  911. ///</summary>
  912. [global::System.Serializable()]
  913. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  914. public partial class ЗаказыDataTable : global::System.Data.TypedTableBase<ЗаказыRow> {
  915. private global::System.Data.DataColumn columnID_Заказа;
  916. private global::System.Data.DataColumn columnНомерЗаказа;
  917. private global::System.Data.DataColumn columnДатаЗаказа;
  918. private global::System.Data.DataColumn columnСтатусЗаказа;
  919. private global::System.Data.DataColumn columnПримечание;
  920. private global::System.Data.DataColumn columnID_Клиента;
  921. private global::System.Data.DataColumn columnID_Сотрудника;
  922. private global::System.Data.DataColumn columnID_Сборки;
  923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  925. public ЗаказыDataTable() {
  926. this.TableName = "Заказы";
  927. this.BeginInit();
  928. this.InitClass();
  929. this.EndInit();
  930. }
  931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  933. internal ЗаказыDataTable(global::System.Data.DataTable table) {
  934. this.TableName = table.TableName;
  935. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  936. this.CaseSensitive = table.CaseSensitive;
  937. }
  938. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  939. this.Locale = table.Locale;
  940. }
  941. if ((table.Namespace != table.DataSet.Namespace)) {
  942. this.Namespace = table.Namespace;
  943. }
  944. this.Prefix = table.Prefix;
  945. this.MinimumCapacity = table.MinimumCapacity;
  946. }
  947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  949. protected ЗаказыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  950. base(info, context) {
  951. this.InitVars();
  952. }
  953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  955. public global::System.Data.DataColumn ID_ЗаказаColumn {
  956. get {
  957. return this.columnID_Заказа;
  958. }
  959. }
  960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  962. public global::System.Data.DataColumn НомерЗаказаColumn {
  963. get {
  964. return this.columnНомерЗаказа;
  965. }
  966. }
  967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  969. public global::System.Data.DataColumn ДатаЗаказаColumn {
  970. get {
  971. return this.columnДатаЗаказа;
  972. }
  973. }
  974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  976. public global::System.Data.DataColumn СтатусЗаказаColumn {
  977. get {
  978. return this.columnСтатусЗаказа;
  979. }
  980. }
  981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  983. public global::System.Data.DataColumn ПримечаниеColumn {
  984. get {
  985. return this.columnПримечание;
  986. }
  987. }
  988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  990. public global::System.Data.DataColumn ID_КлиентаColumn {
  991. get {
  992. return this.columnID_Клиента;
  993. }
  994. }
  995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  997. public global::System.Data.DataColumn ID_СотрудникаColumn {
  998. get {
  999. return this.columnID_Сотрудника;
  1000. }
  1001. }
  1002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1004. public global::System.Data.DataColumn ID_СборкиColumn {
  1005. get {
  1006. return this.columnID_Сборки;
  1007. }
  1008. }
  1009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1011. [global::System.ComponentModel.Browsable(false)]
  1012. public int Count {
  1013. get {
  1014. return this.Rows.Count;
  1015. }
  1016. }
  1017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1019. public ЗаказыRow this[int index] {
  1020. get {
  1021. return ((ЗаказыRow)(this.Rows[index]));
  1022. }
  1023. }
  1024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1025. public event ЗаказыRowChangeEventHandler ЗаказыRowChanging;
  1026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1027. public event ЗаказыRowChangeEventHandler ЗаказыRowChanged;
  1028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1029. public event ЗаказыRowChangeEventHandler ЗаказыRowDeleting;
  1030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1031. public event ЗаказыRowChangeEventHandler ЗаказыRowDeleted;
  1032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1034. public void AddЗаказыRow(ЗаказыRow row) {
  1035. this.Rows.Add(row);
  1036. }
  1037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1039. public ЗаказыRow AddЗаказыRow(int НомерЗаказа, System.DateTime ДатаЗаказа, СтатусыЗаказаRow parentСтатусыЗаказаRowByFK_Заказы_СтатусыЗаказа, string Примечание, КлиентыRow parentКлиентыRowByFK_Заказы_Клиенты, СотрудникиRow parentСотрудникиRowByFK_Заказы_Сотрудники, СборкаRow parentСборкаRowByFK_Заказы_Сборка) {
  1040. ЗаказыRow rowЗаказыRow = ((ЗаказыRow)(this.NewRow()));
  1041. object[] columnValuesArray = new object[] {
  1042. null,
  1043. НомерЗаказа,
  1044. ДатаЗаказа,
  1045. null,
  1046. Примечание,
  1047. null,
  1048. null,
  1049. null};
  1050. if ((parentСтатусыЗаказаRowByFK_Заказы_СтатусыЗаказа != null)) {
  1051. columnValuesArray[3] = parentСтатусыЗаказаRowByFK_Заказы_СтатусыЗаказа[0];
  1052. }
  1053. if ((parentКлиентыRowByFK_Заказы_Клиенты != null)) {
  1054. columnValuesArray[5] = parentКлиентыRowByFK_Заказы_Клиенты[0];
  1055. }
  1056. if ((parentСотрудникиRowByFK_Заказы_Сотрудники != null)) {
  1057. columnValuesArray[6] = parentСотрудникиRowByFK_Заказы_Сотрудники[0];
  1058. }
  1059. if ((parentСборкаRowByFK_Заказы_Сборка != null)) {
  1060. columnValuesArray[7] = parentСборкаRowByFK_Заказы_Сборка[0];
  1061. }
  1062. rowЗаказыRow.ItemArray = columnValuesArray;
  1063. this.Rows.Add(rowЗаказыRow);
  1064. return rowЗаказыRow;
  1065. }
  1066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1068. public ЗаказыRow FindByID_Заказа(int ID_Заказа) {
  1069. return ((ЗаказыRow)(this.Rows.Find(new object[] {
  1070. ID_Заказа})));
  1071. }
  1072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1074. public override global::System.Data.DataTable Clone() {
  1075. ЗаказыDataTable cln = ((ЗаказыDataTable)(base.Clone()));
  1076. cln.InitVars();
  1077. return cln;
  1078. }
  1079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1081. protected override global::System.Data.DataTable CreateInstance() {
  1082. return new ЗаказыDataTable();
  1083. }
  1084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1086. internal void InitVars() {
  1087. this.columnID_Заказа = base.Columns["ID_Заказа"];
  1088. this.columnНомерЗаказа = base.Columns["НомерЗаказа"];
  1089. this.columnДатаЗаказа = base.Columns["ДатаЗаказа"];
  1090. this.columnСтатусЗаказа = base.Columns["СтатусЗаказа"];
  1091. this.columnПримечание = base.Columns["Примечание"];
  1092. this.columnID_Клиента = base.Columns["ID_Клиента"];
  1093. this.columnID_Сотрудника = base.Columns["ID_Сотрудника"];
  1094. this.columnID_Сборки = base.Columns["ID_Сборки"];
  1095. }
  1096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1098. private void InitClass() {
  1099. this.columnID_Заказа = new global::System.Data.DataColumn("ID_Заказа", typeof(int), null, global::System.Data.MappingType.Element);
  1100. base.Columns.Add(this.columnID_Заказа);
  1101. this.columnНомерЗаказа = new global::System.Data.DataColumn("НомерЗаказа", typeof(int), null, global::System.Data.MappingType.Element);
  1102. base.Columns.Add(this.columnНомерЗаказа);
  1103. this.columnДатаЗаказа = new global::System.Data.DataColumn("ДатаЗаказа", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1104. base.Columns.Add(this.columnДатаЗаказа);
  1105. this.columnСтатусЗаказа = new global::System.Data.DataColumn("СтатусЗаказа", typeof(int), null, global::System.Data.MappingType.Element);
  1106. base.Columns.Add(this.columnСтатусЗаказа);
  1107. this.columnПримечание = new global::System.Data.DataColumn("Примечание", typeof(string), null, global::System.Data.MappingType.Element);
  1108. base.Columns.Add(this.columnПримечание);
  1109. this.columnID_Клиента = new global::System.Data.DataColumn("ID_Клиента", typeof(int), null, global::System.Data.MappingType.Element);
  1110. base.Columns.Add(this.columnID_Клиента);
  1111. this.columnID_Сотрудника = new global::System.Data.DataColumn("ID_Сотрудника", typeof(int), null, global::System.Data.MappingType.Element);
  1112. base.Columns.Add(this.columnID_Сотрудника);
  1113. this.columnID_Сборки = new global::System.Data.DataColumn("ID_Сборки", typeof(int), null, global::System.Data.MappingType.Element);
  1114. base.Columns.Add(this.columnID_Сборки);
  1115. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1116. this.columnID_Заказа}, true));
  1117. this.columnID_Заказа.AutoIncrement = true;
  1118. this.columnID_Заказа.AutoIncrementSeed = -1;
  1119. this.columnID_Заказа.AutoIncrementStep = -1;
  1120. this.columnID_Заказа.AllowDBNull = false;
  1121. this.columnID_Заказа.ReadOnly = true;
  1122. this.columnID_Заказа.Unique = true;
  1123. this.columnПримечание.MaxLength = 50;
  1124. }
  1125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1127. public ЗаказыRow NewЗаказыRow() {
  1128. return ((ЗаказыRow)(this.NewRow()));
  1129. }
  1130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1132. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1133. return new ЗаказыRow(builder);
  1134. }
  1135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1137. protected override global::System.Type GetRowType() {
  1138. return typeof(ЗаказыRow);
  1139. }
  1140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1142. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1143. base.OnRowChanged(e);
  1144. if ((this.ЗаказыRowChanged != null)) {
  1145. this.ЗаказыRowChanged(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1146. }
  1147. }
  1148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1150. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1151. base.OnRowChanging(e);
  1152. if ((this.ЗаказыRowChanging != null)) {
  1153. this.ЗаказыRowChanging(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1154. }
  1155. }
  1156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1158. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1159. base.OnRowDeleted(e);
  1160. if ((this.ЗаказыRowDeleted != null)) {
  1161. this.ЗаказыRowDeleted(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1162. }
  1163. }
  1164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1166. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1167. base.OnRowDeleting(e);
  1168. if ((this.ЗаказыRowDeleting != null)) {
  1169. this.ЗаказыRowDeleting(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1170. }
  1171. }
  1172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1174. public void RemoveЗаказыRow(ЗаказыRow row) {
  1175. this.Rows.Remove(row);
  1176. }
  1177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1179. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1180. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1181. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1182. KazarinDE_03DataSet1 ds = new KazarinDE_03DataSet1();
  1183. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1184. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1185. any1.MinOccurs = new decimal(0);
  1186. any1.MaxOccurs = decimal.MaxValue;
  1187. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1188. sequence.Items.Add(any1);
  1189. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1190. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1191. any2.MinOccurs = new decimal(1);
  1192. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1193. sequence.Items.Add(any2);
  1194. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1195. attribute1.Name = "namespace";
  1196. attribute1.FixedValue = ds.Namespace;
  1197. type.Attributes.Add(attribute1);
  1198. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1199. attribute2.Name = "tableTypeName";
  1200. attribute2.FixedValue = "ЗаказыDataTable";
  1201. type.Attributes.Add(attribute2);
  1202. type.Particle = sequence;
  1203. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1204. if (xs.Contains(dsSchema.TargetNamespace)) {
  1205. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1206. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1207. try {
  1208. global::System.Xml.Schema.XmlSchema schema = null;
  1209. dsSchema.Write(s1);
  1210. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1211. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1212. s2.SetLength(0);
  1213. schema.Write(s2);
  1214. if ((s1.Length == s2.Length)) {
  1215. s1.Position = 0;
  1216. s2.Position = 0;
  1217. for (; ((s1.Position != s1.Length)
  1218. && (s1.ReadByte() == s2.ReadByte())); ) {
  1219. ;
  1220. }
  1221. if ((s1.Position == s1.Length)) {
  1222. return type;
  1223. }
  1224. }
  1225. }
  1226. }
  1227. finally {
  1228. if ((s1 != null)) {
  1229. s1.Close();
  1230. }
  1231. if ((s2 != null)) {
  1232. s2.Close();
  1233. }
  1234. }
  1235. }
  1236. xs.Add(dsSchema);
  1237. return type;
  1238. }
  1239. }
  1240. /// <summary>
  1241. ///Represents the strongly named DataTable class.
  1242. ///</summary>
  1243. [global::System.Serializable()]
  1244. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1245. public partial class КлиентыDataTable : global::System.Data.TypedTableBase<КлиентыRow> {
  1246. private global::System.Data.DataColumn columnID_Клиента;
  1247. private global::System.Data.DataColumn columnИмя;
  1248. private global::System.Data.DataColumn columnФамилия;
  1249. private global::System.Data.DataColumn columnОтчество;
  1250. private global::System.Data.DataColumn columnТелефон;
  1251. private global::System.Data.DataColumn columnАдрес;
  1252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1254. public КлиентыDataTable() {
  1255. this.TableName = "Клиенты";
  1256. this.BeginInit();
  1257. this.InitClass();
  1258. this.EndInit();
  1259. }
  1260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1262. internal КлиентыDataTable(global::System.Data.DataTable table) {
  1263. this.TableName = table.TableName;
  1264. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1265. this.CaseSensitive = table.CaseSensitive;
  1266. }
  1267. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1268. this.Locale = table.Locale;
  1269. }
  1270. if ((table.Namespace != table.DataSet.Namespace)) {
  1271. this.Namespace = table.Namespace;
  1272. }
  1273. this.Prefix = table.Prefix;
  1274. this.MinimumCapacity = table.MinimumCapacity;
  1275. }
  1276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1278. protected КлиентыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1279. base(info, context) {
  1280. this.InitVars();
  1281. }
  1282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1284. public global::System.Data.DataColumn ID_КлиентаColumn {
  1285. get {
  1286. return this.columnID_Клиента;
  1287. }
  1288. }
  1289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1291. public global::System.Data.DataColumn ИмяColumn {
  1292. get {
  1293. return this.columnИмя;
  1294. }
  1295. }
  1296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1298. public global::System.Data.DataColumn ФамилияColumn {
  1299. get {
  1300. return this.columnФамилия;
  1301. }
  1302. }
  1303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1305. public global::System.Data.DataColumn ОтчествоColumn {
  1306. get {
  1307. return this.columnОтчество;
  1308. }
  1309. }
  1310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1312. public global::System.Data.DataColumn ТелефонColumn {
  1313. get {
  1314. return this.columnТелефон;
  1315. }
  1316. }
  1317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1319. public global::System.Data.DataColumn АдресColumn {
  1320. get {
  1321. return this.columnАдрес;
  1322. }
  1323. }
  1324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1326. [global::System.ComponentModel.Browsable(false)]
  1327. public int Count {
  1328. get {
  1329. return this.Rows.Count;
  1330. }
  1331. }
  1332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1334. public КлиентыRow this[int index] {
  1335. get {
  1336. return ((КлиентыRow)(this.Rows[index]));
  1337. }
  1338. }
  1339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1340. public event КлиентыRowChangeEventHandler КлиентыRowChanging;
  1341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1342. public event КлиентыRowChangeEventHandler КлиентыRowChanged;
  1343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1344. public event КлиентыRowChangeEventHandler КлиентыRowDeleting;
  1345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1346. public event КлиентыRowChangeEventHandler КлиентыRowDeleted;
  1347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1349. public void AddКлиентыRow(КлиентыRow row) {
  1350. this.Rows.Add(row);
  1351. }
  1352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1354. public КлиентыRow AddКлиентыRow(string Имя, string Фамилия, string Отчество, string Телефон, string Адрес) {
  1355. КлиентыRow rowКлиентыRow = ((КлиентыRow)(this.NewRow()));
  1356. object[] columnValuesArray = new object[] {
  1357. null,
  1358. Имя,
  1359. Фамилия,
  1360. Отчество,
  1361. Телефон,
  1362. Адрес};
  1363. rowКлиентыRow.ItemArray = columnValuesArray;
  1364. this.Rows.Add(rowКлиентыRow);
  1365. return rowКлиентыRow;
  1366. }
  1367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1369. public КлиентыRow FindByID_Клиента(int ID_Клиента) {
  1370. return ((КлиентыRow)(this.Rows.Find(new object[] {
  1371. ID_Клиента})));
  1372. }
  1373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1375. public override global::System.Data.DataTable Clone() {
  1376. КлиентыDataTable cln = ((КлиентыDataTable)(base.Clone()));
  1377. cln.InitVars();
  1378. return cln;
  1379. }
  1380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1382. protected override global::System.Data.DataTable CreateInstance() {
  1383. return new КлиентыDataTable();
  1384. }
  1385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1387. internal void InitVars() {
  1388. this.columnID_Клиента = base.Columns["ID_Клиента"];
  1389. this.columnИмя = base.Columns["Имя"];
  1390. this.columnФамилия = base.Columns["Фамилия"];
  1391. this.columnОтчество = base.Columns["Отчество"];
  1392. this.columnТелефон = base.Columns["Телефон"];
  1393. this.columnАдрес = base.Columns["Адрес"];
  1394. }
  1395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1397. private void InitClass() {
  1398. this.columnID_Клиента = new global::System.Data.DataColumn("ID_Клиента", typeof(int), null, global::System.Data.MappingType.Element);
  1399. base.Columns.Add(this.columnID_Клиента);
  1400. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  1401. base.Columns.Add(this.columnИмя);
  1402. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  1403. base.Columns.Add(this.columnФамилия);
  1404. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  1405. base.Columns.Add(this.columnОтчество);
  1406. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  1407. base.Columns.Add(this.columnТелефон);
  1408. this.columnАдрес = new global::System.Data.DataColumn("Адрес", typeof(string), null, global::System.Data.MappingType.Element);
  1409. base.Columns.Add(this.columnАдрес);
  1410. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1411. this.columnID_Клиента}, true));
  1412. this.columnID_Клиента.AutoIncrement = true;
  1413. this.columnID_Клиента.AutoIncrementSeed = -1;
  1414. this.columnID_Клиента.AutoIncrementStep = -1;
  1415. this.columnID_Клиента.AllowDBNull = false;
  1416. this.columnID_Клиента.ReadOnly = true;
  1417. this.columnID_Клиента.Unique = true;
  1418. this.columnИмя.AllowDBNull = false;
  1419. this.columnИмя.MaxLength = 50;
  1420. this.columnФамилия.AllowDBNull = false;
  1421. this.columnФамилия.MaxLength = 50;
  1422. this.columnОтчество.MaxLength = 50;
  1423. this.columnТелефон.MaxLength = 11;
  1424. this.columnАдрес.MaxLength = 70;
  1425. }
  1426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1428. public КлиентыRow NewКлиентыRow() {
  1429. return ((КлиентыRow)(this.NewRow()));
  1430. }
  1431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1433. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1434. return new КлиентыRow(builder);
  1435. }
  1436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1438. protected override global::System.Type GetRowType() {
  1439. return typeof(КлиентыRow);
  1440. }
  1441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1443. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1444. base.OnRowChanged(e);
  1445. if ((this.КлиентыRowChanged != null)) {
  1446. this.КлиентыRowChanged(this, new КлиентыRowChangeEvent(((КлиентыRow)(e.Row)), e.Action));
  1447. }
  1448. }
  1449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1451. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1452. base.OnRowChanging(e);
  1453. if ((this.КлиентыRowChanging != null)) {
  1454. this.КлиентыRowChanging(this, new КлиентыRowChangeEvent(((КлиентыRow)(e.Row)), e.Action));
  1455. }
  1456. }
  1457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1459. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1460. base.OnRowDeleted(e);
  1461. if ((this.КлиентыRowDeleted != null)) {
  1462. this.КлиентыRowDeleted(this, new КлиентыRowChangeEvent(((КлиентыRow)(e.Row)), e.Action));
  1463. }
  1464. }
  1465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1467. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1468. base.OnRowDeleting(e);
  1469. if ((this.КлиентыRowDeleting != null)) {
  1470. this.КлиентыRowDeleting(this, new КлиентыRowChangeEvent(((КлиентыRow)(e.Row)), e.Action));
  1471. }
  1472. }
  1473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1475. public void RemoveКлиентыRow(КлиентыRow row) {
  1476. this.Rows.Remove(row);
  1477. }
  1478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1480. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1481. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1482. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1483. KazarinDE_03DataSet1 ds = new KazarinDE_03DataSet1();
  1484. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1485. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1486. any1.MinOccurs = new decimal(0);
  1487. any1.MaxOccurs = decimal.MaxValue;
  1488. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1489. sequence.Items.Add(any1);
  1490. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1491. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1492. any2.MinOccurs = new decimal(1);
  1493. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1494. sequence.Items.Add(any2);
  1495. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1496. attribute1.Name = "namespace";
  1497. attribute1.FixedValue = ds.Namespace;
  1498. type.Attributes.Add(attribute1);
  1499. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1500. attribute2.Name = "tableTypeName";
  1501. attribute2.FixedValue = "КлиентыDataTable";
  1502. type.Attributes.Add(attribute2);
  1503. type.Particle = sequence;
  1504. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1505. if (xs.Contains(dsSchema.TargetNamespace)) {
  1506. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1507. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1508. try {
  1509. global::System.Xml.Schema.XmlSchema schema = null;
  1510. dsSchema.Write(s1);
  1511. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1512. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1513. s2.SetLength(0);
  1514. schema.Write(s2);
  1515. if ((s1.Length == s2.Length)) {
  1516. s1.Position = 0;
  1517. s2.Position = 0;
  1518. for (; ((s1.Position != s1.Length)
  1519. && (s1.ReadByte() == s2.ReadByte())); ) {
  1520. ;
  1521. }
  1522. if ((s1.Position == s1.Length)) {
  1523. return type;
  1524. }
  1525. }
  1526. }
  1527. }
  1528. finally {
  1529. if ((s1 != null)) {
  1530. s1.Close();
  1531. }
  1532. if ((s2 != null)) {
  1533. s2.Close();
  1534. }
  1535. }
  1536. }
  1537. xs.Add(dsSchema);
  1538. return type;
  1539. }
  1540. }
  1541. /// <summary>
  1542. ///Represents the strongly named DataTable class.
  1543. ///</summary>
  1544. [global::System.Serializable()]
  1545. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1546. public partial class КомплектующиеDataTable : global::System.Data.TypedTableBase<КомплектующиеRow> {
  1547. private global::System.Data.DataColumn columnID_Комплектующего;
  1548. private global::System.Data.DataColumn columnНазвание;
  1549. private global::System.Data.DataColumn columnТип;
  1550. private global::System.Data.DataColumn columnПоставщик;
  1551. private global::System.Data.DataColumn columnКоличествоНаСкладе;
  1552. private global::System.Data.DataColumn columnЕдиницыИзмерения;
  1553. private global::System.Data.DataColumn columnЦена;
  1554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1556. public КомплектующиеDataTable() {
  1557. this.TableName = "Комплектующие";
  1558. this.BeginInit();
  1559. this.InitClass();
  1560. this.EndInit();
  1561. }
  1562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1564. internal КомплектующиеDataTable(global::System.Data.DataTable table) {
  1565. this.TableName = table.TableName;
  1566. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1567. this.CaseSensitive = table.CaseSensitive;
  1568. }
  1569. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1570. this.Locale = table.Locale;
  1571. }
  1572. if ((table.Namespace != table.DataSet.Namespace)) {
  1573. this.Namespace = table.Namespace;
  1574. }
  1575. this.Prefix = table.Prefix;
  1576. this.MinimumCapacity = table.MinimumCapacity;
  1577. }
  1578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1580. protected КомплектующиеDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1581. base(info, context) {
  1582. this.InitVars();
  1583. }
  1584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1586. public global::System.Data.DataColumn ID_КомплектующегоColumn {
  1587. get {
  1588. return this.columnID_Комплектующего;
  1589. }
  1590. }
  1591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1593. public global::System.Data.DataColumn НазваниеColumn {
  1594. get {
  1595. return this.columnНазвание;
  1596. }
  1597. }
  1598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1600. public global::System.Data.DataColumn ТипColumn {
  1601. get {
  1602. return this.columnТип;
  1603. }
  1604. }
  1605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1607. public global::System.Data.DataColumn ПоставщикColumn {
  1608. get {
  1609. return this.columnПоставщик;
  1610. }
  1611. }
  1612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1614. public global::System.Data.DataColumn КоличествоНаСкладеColumn {
  1615. get {
  1616. return this.columnКоличествоНаСкладе;
  1617. }
  1618. }
  1619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1621. public global::System.Data.DataColumn ЕдиницыИзмеренияColumn {
  1622. get {
  1623. return this.columnЕдиницыИзмерения;
  1624. }
  1625. }
  1626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1628. public global::System.Data.DataColumn ЦенаColumn {
  1629. get {
  1630. return this.columnЦена;
  1631. }
  1632. }
  1633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1635. [global::System.ComponentModel.Browsable(false)]
  1636. public int Count {
  1637. get {
  1638. return this.Rows.Count;
  1639. }
  1640. }
  1641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1643. public КомплектующиеRow this[int index] {
  1644. get {
  1645. return ((КомплектующиеRow)(this.Rows[index]));
  1646. }
  1647. }
  1648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1649. public event КомплектующиеRowChangeEventHandler КомплектующиеRowChanging;
  1650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1651. public event КомплектующиеRowChangeEventHandler КомплектующиеRowChanged;
  1652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1653. public event КомплектующиеRowChangeEventHandler КомплектующиеRowDeleting;
  1654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1655. public event КомплектующиеRowChangeEventHandler КомплектующиеRowDeleted;
  1656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1658. public void AddКомплектующиеRow(КомплектующиеRow row) {
  1659. this.Rows.Add(row);
  1660. }
  1661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1663. public КомплектующиеRow AddКомплектующиеRow(string Название, ТипыКомплектующихRow parentТипыКомплектующихRowByFK_Комплектующие_ТипыКомплектующих, ПоставщикиRow parentПоставщикиRowByFK_Комплектующие_Поставщики, int КоличествоНаСкладе, ЕдиницыИзмеренияRow parentЕдиницыИзмеренияRowByFK_Комплектующие_ЕдиницыИзмерения, string Цена) {
  1664. КомплектующиеRow rowКомплектующиеRow = ((КомплектующиеRow)(this.NewRow()));
  1665. object[] columnValuesArray = new object[] {
  1666. null,
  1667. Название,
  1668. null,
  1669. null,
  1670. КоличествоНаСкладе,
  1671. null,
  1672. Цена};
  1673. if ((parentТипыКомплектующихRowByFK_Комплектующие_ТипыКомплектующих != null)) {
  1674. columnValuesArray[2] = parentТипыКомплектующихRowByFK_Комплектующие_ТипыКомплектующих[0];
  1675. }
  1676. if ((parentПоставщикиRowByFK_Комплектующие_Поставщики != null)) {
  1677. columnValuesArray[3] = parentПоставщикиRowByFK_Комплектующие_Поставщики[0];
  1678. }
  1679. if ((parentЕдиницыИзмеренияRowByFK_Комплектующие_ЕдиницыИзмерения != null)) {
  1680. columnValuesArray[5] = parentЕдиницыИзмеренияRowByFK_Комплектующие_ЕдиницыИзмерения[0];
  1681. }
  1682. rowКомплектующиеRow.ItemArray = columnValuesArray;
  1683. this.Rows.Add(rowКомплектующиеRow);
  1684. return rowКомплектующиеRow;
  1685. }
  1686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1688. public КомплектующиеRow FindByID_Комплектующего(int ID_Комплектующего) {
  1689. return ((КомплектующиеRow)(this.Rows.Find(new object[] {
  1690. ID_Комплектующего})));
  1691. }
  1692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1694. public override global::System.Data.DataTable Clone() {
  1695. КомплектующиеDataTable cln = ((КомплектующиеDataTable)(base.Clone()));
  1696. cln.InitVars();
  1697. return cln;
  1698. }
  1699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1701. protected override global::System.Data.DataTable CreateInstance() {
  1702. return new КомплектующиеDataTable();
  1703. }
  1704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1706. internal void InitVars() {
  1707. this.columnID_Комплектующего = base.Columns["ID_Комплектующего"];
  1708. this.columnНазвание = base.Columns["Название"];
  1709. this.columnТип = base.Columns["Тип"];
  1710. this.columnПоставщик = base.Columns["Поставщик"];
  1711. this.columnКоличествоНаСкладе = base.Columns["КоличествоНаСкладе"];
  1712. this.columnЕдиницыИзмерения = base.Columns["ЕдиницыИзмерения"];
  1713. this.columnЦена = base.Columns["Цена"];
  1714. }
  1715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1717. private void InitClass() {
  1718. this.columnID_Комплектующего = new global::System.Data.DataColumn("ID_Комплектующего", typeof(int), null, global::System.Data.MappingType.Element);
  1719. base.Columns.Add(this.columnID_Комплектующего);
  1720. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  1721. base.Columns.Add(this.columnНазвание);
  1722. this.columnТип = new global::System.Data.DataColumn("Тип", typeof(int), null, global::System.Data.MappingType.Element);
  1723. base.Columns.Add(this.columnТип);
  1724. this.columnПоставщик = new global::System.Data.DataColumn("Поставщик", typeof(int), null, global::System.Data.MappingType.Element);
  1725. base.Columns.Add(this.columnПоставщик);
  1726. this.columnКоличествоНаСкладе = new global::System.Data.DataColumn("КоличествоНаСкладе", typeof(int), null, global::System.Data.MappingType.Element);
  1727. base.Columns.Add(this.columnКоличествоНаСкладе);
  1728. this.columnЕдиницыИзмерения = new global::System.Data.DataColumn("ЕдиницыИзмерения", typeof(int), null, global::System.Data.MappingType.Element);
  1729. base.Columns.Add(this.columnЕдиницыИзмерения);
  1730. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(string), null, global::System.Data.MappingType.Element);
  1731. base.Columns.Add(this.columnЦена);
  1732. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1733. this.columnID_Комплектующего}, true));
  1734. this.columnID_Комплектующего.AutoIncrement = true;
  1735. this.columnID_Комплектующего.AutoIncrementSeed = -1;
  1736. this.columnID_Комплектующего.AutoIncrementStep = -1;
  1737. this.columnID_Комплектующего.AllowDBNull = false;
  1738. this.columnID_Комплектующего.ReadOnly = true;
  1739. this.columnID_Комплектующего.Unique = true;
  1740. this.columnНазвание.AllowDBNull = false;
  1741. this.columnНазвание.MaxLength = 50;
  1742. this.columnТип.AllowDBNull = false;
  1743. this.columnЦена.MaxLength = 10;
  1744. }
  1745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1747. public КомплектующиеRow NewКомплектующиеRow() {
  1748. return ((КомплектующиеRow)(this.NewRow()));
  1749. }
  1750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1752. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1753. return new КомплектующиеRow(builder);
  1754. }
  1755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1757. protected override global::System.Type GetRowType() {
  1758. return typeof(КомплектующиеRow);
  1759. }
  1760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1762. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1763. base.OnRowChanged(e);
  1764. if ((this.КомплектующиеRowChanged != null)) {
  1765. this.КомплектующиеRowChanged(this, new КомплектующиеRowChangeEvent(((КомплектующиеRow)(e.Row)), e.Action));
  1766. }
  1767. }
  1768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1770. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1771. base.OnRowChanging(e);
  1772. if ((this.КомплектующиеRowChanging != null)) {
  1773. this.КомплектующиеRowChanging(this, new КомплектующиеRowChangeEvent(((КомплектующиеRow)(e.Row)), e.Action));
  1774. }
  1775. }
  1776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1778. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1779. base.OnRowDeleted(e);
  1780. if ((this.КомплектующиеRowDeleted != null)) {
  1781. this.КомплектующиеRowDeleted(this, new КомплектующиеRowChangeEvent(((КомплектующиеRow)(e.Row)), e.Action));
  1782. }
  1783. }
  1784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1786. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1787. base.OnRowDeleting(e);
  1788. if ((this.КомплектующиеRowDeleting != null)) {
  1789. this.КомплектующиеRowDeleting(this, new КомплектующиеRowChangeEvent(((КомплектующиеRow)(e.Row)), e.Action));
  1790. }
  1791. }
  1792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1794. public void RemoveКомплектующиеRow(КомплектующиеRow row) {
  1795. this.Rows.Remove(row);
  1796. }
  1797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1799. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1800. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1801. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1802. KazarinDE_03DataSet1 ds = new KazarinDE_03DataSet1();
  1803. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1804. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1805. any1.MinOccurs = new decimal(0);
  1806. any1.MaxOccurs = decimal.MaxValue;
  1807. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1808. sequence.Items.Add(any1);
  1809. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1810. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1811. any2.MinOccurs = new decimal(1);
  1812. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1813. sequence.Items.Add(any2);
  1814. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1815. attribute1.Name = "namespace";
  1816. attribute1.FixedValue = ds.Namespace;
  1817. type.Attributes.Add(attribute1);
  1818. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1819. attribute2.Name = "tableTypeName";
  1820. attribute2.FixedValue = "КомплектующиеDataTable";
  1821. type.Attributes.Add(attribute2);
  1822. type.Particle = sequence;
  1823. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1824. if (xs.Contains(dsSchema.TargetNamespace)) {
  1825. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1826. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1827. try {
  1828. global::System.Xml.Schema.XmlSchema schema = null;
  1829. dsSchema.Write(s1);
  1830. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1831. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1832. s2.SetLength(0);
  1833. schema.Write(s2);
  1834. if ((s1.Length == s2.Length)) {
  1835. s1.Position = 0;
  1836. s2.Position = 0;
  1837. for (; ((s1.Position != s1.Length)
  1838. && (s1.ReadByte() == s2.ReadByte())); ) {
  1839. ;
  1840. }
  1841. if ((s1.Position == s1.Length)) {
  1842. return type;
  1843. }
  1844. }
  1845. }
  1846. }
  1847. finally {
  1848. if ((s1 != null)) {
  1849. s1.Close();
  1850. }
  1851. if ((s2 != null)) {
  1852. s2.Close();
  1853. }
  1854. }
  1855. }
  1856. xs.Add(dsSchema);
  1857. return type;
  1858. }
  1859. }
  1860. /// <summary>
  1861. ///Represents the strongly named DataTable class.
  1862. ///</summary>
  1863. [global::System.Serializable()]
  1864. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1865. public partial class КомпьютерыDataTable : global::System.Data.TypedTableBase<КомпьютерыRow> {
  1866. private global::System.Data.DataColumn columnID_ПК;
  1867. private global::System.Data.DataColumn columnМодель;
  1868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1870. public КомпьютерыDataTable() {
  1871. this.TableName = "Компьютеры";
  1872. this.BeginInit();
  1873. this.InitClass();
  1874. this.EndInit();
  1875. }
  1876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1878. internal КомпьютерыDataTable(global::System.Data.DataTable table) {
  1879. this.TableName = table.TableName;
  1880. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1881. this.CaseSensitive = table.CaseSensitive;
  1882. }
  1883. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1884. this.Locale = table.Locale;
  1885. }
  1886. if ((table.Namespace != table.DataSet.Namespace)) {
  1887. this.Namespace = table.Namespace;
  1888. }
  1889. this.Prefix = table.Prefix;
  1890. this.MinimumCapacity = table.MinimumCapacity;
  1891. }
  1892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1894. protected КомпьютерыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1895. base(info, context) {
  1896. this.InitVars();
  1897. }
  1898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1900. public global::System.Data.DataColumn ID_ПКColumn {
  1901. get {
  1902. return this.columnID_ПК;
  1903. }
  1904. }
  1905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1907. public global::System.Data.DataColumn МодельColumn {
  1908. get {
  1909. return this.columnМодель;
  1910. }
  1911. }
  1912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1914. [global::System.ComponentModel.Browsable(false)]
  1915. public int Count {
  1916. get {
  1917. return this.Rows.Count;
  1918. }
  1919. }
  1920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1922. public КомпьютерыRow this[int index] {
  1923. get {
  1924. return ((КомпьютерыRow)(this.Rows[index]));
  1925. }
  1926. }
  1927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1928. public event КомпьютерыRowChangeEventHandler КомпьютерыRowChanging;
  1929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1930. public event КомпьютерыRowChangeEventHandler КомпьютерыRowChanged;
  1931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1932. public event КомпьютерыRowChangeEventHandler КомпьютерыRowDeleting;
  1933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1934. public event КомпьютерыRowChangeEventHandler КомпьютерыRowDeleted;
  1935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1937. public void AddКомпьютерыRow(КомпьютерыRow row) {
  1938. this.Rows.Add(row);
  1939. }
  1940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1942. public КомпьютерыRow AddКомпьютерыRow(string Модель) {
  1943. КомпьютерыRow rowКомпьютерыRow = ((КомпьютерыRow)(this.NewRow()));
  1944. object[] columnValuesArray = new object[] {
  1945. null,
  1946. Модель};
  1947. rowКомпьютерыRow.ItemArray = columnValuesArray;
  1948. this.Rows.Add(rowКомпьютерыRow);
  1949. return rowКомпьютерыRow;
  1950. }
  1951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1953. public КомпьютерыRow FindByID_ПК(int ID_ПК) {
  1954. return ((КомпьютерыRow)(this.Rows.Find(new object[] {
  1955. ID_ПК})));
  1956. }
  1957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1959. public override global::System.Data.DataTable Clone() {
  1960. КомпьютерыDataTable cln = ((КомпьютерыDataTable)(base.Clone()));
  1961. cln.InitVars();
  1962. return cln;
  1963. }
  1964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1966. protected override global::System.Data.DataTable CreateInstance() {
  1967. return new КомпьютерыDataTable();
  1968. }
  1969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1971. internal void InitVars() {
  1972. this.columnID_ПК = base.Columns["ID_ПК"];
  1973. this.columnМодель = base.Columns["Модель"];
  1974. }
  1975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1977. private void InitClass() {
  1978. this.columnID_ПК = new global::System.Data.DataColumn("ID_ПК", typeof(int), null, global::System.Data.MappingType.Element);
  1979. base.Columns.Add(this.columnID_ПК);
  1980. this.columnМодель = new global::System.Data.DataColumn("Модель", typeof(string), null, global::System.Data.MappingType.Element);
  1981. base.Columns.Add(this.columnМодель);
  1982. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1983. this.columnID_ПК}, true));
  1984. this.columnID_ПК.AutoIncrement = true;
  1985. this.columnID_ПК.AutoIncrementSeed = -1;
  1986. this.columnID_ПК.AutoIncrementStep = -1;
  1987. this.columnID_ПК.AllowDBNull = false;
  1988. this.columnID_ПК.ReadOnly = true;
  1989. this.columnID_ПК.Unique = true;
  1990. this.columnМодель.MaxLength = 2147483647;
  1991. }
  1992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1994. public КомпьютерыRow NewКомпьютерыRow() {
  1995. return ((КомпьютерыRow)(this.NewRow()));
  1996. }
  1997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1999. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2000. return new КомпьютерыRow(builder);
  2001. }
  2002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2004. protected override global::System.Type GetRowType() {
  2005. return typeof(КомпьютерыRow);
  2006. }
  2007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2009. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2010. base.OnRowChanged(e);
  2011. if ((this.КомпьютерыRowChanged != null)) {
  2012. this.КомпьютерыRowChanged(this, new КомпьютерыRowChangeEvent(((КомпьютерыRow)(e.Row)), e.Action));
  2013. }
  2014. }
  2015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2017. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2018. base.OnRowChanging(e);
  2019. if ((this.КомпьютерыRowChanging != null)) {
  2020. this.КомпьютерыRowChanging(this, new КомпьютерыRowChangeEvent(((КомпьютерыRow)(e.Row)), e.Action));
  2021. }
  2022. }
  2023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2025. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2026. base.OnRowDeleted(e);
  2027. if ((this.КомпьютерыRowDeleted != null)) {
  2028. this.КомпьютерыRowDeleted(this, new КомпьютерыRowChangeEvent(((КомпьютерыRow)(e.Row)), e.Action));
  2029. }
  2030. }
  2031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2033. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2034. base.OnRowDeleting(e);
  2035. if ((this.КомпьютерыRowDeleting != null)) {
  2036. this.КомпьютерыRowDeleting(this, new КомпьютерыRowChangeEvent(((КомпьютерыRow)(e.Row)), e.Action));
  2037. }
  2038. }
  2039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2041. public void RemoveКомпьютерыRow(КомпьютерыRow row) {
  2042. this.Rows.Remove(row);
  2043. }
  2044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2046. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2047. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2048. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2049. KazarinDE_03DataSet1 ds = new KazarinDE_03DataSet1();
  2050. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2051. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2052. any1.MinOccurs = new decimal(0);
  2053. any1.MaxOccurs = decimal.MaxValue;
  2054. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2055. sequence.Items.Add(any1);
  2056. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2057. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2058. any2.MinOccurs = new decimal(1);
  2059. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2060. sequence.Items.Add(any2);
  2061. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2062. attribute1.Name = "namespace";
  2063. attribute1.FixedValue = ds.Namespace;
  2064. type.Attributes.Add(attribute1);
  2065. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2066. attribute2.Name = "tableTypeName";
  2067. attribute2.FixedValue = "КомпьютерыDataTable";
  2068. type.Attributes.Add(attribute2);
  2069. type.Particle = sequence;
  2070. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2071. if (xs.Contains(dsSchema.TargetNamespace)) {
  2072. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2073. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2074. try {
  2075. global::System.Xml.Schema.XmlSchema schema = null;
  2076. dsSchema.Write(s1);
  2077. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2078. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2079. s2.SetLength(0);
  2080. schema.Write(s2);
  2081. if ((s1.Length == s2.Length)) {
  2082. s1.Position = 0;
  2083. s2.Position = 0;
  2084. for (; ((s1.Position != s1.Length)
  2085. && (s1.ReadByte() == s2.ReadByte())); ) {
  2086. ;
  2087. }
  2088. if ((s1.Position == s1.Length)) {
  2089. return type;
  2090. }
  2091. }
  2092. }
  2093. }
  2094. finally {
  2095. if ((s1 != null)) {
  2096. s1.Close();
  2097. }
  2098. if ((s2 != null)) {
  2099. s2.Close();
  2100. }
  2101. }
  2102. }
  2103. xs.Add(dsSchema);
  2104. return type;
  2105. }
  2106. }
  2107. /// <summary>
  2108. ///Represents the strongly named DataTable class.
  2109. ///</summary>
  2110. [global::System.Serializable()]
  2111. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2112. public partial class ОписаниеСборкиDataTable : global::System.Data.TypedTableBase<ОписаниеСборкиRow> {
  2113. private global::System.Data.DataColumn columnID_ПК;
  2114. private global::System.Data.DataColumn columnID_Комплектующего;
  2115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2117. public ОписаниеСборкиDataTable() {
  2118. this.TableName = "ОписаниеСборки";
  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", "16.0.0.0")]
  2125. internal ОписаниеСборкиDataTable(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", "16.0.0.0")]
  2141. protected ОписаниеСборкиDataTable(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", "16.0.0.0")]
  2147. public global::System.Data.DataColumn ID_ПКColumn {
  2148. get {
  2149. return this.columnID_ПК;
  2150. }
  2151. }
  2152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2154. public global::System.Data.DataColumn ID_КомплектующегоColumn {
  2155. get {
  2156. return this.columnID_Комплектующего;
  2157. }
  2158. }
  2159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2161. [global::System.ComponentModel.Browsable(false)]
  2162. public int Count {
  2163. get {
  2164. return this.Rows.Count;
  2165. }
  2166. }
  2167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2169. public ОписаниеСборкиRow this[int index] {
  2170. get {
  2171. return ((ОписаниеСборкиRow)(this.Rows[index]));
  2172. }
  2173. }
  2174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2175. public event ОписаниеСборкиRowChangeEventHandler ОписаниеСборкиRowChanging;
  2176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2177. public event ОписаниеСборкиRowChangeEventHandler ОписаниеСборкиRowChanged;
  2178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2179. public event ОписаниеСборкиRowChangeEventHandler ОписаниеСборкиRowDeleting;
  2180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2181. public event ОписаниеСборкиRowChangeEventHandler ОписаниеСборкиRowDeleted;
  2182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2184. public void AddОписаниеСборкиRow(ОписаниеСборкиRow row) {
  2185. this.Rows.Add(row);
  2186. }
  2187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2189. public ОписаниеСборкиRow AddОписаниеСборкиRow(КомпьютерыRow parentКомпьютерыRowByFK_ОписаниеСборки_Компьютеры, КомплектующиеRow parentКомплектующиеRowByFK_ОписаниеСборки_Комплектующие) {
  2190. ОписаниеСборкиRow rowОписаниеСборкиRow = ((ОписаниеСборкиRow)(this.NewRow()));
  2191. object[] columnValuesArray = new object[] {
  2192. null,
  2193. null};
  2194. if ((parentКомпьютерыRowByFK_ОписаниеСборки_Компьютеры != null)) {
  2195. columnValuesArray[0] = parentКомпьютерыRowByFK_ОписаниеСборки_Компьютеры[0];
  2196. }
  2197. if ((parentКомплектующиеRowByFK_ОписаниеСборки_Комплектующие != null)) {
  2198. columnValuesArray[1] = parentКомплектующиеRowByFK_ОписаниеСборки_Комплектующие[0];
  2199. }
  2200. rowОписаниеСборкиRow.ItemArray = columnValuesArray;
  2201. this.Rows.Add(rowОписаниеСборкиRow);
  2202. return rowОписаниеСборкиRow;
  2203. }
  2204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2206. public override global::System.Data.DataTable Clone() {
  2207. ОписаниеСборкиDataTable cln = ((ОписаниеСборкиDataTable)(base.Clone()));
  2208. cln.InitVars();
  2209. return cln;
  2210. }
  2211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2213. protected override global::System.Data.DataTable CreateInstance() {
  2214. return new ОписаниеСборкиDataTable();
  2215. }
  2216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2218. internal void InitVars() {
  2219. this.columnID_ПК = base.Columns["ID_ПК"];
  2220. this.columnID_Комплектующего = base.Columns["ID_Комплектующего"];
  2221. }
  2222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2224. private void InitClass() {
  2225. this.columnID_ПК = new global::System.Data.DataColumn("ID_ПК", typeof(int), null, global::System.Data.MappingType.Element);
  2226. base.Columns.Add(this.columnID_ПК);
  2227. this.columnID_Комплектующего = new global::System.Data.DataColumn("ID_Комплектующего", typeof(int), null, global::System.Data.MappingType.Element);
  2228. base.Columns.Add(this.columnID_Комплектующего);
  2229. }
  2230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2232. public ОписаниеСборкиRow NewОписаниеСборкиRow() {
  2233. return ((ОписаниеСборкиRow)(this.NewRow()));
  2234. }
  2235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2237. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2238. return new ОписаниеСборкиRow(builder);
  2239. }
  2240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2242. protected override global::System.Type GetRowType() {
  2243. return typeof(ОписаниеСборкиRow);
  2244. }
  2245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2247. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2248. base.OnRowChanged(e);
  2249. if ((this.ОписаниеСборкиRowChanged != null)) {
  2250. this.ОписаниеСборкиRowChanged(this, new ОписаниеСборкиRowChangeEvent(((ОписаниеСборкиRow)(e.Row)), e.Action));
  2251. }
  2252. }
  2253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2255. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2256. base.OnRowChanging(e);
  2257. if ((this.ОписаниеСборкиRowChanging != null)) {
  2258. this.ОписаниеСборкиRowChanging(this, new ОписаниеСборкиRowChangeEvent(((ОписаниеСборкиRow)(e.Row)), e.Action));
  2259. }
  2260. }
  2261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2263. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2264. base.OnRowDeleted(e);
  2265. if ((this.ОписаниеСборкиRowDeleted != null)) {
  2266. this.ОписаниеСборкиRowDeleted(this, new ОписаниеСборкиRowChangeEvent(((ОписаниеСборкиRow)(e.Row)), e.Action));
  2267. }
  2268. }
  2269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2271. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2272. base.OnRowDeleting(e);
  2273. if ((this.ОписаниеСборкиRowDeleting != null)) {
  2274. this.ОписаниеСборкиRowDeleting(this, new ОписаниеСборкиRowChangeEvent(((ОписаниеСборкиRow)(e.Row)), e.Action));
  2275. }
  2276. }
  2277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2279. public void RemoveОписаниеСборкиRow(ОписаниеСборкиRow row) {
  2280. this.Rows.Remove(row);
  2281. }
  2282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2284. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2285. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2286. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2287. KazarinDE_03DataSet1 ds = new KazarinDE_03DataSet1();
  2288. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2289. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2290. any1.MinOccurs = new decimal(0);
  2291. any1.MaxOccurs = decimal.MaxValue;
  2292. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2293. sequence.Items.Add(any1);
  2294. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2295. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2296. any2.MinOccurs = new decimal(1);
  2297. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2298. sequence.Items.Add(any2);
  2299. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2300. attribute1.Name = "namespace";
  2301. attribute1.FixedValue = ds.Namespace;
  2302. type.Attributes.Add(attribute1);
  2303. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2304. attribute2.Name = "tableTypeName";
  2305. attribute2.FixedValue = "ОписаниеСборкиDataTable";
  2306. type.Attributes.Add(attribute2);
  2307. type.Particle = sequence;
  2308. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2309. if (xs.Contains(dsSchema.TargetNamespace)) {
  2310. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2311. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2312. try {
  2313. global::System.Xml.Schema.XmlSchema schema = null;
  2314. dsSchema.Write(s1);
  2315. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2316. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2317. s2.SetLength(0);
  2318. schema.Write(s2);
  2319. if ((s1.Length == s2.Length)) {
  2320. s1.Position = 0;
  2321. s2.Position = 0;
  2322. for (; ((s1.Position != s1.Length)
  2323. && (s1.ReadByte() == s2.ReadByte())); ) {
  2324. ;
  2325. }
  2326. if ((s1.Position == s1.Length)) {
  2327. return type;
  2328. }
  2329. }
  2330. }
  2331. }
  2332. finally {
  2333. if ((s1 != null)) {
  2334. s1.Close();
  2335. }
  2336. if ((s2 != null)) {
  2337. s2.Close();
  2338. }
  2339. }
  2340. }
  2341. xs.Add(dsSchema);
  2342. return type;
  2343. }
  2344. }
  2345. /// <summary>
  2346. ///Represents the strongly named DataTable class.
  2347. ///</summary>
  2348. [global::System.Serializable()]
  2349. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2350. public partial class ПоставщикиDataTable : global::System.Data.TypedTableBase<ПоставщикиRow> {
  2351. private global::System.Data.DataColumn columnID_Поставщика;
  2352. private global::System.Data.DataColumn columnНаименование;
  2353. private global::System.Data.DataColumn columnТелефон;
  2354. private global::System.Data.DataColumn columnАдрес;
  2355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2357. public ПоставщикиDataTable() {
  2358. this.TableName = "Поставщики";
  2359. this.BeginInit();
  2360. this.InitClass();
  2361. this.EndInit();
  2362. }
  2363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2365. internal ПоставщикиDataTable(global::System.Data.DataTable table) {
  2366. this.TableName = table.TableName;
  2367. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2368. this.CaseSensitive = table.CaseSensitive;
  2369. }
  2370. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2371. this.Locale = table.Locale;
  2372. }
  2373. if ((table.Namespace != table.DataSet.Namespace)) {
  2374. this.Namespace = table.Namespace;
  2375. }
  2376. this.Prefix = table.Prefix;
  2377. this.MinimumCapacity = table.MinimumCapacity;
  2378. }
  2379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2381. protected ПоставщикиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2382. base(info, context) {
  2383. this.InitVars();
  2384. }
  2385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2387. public global::System.Data.DataColumn ID_ПоставщикаColumn {
  2388. get {
  2389. return this.columnID_Поставщика;
  2390. }
  2391. }
  2392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2394. public global::System.Data.DataColumn НаименованиеColumn {
  2395. get {
  2396. return this.columnНаименование;
  2397. }
  2398. }
  2399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2401. public global::System.Data.DataColumn ТелефонColumn {
  2402. get {
  2403. return this.columnТелефон;
  2404. }
  2405. }
  2406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2408. public global::System.Data.DataColumn АдресColumn {
  2409. get {
  2410. return this.columnАдрес;
  2411. }
  2412. }
  2413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2415. [global::System.ComponentModel.Browsable(false)]
  2416. public int Count {
  2417. get {
  2418. return this.Rows.Count;
  2419. }
  2420. }
  2421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2423. public ПоставщикиRow this[int index] {
  2424. get {
  2425. return ((ПоставщикиRow)(this.Rows[index]));
  2426. }
  2427. }
  2428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2429. public event ПоставщикиRowChangeEventHandler ПоставщикиRowChanging;
  2430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2431. public event ПоставщикиRowChangeEventHandler ПоставщикиRowChanged;
  2432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2433. public event ПоставщикиRowChangeEventHandler ПоставщикиRowDeleting;
  2434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2435. public event ПоставщикиRowChangeEventHandler ПоставщикиRowDeleted;
  2436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2438. public void AddПоставщикиRow(ПоставщикиRow row) {
  2439. this.Rows.Add(row);
  2440. }
  2441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2443. public ПоставщикиRow AddПоставщикиRow(string Наименование, string Телефон, string Адрес) {
  2444. ПоставщикиRow rowПоставщикиRow = ((ПоставщикиRow)(this.NewRow()));
  2445. object[] columnValuesArray = new object[] {
  2446. null,
  2447. Наименование,
  2448. Телефон,
  2449. Адрес};
  2450. rowПоставщикиRow.ItemArray = columnValuesArray;
  2451. this.Rows.Add(rowПоставщикиRow);
  2452. return rowПоставщикиRow;
  2453. }
  2454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2456. public ПоставщикиRow FindByID_Поставщика(int ID_Поставщика) {
  2457. return ((ПоставщикиRow)(this.Rows.Find(new object[] {
  2458. ID_Поставщика})));
  2459. }
  2460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2462. public override global::System.Data.DataTable Clone() {
  2463. ПоставщикиDataTable cln = ((ПоставщикиDataTable)(base.Clone()));
  2464. cln.InitVars();
  2465. return cln;
  2466. }
  2467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2469. protected override global::System.Data.DataTable CreateInstance() {
  2470. return new ПоставщикиDataTable();
  2471. }
  2472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2474. internal void InitVars() {
  2475. this.columnID_Поставщика = base.Columns["ID_Поставщика"];
  2476. this.columnНаименование = base.Columns["Наименование"];
  2477. this.columnТелефон = base.Columns["Телефон"];
  2478. this.columnАдрес = base.Columns["Адрес"];
  2479. }
  2480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2482. private void InitClass() {
  2483. this.columnID_Поставщика = new global::System.Data.DataColumn("ID_Поставщика", typeof(int), null, global::System.Data.MappingType.Element);
  2484. base.Columns.Add(this.columnID_Поставщика);
  2485. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  2486. base.Columns.Add(this.columnНаименование);
  2487. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  2488. base.Columns.Add(this.columnТелефон);
  2489. this.columnАдрес = new global::System.Data.DataColumn("Адрес", typeof(string), null, global::System.Data.MappingType.Element);
  2490. base.Columns.Add(this.columnАдрес);
  2491. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2492. this.columnID_Поставщика}, true));
  2493. this.columnID_Поставщика.AutoIncrement = true;
  2494. this.columnID_Поставщика.AutoIncrementSeed = -1;
  2495. this.columnID_Поставщика.AutoIncrementStep = -1;
  2496. this.columnID_Поставщика.AllowDBNull = false;
  2497. this.columnID_Поставщика.ReadOnly = true;
  2498. this.columnID_Поставщика.Unique = true;
  2499. this.columnНаименование.MaxLength = 50;
  2500. this.columnТелефон.MaxLength = 11;
  2501. this.columnАдрес.MaxLength = 50;
  2502. }
  2503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2505. public ПоставщикиRow NewПоставщикиRow() {
  2506. return ((ПоставщикиRow)(this.NewRow()));
  2507. }
  2508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2510. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2511. return new ПоставщикиRow(builder);
  2512. }
  2513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2515. protected override global::System.Type GetRowType() {
  2516. return typeof(ПоставщикиRow);
  2517. }
  2518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2520. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2521. base.OnRowChanged(e);
  2522. if ((this.ПоставщикиRowChanged != null)) {
  2523. this.ПоставщикиRowChanged(this, new ПоставщикиRowChangeEvent(((ПоставщикиRow)(e.Row)), e.Action));
  2524. }
  2525. }
  2526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2528. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2529. base.OnRowChanging(e);
  2530. if ((this.ПоставщикиRowChanging != null)) {
  2531. this.ПоставщикиRowChanging(this, new ПоставщикиRowChangeEvent(((ПоставщикиRow)(e.Row)), e.Action));
  2532. }
  2533. }
  2534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2536. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2537. base.OnRowDeleted(e);
  2538. if ((this.ПоставщикиRowDeleted != null)) {
  2539. this.ПоставщикиRowDeleted(this, new ПоставщикиRowChangeEvent(((ПоставщикиRow)(e.Row)), e.Action));
  2540. }
  2541. }
  2542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2544. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2545. base.OnRowDeleting(e);
  2546. if ((this.ПоставщикиRowDeleting != null)) {
  2547. this.ПоставщикиRowDeleting(this, new ПоставщикиRowChangeEvent(((ПоставщикиRow)(e.Row)), e.Action));
  2548. }
  2549. }
  2550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2552. public void RemoveПоставщикиRow(ПоставщикиRow row) {
  2553. this.Rows.Remove(row);
  2554. }
  2555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2557. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2558. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2559. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2560. KazarinDE_03DataSet1 ds = new KazarinDE_03DataSet1();
  2561. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2562. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2563. any1.MinOccurs = new decimal(0);
  2564. any1.MaxOccurs = decimal.MaxValue;
  2565. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2566. sequence.Items.Add(any1);
  2567. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2568. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2569. any2.MinOccurs = new decimal(1);
  2570. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2571. sequence.Items.Add(any2);
  2572. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2573. attribute1.Name = "namespace";
  2574. attribute1.FixedValue = ds.Namespace;
  2575. type.Attributes.Add(attribute1);
  2576. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2577. attribute2.Name = "tableTypeName";
  2578. attribute2.FixedValue = "ПоставщикиDataTable";
  2579. type.Attributes.Add(attribute2);
  2580. type.Particle = sequence;
  2581. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2582. if (xs.Contains(dsSchema.TargetNamespace)) {
  2583. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2584. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2585. try {
  2586. global::System.Xml.Schema.XmlSchema schema = null;
  2587. dsSchema.Write(s1);
  2588. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2589. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2590. s2.SetLength(0);
  2591. schema.Write(s2);
  2592. if ((s1.Length == s2.Length)) {
  2593. s1.Position = 0;
  2594. s2.Position = 0;
  2595. for (; ((s1.Position != s1.Length)
  2596. && (s1.ReadByte() == s2.ReadByte())); ) {
  2597. ;
  2598. }
  2599. if ((s1.Position == s1.Length)) {
  2600. return type;
  2601. }
  2602. }
  2603. }
  2604. }
  2605. finally {
  2606. if ((s1 != null)) {
  2607. s1.Close();
  2608. }
  2609. if ((s2 != null)) {
  2610. s2.Close();
  2611. }
  2612. }
  2613. }
  2614. xs.Add(dsSchema);
  2615. return type;
  2616. }
  2617. }
  2618. /// <summary>
  2619. ///Represents the strongly named DataTable class.
  2620. ///</summary>
  2621. [global::System.Serializable()]
  2622. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2623. public partial class РолиDataTable : global::System.Data.TypedTableBase<РолиRow> {
  2624. private global::System.Data.DataColumn columnID_Роли;
  2625. private global::System.Data.DataColumn columnНазвание;
  2626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2628. public РолиDataTable() {
  2629. this.TableName = "Роли";
  2630. this.BeginInit();
  2631. this.InitClass();
  2632. this.EndInit();
  2633. }
  2634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2636. internal РолиDataTable(global::System.Data.DataTable table) {
  2637. this.TableName = table.TableName;
  2638. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2639. this.CaseSensitive = table.CaseSensitive;
  2640. }
  2641. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2642. this.Locale = table.Locale;
  2643. }
  2644. if ((table.Namespace != table.DataSet.Namespace)) {
  2645. this.Namespace = table.Namespace;
  2646. }
  2647. this.Prefix = table.Prefix;
  2648. this.MinimumCapacity = table.MinimumCapacity;
  2649. }
  2650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2652. protected РолиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2653. base(info, context) {
  2654. this.InitVars();
  2655. }
  2656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2658. public global::System.Data.DataColumn ID_РолиColumn {
  2659. get {
  2660. return this.columnID_Роли;
  2661. }
  2662. }
  2663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2665. public global::System.Data.DataColumn НазваниеColumn {
  2666. get {
  2667. return this.columnНазвание;
  2668. }
  2669. }
  2670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2672. [global::System.ComponentModel.Browsable(false)]
  2673. public int Count {
  2674. get {
  2675. return this.Rows.Count;
  2676. }
  2677. }
  2678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2680. public РолиRow this[int index] {
  2681. get {
  2682. return ((РолиRow)(this.Rows[index]));
  2683. }
  2684. }
  2685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2686. public event РолиRowChangeEventHandler РолиRowChanging;
  2687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2688. public event РолиRowChangeEventHandler РолиRowChanged;
  2689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2690. public event РолиRowChangeEventHandler РолиRowDeleting;
  2691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2692. public event РолиRowChangeEventHandler РолиRowDeleted;
  2693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2695. public void AddРолиRow(РолиRow row) {
  2696. this.Rows.Add(row);
  2697. }
  2698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2700. public РолиRow AddРолиRow(string Название) {
  2701. РолиRow rowРолиRow = ((РолиRow)(this.NewRow()));
  2702. object[] columnValuesArray = new object[] {
  2703. null,
  2704. Название};
  2705. rowРолиRow.ItemArray = columnValuesArray;
  2706. this.Rows.Add(rowРолиRow);
  2707. return rowРолиRow;
  2708. }
  2709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2711. public РолиRow FindByID_Роли(int ID_Роли) {
  2712. return ((РолиRow)(this.Rows.Find(new object[] {
  2713. ID_Роли})));
  2714. }
  2715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2717. public override global::System.Data.DataTable Clone() {
  2718. РолиDataTable cln = ((РолиDataTable)(base.Clone()));
  2719. cln.InitVars();
  2720. return cln;
  2721. }
  2722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2724. protected override global::System.Data.DataTable CreateInstance() {
  2725. return new РолиDataTable();
  2726. }
  2727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2729. internal void InitVars() {
  2730. this.columnID_Роли = base.Columns["ID_Роли"];
  2731. this.columnНазвание = base.Columns["Название"];
  2732. }
  2733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2735. private void InitClass() {
  2736. this.columnID_Роли = new global::System.Data.DataColumn("ID_Роли", typeof(int), null, global::System.Data.MappingType.Element);
  2737. base.Columns.Add(this.columnID_Роли);
  2738. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  2739. base.Columns.Add(this.columnНазвание);
  2740. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2741. this.columnID_Роли}, true));
  2742. this.columnID_Роли.AutoIncrement = true;
  2743. this.columnID_Роли.AutoIncrementSeed = -1;
  2744. this.columnID_Роли.AutoIncrementStep = -1;
  2745. this.columnID_Роли.AllowDBNull = false;
  2746. this.columnID_Роли.ReadOnly = true;
  2747. this.columnID_Роли.Unique = true;
  2748. this.columnНазвание.AllowDBNull = false;
  2749. this.columnНазвание.MaxLength = 50;
  2750. }
  2751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2753. public РолиRow NewРолиRow() {
  2754. return ((РолиRow)(this.NewRow()));
  2755. }
  2756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2758. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2759. return new РолиRow(builder);
  2760. }
  2761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2763. protected override global::System.Type GetRowType() {
  2764. return typeof(РолиRow);
  2765. }
  2766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2768. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2769. base.OnRowChanged(e);
  2770. if ((this.РолиRowChanged != null)) {
  2771. this.РолиRowChanged(this, new РолиRowChangeEvent(((РолиRow)(e.Row)), e.Action));
  2772. }
  2773. }
  2774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2776. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2777. base.OnRowChanging(e);
  2778. if ((this.РолиRowChanging != null)) {
  2779. this.РолиRowChanging(this, new РолиRowChangeEvent(((РолиRow)(e.Row)), e.Action));
  2780. }
  2781. }
  2782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2784. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2785. base.OnRowDeleted(e);
  2786. if ((this.РолиRowDeleted != null)) {
  2787. this.РолиRowDeleted(this, new РолиRowChangeEvent(((РолиRow)(e.Row)), e.Action));
  2788. }
  2789. }
  2790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2792. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2793. base.OnRowDeleting(e);
  2794. if ((this.РолиRowDeleting != null)) {
  2795. this.РолиRowDeleting(this, new РолиRowChangeEvent(((РолиRow)(e.Row)), e.Action));
  2796. }
  2797. }
  2798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2800. public void RemoveРолиRow(РолиRow row) {
  2801. this.Rows.Remove(row);
  2802. }
  2803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2805. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2806. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2807. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2808. KazarinDE_03DataSet1 ds = new KazarinDE_03DataSet1();
  2809. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2810. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2811. any1.MinOccurs = new decimal(0);
  2812. any1.MaxOccurs = decimal.MaxValue;
  2813. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2814. sequence.Items.Add(any1);
  2815. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2816. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2817. any2.MinOccurs = new decimal(1);
  2818. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2819. sequence.Items.Add(any2);
  2820. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2821. attribute1.Name = "namespace";
  2822. attribute1.FixedValue = ds.Namespace;
  2823. type.Attributes.Add(attribute1);
  2824. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2825. attribute2.Name = "tableTypeName";
  2826. attribute2.FixedValue = "РолиDataTable";
  2827. type.Attributes.Add(attribute2);
  2828. type.Particle = sequence;
  2829. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2830. if (xs.Contains(dsSchema.TargetNamespace)) {
  2831. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2832. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2833. try {
  2834. global::System.Xml.Schema.XmlSchema schema = null;
  2835. dsSchema.Write(s1);
  2836. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2837. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2838. s2.SetLength(0);
  2839. schema.Write(s2);
  2840. if ((s1.Length == s2.Length)) {
  2841. s1.Position = 0;
  2842. s2.Position = 0;
  2843. for (; ((s1.Position != s1.Length)
  2844. && (s1.ReadByte() == s2.ReadByte())); ) {
  2845. ;
  2846. }
  2847. if ((s1.Position == s1.Length)) {
  2848. return type;
  2849. }
  2850. }
  2851. }
  2852. }
  2853. finally {
  2854. if ((s1 != null)) {
  2855. s1.Close();
  2856. }
  2857. if ((s2 != null)) {
  2858. s2.Close();
  2859. }
  2860. }
  2861. }
  2862. xs.Add(dsSchema);
  2863. return type;
  2864. }
  2865. }
  2866. /// <summary>
  2867. ///Represents the strongly named DataTable class.
  2868. ///</summary>
  2869. [global::System.Serializable()]
  2870. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2871. public partial class СборкаDataTable : global::System.Data.TypedTableBase<СборкаRow> {
  2872. private global::System.Data.DataColumn columnID_Сборки;
  2873. private global::System.Data.DataColumn columnID_ПК;
  2874. private global::System.Data.DataColumn columnID_Мастера;
  2875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2877. public СборкаDataTable() {
  2878. this.TableName = "Сборка";
  2879. this.BeginInit();
  2880. this.InitClass();
  2881. this.EndInit();
  2882. }
  2883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2885. internal СборкаDataTable(global::System.Data.DataTable table) {
  2886. this.TableName = table.TableName;
  2887. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2888. this.CaseSensitive = table.CaseSensitive;
  2889. }
  2890. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2891. this.Locale = table.Locale;
  2892. }
  2893. if ((table.Namespace != table.DataSet.Namespace)) {
  2894. this.Namespace = table.Namespace;
  2895. }
  2896. this.Prefix = table.Prefix;
  2897. this.MinimumCapacity = table.MinimumCapacity;
  2898. }
  2899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2901. protected СборкаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2902. base(info, context) {
  2903. this.InitVars();
  2904. }
  2905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2907. public global::System.Data.DataColumn ID_СборкиColumn {
  2908. get {
  2909. return this.columnID_Сборки;
  2910. }
  2911. }
  2912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2914. public global::System.Data.DataColumn ID_ПКColumn {
  2915. get {
  2916. return this.columnID_ПК;
  2917. }
  2918. }
  2919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2921. public global::System.Data.DataColumn ID_МастераColumn {
  2922. get {
  2923. return this.columnID_Мастера;
  2924. }
  2925. }
  2926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2928. [global::System.ComponentModel.Browsable(false)]
  2929. public int Count {
  2930. get {
  2931. return this.Rows.Count;
  2932. }
  2933. }
  2934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2936. public СборкаRow this[int index] {
  2937. get {
  2938. return ((СборкаRow)(this.Rows[index]));
  2939. }
  2940. }
  2941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2942. public event СборкаRowChangeEventHandler СборкаRowChanging;
  2943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2944. public event СборкаRowChangeEventHandler СборкаRowChanged;
  2945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2946. public event СборкаRowChangeEventHandler СборкаRowDeleting;
  2947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2948. public event СборкаRowChangeEventHandler СборкаRowDeleted;
  2949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2951. public void AddСборкаRow(СборкаRow row) {
  2952. this.Rows.Add(row);
  2953. }
  2954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2956. public СборкаRow AddСборкаRow(КомпьютерыRow parentКомпьютерыRowByFK_Сборка_Компьютеры, СотрудникиRow parentСотрудникиRowByFK_Сборка_Сотрудники) {
  2957. СборкаRow rowСборкаRow = ((СборкаRow)(this.NewRow()));
  2958. object[] columnValuesArray = new object[] {
  2959. null,
  2960. null,
  2961. null};
  2962. if ((parentКомпьютерыRowByFK_Сборка_Компьютеры != null)) {
  2963. columnValuesArray[1] = parentКомпьютерыRowByFK_Сборка_Компьютеры[0];
  2964. }
  2965. if ((parentСотрудникиRowByFK_Сборка_Сотрудники != null)) {
  2966. columnValuesArray[2] = parentСотрудникиRowByFK_Сборка_Сотрудники[0];
  2967. }
  2968. rowСборкаRow.ItemArray = columnValuesArray;
  2969. this.Rows.Add(rowСборкаRow);
  2970. return rowСборкаRow;
  2971. }
  2972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2974. public СборкаRow FindByID_Сборки(int ID_Сборки) {
  2975. return ((СборкаRow)(this.Rows.Find(new object[] {
  2976. ID_Сборки})));
  2977. }
  2978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2980. public override global::System.Data.DataTable Clone() {
  2981. СборкаDataTable cln = ((СборкаDataTable)(base.Clone()));
  2982. cln.InitVars();
  2983. return cln;
  2984. }
  2985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2987. protected override global::System.Data.DataTable CreateInstance() {
  2988. return new СборкаDataTable();
  2989. }
  2990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2992. internal void InitVars() {
  2993. this.columnID_Сборки = base.Columns["ID_Сборки"];
  2994. this.columnID_ПК = base.Columns["ID_ПК"];
  2995. this.columnID_Мастера = base.Columns["ID_Мастера"];
  2996. }
  2997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2999. private void InitClass() {
  3000. this.columnID_Сборки = new global::System.Data.DataColumn("ID_Сборки", typeof(int), null, global::System.Data.MappingType.Element);
  3001. base.Columns.Add(this.columnID_Сборки);
  3002. this.columnID_ПК = new global::System.Data.DataColumn("ID_ПК", typeof(int), null, global::System.Data.MappingType.Element);
  3003. base.Columns.Add(this.columnID_ПК);
  3004. this.columnID_Мастера = new global::System.Data.DataColumn("ID_Мастера", typeof(int), null, global::System.Data.MappingType.Element);
  3005. base.Columns.Add(this.columnID_Мастера);
  3006. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3007. this.columnID_Сборки}, true));
  3008. this.columnID_Сборки.AutoIncrement = true;
  3009. this.columnID_Сборки.AutoIncrementSeed = -1;
  3010. this.columnID_Сборки.AutoIncrementStep = -1;
  3011. this.columnID_Сборки.AllowDBNull = false;
  3012. this.columnID_Сборки.ReadOnly = true;
  3013. this.columnID_Сборки.Unique = true;
  3014. }
  3015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3017. public СборкаRow NewСборкаRow() {
  3018. return ((СборкаRow)(this.NewRow()));
  3019. }
  3020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3022. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3023. return new СборкаRow(builder);
  3024. }
  3025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3027. protected override global::System.Type GetRowType() {
  3028. return typeof(СборкаRow);
  3029. }
  3030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3032. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3033. base.OnRowChanged(e);
  3034. if ((this.СборкаRowChanged != null)) {
  3035. this.СборкаRowChanged(this, new СборкаRowChangeEvent(((СборкаRow)(e.Row)), e.Action));
  3036. }
  3037. }
  3038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3040. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3041. base.OnRowChanging(e);
  3042. if ((this.СборкаRowChanging != null)) {
  3043. this.СборкаRowChanging(this, new СборкаRowChangeEvent(((СборкаRow)(e.Row)), e.Action));
  3044. }
  3045. }
  3046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3048. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3049. base.OnRowDeleted(e);
  3050. if ((this.СборкаRowDeleted != null)) {
  3051. this.СборкаRowDeleted(this, new СборкаRowChangeEvent(((СборкаRow)(e.Row)), e.Action));
  3052. }
  3053. }
  3054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3056. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3057. base.OnRowDeleting(e);
  3058. if ((this.СборкаRowDeleting != null)) {
  3059. this.СборкаRowDeleting(this, new СборкаRowChangeEvent(((СборкаRow)(e.Row)), e.Action));
  3060. }
  3061. }
  3062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3064. public void RemoveСборкаRow(СборкаRow row) {
  3065. this.Rows.Remove(row);
  3066. }
  3067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3069. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3070. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3071. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3072. KazarinDE_03DataSet1 ds = new KazarinDE_03DataSet1();
  3073. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3074. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3075. any1.MinOccurs = new decimal(0);
  3076. any1.MaxOccurs = decimal.MaxValue;
  3077. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3078. sequence.Items.Add(any1);
  3079. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3080. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3081. any2.MinOccurs = new decimal(1);
  3082. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3083. sequence.Items.Add(any2);
  3084. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3085. attribute1.Name = "namespace";
  3086. attribute1.FixedValue = ds.Namespace;
  3087. type.Attributes.Add(attribute1);
  3088. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3089. attribute2.Name = "tableTypeName";
  3090. attribute2.FixedValue = "СборкаDataTable";
  3091. type.Attributes.Add(attribute2);
  3092. type.Particle = sequence;
  3093. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3094. if (xs.Contains(dsSchema.TargetNamespace)) {
  3095. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3096. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3097. try {
  3098. global::System.Xml.Schema.XmlSchema schema = null;
  3099. dsSchema.Write(s1);
  3100. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3101. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3102. s2.SetLength(0);
  3103. schema.Write(s2);
  3104. if ((s1.Length == s2.Length)) {
  3105. s1.Position = 0;
  3106. s2.Position = 0;
  3107. for (; ((s1.Position != s1.Length)
  3108. && (s1.ReadByte() == s2.ReadByte())); ) {
  3109. ;
  3110. }
  3111. if ((s1.Position == s1.Length)) {
  3112. return type;
  3113. }
  3114. }
  3115. }
  3116. }
  3117. finally {
  3118. if ((s1 != null)) {
  3119. s1.Close();
  3120. }
  3121. if ((s2 != null)) {
  3122. s2.Close();
  3123. }
  3124. }
  3125. }
  3126. xs.Add(dsSchema);
  3127. return type;
  3128. }
  3129. }
  3130. /// <summary>
  3131. ///Represents the strongly named DataTable class.
  3132. ///</summary>
  3133. [global::System.Serializable()]
  3134. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3135. public partial class СотрудникиDataTable : global::System.Data.TypedTableBase<СотрудникиRow> {
  3136. private global::System.Data.DataColumn columnID;
  3137. private global::System.Data.DataColumn columnИмя;
  3138. private global::System.Data.DataColumn columnФамилия;
  3139. private global::System.Data.DataColumn columnОтчество;
  3140. private global::System.Data.DataColumn columnРоль;
  3141. private global::System.Data.DataColumn columnДатаРождения;
  3142. private global::System.Data.DataColumn columnТелефон;
  3143. private global::System.Data.DataColumn columnАдрес;
  3144. private global::System.Data.DataColumn columnUsername;
  3145. private global::System.Data.DataColumn columnPassword;
  3146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3148. public СотрудникиDataTable() {
  3149. this.TableName = "Сотрудники";
  3150. this.BeginInit();
  3151. this.InitClass();
  3152. this.EndInit();
  3153. }
  3154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3156. internal СотрудникиDataTable(global::System.Data.DataTable table) {
  3157. this.TableName = table.TableName;
  3158. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3159. this.CaseSensitive = table.CaseSensitive;
  3160. }
  3161. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3162. this.Locale = table.Locale;
  3163. }
  3164. if ((table.Namespace != table.DataSet.Namespace)) {
  3165. this.Namespace = table.Namespace;
  3166. }
  3167. this.Prefix = table.Prefix;
  3168. this.MinimumCapacity = table.MinimumCapacity;
  3169. }
  3170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3172. protected СотрудникиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3173. base(info, context) {
  3174. this.InitVars();
  3175. }
  3176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3178. public global::System.Data.DataColumn IDColumn {
  3179. get {
  3180. return this.columnID;
  3181. }
  3182. }
  3183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3185. public global::System.Data.DataColumn ИмяColumn {
  3186. get {
  3187. return this.columnИмя;
  3188. }
  3189. }
  3190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3192. public global::System.Data.DataColumn ФамилияColumn {
  3193. get {
  3194. return this.columnФамилия;
  3195. }
  3196. }
  3197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3199. public global::System.Data.DataColumn ОтчествоColumn {
  3200. get {
  3201. return this.columnОтчество;
  3202. }
  3203. }
  3204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3206. public global::System.Data.DataColumn РольColumn {
  3207. get {
  3208. return this.columnРоль;
  3209. }
  3210. }
  3211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3213. public global::System.Data.DataColumn ДатаРожденияColumn {
  3214. get {
  3215. return this.columnДатаРождения;
  3216. }
  3217. }
  3218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3220. public global::System.Data.DataColumn ТелефонColumn {
  3221. get {
  3222. return this.columnТелефон;
  3223. }
  3224. }
  3225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3227. public global::System.Data.DataColumn АдресColumn {
  3228. get {
  3229. return this.columnАдрес;
  3230. }
  3231. }
  3232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3234. public global::System.Data.DataColumn UsernameColumn {
  3235. get {
  3236. return this.columnUsername;
  3237. }
  3238. }
  3239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3241. public global::System.Data.DataColumn PasswordColumn {
  3242. get {
  3243. return this.columnPassword;
  3244. }
  3245. }
  3246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3248. [global::System.ComponentModel.Browsable(false)]
  3249. public int Count {
  3250. get {
  3251. return this.Rows.Count;
  3252. }
  3253. }
  3254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3256. public СотрудникиRow this[int index] {
  3257. get {
  3258. return ((СотрудникиRow)(this.Rows[index]));
  3259. }
  3260. }
  3261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3262. public event СотрудникиRowChangeEventHandler СотрудникиRowChanging;
  3263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3264. public event СотрудникиRowChangeEventHandler СотрудникиRowChanged;
  3265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3266. public event СотрудникиRowChangeEventHandler СотрудникиRowDeleting;
  3267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3268. public event СотрудникиRowChangeEventHandler СотрудникиRowDeleted;
  3269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3271. public void AddСотрудникиRow(СотрудникиRow row) {
  3272. this.Rows.Add(row);
  3273. }
  3274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3276. public СотрудникиRow AddСотрудникиRow(string Имя, string Фамилия, string Отчество, РолиRow parentРолиRowByFK_Сотрудники_Роли, System.DateTime ДатаРождения, string Телефон, string Адрес, string Username, string Password) {
  3277. СотрудникиRow rowСотрудникиRow = ((СотрудникиRow)(this.NewRow()));
  3278. object[] columnValuesArray = new object[] {
  3279. null,
  3280. Имя,
  3281. Фамилия,
  3282. Отчество,
  3283. null,
  3284. ДатаРождения,
  3285. Телефон,
  3286. Адрес,
  3287. Username,
  3288. Password};
  3289. if ((parentРолиRowByFK_Сотрудники_Роли != null)) {
  3290. columnValuesArray[4] = parentРолиRowByFK_Сотрудники_Роли[0];
  3291. }
  3292. rowСотрудникиRow.ItemArray = columnValuesArray;
  3293. this.Rows.Add(rowСотрудникиRow);
  3294. return rowСотрудникиRow;
  3295. }
  3296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3298. public СотрудникиRow FindByID(int ID) {
  3299. return ((СотрудникиRow)(this.Rows.Find(new object[] {
  3300. ID})));
  3301. }
  3302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3304. public override global::System.Data.DataTable Clone() {
  3305. СотрудникиDataTable cln = ((СотрудникиDataTable)(base.Clone()));
  3306. cln.InitVars();
  3307. return cln;
  3308. }
  3309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3311. protected override global::System.Data.DataTable CreateInstance() {
  3312. return new СотрудникиDataTable();
  3313. }
  3314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3316. internal void InitVars() {
  3317. this.columnID = base.Columns["ID"];
  3318. this.columnИмя = base.Columns["Имя"];
  3319. this.columnФамилия = base.Columns["Фамилия"];
  3320. this.columnОтчество = base.Columns["Отчество"];
  3321. this.columnРоль = base.Columns["Роль"];
  3322. this.columnДатаРождения = base.Columns["ДатаРождения"];
  3323. this.columnТелефон = base.Columns["Телефон"];
  3324. this.columnАдрес = base.Columns["Адрес"];
  3325. this.columnUsername = base.Columns["Username"];
  3326. this.columnPassword = base.Columns["Password"];
  3327. }
  3328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3330. private void InitClass() {
  3331. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3332. base.Columns.Add(this.columnID);
  3333. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  3334. base.Columns.Add(this.columnИмя);
  3335. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  3336. base.Columns.Add(this.columnФамилия);
  3337. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  3338. base.Columns.Add(this.columnОтчество);
  3339. this.columnРоль = new global::System.Data.DataColumn("Роль", typeof(int), null, global::System.Data.MappingType.Element);
  3340. base.Columns.Add(this.columnРоль);
  3341. this.columnДатаРождения = new global::System.Data.DataColumn("ДатаРождения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3342. base.Columns.Add(this.columnДатаРождения);
  3343. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  3344. base.Columns.Add(this.columnТелефон);
  3345. this.columnАдрес = new global::System.Data.DataColumn("Адрес", typeof(string), null, global::System.Data.MappingType.Element);
  3346. base.Columns.Add(this.columnАдрес);
  3347. this.columnUsername = new global::System.Data.DataColumn("Username", typeof(string), null, global::System.Data.MappingType.Element);
  3348. base.Columns.Add(this.columnUsername);
  3349. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  3350. base.Columns.Add(this.columnPassword);
  3351. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3352. this.columnID}, true));
  3353. this.columnID.AutoIncrement = true;
  3354. this.columnID.AutoIncrementSeed = -1;
  3355. this.columnID.AutoIncrementStep = -1;
  3356. this.columnID.AllowDBNull = false;
  3357. this.columnID.ReadOnly = true;
  3358. this.columnID.Unique = true;
  3359. this.columnИмя.MaxLength = 20;
  3360. this.columnФамилия.MaxLength = 20;
  3361. this.columnОтчество.MaxLength = 20;
  3362. this.columnРоль.AllowDBNull = false;
  3363. this.columnДатаРождения.AllowDBNull = false;
  3364. this.columnТелефон.AllowDBNull = false;
  3365. this.columnТелефон.MaxLength = 11;
  3366. this.columnАдрес.AllowDBNull = false;
  3367. this.columnАдрес.MaxLength = 70;
  3368. this.columnUsername.AllowDBNull = false;
  3369. this.columnUsername.MaxLength = 20;
  3370. this.columnPassword.AllowDBNull = false;
  3371. this.columnPassword.MaxLength = 20;
  3372. }
  3373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3375. public СотрудникиRow NewСотрудникиRow() {
  3376. return ((СотрудникиRow)(this.NewRow()));
  3377. }
  3378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3380. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3381. return new СотрудникиRow(builder);
  3382. }
  3383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3385. protected override global::System.Type GetRowType() {
  3386. return typeof(СотрудникиRow);
  3387. }
  3388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3390. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3391. base.OnRowChanged(e);
  3392. if ((this.СотрудникиRowChanged != null)) {
  3393. this.СотрудникиRowChanged(this, new СотрудникиRowChangeEvent(((СотрудникиRow)(e.Row)), e.Action));
  3394. }
  3395. }
  3396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3398. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3399. base.OnRowChanging(e);
  3400. if ((this.СотрудникиRowChanging != null)) {
  3401. this.СотрудникиRowChanging(this, new СотрудникиRowChangeEvent(((СотрудникиRow)(e.Row)), e.Action));
  3402. }
  3403. }
  3404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3406. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3407. base.OnRowDeleted(e);
  3408. if ((this.СотрудникиRowDeleted != null)) {
  3409. this.СотрудникиRowDeleted(this, new СотрудникиRowChangeEvent(((СотрудникиRow)(e.Row)), e.Action));
  3410. }
  3411. }
  3412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3414. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3415. base.OnRowDeleting(e);
  3416. if ((this.СотрудникиRowDeleting != null)) {
  3417. this.СотрудникиRowDeleting(this, new СотрудникиRowChangeEvent(((СотрудникиRow)(e.Row)), e.Action));
  3418. }
  3419. }
  3420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3422. public void RemoveСотрудникиRow(СотрудникиRow row) {
  3423. this.Rows.Remove(row);
  3424. }
  3425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3427. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3428. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3429. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3430. KazarinDE_03DataSet1 ds = new KazarinDE_03DataSet1();
  3431. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3432. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3433. any1.MinOccurs = new decimal(0);
  3434. any1.MaxOccurs = decimal.MaxValue;
  3435. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3436. sequence.Items.Add(any1);
  3437. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3438. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3439. any2.MinOccurs = new decimal(1);
  3440. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3441. sequence.Items.Add(any2);
  3442. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3443. attribute1.Name = "namespace";
  3444. attribute1.FixedValue = ds.Namespace;
  3445. type.Attributes.Add(attribute1);
  3446. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3447. attribute2.Name = "tableTypeName";
  3448. attribute2.FixedValue = "СотрудникиDataTable";
  3449. type.Attributes.Add(attribute2);
  3450. type.Particle = sequence;
  3451. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3452. if (xs.Contains(dsSchema.TargetNamespace)) {
  3453. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3454. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3455. try {
  3456. global::System.Xml.Schema.XmlSchema schema = null;
  3457. dsSchema.Write(s1);
  3458. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3459. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3460. s2.SetLength(0);
  3461. schema.Write(s2);
  3462. if ((s1.Length == s2.Length)) {
  3463. s1.Position = 0;
  3464. s2.Position = 0;
  3465. for (; ((s1.Position != s1.Length)
  3466. && (s1.ReadByte() == s2.ReadByte())); ) {
  3467. ;
  3468. }
  3469. if ((s1.Position == s1.Length)) {
  3470. return type;
  3471. }
  3472. }
  3473. }
  3474. }
  3475. finally {
  3476. if ((s1 != null)) {
  3477. s1.Close();
  3478. }
  3479. if ((s2 != null)) {
  3480. s2.Close();
  3481. }
  3482. }
  3483. }
  3484. xs.Add(dsSchema);
  3485. return type;
  3486. }
  3487. }
  3488. /// <summary>
  3489. ///Represents the strongly named DataTable class.
  3490. ///</summary>
  3491. [global::System.Serializable()]
  3492. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3493. public partial class СтатусыЗаказаDataTable : global::System.Data.TypedTableBase<СтатусыЗаказаRow> {
  3494. private global::System.Data.DataColumn columnID_Статуса;
  3495. private global::System.Data.DataColumn columnНазвание;
  3496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3498. public СтатусыЗаказаDataTable() {
  3499. this.TableName = "СтатусыЗаказа";
  3500. this.BeginInit();
  3501. this.InitClass();
  3502. this.EndInit();
  3503. }
  3504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3506. internal СтатусыЗаказаDataTable(global::System.Data.DataTable table) {
  3507. this.TableName = table.TableName;
  3508. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3509. this.CaseSensitive = table.CaseSensitive;
  3510. }
  3511. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3512. this.Locale = table.Locale;
  3513. }
  3514. if ((table.Namespace != table.DataSet.Namespace)) {
  3515. this.Namespace = table.Namespace;
  3516. }
  3517. this.Prefix = table.Prefix;
  3518. this.MinimumCapacity = table.MinimumCapacity;
  3519. }
  3520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3522. protected СтатусыЗаказаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3523. base(info, context) {
  3524. this.InitVars();
  3525. }
  3526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3528. public global::System.Data.DataColumn ID_СтатусаColumn {
  3529. get {
  3530. return this.columnID_Статуса;
  3531. }
  3532. }
  3533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3535. public global::System.Data.DataColumn НазваниеColumn {
  3536. get {
  3537. return this.columnНазвание;
  3538. }
  3539. }
  3540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3542. [global::System.ComponentModel.Browsable(false)]
  3543. public int Count {
  3544. get {
  3545. return this.Rows.Count;
  3546. }
  3547. }
  3548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3550. public СтатусыЗаказаRow this[int index] {
  3551. get {
  3552. return ((СтатусыЗаказаRow)(this.Rows[index]));
  3553. }
  3554. }
  3555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3556. public event СтатусыЗаказаRowChangeEventHandler СтатусыЗаказаRowChanging;
  3557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3558. public event СтатусыЗаказаRowChangeEventHandler СтатусыЗаказаRowChanged;
  3559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3560. public event СтатусыЗаказаRowChangeEventHandler СтатусыЗаказаRowDeleting;
  3561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3562. public event СтатусыЗаказаRowChangeEventHandler СтатусыЗаказаRowDeleted;
  3563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3565. public void AddСтатусыЗаказаRow(СтатусыЗаказаRow row) {
  3566. this.Rows.Add(row);
  3567. }
  3568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3570. public СтатусыЗаказаRow AddСтатусыЗаказаRow(string Название) {
  3571. СтатусыЗаказаRow rowСтатусыЗаказаRow = ((СтатусыЗаказаRow)(this.NewRow()));
  3572. object[] columnValuesArray = new object[] {
  3573. null,
  3574. Название};
  3575. rowСтатусыЗаказаRow.ItemArray = columnValuesArray;
  3576. this.Rows.Add(rowСтатусыЗаказаRow);
  3577. return rowСтатусыЗаказаRow;
  3578. }
  3579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3581. public СтатусыЗаказаRow FindByID_Статуса(int ID_Статуса) {
  3582. return ((СтатусыЗаказаRow)(this.Rows.Find(new object[] {
  3583. ID_Статуса})));
  3584. }
  3585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3587. public override global::System.Data.DataTable Clone() {
  3588. СтатусыЗаказаDataTable cln = ((СтатусыЗаказаDataTable)(base.Clone()));
  3589. cln.InitVars();
  3590. return cln;
  3591. }
  3592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3594. protected override global::System.Data.DataTable CreateInstance() {
  3595. return new СтатусыЗаказаDataTable();
  3596. }
  3597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3599. internal void InitVars() {
  3600. this.columnID_Статуса = base.Columns["ID_Статуса"];
  3601. this.columnНазвание = base.Columns["Название"];
  3602. }
  3603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3605. private void InitClass() {
  3606. this.columnID_Статуса = new global::System.Data.DataColumn("ID_Статуса", typeof(int), null, global::System.Data.MappingType.Element);
  3607. base.Columns.Add(this.columnID_Статуса);
  3608. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  3609. base.Columns.Add(this.columnНазвание);
  3610. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3611. this.columnID_Статуса}, true));
  3612. this.columnID_Статуса.AutoIncrement = true;
  3613. this.columnID_Статуса.AutoIncrementSeed = -1;
  3614. this.columnID_Статуса.AutoIncrementStep = -1;
  3615. this.columnID_Статуса.AllowDBNull = false;
  3616. this.columnID_Статуса.ReadOnly = true;
  3617. this.columnID_Статуса.Unique = true;
  3618. this.columnНазвание.AllowDBNull = false;
  3619. this.columnНазвание.MaxLength = 10;
  3620. }
  3621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3623. public СтатусыЗаказаRow NewСтатусыЗаказаRow() {
  3624. return ((СтатусыЗаказаRow)(this.NewRow()));
  3625. }
  3626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3628. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3629. return new СтатусыЗаказаRow(builder);
  3630. }
  3631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3633. protected override global::System.Type GetRowType() {
  3634. return typeof(СтатусыЗаказаRow);
  3635. }
  3636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3638. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3639. base.OnRowChanged(e);
  3640. if ((this.СтатусыЗаказаRowChanged != null)) {
  3641. this.СтатусыЗаказаRowChanged(this, new СтатусыЗаказаRowChangeEvent(((СтатусыЗаказаRow)(e.Row)), e.Action));
  3642. }
  3643. }
  3644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3646. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3647. base.OnRowChanging(e);
  3648. if ((this.СтатусыЗаказаRowChanging != null)) {
  3649. this.СтатусыЗаказаRowChanging(this, new СтатусыЗаказаRowChangeEvent(((СтатусыЗаказаRow)(e.Row)), e.Action));
  3650. }
  3651. }
  3652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3654. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3655. base.OnRowDeleted(e);
  3656. if ((this.СтатусыЗаказаRowDeleted != null)) {
  3657. this.СтатусыЗаказаRowDeleted(this, new СтатусыЗаказаRowChangeEvent(((СтатусыЗаказаRow)(e.Row)), e.Action));
  3658. }
  3659. }
  3660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3662. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3663. base.OnRowDeleting(e);
  3664. if ((this.СтатусыЗаказаRowDeleting != null)) {
  3665. this.СтатусыЗаказаRowDeleting(this, new СтатусыЗаказаRowChangeEvent(((СтатусыЗаказаRow)(e.Row)), e.Action));
  3666. }
  3667. }
  3668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3670. public void RemoveСтатусыЗаказаRow(СтатусыЗаказаRow row) {
  3671. this.Rows.Remove(row);
  3672. }
  3673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3675. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3676. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3677. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3678. KazarinDE_03DataSet1 ds = new KazarinDE_03DataSet1();
  3679. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3680. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3681. any1.MinOccurs = new decimal(0);
  3682. any1.MaxOccurs = decimal.MaxValue;
  3683. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3684. sequence.Items.Add(any1);
  3685. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3686. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3687. any2.MinOccurs = new decimal(1);
  3688. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3689. sequence.Items.Add(any2);
  3690. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3691. attribute1.Name = "namespace";
  3692. attribute1.FixedValue = ds.Namespace;
  3693. type.Attributes.Add(attribute1);
  3694. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3695. attribute2.Name = "tableTypeName";
  3696. attribute2.FixedValue = "СтатусыЗаказаDataTable";
  3697. type.Attributes.Add(attribute2);
  3698. type.Particle = sequence;
  3699. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3700. if (xs.Contains(dsSchema.TargetNamespace)) {
  3701. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3702. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3703. try {
  3704. global::System.Xml.Schema.XmlSchema schema = null;
  3705. dsSchema.Write(s1);
  3706. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3707. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3708. s2.SetLength(0);
  3709. schema.Write(s2);
  3710. if ((s1.Length == s2.Length)) {
  3711. s1.Position = 0;
  3712. s2.Position = 0;
  3713. for (; ((s1.Position != s1.Length)
  3714. && (s1.ReadByte() == s2.ReadByte())); ) {
  3715. ;
  3716. }
  3717. if ((s1.Position == s1.Length)) {
  3718. return type;
  3719. }
  3720. }
  3721. }
  3722. }
  3723. finally {
  3724. if ((s1 != null)) {
  3725. s1.Close();
  3726. }
  3727. if ((s2 != null)) {
  3728. s2.Close();
  3729. }
  3730. }
  3731. }
  3732. xs.Add(dsSchema);
  3733. return type;
  3734. }
  3735. }
  3736. /// <summary>
  3737. ///Represents the strongly named DataTable class.
  3738. ///</summary>
  3739. [global::System.Serializable()]
  3740. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3741. public partial class ТипыКомплектующихDataTable : global::System.Data.TypedTableBase<ТипыКомплектующихRow> {
  3742. private global::System.Data.DataColumn columnID_Типа;
  3743. private global::System.Data.DataColumn columnНазвание;
  3744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3746. public ТипыКомплектующихDataTable() {
  3747. this.TableName = "ТипыКомплектующих";
  3748. this.BeginInit();
  3749. this.InitClass();
  3750. this.EndInit();
  3751. }
  3752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3754. internal ТипыКомплектующихDataTable(global::System.Data.DataTable table) {
  3755. this.TableName = table.TableName;
  3756. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3757. this.CaseSensitive = table.CaseSensitive;
  3758. }
  3759. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3760. this.Locale = table.Locale;
  3761. }
  3762. if ((table.Namespace != table.DataSet.Namespace)) {
  3763. this.Namespace = table.Namespace;
  3764. }
  3765. this.Prefix = table.Prefix;
  3766. this.MinimumCapacity = table.MinimumCapacity;
  3767. }
  3768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3770. protected ТипыКомплектующихDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3771. base(info, context) {
  3772. this.InitVars();
  3773. }
  3774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3776. public global::System.Data.DataColumn ID_ТипаColumn {
  3777. get {
  3778. return this.columnID_Типа;
  3779. }
  3780. }
  3781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3783. public global::System.Data.DataColumn НазваниеColumn {
  3784. get {
  3785. return this.columnНазвание;
  3786. }
  3787. }
  3788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3790. [global::System.ComponentModel.Browsable(false)]
  3791. public int Count {
  3792. get {
  3793. return this.Rows.Count;
  3794. }
  3795. }
  3796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3798. public ТипыКомплектующихRow this[int index] {
  3799. get {
  3800. return ((ТипыКомплектующихRow)(this.Rows[index]));
  3801. }
  3802. }
  3803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3804. public event ТипыКомплектующихRowChangeEventHandler ТипыКомплектующихRowChanging;
  3805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3806. public event ТипыКомплектующихRowChangeEventHandler ТипыКомплектующихRowChanged;
  3807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3808. public event ТипыКомплектующихRowChangeEventHandler ТипыКомплектующихRowDeleting;
  3809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3810. public event ТипыКомплектующихRowChangeEventHandler ТипыКомплектующихRowDeleted;
  3811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3813. public void AddТипыКомплектующихRow(ТипыКомплектующихRow row) {
  3814. this.Rows.Add(row);
  3815. }
  3816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3818. public ТипыКомплектующихRow AddТипыКомплектующихRow(string Название) {
  3819. ТипыКомплектующихRow rowТипыКомплектующихRow = ((ТипыКомплектующихRow)(this.NewRow()));
  3820. object[] columnValuesArray = new object[] {
  3821. null,
  3822. Название};
  3823. rowТипыКомплектующихRow.ItemArray = columnValuesArray;
  3824. this.Rows.Add(rowТипыКомплектующихRow);
  3825. return rowТипыКомплектующихRow;
  3826. }
  3827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3829. public ТипыКомплектующихRow FindByID_Типа(int ID_Типа) {
  3830. return ((ТипыКомплектующихRow)(this.Rows.Find(new object[] {
  3831. ID_Типа})));
  3832. }
  3833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3835. public override global::System.Data.DataTable Clone() {
  3836. ТипыКомплектующихDataTable cln = ((ТипыКомплектующихDataTable)(base.Clone()));
  3837. cln.InitVars();
  3838. return cln;
  3839. }
  3840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3842. protected override global::System.Data.DataTable CreateInstance() {
  3843. return new ТипыКомплектующихDataTable();
  3844. }
  3845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3847. internal void InitVars() {
  3848. this.columnID_Типа = base.Columns["ID_Типа"];
  3849. this.columnНазвание = base.Columns["Название"];
  3850. }
  3851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3853. private void InitClass() {
  3854. this.columnID_Типа = new global::System.Data.DataColumn("ID_Типа", typeof(int), null, global::System.Data.MappingType.Element);
  3855. base.Columns.Add(this.columnID_Типа);
  3856. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  3857. base.Columns.Add(this.columnНазвание);
  3858. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3859. this.columnID_Типа}, true));
  3860. this.columnID_Типа.AutoIncrement = true;
  3861. this.columnID_Типа.AutoIncrementSeed = -1;
  3862. this.columnID_Типа.AutoIncrementStep = -1;
  3863. this.columnID_Типа.AllowDBNull = false;
  3864. this.columnID_Типа.ReadOnly = true;
  3865. this.columnID_Типа.Unique = true;
  3866. this.columnНазвание.MaxLength = 50;
  3867. }
  3868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3870. public ТипыКомплектующихRow NewТипыКомплектующихRow() {
  3871. return ((ТипыКомплектующихRow)(this.NewRow()));
  3872. }
  3873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3875. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3876. return new ТипыКомплектующихRow(builder);
  3877. }
  3878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3880. protected override global::System.Type GetRowType() {
  3881. return typeof(ТипыКомплектующихRow);
  3882. }
  3883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3885. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3886. base.OnRowChanged(e);
  3887. if ((this.ТипыКомплектующихRowChanged != null)) {
  3888. this.ТипыКомплектующихRowChanged(this, new ТипыКомплектующихRowChangeEvent(((ТипыКомплектующихRow)(e.Row)), e.Action));
  3889. }
  3890. }
  3891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3893. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3894. base.OnRowChanging(e);
  3895. if ((this.ТипыКомплектующихRowChanging != null)) {
  3896. this.ТипыКомплектующихRowChanging(this, new ТипыКомплектующихRowChangeEvent(((ТипыКомплектующихRow)(e.Row)), e.Action));
  3897. }
  3898. }
  3899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3901. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3902. base.OnRowDeleted(e);
  3903. if ((this.ТипыКомплектующихRowDeleted != null)) {
  3904. this.ТипыКомплектующихRowDeleted(this, new ТипыКомплектующихRowChangeEvent(((ТипыКомплектующихRow)(e.Row)), e.Action));
  3905. }
  3906. }
  3907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3909. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3910. base.OnRowDeleting(e);
  3911. if ((this.ТипыКомплектующихRowDeleting != null)) {
  3912. this.ТипыКомплектующихRowDeleting(this, new ТипыКомплектующихRowChangeEvent(((ТипыКомплектующихRow)(e.Row)), e.Action));
  3913. }
  3914. }
  3915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3917. public void RemoveТипыКомплектующихRow(ТипыКомплектующихRow row) {
  3918. this.Rows.Remove(row);
  3919. }
  3920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3922. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3923. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3924. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3925. KazarinDE_03DataSet1 ds = new KazarinDE_03DataSet1();
  3926. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3927. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3928. any1.MinOccurs = new decimal(0);
  3929. any1.MaxOccurs = decimal.MaxValue;
  3930. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3931. sequence.Items.Add(any1);
  3932. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3933. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3934. any2.MinOccurs = new decimal(1);
  3935. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3936. sequence.Items.Add(any2);
  3937. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3938. attribute1.Name = "namespace";
  3939. attribute1.FixedValue = ds.Namespace;
  3940. type.Attributes.Add(attribute1);
  3941. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3942. attribute2.Name = "tableTypeName";
  3943. attribute2.FixedValue = "ТипыКомплектующихDataTable";
  3944. type.Attributes.Add(attribute2);
  3945. type.Particle = sequence;
  3946. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3947. if (xs.Contains(dsSchema.TargetNamespace)) {
  3948. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3949. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3950. try {
  3951. global::System.Xml.Schema.XmlSchema schema = null;
  3952. dsSchema.Write(s1);
  3953. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3954. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3955. s2.SetLength(0);
  3956. schema.Write(s2);
  3957. if ((s1.Length == s2.Length)) {
  3958. s1.Position = 0;
  3959. s2.Position = 0;
  3960. for (; ((s1.Position != s1.Length)
  3961. && (s1.ReadByte() == s2.ReadByte())); ) {
  3962. ;
  3963. }
  3964. if ((s1.Position == s1.Length)) {
  3965. return type;
  3966. }
  3967. }
  3968. }
  3969. }
  3970. finally {
  3971. if ((s1 != null)) {
  3972. s1.Close();
  3973. }
  3974. if ((s2 != null)) {
  3975. s2.Close();
  3976. }
  3977. }
  3978. }
  3979. xs.Add(dsSchema);
  3980. return type;
  3981. }
  3982. }
  3983. /// <summary>
  3984. ///Represents strongly named DataRow class.
  3985. ///</summary>
  3986. public partial class ЕдиницыИзмеренияRow : global::System.Data.DataRow {
  3987. private ЕдиницыИзмеренияDataTable tableЕдиницыИзмерения;
  3988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3990. internal ЕдиницыИзмеренияRow(global::System.Data.DataRowBuilder rb) :
  3991. base(rb) {
  3992. this.tableЕдиницыИзмерения = ((ЕдиницыИзмеренияDataTable)(this.Table));
  3993. }
  3994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3996. public int ID_ЕдиницИзмерения {
  3997. get {
  3998. return ((int)(this[this.tableЕдиницыИзмерения.ID_ЕдиницИзмеренияColumn]));
  3999. }
  4000. set {
  4001. this[this.tableЕдиницыИзмерения.ID_ЕдиницИзмеренияColumn] = value;
  4002. }
  4003. }
  4004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4006. public string Название {
  4007. get {
  4008. try {
  4009. return ((string)(this[this.tableЕдиницыИзмерения.НазваниеColumn]));
  4010. }
  4011. catch (global::System.InvalidCastException e) {
  4012. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'ЕдиницыИзмерения\' равно DBNull.", e);
  4013. }
  4014. }
  4015. set {
  4016. this[this.tableЕдиницыИзмерения.НазваниеColumn] = value;
  4017. }
  4018. }
  4019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4021. public bool IsНазваниеNull() {
  4022. return this.IsNull(this.tableЕдиницыИзмерения.НазваниеColumn);
  4023. }
  4024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4026. public void SetНазваниеNull() {
  4027. this[this.tableЕдиницыИзмерения.НазваниеColumn] = global::System.Convert.DBNull;
  4028. }
  4029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4031. public КомплектующиеRow[] GetКомплектующиеRows() {
  4032. if ((this.Table.ChildRelations["FK_Комплектующие_ЕдиницыИзмерения"] == null)) {
  4033. return new КомплектующиеRow[0];
  4034. }
  4035. else {
  4036. return ((КомплектующиеRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Комплектующие_ЕдиницыИзмерения"])));
  4037. }
  4038. }
  4039. }
  4040. /// <summary>
  4041. ///Represents strongly named DataRow class.
  4042. ///</summary>
  4043. public partial class ЗаказыRow : global::System.Data.DataRow {
  4044. private ЗаказыDataTable tableЗаказы;
  4045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4047. internal ЗаказыRow(global::System.Data.DataRowBuilder rb) :
  4048. base(rb) {
  4049. this.tableЗаказы = ((ЗаказыDataTable)(this.Table));
  4050. }
  4051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4053. public int ID_Заказа {
  4054. get {
  4055. return ((int)(this[this.tableЗаказы.ID_ЗаказаColumn]));
  4056. }
  4057. set {
  4058. this[this.tableЗаказы.ID_ЗаказаColumn] = value;
  4059. }
  4060. }
  4061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4063. public int НомерЗаказа {
  4064. get {
  4065. try {
  4066. return ((int)(this[this.tableЗаказы.НомерЗаказаColumn]));
  4067. }
  4068. catch (global::System.InvalidCastException e) {
  4069. throw new global::System.Data.StrongTypingException("Значение для столбца \'НомерЗаказа\' в таблице \'Заказы\' равно DBNull.", e);
  4070. }
  4071. }
  4072. set {
  4073. this[this.tableЗаказы.НомерЗаказаColumn] = value;
  4074. }
  4075. }
  4076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4078. public System.DateTime ДатаЗаказа {
  4079. get {
  4080. try {
  4081. return ((global::System.DateTime)(this[this.tableЗаказы.ДатаЗаказаColumn]));
  4082. }
  4083. catch (global::System.InvalidCastException e) {
  4084. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаЗаказа\' в таблице \'Заказы\' равно DBNull.", e);
  4085. }
  4086. }
  4087. set {
  4088. this[this.tableЗаказы.ДатаЗаказаColumn] = value;
  4089. }
  4090. }
  4091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4093. public int СтатусЗаказа {
  4094. get {
  4095. try {
  4096. return ((int)(this[this.tableЗаказы.СтатусЗаказаColumn]));
  4097. }
  4098. catch (global::System.InvalidCastException e) {
  4099. throw new global::System.Data.StrongTypingException("Значение для столбца \'СтатусЗаказа\' в таблице \'Заказы\' равно DBNull.", e);
  4100. }
  4101. }
  4102. set {
  4103. this[this.tableЗаказы.СтатусЗаказаColumn] = value;
  4104. }
  4105. }
  4106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4108. public string Примечание {
  4109. get {
  4110. try {
  4111. return ((string)(this[this.tableЗаказы.ПримечаниеColumn]));
  4112. }
  4113. catch (global::System.InvalidCastException e) {
  4114. throw new global::System.Data.StrongTypingException("Значение для столбца \'Примечание\' в таблице \'Заказы\' равно DBNull.", e);
  4115. }
  4116. }
  4117. set {
  4118. this[this.tableЗаказы.ПримечаниеColumn] = value;
  4119. }
  4120. }
  4121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4123. public int ID_Клиента {
  4124. get {
  4125. try {
  4126. return ((int)(this[this.tableЗаказы.ID_КлиентаColumn]));
  4127. }
  4128. catch (global::System.InvalidCastException e) {
  4129. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Клиента\' в таблице \'Заказы\' равно DBNull.", e);
  4130. }
  4131. }
  4132. set {
  4133. this[this.tableЗаказы.ID_КлиентаColumn] = value;
  4134. }
  4135. }
  4136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4138. public int ID_Сотрудника {
  4139. get {
  4140. try {
  4141. return ((int)(this[this.tableЗаказы.ID_СотрудникаColumn]));
  4142. }
  4143. catch (global::System.InvalidCastException e) {
  4144. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Сотрудника\' в таблице \'Заказы\' равно DBNull.", e);
  4145. }
  4146. }
  4147. set {
  4148. this[this.tableЗаказы.ID_СотрудникаColumn] = value;
  4149. }
  4150. }
  4151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4153. public int ID_Сборки {
  4154. get {
  4155. try {
  4156. return ((int)(this[this.tableЗаказы.ID_СборкиColumn]));
  4157. }
  4158. catch (global::System.InvalidCastException e) {
  4159. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Сборки\' в таблице \'Заказы\' равно DBNull.", e);
  4160. }
  4161. }
  4162. set {
  4163. this[this.tableЗаказы.ID_СборкиColumn] = value;
  4164. }
  4165. }
  4166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4168. public КлиентыRow КлиентыRow {
  4169. get {
  4170. return ((КлиентыRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказы_Клиенты"])));
  4171. }
  4172. set {
  4173. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказы_Клиенты"]);
  4174. }
  4175. }
  4176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4178. public СборкаRow СборкаRow {
  4179. get {
  4180. return ((СборкаRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказы_Сборка"])));
  4181. }
  4182. set {
  4183. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказы_Сборка"]);
  4184. }
  4185. }
  4186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4188. public СотрудникиRow СотрудникиRow {
  4189. get {
  4190. return ((СотрудникиRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказы_Сотрудники"])));
  4191. }
  4192. set {
  4193. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказы_Сотрудники"]);
  4194. }
  4195. }
  4196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4198. public СтатусыЗаказаRow СтатусыЗаказаRow {
  4199. get {
  4200. return ((СтатусыЗаказаRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказы_СтатусыЗаказа"])));
  4201. }
  4202. set {
  4203. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказы_СтатусыЗаказа"]);
  4204. }
  4205. }
  4206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4208. public bool IsНомерЗаказаNull() {
  4209. return this.IsNull(this.tableЗаказы.НомерЗаказаColumn);
  4210. }
  4211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4213. public void SetНомерЗаказаNull() {
  4214. this[this.tableЗаказы.НомерЗаказаColumn] = global::System.Convert.DBNull;
  4215. }
  4216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4218. public bool IsДатаЗаказаNull() {
  4219. return this.IsNull(this.tableЗаказы.ДатаЗаказаColumn);
  4220. }
  4221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4223. public void SetДатаЗаказаNull() {
  4224. this[this.tableЗаказы.ДатаЗаказаColumn] = global::System.Convert.DBNull;
  4225. }
  4226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4228. public bool IsСтатусЗаказаNull() {
  4229. return this.IsNull(this.tableЗаказы.СтатусЗаказаColumn);
  4230. }
  4231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4233. public void SetСтатусЗаказаNull() {
  4234. this[this.tableЗаказы.СтатусЗаказаColumn] = global::System.Convert.DBNull;
  4235. }
  4236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4238. public bool IsПримечаниеNull() {
  4239. return this.IsNull(this.tableЗаказы.ПримечаниеColumn);
  4240. }
  4241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4243. public void SetПримечаниеNull() {
  4244. this[this.tableЗаказы.ПримечаниеColumn] = global::System.Convert.DBNull;
  4245. }
  4246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4248. public bool IsID_КлиентаNull() {
  4249. return this.IsNull(this.tableЗаказы.ID_КлиентаColumn);
  4250. }
  4251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4253. public void SetID_КлиентаNull() {
  4254. this[this.tableЗаказы.ID_КлиентаColumn] = global::System.Convert.DBNull;
  4255. }
  4256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4258. public bool IsID_СотрудникаNull() {
  4259. return this.IsNull(this.tableЗаказы.ID_СотрудникаColumn);
  4260. }
  4261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4263. public void SetID_СотрудникаNull() {
  4264. this[this.tableЗаказы.ID_СотрудникаColumn] = global::System.Convert.DBNull;
  4265. }
  4266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4268. public bool IsID_СборкиNull() {
  4269. return this.IsNull(this.tableЗаказы.ID_СборкиColumn);
  4270. }
  4271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4273. public void SetID_СборкиNull() {
  4274. this[this.tableЗаказы.ID_СборкиColumn] = global::System.Convert.DBNull;
  4275. }
  4276. }
  4277. /// <summary>
  4278. ///Represents strongly named DataRow class.
  4279. ///</summary>
  4280. public partial class КлиентыRow : global::System.Data.DataRow {
  4281. private КлиентыDataTable tableКлиенты;
  4282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4284. internal КлиентыRow(global::System.Data.DataRowBuilder rb) :
  4285. base(rb) {
  4286. this.tableКлиенты = ((КлиентыDataTable)(this.Table));
  4287. }
  4288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4290. public int ID_Клиента {
  4291. get {
  4292. return ((int)(this[this.tableКлиенты.ID_КлиентаColumn]));
  4293. }
  4294. set {
  4295. this[this.tableКлиенты.ID_КлиентаColumn] = value;
  4296. }
  4297. }
  4298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4300. public string Имя {
  4301. get {
  4302. return ((string)(this[this.tableКлиенты.ИмяColumn]));
  4303. }
  4304. set {
  4305. this[this.tableКлиенты.ИмяColumn] = value;
  4306. }
  4307. }
  4308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4310. public string Фамилия {
  4311. get {
  4312. return ((string)(this[this.tableКлиенты.ФамилияColumn]));
  4313. }
  4314. set {
  4315. this[this.tableКлиенты.ФамилияColumn] = value;
  4316. }
  4317. }
  4318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4320. public string Отчество {
  4321. get {
  4322. try {
  4323. return ((string)(this[this.tableКлиенты.ОтчествоColumn]));
  4324. }
  4325. catch (global::System.InvalidCastException e) {
  4326. throw new global::System.Data.StrongTypingException("Значение для столбца \'Отчество\' в таблице \'Клиенты\' равно DBNull.", e);
  4327. }
  4328. }
  4329. set {
  4330. this[this.tableКлиенты.ОтчествоColumn] = value;
  4331. }
  4332. }
  4333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4335. public string Телефон {
  4336. get {
  4337. try {
  4338. return ((string)(this[this.tableКлиенты.ТелефонColumn]));
  4339. }
  4340. catch (global::System.InvalidCastException e) {
  4341. throw new global::System.Data.StrongTypingException("Значение для столбца \'Телефон\' в таблице \'Клиенты\' равно DBNull.", e);
  4342. }
  4343. }
  4344. set {
  4345. this[this.tableКлиенты.ТелефонColumn] = value;
  4346. }
  4347. }
  4348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4350. public string Адрес {
  4351. get {
  4352. try {
  4353. return ((string)(this[this.tableКлиенты.АдресColumn]));
  4354. }
  4355. catch (global::System.InvalidCastException e) {
  4356. throw new global::System.Data.StrongTypingException("Значение для столбца \'Адрес\' в таблице \'Клиенты\' равно DBNull.", e);
  4357. }
  4358. }
  4359. set {
  4360. this[this.tableКлиенты.АдресColumn] = value;
  4361. }
  4362. }
  4363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4365. public bool IsОтчествоNull() {
  4366. return this.IsNull(this.tableКлиенты.ОтчествоColumn);
  4367. }
  4368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4370. public void SetОтчествоNull() {
  4371. this[this.tableКлиенты.ОтчествоColumn] = global::System.Convert.DBNull;
  4372. }
  4373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4375. public bool IsТелефонNull() {
  4376. return this.IsNull(this.tableКлиенты.ТелефонColumn);
  4377. }
  4378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4380. public void SetТелефонNull() {
  4381. this[this.tableКлиенты.ТелефонColumn] = global::System.Convert.DBNull;
  4382. }
  4383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4385. public bool IsАдресNull() {
  4386. return this.IsNull(this.tableКлиенты.АдресColumn);
  4387. }
  4388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4390. public void SetАдресNull() {
  4391. this[this.tableКлиенты.АдресColumn] = global::System.Convert.DBNull;
  4392. }
  4393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4395. public ЗаказыRow[] GetЗаказыRows() {
  4396. if ((this.Table.ChildRelations["FK_Заказы_Клиенты"] == null)) {
  4397. return new ЗаказыRow[0];
  4398. }
  4399. else {
  4400. return ((ЗаказыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказы_Клиенты"])));
  4401. }
  4402. }
  4403. }
  4404. /// <summary>
  4405. ///Represents strongly named DataRow class.
  4406. ///</summary>
  4407. public partial class КомплектующиеRow : global::System.Data.DataRow {
  4408. private КомплектующиеDataTable tableКомплектующие;
  4409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4411. internal КомплектующиеRow(global::System.Data.DataRowBuilder rb) :
  4412. base(rb) {
  4413. this.tableКомплектующие = ((КомплектующиеDataTable)(this.Table));
  4414. }
  4415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4417. public int ID_Комплектующего {
  4418. get {
  4419. return ((int)(this[this.tableКомплектующие.ID_КомплектующегоColumn]));
  4420. }
  4421. set {
  4422. this[this.tableКомплектующие.ID_КомплектующегоColumn] = value;
  4423. }
  4424. }
  4425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4427. public string Название {
  4428. get {
  4429. return ((string)(this[this.tableКомплектующие.НазваниеColumn]));
  4430. }
  4431. set {
  4432. this[this.tableКомплектующие.НазваниеColumn] = value;
  4433. }
  4434. }
  4435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4437. public int Тип {
  4438. get {
  4439. return ((int)(this[this.tableКомплектующие.ТипColumn]));
  4440. }
  4441. set {
  4442. this[this.tableКомплектующие.ТипColumn] = value;
  4443. }
  4444. }
  4445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4447. public int Поставщик {
  4448. get {
  4449. try {
  4450. return ((int)(this[this.tableКомплектующие.ПоставщикColumn]));
  4451. }
  4452. catch (global::System.InvalidCastException e) {
  4453. throw new global::System.Data.StrongTypingException("Значение для столбца \'Поставщик\' в таблице \'Комплектующие\' равно DBNull.", e);
  4454. }
  4455. }
  4456. set {
  4457. this[this.tableКомплектующие.ПоставщикColumn] = value;
  4458. }
  4459. }
  4460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4462. public int КоличествоНаСкладе {
  4463. get {
  4464. try {
  4465. return ((int)(this[this.tableКомплектующие.КоличествоНаСкладеColumn]));
  4466. }
  4467. catch (global::System.InvalidCastException e) {
  4468. throw new global::System.Data.StrongTypingException("Значение для столбца \'КоличествоНаСкладе\' в таблице \'Комплектующие\' равно DBNull." +
  4469. "", e);
  4470. }
  4471. }
  4472. set {
  4473. this[this.tableКомплектующие.КоличествоНаСкладеColumn] = value;
  4474. }
  4475. }
  4476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4478. public int ЕдиницыИзмерения {
  4479. get {
  4480. try {
  4481. return ((int)(this[this.tableКомплектующие.ЕдиницыИзмеренияColumn]));
  4482. }
  4483. catch (global::System.InvalidCastException e) {
  4484. throw new global::System.Data.StrongTypingException("Значение для столбца \'ЕдиницыИзмерения\' в таблице \'Комплектующие\' равно DBNull.", e);
  4485. }
  4486. }
  4487. set {
  4488. this[this.tableКомплектующие.ЕдиницыИзмеренияColumn] = value;
  4489. }
  4490. }
  4491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4493. public string Цена {
  4494. get {
  4495. try {
  4496. return ((string)(this[this.tableКомплектующие.ЦенаColumn]));
  4497. }
  4498. catch (global::System.InvalidCastException e) {
  4499. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Комплектующие\' равно DBNull.", e);
  4500. }
  4501. }
  4502. set {
  4503. this[this.tableКомплектующие.ЦенаColumn] = value;
  4504. }
  4505. }
  4506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4508. public ЕдиницыИзмеренияRow ЕдиницыИзмеренияRow {
  4509. get {
  4510. return ((ЕдиницыИзмеренияRow)(this.GetParentRow(this.Table.ParentRelations["FK_Комплектующие_ЕдиницыИзмерения"])));
  4511. }
  4512. set {
  4513. this.SetParentRow(value, this.Table.ParentRelations["FK_Комплектующие_ЕдиницыИзмерения"]);
  4514. }
  4515. }
  4516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4518. public ПоставщикиRow ПоставщикиRow {
  4519. get {
  4520. return ((ПоставщикиRow)(this.GetParentRow(this.Table.ParentRelations["FK_Комплектующие_Поставщики"])));
  4521. }
  4522. set {
  4523. this.SetParentRow(value, this.Table.ParentRelations["FK_Комплектующие_Поставщики"]);
  4524. }
  4525. }
  4526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4528. public ТипыКомплектующихRow ТипыКомплектующихRow {
  4529. get {
  4530. return ((ТипыКомплектующихRow)(this.GetParentRow(this.Table.ParentRelations["FK_Комплектующие_ТипыКомплектующих"])));
  4531. }
  4532. set {
  4533. this.SetParentRow(value, this.Table.ParentRelations["FK_Комплектующие_ТипыКомплектующих"]);
  4534. }
  4535. }
  4536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4538. public bool IsПоставщикNull() {
  4539. return this.IsNull(this.tableКомплектующие.ПоставщикColumn);
  4540. }
  4541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4543. public void SetПоставщикNull() {
  4544. this[this.tableКомплектующие.ПоставщикColumn] = global::System.Convert.DBNull;
  4545. }
  4546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4548. public bool IsКоличествоНаСкладеNull() {
  4549. return this.IsNull(this.tableКомплектующие.КоличествоНаСкладеColumn);
  4550. }
  4551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4553. public void SetКоличествоНаСкладеNull() {
  4554. this[this.tableКомплектующие.КоличествоНаСкладеColumn] = global::System.Convert.DBNull;
  4555. }
  4556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4558. public bool IsЕдиницыИзмеренияNull() {
  4559. return this.IsNull(this.tableКомплектующие.ЕдиницыИзмеренияColumn);
  4560. }
  4561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4563. public void SetЕдиницыИзмеренияNull() {
  4564. this[this.tableКомплектующие.ЕдиницыИзмеренияColumn] = global::System.Convert.DBNull;
  4565. }
  4566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4568. public bool IsЦенаNull() {
  4569. return this.IsNull(this.tableКомплектующие.ЦенаColumn);
  4570. }
  4571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4573. public void SetЦенаNull() {
  4574. this[this.tableКомплектующие.ЦенаColumn] = global::System.Convert.DBNull;
  4575. }
  4576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4578. public ОписаниеСборкиRow[] GetОписаниеСборкиRows() {
  4579. if ((this.Table.ChildRelations["FK_ОписаниеСборки_Комплектующие"] == null)) {
  4580. return new ОписаниеСборкиRow[0];
  4581. }
  4582. else {
  4583. return ((ОписаниеСборкиRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ОписаниеСборки_Комплектующие"])));
  4584. }
  4585. }
  4586. }
  4587. /// <summary>
  4588. ///Represents strongly named DataRow class.
  4589. ///</summary>
  4590. public partial class КомпьютерыRow : global::System.Data.DataRow {
  4591. private КомпьютерыDataTable tableКомпьютеры;
  4592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4594. internal КомпьютерыRow(global::System.Data.DataRowBuilder rb) :
  4595. base(rb) {
  4596. this.tableКомпьютеры = ((КомпьютерыDataTable)(this.Table));
  4597. }
  4598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4600. public int ID_ПК {
  4601. get {
  4602. return ((int)(this[this.tableКомпьютеры.ID_ПКColumn]));
  4603. }
  4604. set {
  4605. this[this.tableКомпьютеры.ID_ПКColumn] = value;
  4606. }
  4607. }
  4608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4610. public string Модель {
  4611. get {
  4612. try {
  4613. return ((string)(this[this.tableКомпьютеры.МодельColumn]));
  4614. }
  4615. catch (global::System.InvalidCastException e) {
  4616. throw new global::System.Data.StrongTypingException("Значение для столбца \'Модель\' в таблице \'Компьютеры\' равно DBNull.", e);
  4617. }
  4618. }
  4619. set {
  4620. this[this.tableКомпьютеры.МодельColumn] = value;
  4621. }
  4622. }
  4623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4625. public bool IsМодельNull() {
  4626. return this.IsNull(this.tableКомпьютеры.МодельColumn);
  4627. }
  4628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4630. public void SetМодельNull() {
  4631. this[this.tableКомпьютеры.МодельColumn] = global::System.Convert.DBNull;
  4632. }
  4633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4635. public ОписаниеСборкиRow[] GetОписаниеСборкиRows() {
  4636. if ((this.Table.ChildRelations["FK_ОписаниеСборки_Компьютеры"] == null)) {
  4637. return new ОписаниеСборкиRow[0];
  4638. }
  4639. else {
  4640. return ((ОписаниеСборкиRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ОписаниеСборки_Компьютеры"])));
  4641. }
  4642. }
  4643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4645. public СборкаRow[] GetСборкаRows() {
  4646. if ((this.Table.ChildRelations["FK_Сборка_Компьютеры"] == null)) {
  4647. return new СборкаRow[0];
  4648. }
  4649. else {
  4650. return ((СборкаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Сборка_Компьютеры"])));
  4651. }
  4652. }
  4653. }
  4654. /// <summary>
  4655. ///Represents strongly named DataRow class.
  4656. ///</summary>
  4657. public partial class ОписаниеСборкиRow : global::System.Data.DataRow {
  4658. private ОписаниеСборкиDataTable tableОписаниеСборки;
  4659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4661. internal ОписаниеСборкиRow(global::System.Data.DataRowBuilder rb) :
  4662. base(rb) {
  4663. this.tableОписаниеСборки = ((ОписаниеСборкиDataTable)(this.Table));
  4664. }
  4665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4667. public int ID_ПК {
  4668. get {
  4669. try {
  4670. return ((int)(this[this.tableОписаниеСборки.ID_ПКColumn]));
  4671. }
  4672. catch (global::System.InvalidCastException e) {
  4673. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_ПК\' в таблице \'ОписаниеСборки\' равно DBNull.", e);
  4674. }
  4675. }
  4676. set {
  4677. this[this.tableОписаниеСборки.ID_ПКColumn] = value;
  4678. }
  4679. }
  4680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4682. public int ID_Комплектующего {
  4683. get {
  4684. try {
  4685. return ((int)(this[this.tableОписаниеСборки.ID_КомплектующегоColumn]));
  4686. }
  4687. catch (global::System.InvalidCastException e) {
  4688. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Комплектующего\' в таблице \'ОписаниеСборки\' равно DBNull." +
  4689. "", e);
  4690. }
  4691. }
  4692. set {
  4693. this[this.tableОписаниеСборки.ID_КомплектующегоColumn] = value;
  4694. }
  4695. }
  4696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4698. public КомплектующиеRow КомплектующиеRow {
  4699. get {
  4700. return ((КомплектующиеRow)(this.GetParentRow(this.Table.ParentRelations["FK_ОписаниеСборки_Комплектующие"])));
  4701. }
  4702. set {
  4703. this.SetParentRow(value, this.Table.ParentRelations["FK_ОписаниеСборки_Комплектующие"]);
  4704. }
  4705. }
  4706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4708. public КомпьютерыRow КомпьютерыRow {
  4709. get {
  4710. return ((КомпьютерыRow)(this.GetParentRow(this.Table.ParentRelations["FK_ОписаниеСборки_Компьютеры"])));
  4711. }
  4712. set {
  4713. this.SetParentRow(value, this.Table.ParentRelations["FK_ОписаниеСборки_Компьютеры"]);
  4714. }
  4715. }
  4716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4718. public bool IsID_ПКNull() {
  4719. return this.IsNull(this.tableОписаниеСборки.ID_ПКColumn);
  4720. }
  4721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4723. public void SetID_ПКNull() {
  4724. this[this.tableОписаниеСборки.ID_ПКColumn] = global::System.Convert.DBNull;
  4725. }
  4726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4728. public bool IsID_КомплектующегоNull() {
  4729. return this.IsNull(this.tableОписаниеСборки.ID_КомплектующегоColumn);
  4730. }
  4731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4733. public void SetID_КомплектующегоNull() {
  4734. this[this.tableОписаниеСборки.ID_КомплектующегоColumn] = global::System.Convert.DBNull;
  4735. }
  4736. }
  4737. /// <summary>
  4738. ///Represents strongly named DataRow class.
  4739. ///</summary>
  4740. public partial class ПоставщикиRow : global::System.Data.DataRow {
  4741. private ПоставщикиDataTable tableПоставщики;
  4742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4744. internal ПоставщикиRow(global::System.Data.DataRowBuilder rb) :
  4745. base(rb) {
  4746. this.tableПоставщики = ((ПоставщикиDataTable)(this.Table));
  4747. }
  4748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4750. public int ID_Поставщика {
  4751. get {
  4752. return ((int)(this[this.tableПоставщики.ID_ПоставщикаColumn]));
  4753. }
  4754. set {
  4755. this[this.tableПоставщики.ID_ПоставщикаColumn] = value;
  4756. }
  4757. }
  4758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4760. public string Наименование {
  4761. get {
  4762. try {
  4763. return ((string)(this[this.tableПоставщики.НаименованиеColumn]));
  4764. }
  4765. catch (global::System.InvalidCastException e) {
  4766. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Поставщики\' равно DBNull.", e);
  4767. }
  4768. }
  4769. set {
  4770. this[this.tableПоставщики.НаименованиеColumn] = value;
  4771. }
  4772. }
  4773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4775. public string Телефон {
  4776. get {
  4777. try {
  4778. return ((string)(this[this.tableПоставщики.ТелефонColumn]));
  4779. }
  4780. catch (global::System.InvalidCastException e) {
  4781. throw new global::System.Data.StrongTypingException("Значение для столбца \'Телефон\' в таблице \'Поставщики\' равно DBNull.", e);
  4782. }
  4783. }
  4784. set {
  4785. this[this.tableПоставщики.ТелефонColumn] = value;
  4786. }
  4787. }
  4788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4790. public string Адрес {
  4791. get {
  4792. try {
  4793. return ((string)(this[this.tableПоставщики.АдресColumn]));
  4794. }
  4795. catch (global::System.InvalidCastException e) {
  4796. throw new global::System.Data.StrongTypingException("Значение для столбца \'Адрес\' в таблице \'Поставщики\' равно DBNull.", e);
  4797. }
  4798. }
  4799. set {
  4800. this[this.tableПоставщики.АдресColumn] = value;
  4801. }
  4802. }
  4803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4805. public bool IsНаименованиеNull() {
  4806. return this.IsNull(this.tableПоставщики.НаименованиеColumn);
  4807. }
  4808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4810. public void SetНаименованиеNull() {
  4811. this[this.tableПоставщики.НаименованиеColumn] = global::System.Convert.DBNull;
  4812. }
  4813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4815. public bool IsТелефонNull() {
  4816. return this.IsNull(this.tableПоставщики.ТелефонColumn);
  4817. }
  4818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4820. public void SetТелефонNull() {
  4821. this[this.tableПоставщики.ТелефонColumn] = global::System.Convert.DBNull;
  4822. }
  4823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4825. public bool IsАдресNull() {
  4826. return this.IsNull(this.tableПоставщики.АдресColumn);
  4827. }
  4828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4830. public void SetАдресNull() {
  4831. this[this.tableПоставщики.АдресColumn] = global::System.Convert.DBNull;
  4832. }
  4833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4835. public КомплектующиеRow[] GetКомплектующиеRows() {
  4836. if ((this.Table.ChildRelations["FK_Комплектующие_Поставщики"] == null)) {
  4837. return new КомплектующиеRow[0];
  4838. }
  4839. else {
  4840. return ((КомплектующиеRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Комплектующие_Поставщики"])));
  4841. }
  4842. }
  4843. }
  4844. /// <summary>
  4845. ///Represents strongly named DataRow class.
  4846. ///</summary>
  4847. public partial class РолиRow : global::System.Data.DataRow {
  4848. private РолиDataTable tableРоли;
  4849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4851. internal РолиRow(global::System.Data.DataRowBuilder rb) :
  4852. base(rb) {
  4853. this.tableРоли = ((РолиDataTable)(this.Table));
  4854. }
  4855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4857. public int ID_Роли {
  4858. get {
  4859. return ((int)(this[this.tableРоли.ID_РолиColumn]));
  4860. }
  4861. set {
  4862. this[this.tableРоли.ID_РолиColumn] = value;
  4863. }
  4864. }
  4865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4867. public string Название {
  4868. get {
  4869. return ((string)(this[this.tableРоли.НазваниеColumn]));
  4870. }
  4871. set {
  4872. this[this.tableРоли.НазваниеColumn] = value;
  4873. }
  4874. }
  4875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4877. public СотрудникиRow[] GetСотрудникиRows() {
  4878. if ((this.Table.ChildRelations["FK_Сотрудники_Роли"] == null)) {
  4879. return new СотрудникиRow[0];
  4880. }
  4881. else {
  4882. return ((СотрудникиRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Сотрудники_Роли"])));
  4883. }
  4884. }
  4885. }
  4886. /// <summary>
  4887. ///Represents strongly named DataRow class.
  4888. ///</summary>
  4889. public partial class СборкаRow : global::System.Data.DataRow {
  4890. private СборкаDataTable tableСборка;
  4891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4893. internal СборкаRow(global::System.Data.DataRowBuilder rb) :
  4894. base(rb) {
  4895. this.tableСборка = ((СборкаDataTable)(this.Table));
  4896. }
  4897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4899. public int ID_Сборки {
  4900. get {
  4901. return ((int)(this[this.tableСборка.ID_СборкиColumn]));
  4902. }
  4903. set {
  4904. this[this.tableСборка.ID_СборкиColumn] = value;
  4905. }
  4906. }
  4907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4909. public int ID_ПК {
  4910. get {
  4911. try {
  4912. return ((int)(this[this.tableСборка.ID_ПКColumn]));
  4913. }
  4914. catch (global::System.InvalidCastException e) {
  4915. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_ПК\' в таблице \'Сборка\' равно DBNull.", e);
  4916. }
  4917. }
  4918. set {
  4919. this[this.tableСборка.ID_ПКColumn] = value;
  4920. }
  4921. }
  4922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4924. public int ID_Мастера {
  4925. get {
  4926. try {
  4927. return ((int)(this[this.tableСборка.ID_МастераColumn]));
  4928. }
  4929. catch (global::System.InvalidCastException e) {
  4930. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Мастера\' в таблице \'Сборка\' равно DBNull.", e);
  4931. }
  4932. }
  4933. set {
  4934. this[this.tableСборка.ID_МастераColumn] = value;
  4935. }
  4936. }
  4937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4939. public КомпьютерыRow КомпьютерыRow {
  4940. get {
  4941. return ((КомпьютерыRow)(this.GetParentRow(this.Table.ParentRelations["FK_Сборка_Компьютеры"])));
  4942. }
  4943. set {
  4944. this.SetParentRow(value, this.Table.ParentRelations["FK_Сборка_Компьютеры"]);
  4945. }
  4946. }
  4947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4949. public СотрудникиRow СотрудникиRow {
  4950. get {
  4951. return ((СотрудникиRow)(this.GetParentRow(this.Table.ParentRelations["FK_Сборка_Сотрудники"])));
  4952. }
  4953. set {
  4954. this.SetParentRow(value, this.Table.ParentRelations["FK_Сборка_Сотрудники"]);
  4955. }
  4956. }
  4957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4959. public bool IsID_ПКNull() {
  4960. return this.IsNull(this.tableСборка.ID_ПКColumn);
  4961. }
  4962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4964. public void SetID_ПКNull() {
  4965. this[this.tableСборка.ID_ПКColumn] = global::System.Convert.DBNull;
  4966. }
  4967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4969. public bool IsID_МастераNull() {
  4970. return this.IsNull(this.tableСборка.ID_МастераColumn);
  4971. }
  4972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4974. public void SetID_МастераNull() {
  4975. this[this.tableСборка.ID_МастераColumn] = global::System.Convert.DBNull;
  4976. }
  4977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4979. public ЗаказыRow[] GetЗаказыRows() {
  4980. if ((this.Table.ChildRelations["FK_Заказы_Сборка"] == null)) {
  4981. return new ЗаказыRow[0];
  4982. }
  4983. else {
  4984. return ((ЗаказыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказы_Сборка"])));
  4985. }
  4986. }
  4987. }
  4988. /// <summary>
  4989. ///Represents strongly named DataRow class.
  4990. ///</summary>
  4991. public partial class СотрудникиRow : global::System.Data.DataRow {
  4992. private СотрудникиDataTable tableСотрудники;
  4993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4995. internal СотрудникиRow(global::System.Data.DataRowBuilder rb) :
  4996. base(rb) {
  4997. this.tableСотрудники = ((СотрудникиDataTable)(this.Table));
  4998. }
  4999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5001. public int ID {
  5002. get {
  5003. return ((int)(this[this.tableСотрудники.IDColumn]));
  5004. }
  5005. set {
  5006. this[this.tableСотрудники.IDColumn] = value;
  5007. }
  5008. }
  5009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5011. public string Имя {
  5012. get {
  5013. try {
  5014. return ((string)(this[this.tableСотрудники.ИмяColumn]));
  5015. }
  5016. catch (global::System.InvalidCastException e) {
  5017. throw new global::System.Data.StrongTypingException("Значение для столбца \'Имя\' в таблице \'Сотрудники\' равно DBNull.", e);
  5018. }
  5019. }
  5020. set {
  5021. this[this.tableСотрудники.ИмяColumn] = value;
  5022. }
  5023. }
  5024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5026. public string Фамилия {
  5027. get {
  5028. try {
  5029. return ((string)(this[this.tableСотрудники.ФамилияColumn]));
  5030. }
  5031. catch (global::System.InvalidCastException e) {
  5032. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фамилия\' в таблице \'Сотрудники\' равно DBNull.", e);
  5033. }
  5034. }
  5035. set {
  5036. this[this.tableСотрудники.ФамилияColumn] = value;
  5037. }
  5038. }
  5039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5041. public string Отчество {
  5042. get {
  5043. try {
  5044. return ((string)(this[this.tableСотрудники.ОтчествоColumn]));
  5045. }
  5046. catch (global::System.InvalidCastException e) {
  5047. throw new global::System.Data.StrongTypingException("Значение для столбца \'Отчество\' в таблице \'Сотрудники\' равно DBNull.", e);
  5048. }
  5049. }
  5050. set {
  5051. this[this.tableСотрудники.ОтчествоColumn] = value;
  5052. }
  5053. }
  5054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5056. public int Роль {
  5057. get {
  5058. return ((int)(this[this.tableСотрудники.РольColumn]));
  5059. }
  5060. set {
  5061. this[this.tableСотрудники.РольColumn] = value;
  5062. }
  5063. }
  5064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5066. public System.DateTime ДатаРождения {
  5067. get {
  5068. return ((global::System.DateTime)(this[this.tableСотрудники.ДатаРожденияColumn]));
  5069. }
  5070. set {
  5071. this[this.tableСотрудники.ДатаРожденияColumn] = value;
  5072. }
  5073. }
  5074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5076. public string Телефон {
  5077. get {
  5078. return ((string)(this[this.tableСотрудники.ТелефонColumn]));
  5079. }
  5080. set {
  5081. this[this.tableСотрудники.ТелефонColumn] = value;
  5082. }
  5083. }
  5084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5086. public string Адрес {
  5087. get {
  5088. return ((string)(this[this.tableСотрудники.АдресColumn]));
  5089. }
  5090. set {
  5091. this[this.tableСотрудники.АдресColumn] = value;
  5092. }
  5093. }
  5094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5096. public string Username {
  5097. get {
  5098. return ((string)(this[this.tableСотрудники.UsernameColumn]));
  5099. }
  5100. set {
  5101. this[this.tableСотрудники.UsernameColumn] = value;
  5102. }
  5103. }
  5104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5106. public string Password {
  5107. get {
  5108. return ((string)(this[this.tableСотрудники.PasswordColumn]));
  5109. }
  5110. set {
  5111. this[this.tableСотрудники.PasswordColumn] = value;
  5112. }
  5113. }
  5114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5116. public РолиRow РолиRow {
  5117. get {
  5118. return ((РолиRow)(this.GetParentRow(this.Table.ParentRelations["FK_Сотрудники_Роли"])));
  5119. }
  5120. set {
  5121. this.SetParentRow(value, this.Table.ParentRelations["FK_Сотрудники_Роли"]);
  5122. }
  5123. }
  5124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5126. public bool IsИмяNull() {
  5127. return this.IsNull(this.tableСотрудники.ИмяColumn);
  5128. }
  5129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5131. public void SetИмяNull() {
  5132. this[this.tableСотрудники.ИмяColumn] = global::System.Convert.DBNull;
  5133. }
  5134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5136. public bool IsФамилияNull() {
  5137. return this.IsNull(this.tableСотрудники.ФамилияColumn);
  5138. }
  5139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5141. public void SetФамилияNull() {
  5142. this[this.tableСотрудники.ФамилияColumn] = global::System.Convert.DBNull;
  5143. }
  5144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5146. public bool IsОтчествоNull() {
  5147. return this.IsNull(this.tableСотрудники.ОтчествоColumn);
  5148. }
  5149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5151. public void SetОтчествоNull() {
  5152. this[this.tableСотрудники.ОтчествоColumn] = global::System.Convert.DBNull;
  5153. }
  5154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5156. public ЗаказыRow[] GetЗаказыRows() {
  5157. if ((this.Table.ChildRelations["FK_Заказы_Сотрудники"] == null)) {
  5158. return new ЗаказыRow[0];
  5159. }
  5160. else {
  5161. return ((ЗаказыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказы_Сотрудники"])));
  5162. }
  5163. }
  5164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5166. public СборкаRow[] GetСборкаRows() {
  5167. if ((this.Table.ChildRelations["FK_Сборка_Сотрудники"] == null)) {
  5168. return new СборкаRow[0];
  5169. }
  5170. else {
  5171. return ((СборкаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Сборка_Сотрудники"])));
  5172. }
  5173. }
  5174. }
  5175. /// <summary>
  5176. ///Represents strongly named DataRow class.
  5177. ///</summary>
  5178. public partial class СтатусыЗаказаRow : global::System.Data.DataRow {
  5179. private СтатусыЗаказаDataTable tableСтатусыЗаказа;
  5180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5182. internal СтатусыЗаказаRow(global::System.Data.DataRowBuilder rb) :
  5183. base(rb) {
  5184. this.tableСтатусыЗаказа = ((СтатусыЗаказаDataTable)(this.Table));
  5185. }
  5186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5188. public int ID_Статуса {
  5189. get {
  5190. return ((int)(this[this.tableСтатусыЗаказа.ID_СтатусаColumn]));
  5191. }
  5192. set {
  5193. this[this.tableСтатусыЗаказа.ID_СтатусаColumn] = value;
  5194. }
  5195. }
  5196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5198. public string Название {
  5199. get {
  5200. return ((string)(this[this.tableСтатусыЗаказа.НазваниеColumn]));
  5201. }
  5202. set {
  5203. this[this.tableСтатусыЗаказа.НазваниеColumn] = value;
  5204. }
  5205. }
  5206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5208. public ЗаказыRow[] GetЗаказыRows() {
  5209. if ((this.Table.ChildRelations["FK_Заказы_СтатусыЗаказа"] == null)) {
  5210. return new ЗаказыRow[0];
  5211. }
  5212. else {
  5213. return ((ЗаказыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказы_СтатусыЗаказа"])));
  5214. }
  5215. }
  5216. }
  5217. /// <summary>
  5218. ///Represents strongly named DataRow class.
  5219. ///</summary>
  5220. public partial class ТипыКомплектующихRow : global::System.Data.DataRow {
  5221. private ТипыКомплектующихDataTable tableТипыКомплектующих;
  5222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5224. internal ТипыКомплектующихRow(global::System.Data.DataRowBuilder rb) :
  5225. base(rb) {
  5226. this.tableТипыКомплектующих = ((ТипыКомплектующихDataTable)(this.Table));
  5227. }
  5228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5230. public int ID_Типа {
  5231. get {
  5232. return ((int)(this[this.tableТипыКомплектующих.ID_ТипаColumn]));
  5233. }
  5234. set {
  5235. this[this.tableТипыКомплектующих.ID_ТипаColumn] = value;
  5236. }
  5237. }
  5238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5240. public string Название {
  5241. get {
  5242. try {
  5243. return ((string)(this[this.tableТипыКомплектующих.НазваниеColumn]));
  5244. }
  5245. catch (global::System.InvalidCastException e) {
  5246. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'ТипыКомплектующих\' равно DBNull.", e);
  5247. }
  5248. }
  5249. set {
  5250. this[this.tableТипыКомплектующих.НазваниеColumn] = value;
  5251. }
  5252. }
  5253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5255. public bool IsНазваниеNull() {
  5256. return this.IsNull(this.tableТипыКомплектующих.НазваниеColumn);
  5257. }
  5258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5260. public void SetНазваниеNull() {
  5261. this[this.tableТипыКомплектующих.НазваниеColumn] = global::System.Convert.DBNull;
  5262. }
  5263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5265. public КомплектующиеRow[] GetКомплектующиеRows() {
  5266. if ((this.Table.ChildRelations["FK_Комплектующие_ТипыКомплектующих"] == null)) {
  5267. return new КомплектующиеRow[0];
  5268. }
  5269. else {
  5270. return ((КомплектующиеRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Комплектующие_ТипыКомплектующих"])));
  5271. }
  5272. }
  5273. }
  5274. /// <summary>
  5275. ///Row event argument class
  5276. ///</summary>
  5277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5278. public class ЕдиницыИзмеренияRowChangeEvent : global::System.EventArgs {
  5279. private ЕдиницыИзмеренияRow eventRow;
  5280. private global::System.Data.DataRowAction eventAction;
  5281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5283. public ЕдиницыИзмеренияRowChangeEvent(ЕдиницыИзмеренияRow row, global::System.Data.DataRowAction action) {
  5284. this.eventRow = row;
  5285. this.eventAction = action;
  5286. }
  5287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5289. public ЕдиницыИзмеренияRow Row {
  5290. get {
  5291. return this.eventRow;
  5292. }
  5293. }
  5294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5296. public global::System.Data.DataRowAction Action {
  5297. get {
  5298. return this.eventAction;
  5299. }
  5300. }
  5301. }
  5302. /// <summary>
  5303. ///Row event argument class
  5304. ///</summary>
  5305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5306. public class ЗаказыRowChangeEvent : global::System.EventArgs {
  5307. private ЗаказыRow eventRow;
  5308. private global::System.Data.DataRowAction eventAction;
  5309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5311. public ЗаказыRowChangeEvent(ЗаказыRow row, global::System.Data.DataRowAction action) {
  5312. this.eventRow = row;
  5313. this.eventAction = action;
  5314. }
  5315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5317. public ЗаказыRow Row {
  5318. get {
  5319. return this.eventRow;
  5320. }
  5321. }
  5322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5324. public global::System.Data.DataRowAction Action {
  5325. get {
  5326. return this.eventAction;
  5327. }
  5328. }
  5329. }
  5330. /// <summary>
  5331. ///Row event argument class
  5332. ///</summary>
  5333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5334. public class КлиентыRowChangeEvent : global::System.EventArgs {
  5335. private КлиентыRow eventRow;
  5336. private global::System.Data.DataRowAction eventAction;
  5337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5339. public КлиентыRowChangeEvent(КлиентыRow row, global::System.Data.DataRowAction action) {
  5340. this.eventRow = row;
  5341. this.eventAction = action;
  5342. }
  5343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5345. public КлиентыRow Row {
  5346. get {
  5347. return this.eventRow;
  5348. }
  5349. }
  5350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5352. public global::System.Data.DataRowAction Action {
  5353. get {
  5354. return this.eventAction;
  5355. }
  5356. }
  5357. }
  5358. /// <summary>
  5359. ///Row event argument class
  5360. ///</summary>
  5361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5362. public class КомплектующиеRowChangeEvent : global::System.EventArgs {
  5363. private КомплектующиеRow eventRow;
  5364. private global::System.Data.DataRowAction eventAction;
  5365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5367. public КомплектующиеRowChangeEvent(КомплектующиеRow row, global::System.Data.DataRowAction action) {
  5368. this.eventRow = row;
  5369. this.eventAction = action;
  5370. }
  5371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5373. public КомплектующиеRow Row {
  5374. get {
  5375. return this.eventRow;
  5376. }
  5377. }
  5378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5380. public global::System.Data.DataRowAction Action {
  5381. get {
  5382. return this.eventAction;
  5383. }
  5384. }
  5385. }
  5386. /// <summary>
  5387. ///Row event argument class
  5388. ///</summary>
  5389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5390. public class КомпьютерыRowChangeEvent : global::System.EventArgs {
  5391. private КомпьютерыRow eventRow;
  5392. private global::System.Data.DataRowAction eventAction;
  5393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5395. public КомпьютерыRowChangeEvent(КомпьютерыRow row, global::System.Data.DataRowAction action) {
  5396. this.eventRow = row;
  5397. this.eventAction = action;
  5398. }
  5399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5401. public КомпьютерыRow Row {
  5402. get {
  5403. return this.eventRow;
  5404. }
  5405. }
  5406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5408. public global::System.Data.DataRowAction Action {
  5409. get {
  5410. return this.eventAction;
  5411. }
  5412. }
  5413. }
  5414. /// <summary>
  5415. ///Row event argument class
  5416. ///</summary>
  5417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5418. public class ОписаниеСборкиRowChangeEvent : global::System.EventArgs {
  5419. private ОписаниеСборкиRow eventRow;
  5420. private global::System.Data.DataRowAction eventAction;
  5421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5423. public ОписаниеСборкиRowChangeEvent(ОписаниеСборкиRow row, global::System.Data.DataRowAction action) {
  5424. this.eventRow = row;
  5425. this.eventAction = action;
  5426. }
  5427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5429. public ОписаниеСборкиRow Row {
  5430. get {
  5431. return this.eventRow;
  5432. }
  5433. }
  5434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5436. public global::System.Data.DataRowAction Action {
  5437. get {
  5438. return this.eventAction;
  5439. }
  5440. }
  5441. }
  5442. /// <summary>
  5443. ///Row event argument class
  5444. ///</summary>
  5445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5446. public class ПоставщикиRowChangeEvent : global::System.EventArgs {
  5447. private ПоставщикиRow eventRow;
  5448. private global::System.Data.DataRowAction eventAction;
  5449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5451. public ПоставщикиRowChangeEvent(ПоставщикиRow row, global::System.Data.DataRowAction action) {
  5452. this.eventRow = row;
  5453. this.eventAction = action;
  5454. }
  5455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5457. public ПоставщикиRow Row {
  5458. get {
  5459. return this.eventRow;
  5460. }
  5461. }
  5462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5464. public global::System.Data.DataRowAction Action {
  5465. get {
  5466. return this.eventAction;
  5467. }
  5468. }
  5469. }
  5470. /// <summary>
  5471. ///Row event argument class
  5472. ///</summary>
  5473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5474. public class РолиRowChangeEvent : global::System.EventArgs {
  5475. private РолиRow eventRow;
  5476. private global::System.Data.DataRowAction eventAction;
  5477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5479. public РолиRowChangeEvent(РолиRow row, global::System.Data.DataRowAction action) {
  5480. this.eventRow = row;
  5481. this.eventAction = action;
  5482. }
  5483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5485. public РолиRow Row {
  5486. get {
  5487. return this.eventRow;
  5488. }
  5489. }
  5490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5492. public global::System.Data.DataRowAction Action {
  5493. get {
  5494. return this.eventAction;
  5495. }
  5496. }
  5497. }
  5498. /// <summary>
  5499. ///Row event argument class
  5500. ///</summary>
  5501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5502. public class СборкаRowChangeEvent : global::System.EventArgs {
  5503. private СборкаRow eventRow;
  5504. private global::System.Data.DataRowAction eventAction;
  5505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5507. public СборкаRowChangeEvent(СборкаRow row, global::System.Data.DataRowAction action) {
  5508. this.eventRow = row;
  5509. this.eventAction = action;
  5510. }
  5511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5513. public СборкаRow Row {
  5514. get {
  5515. return this.eventRow;
  5516. }
  5517. }
  5518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5520. public global::System.Data.DataRowAction Action {
  5521. get {
  5522. return this.eventAction;
  5523. }
  5524. }
  5525. }
  5526. /// <summary>
  5527. ///Row event argument class
  5528. ///</summary>
  5529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5530. public class СотрудникиRowChangeEvent : global::System.EventArgs {
  5531. private СотрудникиRow eventRow;
  5532. private global::System.Data.DataRowAction eventAction;
  5533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5535. public СотрудникиRowChangeEvent(СотрудникиRow row, global::System.Data.DataRowAction action) {
  5536. this.eventRow = row;
  5537. this.eventAction = action;
  5538. }
  5539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5541. public СотрудникиRow Row {
  5542. get {
  5543. return this.eventRow;
  5544. }
  5545. }
  5546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5548. public global::System.Data.DataRowAction Action {
  5549. get {
  5550. return this.eventAction;
  5551. }
  5552. }
  5553. }
  5554. /// <summary>
  5555. ///Row event argument class
  5556. ///</summary>
  5557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5558. public class СтатусыЗаказаRowChangeEvent : global::System.EventArgs {
  5559. private СтатусыЗаказаRow eventRow;
  5560. private global::System.Data.DataRowAction eventAction;
  5561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5563. public СтатусыЗаказаRowChangeEvent(СтатусыЗаказаRow row, global::System.Data.DataRowAction action) {
  5564. this.eventRow = row;
  5565. this.eventAction = action;
  5566. }
  5567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5569. public СтатусыЗаказаRow Row {
  5570. get {
  5571. return this.eventRow;
  5572. }
  5573. }
  5574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5576. public global::System.Data.DataRowAction Action {
  5577. get {
  5578. return this.eventAction;
  5579. }
  5580. }
  5581. }
  5582. /// <summary>
  5583. ///Row event argument class
  5584. ///</summary>
  5585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5586. public class ТипыКомплектующихRowChangeEvent : global::System.EventArgs {
  5587. private ТипыКомплектующихRow eventRow;
  5588. private global::System.Data.DataRowAction eventAction;
  5589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5591. public ТипыКомплектующихRowChangeEvent(ТипыКомплектующихRow row, global::System.Data.DataRowAction action) {
  5592. this.eventRow = row;
  5593. this.eventAction = action;
  5594. }
  5595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5597. public ТипыКомплектующихRow Row {
  5598. get {
  5599. return this.eventRow;
  5600. }
  5601. }
  5602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5604. public global::System.Data.DataRowAction Action {
  5605. get {
  5606. return this.eventAction;
  5607. }
  5608. }
  5609. }
  5610. }
  5611. }
  5612. namespace KazarinDE.KazarinDE_03DataSet1TableAdapters {
  5613. /// <summary>
  5614. ///Represents the connection and commands used to retrieve and save data.
  5615. ///</summary>
  5616. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5617. [global::System.ComponentModel.ToolboxItem(true)]
  5618. [global::System.ComponentModel.DataObjectAttribute(true)]
  5619. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5620. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5621. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5622. public partial class ЕдиницыИзмеренияTableAdapter : global::System.ComponentModel.Component {
  5623. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5624. private global::System.Data.SqlClient.SqlConnection _connection;
  5625. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5626. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5627. private bool _clearBeforeFill;
  5628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5630. public ЕдиницыИзмеренияTableAdapter() {
  5631. this.ClearBeforeFill = true;
  5632. }
  5633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5635. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5636. get {
  5637. if ((this._adapter == null)) {
  5638. this.InitAdapter();
  5639. }
  5640. return this._adapter;
  5641. }
  5642. }
  5643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5645. internal global::System.Data.SqlClient.SqlConnection Connection {
  5646. get {
  5647. if ((this._connection == null)) {
  5648. this.InitConnection();
  5649. }
  5650. return this._connection;
  5651. }
  5652. set {
  5653. this._connection = value;
  5654. if ((this.Adapter.InsertCommand != null)) {
  5655. this.Adapter.InsertCommand.Connection = value;
  5656. }
  5657. if ((this.Adapter.DeleteCommand != null)) {
  5658. this.Adapter.DeleteCommand.Connection = value;
  5659. }
  5660. if ((this.Adapter.UpdateCommand != null)) {
  5661. this.Adapter.UpdateCommand.Connection = value;
  5662. }
  5663. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5664. if ((this.CommandCollection[i] != null)) {
  5665. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5666. }
  5667. }
  5668. }
  5669. }
  5670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5672. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5673. get {
  5674. return this._transaction;
  5675. }
  5676. set {
  5677. this._transaction = value;
  5678. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5679. this.CommandCollection[i].Transaction = this._transaction;
  5680. }
  5681. if (((this.Adapter != null)
  5682. && (this.Adapter.DeleteCommand != null))) {
  5683. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5684. }
  5685. if (((this.Adapter != null)
  5686. && (this.Adapter.InsertCommand != null))) {
  5687. this.Adapter.InsertCommand.Transaction = this._transaction;
  5688. }
  5689. if (((this.Adapter != null)
  5690. && (this.Adapter.UpdateCommand != null))) {
  5691. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5692. }
  5693. }
  5694. }
  5695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5697. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5698. get {
  5699. if ((this._commandCollection == null)) {
  5700. this.InitCommandCollection();
  5701. }
  5702. return this._commandCollection;
  5703. }
  5704. }
  5705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5707. public bool ClearBeforeFill {
  5708. get {
  5709. return this._clearBeforeFill;
  5710. }
  5711. set {
  5712. this._clearBeforeFill = value;
  5713. }
  5714. }
  5715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5717. private void InitAdapter() {
  5718. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5719. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5720. tableMapping.SourceTable = "Table";
  5721. tableMapping.DataSetTable = "ЕдиницыИзмерения";
  5722. tableMapping.ColumnMappings.Add("ID_ЕдиницИзмерения", "ID_ЕдиницИзмерения");
  5723. tableMapping.ColumnMappings.Add("Название", "Название");
  5724. this._adapter.TableMappings.Add(tableMapping);
  5725. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5726. this._adapter.DeleteCommand.Connection = this.Connection;
  5727. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ЕдиницыИзмерения] WHERE (([ID_ЕдиницИзмерения] = @Original_ID_" +
  5728. "ЕдиницИзмерения) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Названи" +
  5729. "е] = @Original_Название)))";
  5730. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5731. 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, "", "", ""));
  5732. 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, "", "", ""));
  5733. 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, "", "", ""));
  5734. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5735. this._adapter.InsertCommand.Connection = this.Connection;
  5736. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ЕдиницыИзмерения] ([Название]) VALUES (@Название);\r\nSELECT ID_" +
  5737. "ЕдиницИзмерения, Название FROM ЕдиницыИзмерения WHERE (ID_ЕдиницИзмерения = SCOP" +
  5738. "E_IDENTITY())";
  5739. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5740. 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, "", "", ""));
  5741. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5742. this._adapter.UpdateCommand.Connection = this.Connection;
  5743. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ЕдиницыИзмерения] SET [Название] = @Название WHERE (([ID_ЕдиницИзмерения] = @Original_ID_ЕдиницИзмерения) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)));
  5744. SELECT ID_ЕдиницИзмерения, Название FROM ЕдиницыИзмерения WHERE (ID_ЕдиницИзмерения = @ID_ЕдиницИзмерения)";
  5745. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5746. 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, "", "", ""));
  5747. 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, "", "", ""));
  5748. 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, "", "", ""));
  5749. 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, "", "", ""));
  5750. 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, "", "", ""));
  5751. }
  5752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5754. private void InitConnection() {
  5755. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5756. this._connection.ConnectionString = global::KazarinDE.Properties.Settings.Default.KazarinDE_03ConnectionString;
  5757. }
  5758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5760. private void InitCommandCollection() {
  5761. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5762. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5763. this._commandCollection[0].Connection = this.Connection;
  5764. this._commandCollection[0].CommandText = "SELECT ID_ЕдиницИзмерения, Название FROM dbo.ЕдиницыИзмерения";
  5765. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5766. }
  5767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5769. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5770. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5771. public virtual int Fill(KazarinDE_03DataSet1.ЕдиницыИзмеренияDataTable dataTable) {
  5772. this.Adapter.SelectCommand = this.CommandCollection[0];
  5773. if ((this.ClearBeforeFill == true)) {
  5774. dataTable.Clear();
  5775. }
  5776. int returnValue = this.Adapter.Fill(dataTable);
  5777. return returnValue;
  5778. }
  5779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5781. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5782. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5783. public virtual KazarinDE_03DataSet1.ЕдиницыИзмеренияDataTable GetData() {
  5784. this.Adapter.SelectCommand = this.CommandCollection[0];
  5785. KazarinDE_03DataSet1.ЕдиницыИзмеренияDataTable dataTable = new KazarinDE_03DataSet1.ЕдиницыИзмеренияDataTable();
  5786. this.Adapter.Fill(dataTable);
  5787. return dataTable;
  5788. }
  5789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5791. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5792. public virtual int Update(KazarinDE_03DataSet1.ЕдиницыИзмеренияDataTable dataTable) {
  5793. return this.Adapter.Update(dataTable);
  5794. }
  5795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5797. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5798. public virtual int Update(KazarinDE_03DataSet1 dataSet) {
  5799. return this.Adapter.Update(dataSet, "ЕдиницыИзмерения");
  5800. }
  5801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5803. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5804. public virtual int Update(global::System.Data.DataRow dataRow) {
  5805. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5806. dataRow});
  5807. }
  5808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5810. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5811. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5812. return this.Adapter.Update(dataRows);
  5813. }
  5814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5816. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5817. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5818. public virtual int Delete(int Original_ID_ЕдиницИзмерения, string Original_Название) {
  5819. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_ЕдиницИзмерения));
  5820. if ((Original_Название == null)) {
  5821. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5822. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5823. }
  5824. else {
  5825. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5826. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название));
  5827. }
  5828. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5829. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5830. != global::System.Data.ConnectionState.Open)) {
  5831. this.Adapter.DeleteCommand.Connection.Open();
  5832. }
  5833. try {
  5834. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5835. return returnValue;
  5836. }
  5837. finally {
  5838. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5839. this.Adapter.DeleteCommand.Connection.Close();
  5840. }
  5841. }
  5842. }
  5843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5845. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5846. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5847. public virtual int Insert(string Название) {
  5848. if ((Название == null)) {
  5849. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5850. }
  5851. else {
  5852. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  5853. }
  5854. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5855. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5856. != global::System.Data.ConnectionState.Open)) {
  5857. this.Adapter.InsertCommand.Connection.Open();
  5858. }
  5859. try {
  5860. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5861. return returnValue;
  5862. }
  5863. finally {
  5864. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5865. this.Adapter.InsertCommand.Connection.Close();
  5866. }
  5867. }
  5868. }
  5869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5871. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5872. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5873. public virtual int Update(string Название, int Original_ID_ЕдиницИзмерения, string Original_Название, int ID_ЕдиницИзмерения) {
  5874. if ((Название == null)) {
  5875. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5876. }
  5877. else {
  5878. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  5879. }
  5880. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_ID_ЕдиницИзмерения));
  5881. if ((Original_Название == null)) {
  5882. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  5883. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5884. }
  5885. else {
  5886. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  5887. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Название));
  5888. }
  5889. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(ID_ЕдиницИзмерения));
  5890. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5891. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5892. != global::System.Data.ConnectionState.Open)) {
  5893. this.Adapter.UpdateCommand.Connection.Open();
  5894. }
  5895. try {
  5896. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5897. return returnValue;
  5898. }
  5899. finally {
  5900. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5901. this.Adapter.UpdateCommand.Connection.Close();
  5902. }
  5903. }
  5904. }
  5905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5907. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5908. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5909. public virtual int Update(string Название, int Original_ID_ЕдиницИзмерения, string Original_Название) {
  5910. return this.Update(Название, Original_ID_ЕдиницИзмерения, Original_Название, Original_ID_ЕдиницИзмерения);
  5911. }
  5912. }
  5913. /// <summary>
  5914. ///Represents the connection and commands used to retrieve and save data.
  5915. ///</summary>
  5916. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5917. [global::System.ComponentModel.ToolboxItem(true)]
  5918. [global::System.ComponentModel.DataObjectAttribute(true)]
  5919. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5920. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5921. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5922. public partial class ЗаказыTableAdapter : global::System.ComponentModel.Component {
  5923. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5924. private global::System.Data.SqlClient.SqlConnection _connection;
  5925. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5926. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5927. private bool _clearBeforeFill;
  5928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5930. public ЗаказыTableAdapter() {
  5931. this.ClearBeforeFill = true;
  5932. }
  5933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5935. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5936. get {
  5937. if ((this._adapter == null)) {
  5938. this.InitAdapter();
  5939. }
  5940. return this._adapter;
  5941. }
  5942. }
  5943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5945. internal global::System.Data.SqlClient.SqlConnection Connection {
  5946. get {
  5947. if ((this._connection == null)) {
  5948. this.InitConnection();
  5949. }
  5950. return this._connection;
  5951. }
  5952. set {
  5953. this._connection = value;
  5954. if ((this.Adapter.InsertCommand != null)) {
  5955. this.Adapter.InsertCommand.Connection = value;
  5956. }
  5957. if ((this.Adapter.DeleteCommand != null)) {
  5958. this.Adapter.DeleteCommand.Connection = value;
  5959. }
  5960. if ((this.Adapter.UpdateCommand != null)) {
  5961. this.Adapter.UpdateCommand.Connection = value;
  5962. }
  5963. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5964. if ((this.CommandCollection[i] != null)) {
  5965. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5966. }
  5967. }
  5968. }
  5969. }
  5970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5972. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5973. get {
  5974. return this._transaction;
  5975. }
  5976. set {
  5977. this._transaction = value;
  5978. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5979. this.CommandCollection[i].Transaction = this._transaction;
  5980. }
  5981. if (((this.Adapter != null)
  5982. && (this.Adapter.DeleteCommand != null))) {
  5983. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5984. }
  5985. if (((this.Adapter != null)
  5986. && (this.Adapter.InsertCommand != null))) {
  5987. this.Adapter.InsertCommand.Transaction = this._transaction;
  5988. }
  5989. if (((this.Adapter != null)
  5990. && (this.Adapter.UpdateCommand != null))) {
  5991. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5992. }
  5993. }
  5994. }
  5995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5997. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5998. get {
  5999. if ((this._commandCollection == null)) {
  6000. this.InitCommandCollection();
  6001. }
  6002. return this._commandCollection;
  6003. }
  6004. }
  6005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6007. public bool ClearBeforeFill {
  6008. get {
  6009. return this._clearBeforeFill;
  6010. }
  6011. set {
  6012. this._clearBeforeFill = value;
  6013. }
  6014. }
  6015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6017. private void InitAdapter() {
  6018. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6019. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6020. tableMapping.SourceTable = "Table";
  6021. tableMapping.DataSetTable = "Заказы";
  6022. tableMapping.ColumnMappings.Add("ID_Заказа", "ID_Заказа");
  6023. tableMapping.ColumnMappings.Add("НомерЗаказа", "НомерЗаказа");
  6024. tableMapping.ColumnMappings.Add("ДатаЗаказа", "ДатаЗаказа");
  6025. tableMapping.ColumnMappings.Add("СтатусЗаказа", "СтатусЗаказа");
  6026. tableMapping.ColumnMappings.Add("Примечание", "Примечание");
  6027. tableMapping.ColumnMappings.Add("ID_Клиента", "ID_Клиента");
  6028. tableMapping.ColumnMappings.Add("ID_Сотрудника", "ID_Сотрудника");
  6029. tableMapping.ColumnMappings.Add("ID_Сборки", "ID_Сборки");
  6030. this._adapter.TableMappings.Add(tableMapping);
  6031. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6032. this._adapter.DeleteCommand.Connection = this.Connection;
  6033. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Заказы] WHERE (([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 ((@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_ID_Сборки = 1 AND [ID_Сборки] IS NULL) OR ([ID_Сборки] = @Original_ID_Сборки)))";
  6034. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6035. 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, "", "", ""));
  6036. 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, "", "", ""));
  6037. 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, "", "", ""));
  6038. 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, "", "", ""));
  6039. 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, "", "", ""));
  6040. 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, "", "", ""));
  6041. 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, "", "", ""));
  6042. 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, "", "", ""));
  6043. 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, "", "", ""));
  6044. 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, "", "", ""));
  6045. 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, "", "", ""));
  6046. 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, "", "", ""));
  6047. 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, "", "", ""));
  6048. 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, "", "", ""));
  6049. 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, "", "", ""));
  6050. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6051. this._adapter.InsertCommand.Connection = this.Connection;
  6052. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Заказы] ([НомерЗаказа], [ДатаЗаказа], [СтатусЗаказа], [Примечание], [ID_Клиента], [ID_Сотрудника], [ID_Сборки]) VALUES (@НомерЗаказа, @ДатаЗаказа, @СтатусЗаказа, @Примечание, @ID_Клиента, @ID_Сотрудника, @ID_Сборки);
  6053. SELECT ID_Заказа, НомерЗаказа, ДатаЗаказа, СтатусЗаказа, Примечание, ID_Клиента, ID_Сотрудника, ID_Сборки FROM Заказы WHERE (ID_Заказа = SCOPE_IDENTITY())";
  6054. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6055. 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, "", "", ""));
  6056. 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, "", "", ""));
  6057. 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, "", "", ""));
  6058. 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, "", "", ""));
  6059. 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, "", "", ""));
  6060. 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, "", "", ""));
  6061. 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, "", "", ""));
  6062. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6063. this._adapter.UpdateCommand.Connection = this.Connection;
  6064. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Заказы] SET [НомерЗаказа] = @НомерЗаказа, [ДатаЗаказа] = @ДатаЗаказа, [СтатусЗаказа] = @СтатусЗаказа, [Примечание] = @Примечание, [ID_Клиента] = @ID_Клиента, [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_СтатусЗаказа = 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_Сотрудника)) AND ((@IsNull_ID_Сборки = 1 AND [ID_Сборки] IS NULL) OR ([ID_Сборки] = @Original_ID_Сборки)));
  6065. SELECT ID_Заказа, НомерЗаказа, ДатаЗаказа, СтатусЗаказа, Примечание, ID_Клиента, ID_Сотрудника, ID_Сборки FROM Заказы WHERE (ID_Заказа = @ID_Заказа)";
  6066. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6067. 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, "", "", ""));
  6068. 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, "", "", ""));
  6069. 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, "", "", ""));
  6070. 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, "", "", ""));
  6071. 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, "", "", ""));
  6072. 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, "", "", ""));
  6073. 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, "", "", ""));
  6074. 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, "", "", ""));
  6075. 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, "", "", ""));
  6076. 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, "", "", ""));
  6077. 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, "", "", ""));
  6078. 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, "", "", ""));
  6079. 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, "", "", ""));
  6080. 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, "", "", ""));
  6081. 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, "", "", ""));
  6082. 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, "", "", ""));
  6083. 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, "", "", ""));
  6084. 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, "", "", ""));
  6085. 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, "", "", ""));
  6086. 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, "", "", ""));
  6087. 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, "", "", ""));
  6088. 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, "", "", ""));
  6089. 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, "", "", ""));
  6090. }
  6091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6093. private void InitConnection() {
  6094. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6095. this._connection.ConnectionString = global::KazarinDE.Properties.Settings.Default.KazarinDE_03ConnectionString;
  6096. }
  6097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6099. private void InitCommandCollection() {
  6100. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6101. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6102. this._commandCollection[0].Connection = this.Connection;
  6103. this._commandCollection[0].CommandText = "SELECT ID_Заказа, НомерЗаказа, ДатаЗаказа, СтатусЗаказа, Примечание, ID_Клиента, " +
  6104. "ID_Сотрудника, ID_Сборки FROM dbo.Заказы";
  6105. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6106. }
  6107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6109. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6110. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6111. public virtual int Fill(KazarinDE_03DataSet1.ЗаказыDataTable dataTable) {
  6112. this.Adapter.SelectCommand = this.CommandCollection[0];
  6113. if ((this.ClearBeforeFill == true)) {
  6114. dataTable.Clear();
  6115. }
  6116. int returnValue = this.Adapter.Fill(dataTable);
  6117. return returnValue;
  6118. }
  6119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6121. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6122. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6123. public virtual KazarinDE_03DataSet1.ЗаказыDataTable GetData() {
  6124. this.Adapter.SelectCommand = this.CommandCollection[0];
  6125. KazarinDE_03DataSet1.ЗаказыDataTable dataTable = new KazarinDE_03DataSet1.ЗаказыDataTable();
  6126. this.Adapter.Fill(dataTable);
  6127. return dataTable;
  6128. }
  6129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6131. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6132. public virtual int Update(KazarinDE_03DataSet1.ЗаказыDataTable dataTable) {
  6133. return this.Adapter.Update(dataTable);
  6134. }
  6135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6137. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6138. public virtual int Update(KazarinDE_03DataSet1 dataSet) {
  6139. return this.Adapter.Update(dataSet, "Заказы");
  6140. }
  6141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6143. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6144. public virtual int Update(global::System.Data.DataRow dataRow) {
  6145. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6146. dataRow});
  6147. }
  6148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6150. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6151. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6152. return this.Adapter.Update(dataRows);
  6153. }
  6154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6156. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6157. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6158. public virtual int Delete(int Original_ID_Заказа, global::System.Nullable<int> Original_НомерЗаказа, global::System.Nullable<global::System.DateTime> Original_ДатаЗаказа, global::System.Nullable<int> Original_СтатусЗаказа, string Original_Примечание, global::System.Nullable<int> Original_ID_Клиента, global::System.Nullable<int> Original_ID_Сотрудника, global::System.Nullable<int> Original_ID_Сборки) {
  6159. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Заказа));
  6160. if ((Original_НомерЗаказа.HasValue == true)) {
  6161. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6162. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_НомерЗаказа.Value));
  6163. }
  6164. else {
  6165. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6166. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6167. }
  6168. if ((Original_ДатаЗаказа.HasValue == true)) {
  6169. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6170. this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_ДатаЗаказа.Value));
  6171. }
  6172. else {
  6173. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6174. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6175. }
  6176. if ((Original_СтатусЗаказа.HasValue == true)) {
  6177. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6178. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_СтатусЗаказа.Value));
  6179. }
  6180. else {
  6181. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6182. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6183. }
  6184. if ((Original_Примечание == null)) {
  6185. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6186. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6187. }
  6188. else {
  6189. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6190. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Примечание));
  6191. }
  6192. if ((Original_ID_Клиента.HasValue == true)) {
  6193. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6194. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_ID_Клиента.Value));
  6195. }
  6196. else {
  6197. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6198. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6199. }
  6200. if ((Original_ID_Сотрудника.HasValue == true)) {
  6201. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  6202. this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_ID_Сотрудника.Value));
  6203. }
  6204. else {
  6205. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  6206. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  6207. }
  6208. if ((Original_ID_Сборки.HasValue == true)) {
  6209. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  6210. this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_ID_Сборки.Value));
  6211. }
  6212. else {
  6213. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  6214. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  6215. }
  6216. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6217. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6218. != global::System.Data.ConnectionState.Open)) {
  6219. this.Adapter.DeleteCommand.Connection.Open();
  6220. }
  6221. try {
  6222. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6223. return returnValue;
  6224. }
  6225. finally {
  6226. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6227. this.Adapter.DeleteCommand.Connection.Close();
  6228. }
  6229. }
  6230. }
  6231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6233. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6234. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6235. public virtual int Insert(global::System.Nullable<int> НомерЗаказа, global::System.Nullable<global::System.DateTime> ДатаЗаказа, global::System.Nullable<int> СтатусЗаказа, string Примечание, global::System.Nullable<int> ID_Клиента, global::System.Nullable<int> ID_Сотрудника, global::System.Nullable<int> ID_Сборки) {
  6236. if ((НомерЗаказа.HasValue == true)) {
  6237. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(НомерЗаказа.Value));
  6238. }
  6239. else {
  6240. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6241. }
  6242. if ((ДатаЗаказа.HasValue == true)) {
  6243. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(ДатаЗаказа.Value));
  6244. }
  6245. else {
  6246. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6247. }
  6248. if ((СтатусЗаказа.HasValue == true)) {
  6249. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(СтатусЗаказа.Value));
  6250. }
  6251. else {
  6252. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6253. }
  6254. if ((Примечание == null)) {
  6255. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6256. }
  6257. else {
  6258. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Примечание));
  6259. }
  6260. if ((ID_Клиента.HasValue == true)) {
  6261. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(ID_Клиента.Value));
  6262. }
  6263. else {
  6264. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6265. }
  6266. if ((ID_Сотрудника.HasValue == true)) {
  6267. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ID_Сотрудника.Value));
  6268. }
  6269. else {
  6270. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6271. }
  6272. if ((ID_Сборки.HasValue == true)) {
  6273. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(ID_Сборки.Value));
  6274. }
  6275. else {
  6276. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  6277. }
  6278. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6279. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6280. != global::System.Data.ConnectionState.Open)) {
  6281. this.Adapter.InsertCommand.Connection.Open();
  6282. }
  6283. try {
  6284. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6285. return returnValue;
  6286. }
  6287. finally {
  6288. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6289. this.Adapter.InsertCommand.Connection.Close();
  6290. }
  6291. }
  6292. }
  6293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6295. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6296. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6297. public virtual int Update(
  6298. global::System.Nullable<int> НомерЗаказа,
  6299. global::System.Nullable<global::System.DateTime> ДатаЗаказа,
  6300. global::System.Nullable<int> СтатусЗаказа,
  6301. string Примечание,
  6302. global::System.Nullable<int> ID_Клиента,
  6303. global::System.Nullable<int> ID_Сотрудника,
  6304. global::System.Nullable<int> ID_Сборки,
  6305. int Original_ID_Заказа,
  6306. global::System.Nullable<int> Original_НомерЗаказа,
  6307. global::System.Nullable<global::System.DateTime> Original_ДатаЗаказа,
  6308. global::System.Nullable<int> Original_СтатусЗаказа,
  6309. string Original_Примечание,
  6310. global::System.Nullable<int> Original_ID_Клиента,
  6311. global::System.Nullable<int> Original_ID_Сотрудника,
  6312. global::System.Nullable<int> Original_ID_Сборки,
  6313. int ID_Заказа) {
  6314. if ((НомерЗаказа.HasValue == true)) {
  6315. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(НомерЗаказа.Value));
  6316. }
  6317. else {
  6318. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6319. }
  6320. if ((ДатаЗаказа.HasValue == true)) {
  6321. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(ДатаЗаказа.Value));
  6322. }
  6323. else {
  6324. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6325. }
  6326. if ((СтатусЗаказа.HasValue == true)) {
  6327. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(СтатусЗаказа.Value));
  6328. }
  6329. else {
  6330. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6331. }
  6332. if ((Примечание == null)) {
  6333. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6334. }
  6335. else {
  6336. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Примечание));
  6337. }
  6338. if ((ID_Клиента.HasValue == true)) {
  6339. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(ID_Клиента.Value));
  6340. }
  6341. else {
  6342. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6343. }
  6344. if ((ID_Сотрудника.HasValue == true)) {
  6345. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID_Сотрудника.Value));
  6346. }
  6347. else {
  6348. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6349. }
  6350. if ((ID_Сборки.HasValue == true)) {
  6351. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ID_Сборки.Value));
  6352. }
  6353. else {
  6354. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  6355. }
  6356. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_ID_Заказа));
  6357. if ((Original_НомерЗаказа.HasValue == true)) {
  6358. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  6359. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_НомерЗаказа.Value));
  6360. }
  6361. else {
  6362. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  6363. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  6364. }
  6365. if ((Original_ДатаЗаказа.HasValue == true)) {
  6366. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  6367. this.Adapter.UpdateCommand.Parameters[11].Value = ((System.DateTime)(Original_ДатаЗаказа.Value));
  6368. }
  6369. else {
  6370. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  6371. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  6372. }
  6373. if ((Original_СтатусЗаказа.HasValue == true)) {
  6374. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  6375. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_СтатусЗаказа.Value));
  6376. }
  6377. else {
  6378. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  6379. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  6380. }
  6381. if ((Original_Примечание == null)) {
  6382. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  6383. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  6384. }
  6385. else {
  6386. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  6387. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Примечание));
  6388. }
  6389. if ((Original_ID_Клиента.HasValue == true)) {
  6390. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  6391. this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_ID_Клиента.Value));
  6392. }
  6393. else {
  6394. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  6395. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  6396. }
  6397. if ((Original_ID_Сотрудника.HasValue == true)) {
  6398. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  6399. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_ID_Сотрудника.Value));
  6400. }
  6401. else {
  6402. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  6403. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  6404. }
  6405. if ((Original_ID_Сборки.HasValue == true)) {
  6406. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  6407. this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_ID_Сборки.Value));
  6408. }
  6409. else {
  6410. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  6411. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  6412. }
  6413. this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(ID_Заказа));
  6414. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6415. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6416. != global::System.Data.ConnectionState.Open)) {
  6417. this.Adapter.UpdateCommand.Connection.Open();
  6418. }
  6419. try {
  6420. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6421. return returnValue;
  6422. }
  6423. finally {
  6424. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6425. this.Adapter.UpdateCommand.Connection.Close();
  6426. }
  6427. }
  6428. }
  6429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6431. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6432. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6433. public virtual int Update(global::System.Nullable<int> НомерЗаказа, global::System.Nullable<global::System.DateTime> ДатаЗаказа, global::System.Nullable<int> СтатусЗаказа, string Примечание, global::System.Nullable<int> ID_Клиента, 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_СтатусЗаказа, string Original_Примечание, global::System.Nullable<int> Original_ID_Клиента, global::System.Nullable<int> Original_ID_Сотрудника, global::System.Nullable<int> Original_ID_Сборки) {
  6434. return this.Update(НомерЗаказа, ДатаЗаказа, СтатусЗаказа, Примечание, ID_Клиента, ID_Сотрудника, ID_Сборки, Original_ID_Заказа, Original_НомерЗаказа, Original_ДатаЗаказа, Original_СтатусЗаказа, Original_Примечание, Original_ID_Клиента, Original_ID_Сотрудника, Original_ID_Сборки, Original_ID_Заказа);
  6435. }
  6436. }
  6437. /// <summary>
  6438. ///Represents the connection and commands used to retrieve and save data.
  6439. ///</summary>
  6440. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6441. [global::System.ComponentModel.ToolboxItem(true)]
  6442. [global::System.ComponentModel.DataObjectAttribute(true)]
  6443. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6444. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6445. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6446. public partial class КлиентыTableAdapter : global::System.ComponentModel.Component {
  6447. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6448. private global::System.Data.SqlClient.SqlConnection _connection;
  6449. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6450. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6451. private bool _clearBeforeFill;
  6452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6454. public КлиентыTableAdapter() {
  6455. this.ClearBeforeFill = true;
  6456. }
  6457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6459. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6460. get {
  6461. if ((this._adapter == null)) {
  6462. this.InitAdapter();
  6463. }
  6464. return this._adapter;
  6465. }
  6466. }
  6467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6469. internal global::System.Data.SqlClient.SqlConnection Connection {
  6470. get {
  6471. if ((this._connection == null)) {
  6472. this.InitConnection();
  6473. }
  6474. return this._connection;
  6475. }
  6476. set {
  6477. this._connection = value;
  6478. if ((this.Adapter.InsertCommand != null)) {
  6479. this.Adapter.InsertCommand.Connection = value;
  6480. }
  6481. if ((this.Adapter.DeleteCommand != null)) {
  6482. this.Adapter.DeleteCommand.Connection = value;
  6483. }
  6484. if ((this.Adapter.UpdateCommand != null)) {
  6485. this.Adapter.UpdateCommand.Connection = value;
  6486. }
  6487. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6488. if ((this.CommandCollection[i] != null)) {
  6489. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6490. }
  6491. }
  6492. }
  6493. }
  6494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6496. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6497. get {
  6498. return this._transaction;
  6499. }
  6500. set {
  6501. this._transaction = value;
  6502. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6503. this.CommandCollection[i].Transaction = this._transaction;
  6504. }
  6505. if (((this.Adapter != null)
  6506. && (this.Adapter.DeleteCommand != null))) {
  6507. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6508. }
  6509. if (((this.Adapter != null)
  6510. && (this.Adapter.InsertCommand != null))) {
  6511. this.Adapter.InsertCommand.Transaction = this._transaction;
  6512. }
  6513. if (((this.Adapter != null)
  6514. && (this.Adapter.UpdateCommand != null))) {
  6515. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6516. }
  6517. }
  6518. }
  6519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6521. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6522. get {
  6523. if ((this._commandCollection == null)) {
  6524. this.InitCommandCollection();
  6525. }
  6526. return this._commandCollection;
  6527. }
  6528. }
  6529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6531. public bool ClearBeforeFill {
  6532. get {
  6533. return this._clearBeforeFill;
  6534. }
  6535. set {
  6536. this._clearBeforeFill = value;
  6537. }
  6538. }
  6539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6541. private void InitAdapter() {
  6542. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6543. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6544. tableMapping.SourceTable = "Table";
  6545. tableMapping.DataSetTable = "Клиенты";
  6546. tableMapping.ColumnMappings.Add("ID_Клиента", "ID_Клиента");
  6547. tableMapping.ColumnMappings.Add("Имя", "Имя");
  6548. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  6549. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  6550. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  6551. tableMapping.ColumnMappings.Add("Адрес", "Адрес");
  6552. this._adapter.TableMappings.Add(tableMapping);
  6553. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6554. this._adapter.DeleteCommand.Connection = this.Connection;
  6555. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Клиенты] WHERE (([ID_Клиента] = @Original_ID_Клиента) AND ([Имя] = @Original_Имя) AND ([Фамилия] = @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_Адрес)))";
  6556. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6557. 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, "", "", ""));
  6558. 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, "", "", ""));
  6559. 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, "", "", ""));
  6560. 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, "", "", ""));
  6561. 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, "", "", ""));
  6562. 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, "", "", ""));
  6563. 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, "", "", ""));
  6564. 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, "", "", ""));
  6565. 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, "", "", ""));
  6566. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6567. this._adapter.InsertCommand.Connection = this.Connection;
  6568. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Клиенты] ([Имя], [Фамилия], [Отчество], [Телефон], [Адрес]) VA" +
  6569. "LUES (@Имя, @Фамилия, @Отчество, @Телефон, @Адрес);\r\nSELECT ID_Клиента, Имя, Фам" +
  6570. "илия, Отчество, Телефон, Адрес FROM Клиенты WHERE (ID_Клиента = SCOPE_IDENTITY()" +
  6571. ")";
  6572. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6573. 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, "", "", ""));
  6574. 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, "", "", ""));
  6575. 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, "", "", ""));
  6576. 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, "", "", ""));
  6577. 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, "", "", ""));
  6578. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6579. this._adapter.UpdateCommand.Connection = this.Connection;
  6580. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Клиенты] SET [Имя] = @Имя, [Фамилия] = @Фамилия, [Отчество] = @Отчество, [Телефон] = @Телефон, [Адрес] = @Адрес WHERE (([ID_Клиента] = @Original_ID_Клиента) AND ([Имя] = @Original_Имя) AND ([Фамилия] = @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_Адрес)));
  6581. SELECT ID_Клиента, Имя, Фамилия, Отчество, Телефон, Адрес FROM Клиенты WHERE (ID_Клиента = @ID_Клиента)";
  6582. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6583. 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, "", "", ""));
  6584. 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, "", "", ""));
  6585. 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, "", "", ""));
  6586. 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, "", "", ""));
  6587. 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, "", "", ""));
  6588. 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, "", "", ""));
  6589. 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, "", "", ""));
  6590. 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, "", "", ""));
  6591. 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, "", "", ""));
  6592. 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, "", "", ""));
  6593. 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, "", "", ""));
  6594. 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, "", "", ""));
  6595. 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, "", "", ""));
  6596. 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, "", "", ""));
  6597. 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, "", "", ""));
  6598. }
  6599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6601. private void InitConnection() {
  6602. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6603. this._connection.ConnectionString = global::KazarinDE.Properties.Settings.Default.KazarinDE_03ConnectionString;
  6604. }
  6605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6607. private void InitCommandCollection() {
  6608. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6609. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6610. this._commandCollection[0].Connection = this.Connection;
  6611. this._commandCollection[0].CommandText = "SELECT ID_Клиента, Имя, Фамилия, Отчество, Телефон, Адрес FROM dbo.Клиенты";
  6612. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6613. }
  6614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6616. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6617. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6618. public virtual int Fill(KazarinDE_03DataSet1.КлиентыDataTable dataTable) {
  6619. this.Adapter.SelectCommand = this.CommandCollection[0];
  6620. if ((this.ClearBeforeFill == true)) {
  6621. dataTable.Clear();
  6622. }
  6623. int returnValue = this.Adapter.Fill(dataTable);
  6624. return returnValue;
  6625. }
  6626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6628. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6629. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6630. public virtual KazarinDE_03DataSet1.КлиентыDataTable GetData() {
  6631. this.Adapter.SelectCommand = this.CommandCollection[0];
  6632. KazarinDE_03DataSet1.КлиентыDataTable dataTable = new KazarinDE_03DataSet1.КлиентыDataTable();
  6633. this.Adapter.Fill(dataTable);
  6634. return dataTable;
  6635. }
  6636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6638. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6639. public virtual int Update(KazarinDE_03DataSet1.КлиентыDataTable dataTable) {
  6640. return this.Adapter.Update(dataTable);
  6641. }
  6642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6644. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6645. public virtual int Update(KazarinDE_03DataSet1 dataSet) {
  6646. return this.Adapter.Update(dataSet, "Клиенты");
  6647. }
  6648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6650. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6651. public virtual int Update(global::System.Data.DataRow dataRow) {
  6652. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6653. dataRow});
  6654. }
  6655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6657. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6658. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6659. return this.Adapter.Update(dataRows);
  6660. }
  6661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6663. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6664. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6665. public virtual int Delete(int Original_ID_Клиента, string Original_Имя, string Original_Фамилия, string Original_Отчество, string Original_Телефон, string Original_Адрес) {
  6666. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Клиента));
  6667. if ((Original_Имя == null)) {
  6668. throw new global::System.ArgumentNullException("Original_Имя");
  6669. }
  6670. else {
  6671. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Имя));
  6672. }
  6673. if ((Original_Фамилия == null)) {
  6674. throw new global::System.ArgumentNullException("Original_Фамилия");
  6675. }
  6676. else {
  6677. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Фамилия));
  6678. }
  6679. if ((Original_Отчество == null)) {
  6680. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6681. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6682. }
  6683. else {
  6684. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6685. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Отчество));
  6686. }
  6687. if ((Original_Телефон == null)) {
  6688. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6689. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6690. }
  6691. else {
  6692. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6693. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Телефон));
  6694. }
  6695. if ((Original_Адрес == null)) {
  6696. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6697. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6698. }
  6699. else {
  6700. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6701. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Адрес));
  6702. }
  6703. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6704. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6705. != global::System.Data.ConnectionState.Open)) {
  6706. this.Adapter.DeleteCommand.Connection.Open();
  6707. }
  6708. try {
  6709. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6710. return returnValue;
  6711. }
  6712. finally {
  6713. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6714. this.Adapter.DeleteCommand.Connection.Close();
  6715. }
  6716. }
  6717. }
  6718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6720. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6721. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6722. public virtual int Insert(string Имя, string Фамилия, string Отчество, string Телефон, string Адрес) {
  6723. if ((Имя == null)) {
  6724. throw new global::System.ArgumentNullException("Имя");
  6725. }
  6726. else {
  6727. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Имя));
  6728. }
  6729. if ((Фамилия == null)) {
  6730. throw new global::System.ArgumentNullException("Фамилия");
  6731. }
  6732. else {
  6733. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Фамилия));
  6734. }
  6735. if ((Отчество == null)) {
  6736. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6737. }
  6738. else {
  6739. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Отчество));
  6740. }
  6741. if ((Телефон == null)) {
  6742. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6743. }
  6744. else {
  6745. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Телефон));
  6746. }
  6747. if ((Адрес == null)) {
  6748. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6749. }
  6750. else {
  6751. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Адрес));
  6752. }
  6753. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6754. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6755. != global::System.Data.ConnectionState.Open)) {
  6756. this.Adapter.InsertCommand.Connection.Open();
  6757. }
  6758. try {
  6759. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6760. return returnValue;
  6761. }
  6762. finally {
  6763. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6764. this.Adapter.InsertCommand.Connection.Close();
  6765. }
  6766. }
  6767. }
  6768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6770. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6771. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6772. public virtual int Update(string Имя, string Фамилия, string Отчество, string Телефон, string Адрес, int Original_ID_Клиента, string Original_Имя, string Original_Фамилия, string Original_Отчество, string Original_Телефон, string Original_Адрес, int ID_Клиента) {
  6773. if ((Имя == null)) {
  6774. throw new global::System.ArgumentNullException("Имя");
  6775. }
  6776. else {
  6777. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Имя));
  6778. }
  6779. if ((Фамилия == null)) {
  6780. throw new global::System.ArgumentNullException("Фамилия");
  6781. }
  6782. else {
  6783. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Фамилия));
  6784. }
  6785. if ((Отчество == null)) {
  6786. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6787. }
  6788. else {
  6789. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Отчество));
  6790. }
  6791. if ((Телефон == null)) {
  6792. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6793. }
  6794. else {
  6795. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Телефон));
  6796. }
  6797. if ((Адрес == null)) {
  6798. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6799. }
  6800. else {
  6801. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Адрес));
  6802. }
  6803. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_ID_Клиента));
  6804. if ((Original_Имя == null)) {
  6805. throw new global::System.ArgumentNullException("Original_Имя");
  6806. }
  6807. else {
  6808. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Имя));
  6809. }
  6810. if ((Original_Фамилия == null)) {
  6811. throw new global::System.ArgumentNullException("Original_Фамилия");
  6812. }
  6813. else {
  6814. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Фамилия));
  6815. }
  6816. if ((Original_Отчество == null)) {
  6817. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  6818. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  6819. }
  6820. else {
  6821. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  6822. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Отчество));
  6823. }
  6824. if ((Original_Телефон == null)) {
  6825. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  6826. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  6827. }
  6828. else {
  6829. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  6830. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Телефон));
  6831. }
  6832. if ((Original_Адрес == null)) {
  6833. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  6834. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  6835. }
  6836. else {
  6837. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  6838. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Адрес));
  6839. }
  6840. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID_Клиента));
  6841. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6842. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6843. != global::System.Data.ConnectionState.Open)) {
  6844. this.Adapter.UpdateCommand.Connection.Open();
  6845. }
  6846. try {
  6847. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6848. return returnValue;
  6849. }
  6850. finally {
  6851. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6852. this.Adapter.UpdateCommand.Connection.Close();
  6853. }
  6854. }
  6855. }
  6856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6858. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6859. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6860. public virtual int Update(string Имя, string Фамилия, string Отчество, string Телефон, string Адрес, int Original_ID_Клиента, string Original_Имя, string Original_Фамилия, string Original_Отчество, string Original_Телефон, string Original_Адрес) {
  6861. return this.Update(Имя, Фамилия, Отчество, Телефон, Адрес, Original_ID_Клиента, Original_Имя, Original_Фамилия, Original_Отчество, Original_Телефон, Original_Адрес, Original_ID_Клиента);
  6862. }
  6863. }
  6864. /// <summary>
  6865. ///Represents the connection and commands used to retrieve and save data.
  6866. ///</summary>
  6867. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6868. [global::System.ComponentModel.ToolboxItem(true)]
  6869. [global::System.ComponentModel.DataObjectAttribute(true)]
  6870. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6871. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6872. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6873. public partial class КомплектующиеTableAdapter : global::System.ComponentModel.Component {
  6874. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6875. private global::System.Data.SqlClient.SqlConnection _connection;
  6876. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6877. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6878. private bool _clearBeforeFill;
  6879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6881. public КомплектующиеTableAdapter() {
  6882. this.ClearBeforeFill = true;
  6883. }
  6884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6886. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6887. get {
  6888. if ((this._adapter == null)) {
  6889. this.InitAdapter();
  6890. }
  6891. return this._adapter;
  6892. }
  6893. }
  6894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6896. internal global::System.Data.SqlClient.SqlConnection Connection {
  6897. get {
  6898. if ((this._connection == null)) {
  6899. this.InitConnection();
  6900. }
  6901. return this._connection;
  6902. }
  6903. set {
  6904. this._connection = value;
  6905. if ((this.Adapter.InsertCommand != null)) {
  6906. this.Adapter.InsertCommand.Connection = value;
  6907. }
  6908. if ((this.Adapter.DeleteCommand != null)) {
  6909. this.Adapter.DeleteCommand.Connection = value;
  6910. }
  6911. if ((this.Adapter.UpdateCommand != null)) {
  6912. this.Adapter.UpdateCommand.Connection = value;
  6913. }
  6914. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6915. if ((this.CommandCollection[i] != null)) {
  6916. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6917. }
  6918. }
  6919. }
  6920. }
  6921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6923. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6924. get {
  6925. return this._transaction;
  6926. }
  6927. set {
  6928. this._transaction = value;
  6929. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6930. this.CommandCollection[i].Transaction = this._transaction;
  6931. }
  6932. if (((this.Adapter != null)
  6933. && (this.Adapter.DeleteCommand != null))) {
  6934. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6935. }
  6936. if (((this.Adapter != null)
  6937. && (this.Adapter.InsertCommand != null))) {
  6938. this.Adapter.InsertCommand.Transaction = this._transaction;
  6939. }
  6940. if (((this.Adapter != null)
  6941. && (this.Adapter.UpdateCommand != null))) {
  6942. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6943. }
  6944. }
  6945. }
  6946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6948. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6949. get {
  6950. if ((this._commandCollection == null)) {
  6951. this.InitCommandCollection();
  6952. }
  6953. return this._commandCollection;
  6954. }
  6955. }
  6956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6958. public bool ClearBeforeFill {
  6959. get {
  6960. return this._clearBeforeFill;
  6961. }
  6962. set {
  6963. this._clearBeforeFill = value;
  6964. }
  6965. }
  6966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6968. private void InitAdapter() {
  6969. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6970. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6971. tableMapping.SourceTable = "Table";
  6972. tableMapping.DataSetTable = "Комплектующие";
  6973. tableMapping.ColumnMappings.Add("ID_Комплектующего", "ID_Комплектующего");
  6974. tableMapping.ColumnMappings.Add("Название", "Название");
  6975. tableMapping.ColumnMappings.Add("Тип", "Тип");
  6976. tableMapping.ColumnMappings.Add("Поставщик", "Поставщик");
  6977. tableMapping.ColumnMappings.Add("КоличествоНаСкладе", "КоличествоНаСкладе");
  6978. tableMapping.ColumnMappings.Add("ЕдиницыИзмерения", "ЕдиницыИзмерения");
  6979. tableMapping.ColumnMappings.Add("Цена", "Цена");
  6980. this._adapter.TableMappings.Add(tableMapping);
  6981. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6982. this._adapter.DeleteCommand.Connection = this.Connection;
  6983. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Комплектующие] WHERE (([ID_Комплектующего] = @Original_ID_Комплектующего) AND ([Название] = @Original_Название) AND ([Тип] = @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_Цена)))";
  6984. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6985. 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, "", "", ""));
  6986. 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, "", "", ""));
  6987. 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, "", "", ""));
  6988. 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, "", "", ""));
  6989. 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, "", "", ""));
  6990. 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, "", "", ""));
  6991. 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, "", "", ""));
  6992. 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, "", "", ""));
  6993. 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, "", "", ""));
  6994. 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, "", "", ""));
  6995. 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, "", "", ""));
  6996. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6997. this._adapter.InsertCommand.Connection = this.Connection;
  6998. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Комплектующие] ([Название], [Тип], [Поставщик], [КоличествоНаСкладе], [ЕдиницыИзмерения], [Цена]) VALUES (@Название, @Тип, @Поставщик, @КоличествоНаСкладе, @ЕдиницыИзмерения, @Цена);
  6999. SELECT ID_Комплектующего, Название, Тип, Поставщик, КоличествоНаСкладе, ЕдиницыИзмерения, Цена FROM Комплектующие WHERE (ID_Комплектующего = SCOPE_IDENTITY())";
  7000. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7001. 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, "", "", ""));
  7002. 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, "", "", ""));
  7003. 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, "", "", ""));
  7004. 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, "", "", ""));
  7005. 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, "", "", ""));
  7006. 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, "", "", ""));
  7007. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7008. this._adapter.UpdateCommand.Connection = this.Connection;
  7009. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Комплектующие] SET [Название] = @Название, [Тип] = @Тип, [Поставщик] = @Поставщик, [КоличествоНаСкладе] = @КоличествоНаСкладе, [ЕдиницыИзмерения] = @ЕдиницыИзмерения, [Цена] = @Цена WHERE (([ID_Комплектующего] = @Original_ID_Комплектующего) AND ([Название] = @Original_Название) AND ([Тип] = @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_Цена)));
  7010. SELECT ID_Комплектующего, Название, Тип, Поставщик, КоличествоНаСкладе, ЕдиницыИзмерения, Цена FROM Комплектующие WHERE (ID_Комплектующего = @ID_Комплектующего)";
  7011. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7012. 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, "", "", ""));
  7013. 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, "", "", ""));
  7014. 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, "", "", ""));
  7015. 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, "", "", ""));
  7016. 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, "", "", ""));
  7017. 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, "", "", ""));
  7018. 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, "", "", ""));
  7019. 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, "", "", ""));
  7020. 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, "", "", ""));
  7021. 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, "", "", ""));
  7022. 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, "", "", ""));
  7023. 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, "", "", ""));
  7024. 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, "", "", ""));
  7025. 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, "", "", ""));
  7026. 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, "", "", ""));
  7027. 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, "", "", ""));
  7028. 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, "", "", ""));
  7029. 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, "", "", ""));
  7030. }
  7031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7033. private void InitConnection() {
  7034. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7035. this._connection.ConnectionString = global::KazarinDE.Properties.Settings.Default.KazarinDE_03ConnectionString;
  7036. }
  7037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7039. private void InitCommandCollection() {
  7040. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7041. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7042. this._commandCollection[0].Connection = this.Connection;
  7043. this._commandCollection[0].CommandText = "SELECT ID_Комплектующего, Название, Тип, Поставщик, КоличествоНаСкладе, ЕдиницыИз" +
  7044. "мерения, Цена FROM dbo.Комплектующие";
  7045. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7046. }
  7047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7049. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7050. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7051. public virtual int Fill(KazarinDE_03DataSet1.КомплектующиеDataTable dataTable) {
  7052. this.Adapter.SelectCommand = this.CommandCollection[0];
  7053. if ((this.ClearBeforeFill == true)) {
  7054. dataTable.Clear();
  7055. }
  7056. int returnValue = this.Adapter.Fill(dataTable);
  7057. return returnValue;
  7058. }
  7059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7061. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7062. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7063. public virtual KazarinDE_03DataSet1.КомплектующиеDataTable GetData() {
  7064. this.Adapter.SelectCommand = this.CommandCollection[0];
  7065. KazarinDE_03DataSet1.КомплектующиеDataTable dataTable = new KazarinDE_03DataSet1.КомплектующиеDataTable();
  7066. this.Adapter.Fill(dataTable);
  7067. return dataTable;
  7068. }
  7069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7071. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7072. public virtual int Update(KazarinDE_03DataSet1.КомплектующиеDataTable dataTable) {
  7073. return this.Adapter.Update(dataTable);
  7074. }
  7075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7077. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7078. public virtual int Update(KazarinDE_03DataSet1 dataSet) {
  7079. return this.Adapter.Update(dataSet, "Комплектующие");
  7080. }
  7081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7083. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7084. public virtual int Update(global::System.Data.DataRow dataRow) {
  7085. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7086. dataRow});
  7087. }
  7088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7090. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7091. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7092. return this.Adapter.Update(dataRows);
  7093. }
  7094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7096. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7097. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7098. public virtual int Delete(int Original_ID_Комплектующего, string Original_Название, int Original_Тип, global::System.Nullable<int> Original_Поставщик, global::System.Nullable<int> Original_КоличествоНаСкладе, global::System.Nullable<int> Original_ЕдиницыИзмерения, string Original_Цена) {
  7099. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Комплектующего));
  7100. if ((Original_Название == null)) {
  7101. throw new global::System.ArgumentNullException("Original_Название");
  7102. }
  7103. else {
  7104. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Название));
  7105. }
  7106. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_Тип));
  7107. if ((Original_Поставщик.HasValue == true)) {
  7108. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7109. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Поставщик.Value));
  7110. }
  7111. else {
  7112. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7113. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7114. }
  7115. if ((Original_КоличествоНаСкладе.HasValue == true)) {
  7116. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7117. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_КоличествоНаСкладе.Value));
  7118. }
  7119. else {
  7120. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7121. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7122. }
  7123. if ((Original_ЕдиницыИзмерения.HasValue == true)) {
  7124. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  7125. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_ЕдиницыИзмерения.Value));
  7126. }
  7127. else {
  7128. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  7129. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  7130. }
  7131. if ((Original_Цена == null)) {
  7132. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  7133. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  7134. }
  7135. else {
  7136. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  7137. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Цена));
  7138. }
  7139. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7140. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7141. != global::System.Data.ConnectionState.Open)) {
  7142. this.Adapter.DeleteCommand.Connection.Open();
  7143. }
  7144. try {
  7145. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7146. return returnValue;
  7147. }
  7148. finally {
  7149. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7150. this.Adapter.DeleteCommand.Connection.Close();
  7151. }
  7152. }
  7153. }
  7154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7156. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7157. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7158. public virtual int Insert(string Название, int Тип, global::System.Nullable<int> Поставщик, global::System.Nullable<int> КоличествоНаСкладе, global::System.Nullable<int> ЕдиницыИзмерения, string Цена) {
  7159. if ((Название == null)) {
  7160. throw new global::System.ArgumentNullException("Название");
  7161. }
  7162. else {
  7163. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  7164. }
  7165. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Тип));
  7166. if ((Поставщик.HasValue == true)) {
  7167. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Поставщик.Value));
  7168. }
  7169. else {
  7170. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7171. }
  7172. if ((КоличествоНаСкладе.HasValue == true)) {
  7173. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(КоличествоНаСкладе.Value));
  7174. }
  7175. else {
  7176. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7177. }
  7178. if ((ЕдиницыИзмерения.HasValue == true)) {
  7179. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(ЕдиницыИзмерения.Value));
  7180. }
  7181. else {
  7182. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  7183. }
  7184. if ((Цена == null)) {
  7185. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  7186. }
  7187. else {
  7188. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Цена));
  7189. }
  7190. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7191. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7192. != global::System.Data.ConnectionState.Open)) {
  7193. this.Adapter.InsertCommand.Connection.Open();
  7194. }
  7195. try {
  7196. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7197. return returnValue;
  7198. }
  7199. finally {
  7200. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7201. this.Adapter.InsertCommand.Connection.Close();
  7202. }
  7203. }
  7204. }
  7205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7207. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7208. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7209. public virtual int Update(string Название, int Тип, global::System.Nullable<int> Поставщик, global::System.Nullable<int> КоличествоНаСкладе, global::System.Nullable<int> ЕдиницыИзмерения, string Цена, int Original_ID_Комплектующего, string Original_Название, int Original_Тип, global::System.Nullable<int> Original_Поставщик, global::System.Nullable<int> Original_КоличествоНаСкладе, global::System.Nullable<int> Original_ЕдиницыИзмерения, string Original_Цена, int ID_Комплектующего) {
  7210. if ((Название == null)) {
  7211. throw new global::System.ArgumentNullException("Название");
  7212. }
  7213. else {
  7214. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  7215. }
  7216. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Тип));
  7217. if ((Поставщик.HasValue == true)) {
  7218. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Поставщик.Value));
  7219. }
  7220. else {
  7221. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7222. }
  7223. if ((КоличествоНаСкладе.HasValue == true)) {
  7224. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(КоличествоНаСкладе.Value));
  7225. }
  7226. else {
  7227. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7228. }
  7229. if ((ЕдиницыИзмерения.HasValue == true)) {
  7230. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(ЕдиницыИзмерения.Value));
  7231. }
  7232. else {
  7233. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7234. }
  7235. if ((Цена == null)) {
  7236. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7237. }
  7238. else {
  7239. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Цена));
  7240. }
  7241. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID_Комплектующего));
  7242. if ((Original_Название == null)) {
  7243. throw new global::System.ArgumentNullException("Original_Название");
  7244. }
  7245. else {
  7246. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Название));
  7247. }
  7248. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_Тип));
  7249. if ((Original_Поставщик.HasValue == true)) {
  7250. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  7251. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_Поставщик.Value));
  7252. }
  7253. else {
  7254. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  7255. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7256. }
  7257. if ((Original_КоличествоНаСкладе.HasValue == true)) {
  7258. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  7259. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_КоличествоНаСкладе.Value));
  7260. }
  7261. else {
  7262. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  7263. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  7264. }
  7265. if ((Original_ЕдиницыИзмерения.HasValue == true)) {
  7266. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  7267. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_ЕдиницыИзмерения.Value));
  7268. }
  7269. else {
  7270. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  7271. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  7272. }
  7273. if ((Original_Цена == null)) {
  7274. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  7275. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  7276. }
  7277. else {
  7278. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  7279. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Цена));
  7280. }
  7281. this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(ID_Комплектующего));
  7282. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7283. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7284. != global::System.Data.ConnectionState.Open)) {
  7285. this.Adapter.UpdateCommand.Connection.Open();
  7286. }
  7287. try {
  7288. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7289. return returnValue;
  7290. }
  7291. finally {
  7292. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7293. this.Adapter.UpdateCommand.Connection.Close();
  7294. }
  7295. }
  7296. }
  7297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7299. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7300. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7301. public virtual int Update(string Название, int Тип, global::System.Nullable<int> Поставщик, global::System.Nullable<int> КоличествоНаСкладе, global::System.Nullable<int> ЕдиницыИзмерения, string Цена, int Original_ID_Комплектующего, string Original_Название, int Original_Тип, global::System.Nullable<int> Original_Поставщик, global::System.Nullable<int> Original_КоличествоНаСкладе, global::System.Nullable<int> Original_ЕдиницыИзмерения, string Original_Цена) {
  7302. return this.Update(Название, Тип, Поставщик, КоличествоНаСкладе, ЕдиницыИзмерения, Цена, Original_ID_Комплектующего, Original_Название, Original_Тип, Original_Поставщик, Original_КоличествоНаСкладе, Original_ЕдиницыИзмерения, Original_Цена, Original_ID_Комплектующего);
  7303. }
  7304. }
  7305. /// <summary>
  7306. ///Represents the connection and commands used to retrieve and save data.
  7307. ///</summary>
  7308. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7309. [global::System.ComponentModel.ToolboxItem(true)]
  7310. [global::System.ComponentModel.DataObjectAttribute(true)]
  7311. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7312. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7313. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7314. public partial class КомпьютерыTableAdapter : global::System.ComponentModel.Component {
  7315. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7316. private global::System.Data.SqlClient.SqlConnection _connection;
  7317. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7318. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7319. private bool _clearBeforeFill;
  7320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7322. public КомпьютерыTableAdapter() {
  7323. this.ClearBeforeFill = true;
  7324. }
  7325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7327. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7328. get {
  7329. if ((this._adapter == null)) {
  7330. this.InitAdapter();
  7331. }
  7332. return this._adapter;
  7333. }
  7334. }
  7335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7337. internal global::System.Data.SqlClient.SqlConnection Connection {
  7338. get {
  7339. if ((this._connection == null)) {
  7340. this.InitConnection();
  7341. }
  7342. return this._connection;
  7343. }
  7344. set {
  7345. this._connection = value;
  7346. if ((this.Adapter.InsertCommand != null)) {
  7347. this.Adapter.InsertCommand.Connection = value;
  7348. }
  7349. if ((this.Adapter.DeleteCommand != null)) {
  7350. this.Adapter.DeleteCommand.Connection = value;
  7351. }
  7352. if ((this.Adapter.UpdateCommand != null)) {
  7353. this.Adapter.UpdateCommand.Connection = value;
  7354. }
  7355. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7356. if ((this.CommandCollection[i] != null)) {
  7357. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7358. }
  7359. }
  7360. }
  7361. }
  7362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7364. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7365. get {
  7366. return this._transaction;
  7367. }
  7368. set {
  7369. this._transaction = value;
  7370. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7371. this.CommandCollection[i].Transaction = this._transaction;
  7372. }
  7373. if (((this.Adapter != null)
  7374. && (this.Adapter.DeleteCommand != null))) {
  7375. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7376. }
  7377. if (((this.Adapter != null)
  7378. && (this.Adapter.InsertCommand != null))) {
  7379. this.Adapter.InsertCommand.Transaction = this._transaction;
  7380. }
  7381. if (((this.Adapter != null)
  7382. && (this.Adapter.UpdateCommand != null))) {
  7383. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7384. }
  7385. }
  7386. }
  7387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7389. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7390. get {
  7391. if ((this._commandCollection == null)) {
  7392. this.InitCommandCollection();
  7393. }
  7394. return this._commandCollection;
  7395. }
  7396. }
  7397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7399. public bool ClearBeforeFill {
  7400. get {
  7401. return this._clearBeforeFill;
  7402. }
  7403. set {
  7404. this._clearBeforeFill = value;
  7405. }
  7406. }
  7407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7409. private void InitAdapter() {
  7410. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7411. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7412. tableMapping.SourceTable = "Table";
  7413. tableMapping.DataSetTable = "Компьютеры";
  7414. tableMapping.ColumnMappings.Add("ID_ПК", "ID_ПК");
  7415. tableMapping.ColumnMappings.Add("Модель", "Модель");
  7416. this._adapter.TableMappings.Add(tableMapping);
  7417. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7418. this._adapter.DeleteCommand.Connection = this.Connection;
  7419. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Компьютеры] WHERE (([ID_ПК] = @Original_ID_ПК))";
  7420. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7421. 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, "", "", ""));
  7422. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7423. this._adapter.InsertCommand.Connection = this.Connection;
  7424. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Компьютеры] ([Модель]) VALUES (@Модель);\r\nSELECT ID_ПК, Модель" +
  7425. " FROM Компьютеры WHERE (ID_ПК = SCOPE_IDENTITY())";
  7426. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7427. 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, "", "", ""));
  7428. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7429. this._adapter.UpdateCommand.Connection = this.Connection;
  7430. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Компьютеры] SET [Модель] = @Модель WHERE (([ID_ПК] = @Original_ID_П" +
  7431. "К));\r\nSELECT ID_ПК, Модель FROM Компьютеры WHERE (ID_ПК = @ID_ПК)";
  7432. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7433. 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, "", "", ""));
  7434. 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, "", "", ""));
  7435. 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, "", "", ""));
  7436. }
  7437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7439. private void InitConnection() {
  7440. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7441. this._connection.ConnectionString = global::KazarinDE.Properties.Settings.Default.KazarinDE_03ConnectionString;
  7442. }
  7443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7445. private void InitCommandCollection() {
  7446. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7447. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7448. this._commandCollection[0].Connection = this.Connection;
  7449. this._commandCollection[0].CommandText = "SELECT ID_ПК, Модель FROM dbo.Компьютеры";
  7450. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7451. }
  7452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7454. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7455. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7456. public virtual int Fill(KazarinDE_03DataSet1.КомпьютерыDataTable dataTable) {
  7457. this.Adapter.SelectCommand = this.CommandCollection[0];
  7458. if ((this.ClearBeforeFill == true)) {
  7459. dataTable.Clear();
  7460. }
  7461. int returnValue = this.Adapter.Fill(dataTable);
  7462. return returnValue;
  7463. }
  7464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7466. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7467. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7468. public virtual KazarinDE_03DataSet1.КомпьютерыDataTable GetData() {
  7469. this.Adapter.SelectCommand = this.CommandCollection[0];
  7470. KazarinDE_03DataSet1.КомпьютерыDataTable dataTable = new KazarinDE_03DataSet1.КомпьютерыDataTable();
  7471. this.Adapter.Fill(dataTable);
  7472. return dataTable;
  7473. }
  7474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7476. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7477. public virtual int Update(KazarinDE_03DataSet1.КомпьютерыDataTable dataTable) {
  7478. return this.Adapter.Update(dataTable);
  7479. }
  7480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7482. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7483. public virtual int Update(KazarinDE_03DataSet1 dataSet) {
  7484. return this.Adapter.Update(dataSet, "Компьютеры");
  7485. }
  7486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7488. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7489. public virtual int Update(global::System.Data.DataRow dataRow) {
  7490. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7491. dataRow});
  7492. }
  7493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7495. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7496. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7497. return this.Adapter.Update(dataRows);
  7498. }
  7499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7501. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7502. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7503. public virtual int Delete(int Original_ID_ПК) {
  7504. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_ПК));
  7505. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7506. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7507. != global::System.Data.ConnectionState.Open)) {
  7508. this.Adapter.DeleteCommand.Connection.Open();
  7509. }
  7510. try {
  7511. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7512. return returnValue;
  7513. }
  7514. finally {
  7515. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7516. this.Adapter.DeleteCommand.Connection.Close();
  7517. }
  7518. }
  7519. }
  7520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7522. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7523. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7524. public virtual int Insert(string Модель) {
  7525. if ((Модель == null)) {
  7526. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7527. }
  7528. else {
  7529. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Модель));
  7530. }
  7531. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7532. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7533. != global::System.Data.ConnectionState.Open)) {
  7534. this.Adapter.InsertCommand.Connection.Open();
  7535. }
  7536. try {
  7537. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7538. return returnValue;
  7539. }
  7540. finally {
  7541. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7542. this.Adapter.InsertCommand.Connection.Close();
  7543. }
  7544. }
  7545. }
  7546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7548. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7549. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7550. public virtual int Update(string Модель, int Original_ID_ПК, int ID_ПК) {
  7551. if ((Модель == null)) {
  7552. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7553. }
  7554. else {
  7555. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Модель));
  7556. }
  7557. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_ID_ПК));
  7558. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(ID_ПК));
  7559. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7560. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7561. != global::System.Data.ConnectionState.Open)) {
  7562. this.Adapter.UpdateCommand.Connection.Open();
  7563. }
  7564. try {
  7565. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7566. return returnValue;
  7567. }
  7568. finally {
  7569. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7570. this.Adapter.UpdateCommand.Connection.Close();
  7571. }
  7572. }
  7573. }
  7574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7576. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7577. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7578. public virtual int Update(string Модель, int Original_ID_ПК) {
  7579. return this.Update(Модель, Original_ID_ПК, Original_ID_ПК);
  7580. }
  7581. }
  7582. /// <summary>
  7583. ///Represents the connection and commands used to retrieve and save data.
  7584. ///</summary>
  7585. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7586. [global::System.ComponentModel.ToolboxItem(true)]
  7587. [global::System.ComponentModel.DataObjectAttribute(true)]
  7588. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7589. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7590. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7591. public partial class ОписаниеСборкиTableAdapter : global::System.ComponentModel.Component {
  7592. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7593. private global::System.Data.SqlClient.SqlConnection _connection;
  7594. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7595. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7596. private bool _clearBeforeFill;
  7597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7599. public ОписаниеСборкиTableAdapter() {
  7600. this.ClearBeforeFill = true;
  7601. }
  7602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7604. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7605. get {
  7606. if ((this._adapter == null)) {
  7607. this.InitAdapter();
  7608. }
  7609. return this._adapter;
  7610. }
  7611. }
  7612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7614. internal global::System.Data.SqlClient.SqlConnection Connection {
  7615. get {
  7616. if ((this._connection == null)) {
  7617. this.InitConnection();
  7618. }
  7619. return this._connection;
  7620. }
  7621. set {
  7622. this._connection = value;
  7623. if ((this.Adapter.InsertCommand != null)) {
  7624. this.Adapter.InsertCommand.Connection = value;
  7625. }
  7626. if ((this.Adapter.DeleteCommand != null)) {
  7627. this.Adapter.DeleteCommand.Connection = value;
  7628. }
  7629. if ((this.Adapter.UpdateCommand != null)) {
  7630. this.Adapter.UpdateCommand.Connection = value;
  7631. }
  7632. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7633. if ((this.CommandCollection[i] != null)) {
  7634. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7635. }
  7636. }
  7637. }
  7638. }
  7639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7641. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7642. get {
  7643. return this._transaction;
  7644. }
  7645. set {
  7646. this._transaction = value;
  7647. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7648. this.CommandCollection[i].Transaction = this._transaction;
  7649. }
  7650. if (((this.Adapter != null)
  7651. && (this.Adapter.DeleteCommand != null))) {
  7652. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7653. }
  7654. if (((this.Adapter != null)
  7655. && (this.Adapter.InsertCommand != null))) {
  7656. this.Adapter.InsertCommand.Transaction = this._transaction;
  7657. }
  7658. if (((this.Adapter != null)
  7659. && (this.Adapter.UpdateCommand != null))) {
  7660. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7661. }
  7662. }
  7663. }
  7664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7666. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7667. get {
  7668. if ((this._commandCollection == null)) {
  7669. this.InitCommandCollection();
  7670. }
  7671. return this._commandCollection;
  7672. }
  7673. }
  7674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7676. public bool ClearBeforeFill {
  7677. get {
  7678. return this._clearBeforeFill;
  7679. }
  7680. set {
  7681. this._clearBeforeFill = value;
  7682. }
  7683. }
  7684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7686. private void InitAdapter() {
  7687. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7688. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7689. tableMapping.SourceTable = "Table";
  7690. tableMapping.DataSetTable = "ОписаниеСборки";
  7691. tableMapping.ColumnMappings.Add("ID_ПК", "ID_ПК");
  7692. tableMapping.ColumnMappings.Add("ID_Комплектующего", "ID_Комплектующего");
  7693. this._adapter.TableMappings.Add(tableMapping);
  7694. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7695. this._adapter.InsertCommand.Connection = this.Connection;
  7696. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ОписаниеСборки] ([ID_ПК], [ID_Комплектующего]) VALUES (@ID_ПК," +
  7697. " @ID_Комплектующего)";
  7698. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7699. 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, "", "", ""));
  7700. 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, "", "", ""));
  7701. }
  7702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7704. private void InitConnection() {
  7705. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7706. this._connection.ConnectionString = global::KazarinDE.Properties.Settings.Default.KazarinDE_03ConnectionString;
  7707. }
  7708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7710. private void InitCommandCollection() {
  7711. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7712. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7713. this._commandCollection[0].Connection = this.Connection;
  7714. this._commandCollection[0].CommandText = "SELECT ID_ПК, ID_Комплектующего FROM dbo.ОписаниеСборки";
  7715. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7716. }
  7717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7719. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7720. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7721. public virtual int Fill(KazarinDE_03DataSet1.ОписаниеСборкиDataTable dataTable) {
  7722. this.Adapter.SelectCommand = this.CommandCollection[0];
  7723. if ((this.ClearBeforeFill == true)) {
  7724. dataTable.Clear();
  7725. }
  7726. int returnValue = this.Adapter.Fill(dataTable);
  7727. return returnValue;
  7728. }
  7729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7731. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7732. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7733. public virtual KazarinDE_03DataSet1.ОписаниеСборкиDataTable GetData() {
  7734. this.Adapter.SelectCommand = this.CommandCollection[0];
  7735. KazarinDE_03DataSet1.ОписаниеСборкиDataTable dataTable = new KazarinDE_03DataSet1.ОписаниеСборкиDataTable();
  7736. this.Adapter.Fill(dataTable);
  7737. return dataTable;
  7738. }
  7739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7741. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7742. public virtual int Update(KazarinDE_03DataSet1.ОписаниеСборкиDataTable dataTable) {
  7743. return this.Adapter.Update(dataTable);
  7744. }
  7745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7747. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7748. public virtual int Update(KazarinDE_03DataSet1 dataSet) {
  7749. return this.Adapter.Update(dataSet, "ОписаниеСборки");
  7750. }
  7751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7753. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7754. public virtual int Update(global::System.Data.DataRow dataRow) {
  7755. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7756. dataRow});
  7757. }
  7758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7760. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7761. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7762. return this.Adapter.Update(dataRows);
  7763. }
  7764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7766. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7767. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7768. public virtual int Insert(global::System.Nullable<int> ID_ПК, global::System.Nullable<int> ID_Комплектующего) {
  7769. if ((ID_ПК.HasValue == true)) {
  7770. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_ПК.Value));
  7771. }
  7772. else {
  7773. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7774. }
  7775. if ((ID_Комплектующего.HasValue == true)) {
  7776. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ID_Комплектующего.Value));
  7777. }
  7778. else {
  7779. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7780. }
  7781. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7782. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7783. != global::System.Data.ConnectionState.Open)) {
  7784. this.Adapter.InsertCommand.Connection.Open();
  7785. }
  7786. try {
  7787. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7788. return returnValue;
  7789. }
  7790. finally {
  7791. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7792. this.Adapter.InsertCommand.Connection.Close();
  7793. }
  7794. }
  7795. }
  7796. }
  7797. /// <summary>
  7798. ///Represents the connection and commands used to retrieve and save data.
  7799. ///</summary>
  7800. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7801. [global::System.ComponentModel.ToolboxItem(true)]
  7802. [global::System.ComponentModel.DataObjectAttribute(true)]
  7803. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7804. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7805. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7806. public partial class ПоставщикиTableAdapter : global::System.ComponentModel.Component {
  7807. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7808. private global::System.Data.SqlClient.SqlConnection _connection;
  7809. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7810. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7811. private bool _clearBeforeFill;
  7812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7814. public ПоставщикиTableAdapter() {
  7815. this.ClearBeforeFill = true;
  7816. }
  7817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7819. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7820. get {
  7821. if ((this._adapter == null)) {
  7822. this.InitAdapter();
  7823. }
  7824. return this._adapter;
  7825. }
  7826. }
  7827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7829. internal global::System.Data.SqlClient.SqlConnection Connection {
  7830. get {
  7831. if ((this._connection == null)) {
  7832. this.InitConnection();
  7833. }
  7834. return this._connection;
  7835. }
  7836. set {
  7837. this._connection = value;
  7838. if ((this.Adapter.InsertCommand != null)) {
  7839. this.Adapter.InsertCommand.Connection = value;
  7840. }
  7841. if ((this.Adapter.DeleteCommand != null)) {
  7842. this.Adapter.DeleteCommand.Connection = value;
  7843. }
  7844. if ((this.Adapter.UpdateCommand != null)) {
  7845. this.Adapter.UpdateCommand.Connection = value;
  7846. }
  7847. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7848. if ((this.CommandCollection[i] != null)) {
  7849. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7850. }
  7851. }
  7852. }
  7853. }
  7854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7856. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7857. get {
  7858. return this._transaction;
  7859. }
  7860. set {
  7861. this._transaction = value;
  7862. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7863. this.CommandCollection[i].Transaction = this._transaction;
  7864. }
  7865. if (((this.Adapter != null)
  7866. && (this.Adapter.DeleteCommand != null))) {
  7867. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7868. }
  7869. if (((this.Adapter != null)
  7870. && (this.Adapter.InsertCommand != null))) {
  7871. this.Adapter.InsertCommand.Transaction = this._transaction;
  7872. }
  7873. if (((this.Adapter != null)
  7874. && (this.Adapter.UpdateCommand != null))) {
  7875. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7876. }
  7877. }
  7878. }
  7879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7881. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7882. get {
  7883. if ((this._commandCollection == null)) {
  7884. this.InitCommandCollection();
  7885. }
  7886. return this._commandCollection;
  7887. }
  7888. }
  7889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7891. public bool ClearBeforeFill {
  7892. get {
  7893. return this._clearBeforeFill;
  7894. }
  7895. set {
  7896. this._clearBeforeFill = value;
  7897. }
  7898. }
  7899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7901. private void InitAdapter() {
  7902. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7903. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7904. tableMapping.SourceTable = "Table";
  7905. tableMapping.DataSetTable = "Поставщики";
  7906. tableMapping.ColumnMappings.Add("ID_Поставщика", "ID_Поставщика");
  7907. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  7908. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  7909. tableMapping.ColumnMappings.Add("Адрес", "Адрес");
  7910. this._adapter.TableMappings.Add(tableMapping);
  7911. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7912. this._adapter.DeleteCommand.Connection = this.Connection;
  7913. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Поставщики] WHERE (([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_Адрес)))";
  7914. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7915. 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, "", "", ""));
  7916. 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, "", "", ""));
  7917. 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, "", "", ""));
  7918. 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, "", "", ""));
  7919. 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, "", "", ""));
  7920. 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, "", "", ""));
  7921. 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, "", "", ""));
  7922. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7923. this._adapter.InsertCommand.Connection = this.Connection;
  7924. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Поставщики] ([Наименование], [Телефон], [Адрес]) VALUES (@Наим" +
  7925. "енование, @Телефон, @Адрес);\r\nSELECT ID_Поставщика, Наименование, Телефон, Адрес" +
  7926. " FROM Поставщики WHERE (ID_Поставщика = SCOPE_IDENTITY())";
  7927. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7928. 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, "", "", ""));
  7929. 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, "", "", ""));
  7930. 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, "", "", ""));
  7931. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7932. this._adapter.UpdateCommand.Connection = this.Connection;
  7933. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Поставщики] SET [Наименование] = @Наименование, [Телефон] = @Телефон, [Адрес] = @Адрес WHERE (([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_Адрес)));
  7934. SELECT ID_Поставщика, Наименование, Телефон, Адрес FROM Поставщики WHERE (ID_Поставщика = @ID_Поставщика)";
  7935. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7936. 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, "", "", ""));
  7937. 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, "", "", ""));
  7938. 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, "", "", ""));
  7939. 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, "", "", ""));
  7940. 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, "", "", ""));
  7941. 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, "", "", ""));
  7942. 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, "", "", ""));
  7943. 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, "", "", ""));
  7944. 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, "", "", ""));
  7945. 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, "", "", ""));
  7946. 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, "", "", ""));
  7947. }
  7948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7950. private void InitConnection() {
  7951. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7952. this._connection.ConnectionString = global::KazarinDE.Properties.Settings.Default.KazarinDE_03ConnectionString;
  7953. }
  7954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7956. private void InitCommandCollection() {
  7957. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7958. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7959. this._commandCollection[0].Connection = this.Connection;
  7960. this._commandCollection[0].CommandText = "SELECT ID_Поставщика, Наименование, Телефон, Адрес FROM dbo.Поставщики";
  7961. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7962. }
  7963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7965. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7966. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7967. public virtual int Fill(KazarinDE_03DataSet1.ПоставщикиDataTable dataTable) {
  7968. this.Adapter.SelectCommand = this.CommandCollection[0];
  7969. if ((this.ClearBeforeFill == true)) {
  7970. dataTable.Clear();
  7971. }
  7972. int returnValue = this.Adapter.Fill(dataTable);
  7973. return returnValue;
  7974. }
  7975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7977. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7978. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7979. public virtual KazarinDE_03DataSet1.ПоставщикиDataTable GetData() {
  7980. this.Adapter.SelectCommand = this.CommandCollection[0];
  7981. KazarinDE_03DataSet1.ПоставщикиDataTable dataTable = new KazarinDE_03DataSet1.ПоставщикиDataTable();
  7982. this.Adapter.Fill(dataTable);
  7983. return dataTable;
  7984. }
  7985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7987. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7988. public virtual int Update(KazarinDE_03DataSet1.ПоставщикиDataTable dataTable) {
  7989. return this.Adapter.Update(dataTable);
  7990. }
  7991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7993. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7994. public virtual int Update(KazarinDE_03DataSet1 dataSet) {
  7995. return this.Adapter.Update(dataSet, "Поставщики");
  7996. }
  7997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7999. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8000. public virtual int Update(global::System.Data.DataRow dataRow) {
  8001. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8002. dataRow});
  8003. }
  8004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8006. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8007. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8008. return this.Adapter.Update(dataRows);
  8009. }
  8010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8012. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8013. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8014. public virtual int Delete(int Original_ID_Поставщика, string Original_Наименование, string Original_Телефон, string Original_Адрес) {
  8015. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Поставщика));
  8016. if ((Original_Наименование == null)) {
  8017. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8018. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8019. }
  8020. else {
  8021. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8022. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Наименование));
  8023. }
  8024. if ((Original_Телефон == null)) {
  8025. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8026. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8027. }
  8028. else {
  8029. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8030. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Телефон));
  8031. }
  8032. if ((Original_Адрес == null)) {
  8033. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  8034. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  8035. }
  8036. else {
  8037. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  8038. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Адрес));
  8039. }
  8040. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8041. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8042. != global::System.Data.ConnectionState.Open)) {
  8043. this.Adapter.DeleteCommand.Connection.Open();
  8044. }
  8045. try {
  8046. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8047. return returnValue;
  8048. }
  8049. finally {
  8050. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8051. this.Adapter.DeleteCommand.Connection.Close();
  8052. }
  8053. }
  8054. }
  8055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8057. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8058. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8059. public virtual int Insert(string Наименование, string Телефон, string Адрес) {
  8060. if ((Наименование == null)) {
  8061. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8062. }
  8063. else {
  8064. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Наименование));
  8065. }
  8066. if ((Телефон == null)) {
  8067. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8068. }
  8069. else {
  8070. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Телефон));
  8071. }
  8072. if ((Адрес == null)) {
  8073. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8074. }
  8075. else {
  8076. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Адрес));
  8077. }
  8078. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8079. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8080. != global::System.Data.ConnectionState.Open)) {
  8081. this.Adapter.InsertCommand.Connection.Open();
  8082. }
  8083. try {
  8084. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8085. return returnValue;
  8086. }
  8087. finally {
  8088. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8089. this.Adapter.InsertCommand.Connection.Close();
  8090. }
  8091. }
  8092. }
  8093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8095. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8096. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8097. public virtual int Update(string Наименование, string Телефон, string Адрес, int Original_ID_Поставщика, string Original_Наименование, string Original_Телефон, string Original_Адрес, int ID_Поставщика) {
  8098. if ((Наименование == null)) {
  8099. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8100. }
  8101. else {
  8102. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Наименование));
  8103. }
  8104. if ((Телефон == null)) {
  8105. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8106. }
  8107. else {
  8108. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Телефон));
  8109. }
  8110. if ((Адрес == null)) {
  8111. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8112. }
  8113. else {
  8114. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Адрес));
  8115. }
  8116. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID_Поставщика));
  8117. if ((Original_Наименование == null)) {
  8118. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  8119. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8120. }
  8121. else {
  8122. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  8123. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Наименование));
  8124. }
  8125. if ((Original_Телефон == null)) {
  8126. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  8127. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  8128. }
  8129. else {
  8130. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  8131. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Телефон));
  8132. }
  8133. if ((Original_Адрес == null)) {
  8134. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  8135. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  8136. }
  8137. else {
  8138. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  8139. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Адрес));
  8140. }
  8141. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(ID_Поставщика));
  8142. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8143. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8144. != global::System.Data.ConnectionState.Open)) {
  8145. this.Adapter.UpdateCommand.Connection.Open();
  8146. }
  8147. try {
  8148. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8149. return returnValue;
  8150. }
  8151. finally {
  8152. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8153. this.Adapter.UpdateCommand.Connection.Close();
  8154. }
  8155. }
  8156. }
  8157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8159. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8160. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8161. public virtual int Update(string Наименование, string Телефон, string Адрес, int Original_ID_Поставщика, string Original_Наименование, string Original_Телефон, string Original_Адрес) {
  8162. return this.Update(Наименование, Телефон, Адрес, Original_ID_Поставщика, Original_Наименование, Original_Телефон, Original_Адрес, Original_ID_Поставщика);
  8163. }
  8164. }
  8165. /// <summary>
  8166. ///Represents the connection and commands used to retrieve and save data.
  8167. ///</summary>
  8168. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8169. [global::System.ComponentModel.ToolboxItem(true)]
  8170. [global::System.ComponentModel.DataObjectAttribute(true)]
  8171. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8172. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8173. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8174. public partial class РолиTableAdapter : global::System.ComponentModel.Component {
  8175. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8176. private global::System.Data.SqlClient.SqlConnection _connection;
  8177. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8178. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8179. private bool _clearBeforeFill;
  8180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8182. public РолиTableAdapter() {
  8183. this.ClearBeforeFill = true;
  8184. }
  8185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8187. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8188. get {
  8189. if ((this._adapter == null)) {
  8190. this.InitAdapter();
  8191. }
  8192. return this._adapter;
  8193. }
  8194. }
  8195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8197. internal global::System.Data.SqlClient.SqlConnection Connection {
  8198. get {
  8199. if ((this._connection == null)) {
  8200. this.InitConnection();
  8201. }
  8202. return this._connection;
  8203. }
  8204. set {
  8205. this._connection = value;
  8206. if ((this.Adapter.InsertCommand != null)) {
  8207. this.Adapter.InsertCommand.Connection = value;
  8208. }
  8209. if ((this.Adapter.DeleteCommand != null)) {
  8210. this.Adapter.DeleteCommand.Connection = value;
  8211. }
  8212. if ((this.Adapter.UpdateCommand != null)) {
  8213. this.Adapter.UpdateCommand.Connection = value;
  8214. }
  8215. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8216. if ((this.CommandCollection[i] != null)) {
  8217. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8218. }
  8219. }
  8220. }
  8221. }
  8222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8224. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8225. get {
  8226. return this._transaction;
  8227. }
  8228. set {
  8229. this._transaction = value;
  8230. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8231. this.CommandCollection[i].Transaction = this._transaction;
  8232. }
  8233. if (((this.Adapter != null)
  8234. && (this.Adapter.DeleteCommand != null))) {
  8235. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8236. }
  8237. if (((this.Adapter != null)
  8238. && (this.Adapter.InsertCommand != null))) {
  8239. this.Adapter.InsertCommand.Transaction = this._transaction;
  8240. }
  8241. if (((this.Adapter != null)
  8242. && (this.Adapter.UpdateCommand != null))) {
  8243. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8244. }
  8245. }
  8246. }
  8247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8249. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8250. get {
  8251. if ((this._commandCollection == null)) {
  8252. this.InitCommandCollection();
  8253. }
  8254. return this._commandCollection;
  8255. }
  8256. }
  8257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8259. public bool ClearBeforeFill {
  8260. get {
  8261. return this._clearBeforeFill;
  8262. }
  8263. set {
  8264. this._clearBeforeFill = value;
  8265. }
  8266. }
  8267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8269. private void InitAdapter() {
  8270. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8271. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8272. tableMapping.SourceTable = "Table";
  8273. tableMapping.DataSetTable = "Роли";
  8274. tableMapping.ColumnMappings.Add("ID_Роли", "ID_Роли");
  8275. tableMapping.ColumnMappings.Add("Название", "Название");
  8276. this._adapter.TableMappings.Add(tableMapping);
  8277. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8278. this._adapter.DeleteCommand.Connection = this.Connection;
  8279. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Роли] WHERE (([ID_Роли] = @Original_ID_Роли) AND ([Название] =" +
  8280. " @Original_Название))";
  8281. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8282. 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, "", "", ""));
  8283. 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, "", "", ""));
  8284. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8285. this._adapter.InsertCommand.Connection = this.Connection;
  8286. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Роли] ([Название]) VALUES (@Название);\r\nSELECT ID_Роли, Назван" +
  8287. "ие FROM Роли WHERE (ID_Роли = SCOPE_IDENTITY())";
  8288. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8289. 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, "", "", ""));
  8290. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8291. this._adapter.UpdateCommand.Connection = this.Connection;
  8292. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Роли] SET [Название] = @Название WHERE (([ID_Роли] = @Original_ID_Р" +
  8293. "оли) AND ([Название] = @Original_Название));\r\nSELECT ID_Роли, Название FROM Роли" +
  8294. " WHERE (ID_Роли = @ID_Роли)";
  8295. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8296. 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, "", "", ""));
  8297. 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, "", "", ""));
  8298. 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, "", "", ""));
  8299. 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, "", "", ""));
  8300. }
  8301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8303. private void InitConnection() {
  8304. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8305. this._connection.ConnectionString = global::KazarinDE.Properties.Settings.Default.KazarinDE_03ConnectionString;
  8306. }
  8307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8309. private void InitCommandCollection() {
  8310. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8311. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8312. this._commandCollection[0].Connection = this.Connection;
  8313. this._commandCollection[0].CommandText = "SELECT ID_Роли, Название FROM dbo.Роли";
  8314. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8315. }
  8316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8318. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8319. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8320. public virtual int Fill(KazarinDE_03DataSet1.РолиDataTable dataTable) {
  8321. this.Adapter.SelectCommand = this.CommandCollection[0];
  8322. if ((this.ClearBeforeFill == true)) {
  8323. dataTable.Clear();
  8324. }
  8325. int returnValue = this.Adapter.Fill(dataTable);
  8326. return returnValue;
  8327. }
  8328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8330. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8331. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8332. public virtual KazarinDE_03DataSet1.РолиDataTable GetData() {
  8333. this.Adapter.SelectCommand = this.CommandCollection[0];
  8334. KazarinDE_03DataSet1.РолиDataTable dataTable = new KazarinDE_03DataSet1.РолиDataTable();
  8335. this.Adapter.Fill(dataTable);
  8336. return dataTable;
  8337. }
  8338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8340. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8341. public virtual int Update(KazarinDE_03DataSet1.РолиDataTable dataTable) {
  8342. return this.Adapter.Update(dataTable);
  8343. }
  8344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8346. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8347. public virtual int Update(KazarinDE_03DataSet1 dataSet) {
  8348. return this.Adapter.Update(dataSet, "Роли");
  8349. }
  8350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8352. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8353. public virtual int Update(global::System.Data.DataRow dataRow) {
  8354. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8355. dataRow});
  8356. }
  8357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8359. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8360. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8361. return this.Adapter.Update(dataRows);
  8362. }
  8363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8365. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8366. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8367. public virtual int Delete(int Original_ID_Роли, string Original_Название) {
  8368. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Роли));
  8369. if ((Original_Название == null)) {
  8370. throw new global::System.ArgumentNullException("Original_Название");
  8371. }
  8372. else {
  8373. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Название));
  8374. }
  8375. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8376. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8377. != global::System.Data.ConnectionState.Open)) {
  8378. this.Adapter.DeleteCommand.Connection.Open();
  8379. }
  8380. try {
  8381. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8382. return returnValue;
  8383. }
  8384. finally {
  8385. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8386. this.Adapter.DeleteCommand.Connection.Close();
  8387. }
  8388. }
  8389. }
  8390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8392. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8393. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8394. public virtual int Insert(string Название) {
  8395. if ((Название == null)) {
  8396. throw new global::System.ArgumentNullException("Название");
  8397. }
  8398. else {
  8399. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  8400. }
  8401. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8402. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8403. != global::System.Data.ConnectionState.Open)) {
  8404. this.Adapter.InsertCommand.Connection.Open();
  8405. }
  8406. try {
  8407. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8408. return returnValue;
  8409. }
  8410. finally {
  8411. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8412. this.Adapter.InsertCommand.Connection.Close();
  8413. }
  8414. }
  8415. }
  8416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8418. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8419. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8420. public virtual int Update(string Название, int Original_ID_Роли, string Original_Название, int ID_Роли) {
  8421. if ((Название == null)) {
  8422. throw new global::System.ArgumentNullException("Название");
  8423. }
  8424. else {
  8425. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  8426. }
  8427. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_ID_Роли));
  8428. if ((Original_Название == null)) {
  8429. throw new global::System.ArgumentNullException("Original_Название");
  8430. }
  8431. else {
  8432. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_Название));
  8433. }
  8434. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ID_Роли));
  8435. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8436. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8437. != global::System.Data.ConnectionState.Open)) {
  8438. this.Adapter.UpdateCommand.Connection.Open();
  8439. }
  8440. try {
  8441. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8442. return returnValue;
  8443. }
  8444. finally {
  8445. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8446. this.Adapter.UpdateCommand.Connection.Close();
  8447. }
  8448. }
  8449. }
  8450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8452. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8453. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8454. public virtual int Update(string Название, int Original_ID_Роли, string Original_Название) {
  8455. return this.Update(Название, Original_ID_Роли, Original_Название, Original_ID_Роли);
  8456. }
  8457. }
  8458. /// <summary>
  8459. ///Represents the connection and commands used to retrieve and save data.
  8460. ///</summary>
  8461. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8462. [global::System.ComponentModel.ToolboxItem(true)]
  8463. [global::System.ComponentModel.DataObjectAttribute(true)]
  8464. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8465. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8466. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8467. public partial class СборкаTableAdapter : global::System.ComponentModel.Component {
  8468. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8469. private global::System.Data.SqlClient.SqlConnection _connection;
  8470. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8471. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8472. private bool _clearBeforeFill;
  8473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8475. public СборкаTableAdapter() {
  8476. this.ClearBeforeFill = true;
  8477. }
  8478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8480. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8481. get {
  8482. if ((this._adapter == null)) {
  8483. this.InitAdapter();
  8484. }
  8485. return this._adapter;
  8486. }
  8487. }
  8488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8490. internal global::System.Data.SqlClient.SqlConnection Connection {
  8491. get {
  8492. if ((this._connection == null)) {
  8493. this.InitConnection();
  8494. }
  8495. return this._connection;
  8496. }
  8497. set {
  8498. this._connection = value;
  8499. if ((this.Adapter.InsertCommand != null)) {
  8500. this.Adapter.InsertCommand.Connection = value;
  8501. }
  8502. if ((this.Adapter.DeleteCommand != null)) {
  8503. this.Adapter.DeleteCommand.Connection = value;
  8504. }
  8505. if ((this.Adapter.UpdateCommand != null)) {
  8506. this.Adapter.UpdateCommand.Connection = value;
  8507. }
  8508. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8509. if ((this.CommandCollection[i] != null)) {
  8510. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8511. }
  8512. }
  8513. }
  8514. }
  8515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8517. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8518. get {
  8519. return this._transaction;
  8520. }
  8521. set {
  8522. this._transaction = value;
  8523. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8524. this.CommandCollection[i].Transaction = this._transaction;
  8525. }
  8526. if (((this.Adapter != null)
  8527. && (this.Adapter.DeleteCommand != null))) {
  8528. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8529. }
  8530. if (((this.Adapter != null)
  8531. && (this.Adapter.InsertCommand != null))) {
  8532. this.Adapter.InsertCommand.Transaction = this._transaction;
  8533. }
  8534. if (((this.Adapter != null)
  8535. && (this.Adapter.UpdateCommand != null))) {
  8536. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8537. }
  8538. }
  8539. }
  8540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8542. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8543. get {
  8544. if ((this._commandCollection == null)) {
  8545. this.InitCommandCollection();
  8546. }
  8547. return this._commandCollection;
  8548. }
  8549. }
  8550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8552. public bool ClearBeforeFill {
  8553. get {
  8554. return this._clearBeforeFill;
  8555. }
  8556. set {
  8557. this._clearBeforeFill = value;
  8558. }
  8559. }
  8560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8562. private void InitAdapter() {
  8563. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8564. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8565. tableMapping.SourceTable = "Table";
  8566. tableMapping.DataSetTable = "Сборка";
  8567. tableMapping.ColumnMappings.Add("ID_Сборки", "ID_Сборки");
  8568. tableMapping.ColumnMappings.Add("ID_ПК", "ID_ПК");
  8569. tableMapping.ColumnMappings.Add("ID_Мастера", "ID_Мастера");
  8570. this._adapter.TableMappings.Add(tableMapping);
  8571. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8572. this._adapter.DeleteCommand.Connection = this.Connection;
  8573. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Сборка] WHERE (([ID_Сборки] = @Original_ID_Сборки) AND ((@IsNu" +
  8574. "ll_ID_ПК = 1 AND [ID_ПК] IS NULL) OR ([ID_ПК] = @Original_ID_ПК)) AND ((@IsNull_" +
  8575. "ID_Мастера = 1 AND [ID_Мастера] IS NULL) OR ([ID_Мастера] = @Original_ID_Мастера" +
  8576. ")))";
  8577. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8578. 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, "", "", ""));
  8579. 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, "", "", ""));
  8580. 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, "", "", ""));
  8581. 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, "", "", ""));
  8582. 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, "", "", ""));
  8583. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8584. this._adapter.InsertCommand.Connection = this.Connection;
  8585. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Сборка] ([ID_ПК], [ID_Мастера]) VALUES (@ID_ПК, @ID_Мастера);\r" +
  8586. "\nSELECT ID_Сборки, ID_ПК, ID_Мастера FROM Сборка WHERE (ID_Сборки = SCOPE_IDENTI" +
  8587. "TY())";
  8588. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8589. 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, "", "", ""));
  8590. 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, "", "", ""));
  8591. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8592. this._adapter.UpdateCommand.Connection = this.Connection;
  8593. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Сборка] 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_Мастера)));
  8594. SELECT ID_Сборки, ID_ПК, ID_Мастера FROM Сборка WHERE (ID_Сборки = @ID_Сборки)";
  8595. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8596. 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, "", "", ""));
  8597. 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, "", "", ""));
  8598. 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, "", "", ""));
  8599. 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, "", "", ""));
  8600. 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, "", "", ""));
  8601. 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, "", "", ""));
  8602. 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, "", "", ""));
  8603. 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, "", "", ""));
  8604. }
  8605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8607. private void InitConnection() {
  8608. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8609. this._connection.ConnectionString = global::KazarinDE.Properties.Settings.Default.KazarinDE_03ConnectionString;
  8610. }
  8611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8613. private void InitCommandCollection() {
  8614. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8615. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8616. this._commandCollection[0].Connection = this.Connection;
  8617. this._commandCollection[0].CommandText = "SELECT ID_Сборки, ID_ПК, ID_Мастера FROM dbo.Сборка";
  8618. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8619. }
  8620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8622. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8623. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8624. public virtual int Fill(KazarinDE_03DataSet1.СборкаDataTable dataTable) {
  8625. this.Adapter.SelectCommand = this.CommandCollection[0];
  8626. if ((this.ClearBeforeFill == true)) {
  8627. dataTable.Clear();
  8628. }
  8629. int returnValue = this.Adapter.Fill(dataTable);
  8630. return returnValue;
  8631. }
  8632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8634. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8635. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8636. public virtual KazarinDE_03DataSet1.СборкаDataTable GetData() {
  8637. this.Adapter.SelectCommand = this.CommandCollection[0];
  8638. KazarinDE_03DataSet1.СборкаDataTable dataTable = new KazarinDE_03DataSet1.СборкаDataTable();
  8639. this.Adapter.Fill(dataTable);
  8640. return dataTable;
  8641. }
  8642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8644. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8645. public virtual int Update(KazarinDE_03DataSet1.СборкаDataTable dataTable) {
  8646. return this.Adapter.Update(dataTable);
  8647. }
  8648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8650. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8651. public virtual int Update(KazarinDE_03DataSet1 dataSet) {
  8652. return this.Adapter.Update(dataSet, "Сборка");
  8653. }
  8654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8656. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8657. public virtual int Update(global::System.Data.DataRow dataRow) {
  8658. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8659. dataRow});
  8660. }
  8661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8663. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8664. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8665. return this.Adapter.Update(dataRows);
  8666. }
  8667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8669. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8670. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8671. public virtual int Delete(int Original_ID_Сборки, global::System.Nullable<int> Original_ID_ПК, global::System.Nullable<int> Original_ID_Мастера) {
  8672. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Сборки));
  8673. if ((Original_ID_ПК.HasValue == true)) {
  8674. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8675. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ID_ПК.Value));
  8676. }
  8677. else {
  8678. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8679. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8680. }
  8681. if ((Original_ID_Мастера.HasValue == true)) {
  8682. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8683. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_ID_Мастера.Value));
  8684. }
  8685. else {
  8686. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8687. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8688. }
  8689. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8690. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8691. != global::System.Data.ConnectionState.Open)) {
  8692. this.Adapter.DeleteCommand.Connection.Open();
  8693. }
  8694. try {
  8695. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8696. return returnValue;
  8697. }
  8698. finally {
  8699. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8700. this.Adapter.DeleteCommand.Connection.Close();
  8701. }
  8702. }
  8703. }
  8704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8706. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8707. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8708. public virtual int Insert(global::System.Nullable<int> ID_ПК, global::System.Nullable<int> ID_Мастера) {
  8709. if ((ID_ПК.HasValue == true)) {
  8710. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_ПК.Value));
  8711. }
  8712. else {
  8713. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8714. }
  8715. if ((ID_Мастера.HasValue == true)) {
  8716. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ID_Мастера.Value));
  8717. }
  8718. else {
  8719. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8720. }
  8721. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8722. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8723. != global::System.Data.ConnectionState.Open)) {
  8724. this.Adapter.InsertCommand.Connection.Open();
  8725. }
  8726. try {
  8727. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8728. return returnValue;
  8729. }
  8730. finally {
  8731. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8732. this.Adapter.InsertCommand.Connection.Close();
  8733. }
  8734. }
  8735. }
  8736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8738. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8739. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8740. public virtual int Update(global::System.Nullable<int> ID_ПК, global::System.Nullable<int> ID_Мастера, int Original_ID_Сборки, global::System.Nullable<int> Original_ID_ПК, global::System.Nullable<int> Original_ID_Мастера, int ID_Сборки) {
  8741. if ((ID_ПК.HasValue == true)) {
  8742. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID_ПК.Value));
  8743. }
  8744. else {
  8745. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8746. }
  8747. if ((ID_Мастера.HasValue == true)) {
  8748. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ID_Мастера.Value));
  8749. }
  8750. else {
  8751. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8752. }
  8753. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID_Сборки));
  8754. if ((Original_ID_ПК.HasValue == true)) {
  8755. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  8756. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID_ПК.Value));
  8757. }
  8758. else {
  8759. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  8760. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  8761. }
  8762. if ((Original_ID_Мастера.HasValue == true)) {
  8763. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  8764. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID_Мастера.Value));
  8765. }
  8766. else {
  8767. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  8768. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  8769. }
  8770. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(ID_Сборки));
  8771. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8772. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8773. != global::System.Data.ConnectionState.Open)) {
  8774. this.Adapter.UpdateCommand.Connection.Open();
  8775. }
  8776. try {
  8777. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8778. return returnValue;
  8779. }
  8780. finally {
  8781. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8782. this.Adapter.UpdateCommand.Connection.Close();
  8783. }
  8784. }
  8785. }
  8786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8788. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8789. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8790. public virtual int Update(global::System.Nullable<int> ID_ПК, global::System.Nullable<int> ID_Мастера, int Original_ID_Сборки, global::System.Nullable<int> Original_ID_ПК, global::System.Nullable<int> Original_ID_Мастера) {
  8791. return this.Update(ID_ПК, ID_Мастера, Original_ID_Сборки, Original_ID_ПК, Original_ID_Мастера, Original_ID_Сборки);
  8792. }
  8793. }
  8794. /// <summary>
  8795. ///Represents the connection and commands used to retrieve and save data.
  8796. ///</summary>
  8797. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8798. [global::System.ComponentModel.ToolboxItem(true)]
  8799. [global::System.ComponentModel.DataObjectAttribute(true)]
  8800. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8801. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8802. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8803. public partial class СотрудникиTableAdapter : global::System.ComponentModel.Component {
  8804. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8805. private global::System.Data.SqlClient.SqlConnection _connection;
  8806. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8807. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8808. private bool _clearBeforeFill;
  8809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8811. public СотрудникиTableAdapter() {
  8812. this.ClearBeforeFill = true;
  8813. }
  8814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8816. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8817. get {
  8818. if ((this._adapter == null)) {
  8819. this.InitAdapter();
  8820. }
  8821. return this._adapter;
  8822. }
  8823. }
  8824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8826. internal global::System.Data.SqlClient.SqlConnection Connection {
  8827. get {
  8828. if ((this._connection == null)) {
  8829. this.InitConnection();
  8830. }
  8831. return this._connection;
  8832. }
  8833. set {
  8834. this._connection = value;
  8835. if ((this.Adapter.InsertCommand != null)) {
  8836. this.Adapter.InsertCommand.Connection = value;
  8837. }
  8838. if ((this.Adapter.DeleteCommand != null)) {
  8839. this.Adapter.DeleteCommand.Connection = value;
  8840. }
  8841. if ((this.Adapter.UpdateCommand != null)) {
  8842. this.Adapter.UpdateCommand.Connection = value;
  8843. }
  8844. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8845. if ((this.CommandCollection[i] != null)) {
  8846. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8847. }
  8848. }
  8849. }
  8850. }
  8851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8853. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8854. get {
  8855. return this._transaction;
  8856. }
  8857. set {
  8858. this._transaction = value;
  8859. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8860. this.CommandCollection[i].Transaction = this._transaction;
  8861. }
  8862. if (((this.Adapter != null)
  8863. && (this.Adapter.DeleteCommand != null))) {
  8864. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8865. }
  8866. if (((this.Adapter != null)
  8867. && (this.Adapter.InsertCommand != null))) {
  8868. this.Adapter.InsertCommand.Transaction = this._transaction;
  8869. }
  8870. if (((this.Adapter != null)
  8871. && (this.Adapter.UpdateCommand != null))) {
  8872. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8873. }
  8874. }
  8875. }
  8876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8878. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8879. get {
  8880. if ((this._commandCollection == null)) {
  8881. this.InitCommandCollection();
  8882. }
  8883. return this._commandCollection;
  8884. }
  8885. }
  8886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8888. public bool ClearBeforeFill {
  8889. get {
  8890. return this._clearBeforeFill;
  8891. }
  8892. set {
  8893. this._clearBeforeFill = value;
  8894. }
  8895. }
  8896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8898. private void InitAdapter() {
  8899. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8900. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8901. tableMapping.SourceTable = "Table";
  8902. tableMapping.DataSetTable = "Сотрудники";
  8903. tableMapping.ColumnMappings.Add("ID", "ID");
  8904. tableMapping.ColumnMappings.Add("Имя", "Имя");
  8905. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  8906. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  8907. tableMapping.ColumnMappings.Add("Роль", "Роль");
  8908. tableMapping.ColumnMappings.Add("ДатаРождения", "ДатаРождения");
  8909. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  8910. tableMapping.ColumnMappings.Add("Адрес", "Адрес");
  8911. tableMapping.ColumnMappings.Add("Username", "Username");
  8912. tableMapping.ColumnMappings.Add("Password", "Password");
  8913. this._adapter.TableMappings.Add(tableMapping);
  8914. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8915. this._adapter.DeleteCommand.Connection = this.Connection;
  8916. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Сотрудники] WHERE (([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 ([Роль] = @Original_Роль) AND ([ДатаРождения] = @Original_ДатаРождения) AND ([Телефон] = @Original_Телефон) AND ([Адрес] = @Original_Адрес) AND ([Username] = @Original_Username) AND ([Password] = @Original_Password))";
  8917. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8918. 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, "", "", ""));
  8919. 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, "", "", ""));
  8920. 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, "", "", ""));
  8921. 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, "", "", ""));
  8922. 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, "", "", ""));
  8923. 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, "", "", ""));
  8924. 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, "", "", ""));
  8925. 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, "", "", ""));
  8926. 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, "", "", ""));
  8927. 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, "", "", ""));
  8928. 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, "", "", ""));
  8929. 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, "", "", ""));
  8930. 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, "", "", ""));
  8931. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8932. this._adapter.InsertCommand.Connection = this.Connection;
  8933. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Сотрудники] ([Имя], [Фамилия], [Отчество], [Роль], [ДатаРождения], [Телефон], [Адрес], [Username], [Password]) VALUES (@Имя, @Фамилия, @Отчество, @Роль, @ДатаРождения, @Телефон, @Адрес, @Username, @Password);
  8934. SELECT ID, Имя, Фамилия, Отчество, Роль, ДатаРождения, Телефон, Адрес, Username, Password FROM Сотрудники WHERE (ID = SCOPE_IDENTITY())";
  8935. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8936. 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, "", "", ""));
  8937. 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, "", "", ""));
  8938. 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, "", "", ""));
  8939. 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, "", "", ""));
  8940. 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, "", "", ""));
  8941. 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, "", "", ""));
  8942. 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, "", "", ""));
  8943. 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, "", "", ""));
  8944. 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, "", "", ""));
  8945. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8946. this._adapter.UpdateCommand.Connection = this.Connection;
  8947. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Сотрудники] SET [Имя] = @Имя, [Фамилия] = @Фамилия, [Отчество] = @Отчество, [Роль] = @Роль, [ДатаРождения] = @ДатаРождения, [Телефон] = @Телефон, [Адрес] = @Адрес, [Username] = @Username, [Password] = @Password WHERE (([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 ([Роль] = @Original_Роль) AND ([ДатаРождения] = @Original_ДатаРождения) AND ([Телефон] = @Original_Телефон) AND ([Адрес] = @Original_Адрес) AND ([Username] = @Original_Username) AND ([Password] = @Original_Password));
  8948. SELECT ID, Имя, Фамилия, Отчество, Роль, ДатаРождения, Телефон, Адрес, Username, Password FROM Сотрудники WHERE (ID = @ID)";
  8949. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8950. 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, "", "", ""));
  8951. 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, "", "", ""));
  8952. 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, "", "", ""));
  8953. 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, "", "", ""));
  8954. 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, "", "", ""));
  8955. 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, "", "", ""));
  8956. 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, "", "", ""));
  8957. 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, "", "", ""));
  8958. 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, "", "", ""));
  8959. 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, "", "", ""));
  8960. 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, "", "", ""));
  8961. 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, "", "", ""));
  8962. 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, "", "", ""));
  8963. 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, "", "", ""));
  8964. 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, "", "", ""));
  8965. 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, "", "", ""));
  8966. 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, "", "", ""));
  8967. 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, "", "", ""));
  8968. 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, "", "", ""));
  8969. 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, "", "", ""));
  8970. 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, "", "", ""));
  8971. 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, "", "", ""));
  8972. 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, "", "", ""));
  8973. }
  8974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8976. private void InitConnection() {
  8977. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8978. this._connection.ConnectionString = global::KazarinDE.Properties.Settings.Default.KazarinDE_03ConnectionString;
  8979. }
  8980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8982. private void InitCommandCollection() {
  8983. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8984. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8985. this._commandCollection[0].Connection = this.Connection;
  8986. this._commandCollection[0].CommandText = "SELECT ID, Имя, Фамилия, Отчество, Роль, ДатаРождения, Телефон, Адрес, Username, " +
  8987. "Password FROM dbo.Сотрудники";
  8988. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8989. }
  8990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8992. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8993. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8994. public virtual int Fill(KazarinDE_03DataSet1.СотрудникиDataTable dataTable) {
  8995. this.Adapter.SelectCommand = this.CommandCollection[0];
  8996. if ((this.ClearBeforeFill == true)) {
  8997. dataTable.Clear();
  8998. }
  8999. int returnValue = this.Adapter.Fill(dataTable);
  9000. return returnValue;
  9001. }
  9002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9004. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9005. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9006. public virtual KazarinDE_03DataSet1.СотрудникиDataTable GetData() {
  9007. this.Adapter.SelectCommand = this.CommandCollection[0];
  9008. KazarinDE_03DataSet1.СотрудникиDataTable dataTable = new KazarinDE_03DataSet1.СотрудникиDataTable();
  9009. this.Adapter.Fill(dataTable);
  9010. return dataTable;
  9011. }
  9012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9014. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9015. public virtual int Update(KazarinDE_03DataSet1.СотрудникиDataTable dataTable) {
  9016. return this.Adapter.Update(dataTable);
  9017. }
  9018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9020. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9021. public virtual int Update(KazarinDE_03DataSet1 dataSet) {
  9022. return this.Adapter.Update(dataSet, "Сотрудники");
  9023. }
  9024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9026. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9027. public virtual int Update(global::System.Data.DataRow dataRow) {
  9028. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9029. dataRow});
  9030. }
  9031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9033. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9034. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9035. return this.Adapter.Update(dataRows);
  9036. }
  9037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9039. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9040. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9041. public virtual int Delete(int Original_ID, string Original_Имя, string Original_Фамилия, string Original_Отчество, int Original_Роль, System.DateTime Original_ДатаРождения, string Original_Телефон, string Original_Адрес, string Original_Username, string Original_Password) {
  9042. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9043. if ((Original_Имя == null)) {
  9044. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9045. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9046. }
  9047. else {
  9048. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9049. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Имя));
  9050. }
  9051. if ((Original_Фамилия == null)) {
  9052. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  9053. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  9054. }
  9055. else {
  9056. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  9057. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Фамилия));
  9058. }
  9059. if ((Original_Отчество == null)) {
  9060. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  9061. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  9062. }
  9063. else {
  9064. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  9065. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Отчество));
  9066. }
  9067. this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_Роль));
  9068. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_ДатаРождения));
  9069. if ((Original_Телефон == null)) {
  9070. throw new global::System.ArgumentNullException("Original_Телефон");
  9071. }
  9072. else {
  9073. this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_Телефон));
  9074. }
  9075. if ((Original_Адрес == null)) {
  9076. throw new global::System.ArgumentNullException("Original_Адрес");
  9077. }
  9078. else {
  9079. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Адрес));
  9080. }
  9081. if ((Original_Username == null)) {
  9082. throw new global::System.ArgumentNullException("Original_Username");
  9083. }
  9084. else {
  9085. this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_Username));
  9086. }
  9087. if ((Original_Password == null)) {
  9088. throw new global::System.ArgumentNullException("Original_Password");
  9089. }
  9090. else {
  9091. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Password));
  9092. }
  9093. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9094. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9095. != global::System.Data.ConnectionState.Open)) {
  9096. this.Adapter.DeleteCommand.Connection.Open();
  9097. }
  9098. try {
  9099. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9100. return returnValue;
  9101. }
  9102. finally {
  9103. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9104. this.Adapter.DeleteCommand.Connection.Close();
  9105. }
  9106. }
  9107. }
  9108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9110. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9111. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9112. public virtual int Insert(string Имя, string Фамилия, string Отчество, int Роль, System.DateTime ДатаРождения, string Телефон, string Адрес, string Username, string Password) {
  9113. if ((Имя == null)) {
  9114. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9115. }
  9116. else {
  9117. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Имя));
  9118. }
  9119. if ((Фамилия == null)) {
  9120. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9121. }
  9122. else {
  9123. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Фамилия));
  9124. }
  9125. if ((Отчество == null)) {
  9126. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  9127. }
  9128. else {
  9129. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Отчество));
  9130. }
  9131. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Роль));
  9132. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(ДатаРождения));
  9133. if ((Телефон == null)) {
  9134. throw new global::System.ArgumentNullException("Телефон");
  9135. }
  9136. else {
  9137. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Телефон));
  9138. }
  9139. if ((Адрес == null)) {
  9140. throw new global::System.ArgumentNullException("Адрес");
  9141. }
  9142. else {
  9143. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Адрес));
  9144. }
  9145. if ((Username == null)) {
  9146. throw new global::System.ArgumentNullException("Username");
  9147. }
  9148. else {
  9149. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Username));
  9150. }
  9151. if ((Password == null)) {
  9152. throw new global::System.ArgumentNullException("Password");
  9153. }
  9154. else {
  9155. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(Password));
  9156. }
  9157. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9158. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9159. != global::System.Data.ConnectionState.Open)) {
  9160. this.Adapter.InsertCommand.Connection.Open();
  9161. }
  9162. try {
  9163. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9164. return returnValue;
  9165. }
  9166. finally {
  9167. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9168. this.Adapter.InsertCommand.Connection.Close();
  9169. }
  9170. }
  9171. }
  9172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9174. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9175. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9176. public virtual int Update(
  9177. string Имя,
  9178. string Фамилия,
  9179. string Отчество,
  9180. int Роль,
  9181. System.DateTime ДатаРождения,
  9182. string Телефон,
  9183. string Адрес,
  9184. string Username,
  9185. string Password,
  9186. int Original_ID,
  9187. string Original_Имя,
  9188. string Original_Фамилия,
  9189. string Original_Отчество,
  9190. int Original_Роль,
  9191. System.DateTime Original_ДатаРождения,
  9192. string Original_Телефон,
  9193. string Original_Адрес,
  9194. string Original_Username,
  9195. string Original_Password,
  9196. int ID) {
  9197. if ((Имя == null)) {
  9198. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9199. }
  9200. else {
  9201. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Имя));
  9202. }
  9203. if ((Фамилия == null)) {
  9204. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9205. }
  9206. else {
  9207. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Фамилия));
  9208. }
  9209. if ((Отчество == null)) {
  9210. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  9211. }
  9212. else {
  9213. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Отчество));
  9214. }
  9215. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Роль));
  9216. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(ДатаРождения));
  9217. if ((Телефон == null)) {
  9218. throw new global::System.ArgumentNullException("Телефон");
  9219. }
  9220. else {
  9221. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Телефон));
  9222. }
  9223. if ((Адрес == null)) {
  9224. throw new global::System.ArgumentNullException("Адрес");
  9225. }
  9226. else {
  9227. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Адрес));
  9228. }
  9229. if ((Username == null)) {
  9230. throw new global::System.ArgumentNullException("Username");
  9231. }
  9232. else {
  9233. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Username));
  9234. }
  9235. if ((Password == null)) {
  9236. throw new global::System.ArgumentNullException("Password");
  9237. }
  9238. else {
  9239. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Password));
  9240. }
  9241. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ID));
  9242. if ((Original_Имя == null)) {
  9243. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  9244. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  9245. }
  9246. else {
  9247. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  9248. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Имя));
  9249. }
  9250. if ((Original_Фамилия == null)) {
  9251. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  9252. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  9253. }
  9254. else {
  9255. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  9256. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Фамилия));
  9257. }
  9258. if ((Original_Отчество == null)) {
  9259. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  9260. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  9261. }
  9262. else {
  9263. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  9264. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Отчество));
  9265. }
  9266. this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_Роль));
  9267. this.Adapter.UpdateCommand.Parameters[17].Value = ((System.DateTime)(Original_ДатаРождения));
  9268. if ((Original_Телефон == null)) {
  9269. throw new global::System.ArgumentNullException("Original_Телефон");
  9270. }
  9271. else {
  9272. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Телефон));
  9273. }
  9274. if ((Original_Адрес == null)) {
  9275. throw new global::System.ArgumentNullException("Original_Адрес");
  9276. }
  9277. else {
  9278. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Адрес));
  9279. }
  9280. if ((Original_Username == null)) {
  9281. throw new global::System.ArgumentNullException("Original_Username");
  9282. }
  9283. else {
  9284. this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_Username));
  9285. }
  9286. if ((Original_Password == null)) {
  9287. throw new global::System.ArgumentNullException("Original_Password");
  9288. }
  9289. else {
  9290. this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_Password));
  9291. }
  9292. this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(ID));
  9293. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9294. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9295. != global::System.Data.ConnectionState.Open)) {
  9296. this.Adapter.UpdateCommand.Connection.Open();
  9297. }
  9298. try {
  9299. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9300. return returnValue;
  9301. }
  9302. finally {
  9303. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9304. this.Adapter.UpdateCommand.Connection.Close();
  9305. }
  9306. }
  9307. }
  9308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9310. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9311. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9312. public virtual int Update(
  9313. string Имя,
  9314. string Фамилия,
  9315. string Отчество,
  9316. int Роль,
  9317. System.DateTime ДатаРождения,
  9318. string Телефон,
  9319. string Адрес,
  9320. string Username,
  9321. string Password,
  9322. int Original_ID,
  9323. string Original_Имя,
  9324. string Original_Фамилия,
  9325. string Original_Отчество,
  9326. int Original_Роль,
  9327. System.DateTime Original_ДатаРождения,
  9328. string Original_Телефон,
  9329. string Original_Адрес,
  9330. string Original_Username,
  9331. string Original_Password) {
  9332. return this.Update(Имя, Фамилия, Отчество, Роль, ДатаРождения, Телефон, Адрес, Username, Password, Original_ID, Original_Имя, Original_Фамилия, Original_Отчество, Original_Роль, Original_ДатаРождения, Original_Телефон, Original_Адрес, Original_Username, Original_Password, Original_ID);
  9333. }
  9334. }
  9335. /// <summary>
  9336. ///Represents the connection and commands used to retrieve and save data.
  9337. ///</summary>
  9338. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9339. [global::System.ComponentModel.ToolboxItem(true)]
  9340. [global::System.ComponentModel.DataObjectAttribute(true)]
  9341. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9342. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9343. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9344. public partial class СтатусыЗаказаTableAdapter : global::System.ComponentModel.Component {
  9345. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9346. private global::System.Data.SqlClient.SqlConnection _connection;
  9347. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9348. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9349. private bool _clearBeforeFill;
  9350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9352. public СтатусыЗаказаTableAdapter() {
  9353. this.ClearBeforeFill = true;
  9354. }
  9355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9357. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9358. get {
  9359. if ((this._adapter == null)) {
  9360. this.InitAdapter();
  9361. }
  9362. return this._adapter;
  9363. }
  9364. }
  9365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9367. internal global::System.Data.SqlClient.SqlConnection Connection {
  9368. get {
  9369. if ((this._connection == null)) {
  9370. this.InitConnection();
  9371. }
  9372. return this._connection;
  9373. }
  9374. set {
  9375. this._connection = value;
  9376. if ((this.Adapter.InsertCommand != null)) {
  9377. this.Adapter.InsertCommand.Connection = value;
  9378. }
  9379. if ((this.Adapter.DeleteCommand != null)) {
  9380. this.Adapter.DeleteCommand.Connection = value;
  9381. }
  9382. if ((this.Adapter.UpdateCommand != null)) {
  9383. this.Adapter.UpdateCommand.Connection = value;
  9384. }
  9385. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9386. if ((this.CommandCollection[i] != null)) {
  9387. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9388. }
  9389. }
  9390. }
  9391. }
  9392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9394. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9395. get {
  9396. return this._transaction;
  9397. }
  9398. set {
  9399. this._transaction = value;
  9400. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9401. this.CommandCollection[i].Transaction = this._transaction;
  9402. }
  9403. if (((this.Adapter != null)
  9404. && (this.Adapter.DeleteCommand != null))) {
  9405. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9406. }
  9407. if (((this.Adapter != null)
  9408. && (this.Adapter.InsertCommand != null))) {
  9409. this.Adapter.InsertCommand.Transaction = this._transaction;
  9410. }
  9411. if (((this.Adapter != null)
  9412. && (this.Adapter.UpdateCommand != null))) {
  9413. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9414. }
  9415. }
  9416. }
  9417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9419. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9420. get {
  9421. if ((this._commandCollection == null)) {
  9422. this.InitCommandCollection();
  9423. }
  9424. return this._commandCollection;
  9425. }
  9426. }
  9427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9429. public bool ClearBeforeFill {
  9430. get {
  9431. return this._clearBeforeFill;
  9432. }
  9433. set {
  9434. this._clearBeforeFill = value;
  9435. }
  9436. }
  9437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9439. private void InitAdapter() {
  9440. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9441. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9442. tableMapping.SourceTable = "Table";
  9443. tableMapping.DataSetTable = "СтатусыЗаказа";
  9444. tableMapping.ColumnMappings.Add("ID_Статуса", "ID_Статуса");
  9445. tableMapping.ColumnMappings.Add("Название", "Название");
  9446. this._adapter.TableMappings.Add(tableMapping);
  9447. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9448. this._adapter.DeleteCommand.Connection = this.Connection;
  9449. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[СтатусыЗаказа] WHERE (([ID_Статуса] = @Original_ID_Статуса) AN" +
  9450. "D ([Название] = @Original_Название))";
  9451. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9452. 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, "", "", ""));
  9453. 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, "", "", ""));
  9454. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9455. this._adapter.InsertCommand.Connection = this.Connection;
  9456. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[СтатусыЗаказа] ([Название]) VALUES (@Название);\r\nSELECT ID_Ста" +
  9457. "туса, Название FROM СтатусыЗаказа WHERE (ID_Статуса = SCOPE_IDENTITY())";
  9458. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9459. 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, "", "", ""));
  9460. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9461. this._adapter.UpdateCommand.Connection = this.Connection;
  9462. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[СтатусыЗаказа] SET [Название] = @Название WHERE (([ID_Статуса] = @O" +
  9463. "riginal_ID_Статуса) AND ([Название] = @Original_Название));\r\nSELECT ID_Статуса, " +
  9464. "Название FROM СтатусыЗаказа WHERE (ID_Статуса = @ID_Статуса)";
  9465. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9466. 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, "", "", ""));
  9467. 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, "", "", ""));
  9468. 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, "", "", ""));
  9469. 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, "", "", ""));
  9470. }
  9471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9473. private void InitConnection() {
  9474. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9475. this._connection.ConnectionString = global::KazarinDE.Properties.Settings.Default.KazarinDE_03ConnectionString;
  9476. }
  9477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9479. private void InitCommandCollection() {
  9480. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9481. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9482. this._commandCollection[0].Connection = this.Connection;
  9483. this._commandCollection[0].CommandText = "SELECT ID_Статуса, Название FROM dbo.СтатусыЗаказа";
  9484. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9485. }
  9486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9488. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9489. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9490. public virtual int Fill(KazarinDE_03DataSet1.СтатусыЗаказаDataTable dataTable) {
  9491. this.Adapter.SelectCommand = this.CommandCollection[0];
  9492. if ((this.ClearBeforeFill == true)) {
  9493. dataTable.Clear();
  9494. }
  9495. int returnValue = this.Adapter.Fill(dataTable);
  9496. return returnValue;
  9497. }
  9498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9500. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9501. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9502. public virtual KazarinDE_03DataSet1.СтатусыЗаказаDataTable GetData() {
  9503. this.Adapter.SelectCommand = this.CommandCollection[0];
  9504. KazarinDE_03DataSet1.СтатусыЗаказаDataTable dataTable = new KazarinDE_03DataSet1.СтатусыЗаказаDataTable();
  9505. this.Adapter.Fill(dataTable);
  9506. return dataTable;
  9507. }
  9508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9510. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9511. public virtual int Update(KazarinDE_03DataSet1.СтатусыЗаказаDataTable dataTable) {
  9512. return this.Adapter.Update(dataTable);
  9513. }
  9514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9516. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9517. public virtual int Update(KazarinDE_03DataSet1 dataSet) {
  9518. return this.Adapter.Update(dataSet, "СтатусыЗаказа");
  9519. }
  9520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9522. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9523. public virtual int Update(global::System.Data.DataRow dataRow) {
  9524. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9525. dataRow});
  9526. }
  9527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9529. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9530. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9531. return this.Adapter.Update(dataRows);
  9532. }
  9533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9535. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9536. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9537. public virtual int Delete(int Original_ID_Статуса, string Original_Название) {
  9538. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Статуса));
  9539. if ((Original_Название == null)) {
  9540. throw new global::System.ArgumentNullException("Original_Название");
  9541. }
  9542. else {
  9543. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Название));
  9544. }
  9545. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9546. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9547. != global::System.Data.ConnectionState.Open)) {
  9548. this.Adapter.DeleteCommand.Connection.Open();
  9549. }
  9550. try {
  9551. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9552. return returnValue;
  9553. }
  9554. finally {
  9555. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9556. this.Adapter.DeleteCommand.Connection.Close();
  9557. }
  9558. }
  9559. }
  9560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9562. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9563. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9564. public virtual int Insert(string Название) {
  9565. if ((Название == null)) {
  9566. throw new global::System.ArgumentNullException("Название");
  9567. }
  9568. else {
  9569. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  9570. }
  9571. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9572. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9573. != global::System.Data.ConnectionState.Open)) {
  9574. this.Adapter.InsertCommand.Connection.Open();
  9575. }
  9576. try {
  9577. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9578. return returnValue;
  9579. }
  9580. finally {
  9581. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9582. this.Adapter.InsertCommand.Connection.Close();
  9583. }
  9584. }
  9585. }
  9586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9588. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9589. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9590. public virtual int Update(string Название, int Original_ID_Статуса, string Original_Название, int ID_Статуса) {
  9591. if ((Название == null)) {
  9592. throw new global::System.ArgumentNullException("Название");
  9593. }
  9594. else {
  9595. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  9596. }
  9597. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_ID_Статуса));
  9598. if ((Original_Название == null)) {
  9599. throw new global::System.ArgumentNullException("Original_Название");
  9600. }
  9601. else {
  9602. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_Название));
  9603. }
  9604. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ID_Статуса));
  9605. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9606. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9607. != global::System.Data.ConnectionState.Open)) {
  9608. this.Adapter.UpdateCommand.Connection.Open();
  9609. }
  9610. try {
  9611. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9612. return returnValue;
  9613. }
  9614. finally {
  9615. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9616. this.Adapter.UpdateCommand.Connection.Close();
  9617. }
  9618. }
  9619. }
  9620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9622. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9623. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9624. public virtual int Update(string Название, int Original_ID_Статуса, string Original_Название) {
  9625. return this.Update(Название, Original_ID_Статуса, Original_Название, Original_ID_Статуса);
  9626. }
  9627. }
  9628. /// <summary>
  9629. ///Represents the connection and commands used to retrieve and save data.
  9630. ///</summary>
  9631. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9632. [global::System.ComponentModel.ToolboxItem(true)]
  9633. [global::System.ComponentModel.DataObjectAttribute(true)]
  9634. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9635. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9636. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9637. public partial class ТипыКомплектующихTableAdapter : global::System.ComponentModel.Component {
  9638. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9639. private global::System.Data.SqlClient.SqlConnection _connection;
  9640. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9641. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9642. private bool _clearBeforeFill;
  9643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9645. public ТипыКомплектующихTableAdapter() {
  9646. this.ClearBeforeFill = true;
  9647. }
  9648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9650. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9651. get {
  9652. if ((this._adapter == null)) {
  9653. this.InitAdapter();
  9654. }
  9655. return this._adapter;
  9656. }
  9657. }
  9658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9660. internal global::System.Data.SqlClient.SqlConnection Connection {
  9661. get {
  9662. if ((this._connection == null)) {
  9663. this.InitConnection();
  9664. }
  9665. return this._connection;
  9666. }
  9667. set {
  9668. this._connection = value;
  9669. if ((this.Adapter.InsertCommand != null)) {
  9670. this.Adapter.InsertCommand.Connection = value;
  9671. }
  9672. if ((this.Adapter.DeleteCommand != null)) {
  9673. this.Adapter.DeleteCommand.Connection = value;
  9674. }
  9675. if ((this.Adapter.UpdateCommand != null)) {
  9676. this.Adapter.UpdateCommand.Connection = value;
  9677. }
  9678. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9679. if ((this.CommandCollection[i] != null)) {
  9680. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9681. }
  9682. }
  9683. }
  9684. }
  9685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9687. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9688. get {
  9689. return this._transaction;
  9690. }
  9691. set {
  9692. this._transaction = value;
  9693. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9694. this.CommandCollection[i].Transaction = this._transaction;
  9695. }
  9696. if (((this.Adapter != null)
  9697. && (this.Adapter.DeleteCommand != null))) {
  9698. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9699. }
  9700. if (((this.Adapter != null)
  9701. && (this.Adapter.InsertCommand != null))) {
  9702. this.Adapter.InsertCommand.Transaction = this._transaction;
  9703. }
  9704. if (((this.Adapter != null)
  9705. && (this.Adapter.UpdateCommand != null))) {
  9706. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9707. }
  9708. }
  9709. }
  9710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9712. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9713. get {
  9714. if ((this._commandCollection == null)) {
  9715. this.InitCommandCollection();
  9716. }
  9717. return this._commandCollection;
  9718. }
  9719. }
  9720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9722. public bool ClearBeforeFill {
  9723. get {
  9724. return this._clearBeforeFill;
  9725. }
  9726. set {
  9727. this._clearBeforeFill = value;
  9728. }
  9729. }
  9730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9732. private void InitAdapter() {
  9733. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9734. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9735. tableMapping.SourceTable = "Table";
  9736. tableMapping.DataSetTable = "ТипыКомплектующих";
  9737. tableMapping.ColumnMappings.Add("ID_Типа", "ID_Типа");
  9738. tableMapping.ColumnMappings.Add("Название", "Название");
  9739. this._adapter.TableMappings.Add(tableMapping);
  9740. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9741. this._adapter.DeleteCommand.Connection = this.Connection;
  9742. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ТипыКомплектующих] WHERE (([ID_Типа] = @Original_ID_Типа) AND " +
  9743. "((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Назван" +
  9744. "ие)))";
  9745. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9746. 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, "", "", ""));
  9747. 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, "", "", ""));
  9748. 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, "", "", ""));
  9749. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9750. this._adapter.InsertCommand.Connection = this.Connection;
  9751. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ТипыКомплектующих] ([Название]) VALUES (@Название);\r\nSELECT ID" +
  9752. "_Типа, Название FROM ТипыКомплектующих WHERE (ID_Типа = SCOPE_IDENTITY())";
  9753. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9754. 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, "", "", ""));
  9755. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9756. this._adapter.UpdateCommand.Connection = this.Connection;
  9757. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ТипыКомплектующих] SET [Название] = @Название WHERE (([ID_Типа] = @Original_ID_Типа) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)));
  9758. SELECT ID_Типа, Название FROM ТипыКомплектующих WHERE (ID_Типа = @ID_Типа)";
  9759. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9760. 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, "", "", ""));
  9761. 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, "", "", ""));
  9762. 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, "", "", ""));
  9763. 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, "", "", ""));
  9764. 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, "", "", ""));
  9765. }
  9766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9768. private void InitConnection() {
  9769. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9770. this._connection.ConnectionString = global::KazarinDE.Properties.Settings.Default.KazarinDE_03ConnectionString;
  9771. }
  9772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9774. private void InitCommandCollection() {
  9775. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9776. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9777. this._commandCollection[0].Connection = this.Connection;
  9778. this._commandCollection[0].CommandText = "SELECT ID_Типа, Название FROM dbo.ТипыКомплектующих";
  9779. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9780. }
  9781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9783. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9784. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9785. public virtual int Fill(KazarinDE_03DataSet1.ТипыКомплектующихDataTable dataTable) {
  9786. this.Adapter.SelectCommand = this.CommandCollection[0];
  9787. if ((this.ClearBeforeFill == true)) {
  9788. dataTable.Clear();
  9789. }
  9790. int returnValue = this.Adapter.Fill(dataTable);
  9791. return returnValue;
  9792. }
  9793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9795. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9796. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9797. public virtual KazarinDE_03DataSet1.ТипыКомплектующихDataTable GetData() {
  9798. this.Adapter.SelectCommand = this.CommandCollection[0];
  9799. KazarinDE_03DataSet1.ТипыКомплектующихDataTable dataTable = new KazarinDE_03DataSet1.ТипыКомплектующихDataTable();
  9800. this.Adapter.Fill(dataTable);
  9801. return dataTable;
  9802. }
  9803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9805. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9806. public virtual int Update(KazarinDE_03DataSet1.ТипыКомплектующихDataTable dataTable) {
  9807. return this.Adapter.Update(dataTable);
  9808. }
  9809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9811. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9812. public virtual int Update(KazarinDE_03DataSet1 dataSet) {
  9813. return this.Adapter.Update(dataSet, "ТипыКомплектующих");
  9814. }
  9815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9817. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9818. public virtual int Update(global::System.Data.DataRow dataRow) {
  9819. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9820. dataRow});
  9821. }
  9822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9824. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9825. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9826. return this.Adapter.Update(dataRows);
  9827. }
  9828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9830. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9831. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9832. public virtual int Delete(int Original_ID_Типа, string Original_Название) {
  9833. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Типа));
  9834. if ((Original_Название == null)) {
  9835. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9836. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9837. }
  9838. else {
  9839. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9840. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название));
  9841. }
  9842. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9843. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9844. != global::System.Data.ConnectionState.Open)) {
  9845. this.Adapter.DeleteCommand.Connection.Open();
  9846. }
  9847. try {
  9848. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9849. return returnValue;
  9850. }
  9851. finally {
  9852. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9853. this.Adapter.DeleteCommand.Connection.Close();
  9854. }
  9855. }
  9856. }
  9857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9859. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9860. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9861. public virtual int Insert(string Название) {
  9862. if ((Название == null)) {
  9863. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9864. }
  9865. else {
  9866. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  9867. }
  9868. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9869. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9870. != global::System.Data.ConnectionState.Open)) {
  9871. this.Adapter.InsertCommand.Connection.Open();
  9872. }
  9873. try {
  9874. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9875. return returnValue;
  9876. }
  9877. finally {
  9878. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9879. this.Adapter.InsertCommand.Connection.Close();
  9880. }
  9881. }
  9882. }
  9883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9885. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9886. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9887. public virtual int Update(string Название, int Original_ID_Типа, string Original_Название, int ID_Типа) {
  9888. if ((Название == null)) {
  9889. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9890. }
  9891. else {
  9892. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  9893. }
  9894. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_ID_Типа));
  9895. if ((Original_Название == null)) {
  9896. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  9897. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9898. }
  9899. else {
  9900. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  9901. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Название));
  9902. }
  9903. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(ID_Типа));
  9904. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9905. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9906. != global::System.Data.ConnectionState.Open)) {
  9907. this.Adapter.UpdateCommand.Connection.Open();
  9908. }
  9909. try {
  9910. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9911. return returnValue;
  9912. }
  9913. finally {
  9914. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9915. this.Adapter.UpdateCommand.Connection.Close();
  9916. }
  9917. }
  9918. }
  9919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9921. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9922. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9923. public virtual int Update(string Название, int Original_ID_Типа, string Original_Название) {
  9924. return this.Update(Название, Original_ID_Типа, Original_Название, Original_ID_Типа);
  9925. }
  9926. }
  9927. /// <summary>
  9928. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  9929. ///</summary>
  9930. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9931. [global::System.ComponentModel.ToolboxItem(true)]
  9932. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  9933. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9934. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  9935. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  9936. private UpdateOrderOption _updateOrder;
  9937. private ЕдиницыИзмеренияTableAdapter _единицыИзмеренияTableAdapter;
  9938. private ЗаказыTableAdapter _заказыTableAdapter;
  9939. private КлиентыTableAdapter _клиентыTableAdapter;
  9940. private КомплектующиеTableAdapter _комплектующиеTableAdapter;
  9941. private КомпьютерыTableAdapter _компьютерыTableAdapter;
  9942. private ОписаниеСборкиTableAdapter _описаниеСборкиTableAdapter;
  9943. private ПоставщикиTableAdapter _поставщикиTableAdapter;
  9944. private РолиTableAdapter _ролиTableAdapter;
  9945. private СборкаTableAdapter _сборкаTableAdapter;
  9946. private СотрудникиTableAdapter _сотрудникиTableAdapter;
  9947. private СтатусыЗаказаTableAdapter _статусыЗаказаTableAdapter;
  9948. private ТипыКомплектующихTableAdapter _типыКомплектующихTableAdapter;
  9949. private bool _backupDataSetBeforeUpdate;
  9950. private global::System.Data.IDbConnection _connection;
  9951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9953. public UpdateOrderOption UpdateOrder {
  9954. get {
  9955. return this._updateOrder;
  9956. }
  9957. set {
  9958. this._updateOrder = value;
  9959. }
  9960. }
  9961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9963. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9964. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9965. "a", "System.Drawing.Design.UITypeEditor")]
  9966. public ЕдиницыИзмеренияTableAdapter ЕдиницыИзмеренияTableAdapter {
  9967. get {
  9968. return this._единицыИзмеренияTableAdapter;
  9969. }
  9970. set {
  9971. this._единицыИзмеренияTableAdapter = value;
  9972. }
  9973. }
  9974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9976. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9977. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9978. "a", "System.Drawing.Design.UITypeEditor")]
  9979. public ЗаказыTableAdapter ЗаказыTableAdapter {
  9980. get {
  9981. return this._заказыTableAdapter;
  9982. }
  9983. set {
  9984. this._заказыTableAdapter = value;
  9985. }
  9986. }
  9987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9989. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9990. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9991. "a", "System.Drawing.Design.UITypeEditor")]
  9992. public КлиентыTableAdapter КлиентыTableAdapter {
  9993. get {
  9994. return this._клиентыTableAdapter;
  9995. }
  9996. set {
  9997. this._клиентыTableAdapter = value;
  9998. }
  9999. }
  10000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10002. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10003. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10004. "a", "System.Drawing.Design.UITypeEditor")]
  10005. public КомплектующиеTableAdapter КомплектующиеTableAdapter {
  10006. get {
  10007. return this._комплектующиеTableAdapter;
  10008. }
  10009. set {
  10010. this._комплектующиеTableAdapter = value;
  10011. }
  10012. }
  10013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10015. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10016. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10017. "a", "System.Drawing.Design.UITypeEditor")]
  10018. public КомпьютерыTableAdapter КомпьютерыTableAdapter {
  10019. get {
  10020. return this._компьютерыTableAdapter;
  10021. }
  10022. set {
  10023. this._компьютерыTableAdapter = value;
  10024. }
  10025. }
  10026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10028. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10029. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10030. "a", "System.Drawing.Design.UITypeEditor")]
  10031. public ОписаниеСборкиTableAdapter ОписаниеСборкиTableAdapter {
  10032. get {
  10033. return this._описаниеСборкиTableAdapter;
  10034. }
  10035. set {
  10036. this._описаниеСборкиTableAdapter = value;
  10037. }
  10038. }
  10039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10041. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10042. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10043. "a", "System.Drawing.Design.UITypeEditor")]
  10044. public ПоставщикиTableAdapter ПоставщикиTableAdapter {
  10045. get {
  10046. return this._поставщикиTableAdapter;
  10047. }
  10048. set {
  10049. this._поставщикиTableAdapter = value;
  10050. }
  10051. }
  10052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10054. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10055. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10056. "a", "System.Drawing.Design.UITypeEditor")]
  10057. public РолиTableAdapter РолиTableAdapter {
  10058. get {
  10059. return this._ролиTableAdapter;
  10060. }
  10061. set {
  10062. this._ролиTableAdapter = value;
  10063. }
  10064. }
  10065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10067. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10068. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10069. "a", "System.Drawing.Design.UITypeEditor")]
  10070. public СборкаTableAdapter СборкаTableAdapter {
  10071. get {
  10072. return this._сборкаTableAdapter;
  10073. }
  10074. set {
  10075. this._сборкаTableAdapter = value;
  10076. }
  10077. }
  10078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10080. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10081. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10082. "a", "System.Drawing.Design.UITypeEditor")]
  10083. public СотрудникиTableAdapter СотрудникиTableAdapter {
  10084. get {
  10085. return this._сотрудникиTableAdapter;
  10086. }
  10087. set {
  10088. this._сотрудникиTableAdapter = value;
  10089. }
  10090. }
  10091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10093. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10094. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10095. "a", "System.Drawing.Design.UITypeEditor")]
  10096. public СтатусыЗаказаTableAdapter СтатусыЗаказаTableAdapter {
  10097. get {
  10098. return this._статусыЗаказаTableAdapter;
  10099. }
  10100. set {
  10101. this._статусыЗаказаTableAdapter = value;
  10102. }
  10103. }
  10104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10106. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10107. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10108. "a", "System.Drawing.Design.UITypeEditor")]
  10109. public ТипыКомплектующихTableAdapter ТипыКомплектующихTableAdapter {
  10110. get {
  10111. return this._типыКомплектующихTableAdapter;
  10112. }
  10113. set {
  10114. this._типыКомплектующихTableAdapter = value;
  10115. }
  10116. }
  10117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10119. public bool BackupDataSetBeforeUpdate {
  10120. get {
  10121. return this._backupDataSetBeforeUpdate;
  10122. }
  10123. set {
  10124. this._backupDataSetBeforeUpdate = value;
  10125. }
  10126. }
  10127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10129. [global::System.ComponentModel.Browsable(false)]
  10130. public global::System.Data.IDbConnection Connection {
  10131. get {
  10132. if ((this._connection != null)) {
  10133. return this._connection;
  10134. }
  10135. if (((this._единицыИзмеренияTableAdapter != null)
  10136. && (this._единицыИзмеренияTableAdapter.Connection != null))) {
  10137. return this._единицыИзмеренияTableAdapter.Connection;
  10138. }
  10139. if (((this._заказыTableAdapter != null)
  10140. && (this._заказыTableAdapter.Connection != null))) {
  10141. return this._заказыTableAdapter.Connection;
  10142. }
  10143. if (((this._клиентыTableAdapter != null)
  10144. && (this._клиентыTableAdapter.Connection != null))) {
  10145. return this._клиентыTableAdapter.Connection;
  10146. }
  10147. if (((this._комплектующиеTableAdapter != null)
  10148. && (this._комплектующиеTableAdapter.Connection != null))) {
  10149. return this._комплектующиеTableAdapter.Connection;
  10150. }
  10151. if (((this._компьютерыTableAdapter != null)
  10152. && (this._компьютерыTableAdapter.Connection != null))) {
  10153. return this._компьютерыTableAdapter.Connection;
  10154. }
  10155. if (((this._описаниеСборкиTableAdapter != null)
  10156. && (this._описаниеСборкиTableAdapter.Connection != null))) {
  10157. return this._описаниеСборкиTableAdapter.Connection;
  10158. }
  10159. if (((this._поставщикиTableAdapter != null)
  10160. && (this._поставщикиTableAdapter.Connection != null))) {
  10161. return this._поставщикиTableAdapter.Connection;
  10162. }
  10163. if (((this._ролиTableAdapter != null)
  10164. && (this._ролиTableAdapter.Connection != null))) {
  10165. return this._ролиTableAdapter.Connection;
  10166. }
  10167. if (((this._сборкаTableAdapter != null)
  10168. && (this._сборкаTableAdapter.Connection != null))) {
  10169. return this._сборкаTableAdapter.Connection;
  10170. }
  10171. if (((this._сотрудникиTableAdapter != null)
  10172. && (this._сотрудникиTableAdapter.Connection != null))) {
  10173. return this._сотрудникиTableAdapter.Connection;
  10174. }
  10175. if (((this._статусыЗаказаTableAdapter != null)
  10176. && (this._статусыЗаказаTableAdapter.Connection != null))) {
  10177. return this._статусыЗаказаTableAdapter.Connection;
  10178. }
  10179. if (((this._типыКомплектующихTableAdapter != null)
  10180. && (this._типыКомплектующихTableAdapter.Connection != null))) {
  10181. return this._типыКомплектующихTableAdapter.Connection;
  10182. }
  10183. return null;
  10184. }
  10185. set {
  10186. this._connection = value;
  10187. }
  10188. }
  10189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10191. [global::System.ComponentModel.Browsable(false)]
  10192. public int TableAdapterInstanceCount {
  10193. get {
  10194. int count = 0;
  10195. if ((this._единицыИзмеренияTableAdapter != null)) {
  10196. count = (count + 1);
  10197. }
  10198. if ((this._заказыTableAdapter != null)) {
  10199. count = (count + 1);
  10200. }
  10201. if ((this._клиентыTableAdapter != null)) {
  10202. count = (count + 1);
  10203. }
  10204. if ((this._комплектующиеTableAdapter != null)) {
  10205. count = (count + 1);
  10206. }
  10207. if ((this._компьютерыTableAdapter != null)) {
  10208. count = (count + 1);
  10209. }
  10210. if ((this._описаниеСборкиTableAdapter != null)) {
  10211. count = (count + 1);
  10212. }
  10213. if ((this._поставщикиTableAdapter != null)) {
  10214. count = (count + 1);
  10215. }
  10216. if ((this._ролиTableAdapter != null)) {
  10217. count = (count + 1);
  10218. }
  10219. if ((this._сборкаTableAdapter != null)) {
  10220. count = (count + 1);
  10221. }
  10222. if ((this._сотрудникиTableAdapter != null)) {
  10223. count = (count + 1);
  10224. }
  10225. if ((this._статусыЗаказаTableAdapter != null)) {
  10226. count = (count + 1);
  10227. }
  10228. if ((this._типыКомплектующихTableAdapter != null)) {
  10229. count = (count + 1);
  10230. }
  10231. return count;
  10232. }
  10233. }
  10234. /// <summary>
  10235. ///Update rows in top-down order.
  10236. ///</summary>
  10237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10239. private int UpdateUpdatedRows(KazarinDE_03DataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10240. int result = 0;
  10241. if ((this._ролиTableAdapter != null)) {
  10242. global::System.Data.DataRow[] updatedRows = dataSet.Роли.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10243. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10244. if (((updatedRows != null)
  10245. && (0 < updatedRows.Length))) {
  10246. result = (result + this._ролиTableAdapter.Update(updatedRows));
  10247. allChangedRows.AddRange(updatedRows);
  10248. }
  10249. }
  10250. if ((this._единицыИзмеренияTableAdapter != null)) {
  10251. global::System.Data.DataRow[] updatedRows = dataSet.ЕдиницыИзмерения.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10252. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10253. if (((updatedRows != null)
  10254. && (0 < updatedRows.Length))) {
  10255. result = (result + this._единицыИзмеренияTableAdapter.Update(updatedRows));
  10256. allChangedRows.AddRange(updatedRows);
  10257. }
  10258. }
  10259. if ((this._компьютерыTableAdapter != null)) {
  10260. global::System.Data.DataRow[] updatedRows = dataSet.Компьютеры.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10261. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10262. if (((updatedRows != null)
  10263. && (0 < updatedRows.Length))) {
  10264. result = (result + this._компьютерыTableAdapter.Update(updatedRows));
  10265. allChangedRows.AddRange(updatedRows);
  10266. }
  10267. }
  10268. if ((this._поставщикиTableAdapter != null)) {
  10269. global::System.Data.DataRow[] updatedRows = dataSet.Поставщики.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10270. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10271. if (((updatedRows != null)
  10272. && (0 < updatedRows.Length))) {
  10273. result = (result + this._поставщикиTableAdapter.Update(updatedRows));
  10274. allChangedRows.AddRange(updatedRows);
  10275. }
  10276. }
  10277. if ((this._сотрудникиTableAdapter != null)) {
  10278. global::System.Data.DataRow[] updatedRows = dataSet.Сотрудники.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10279. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10280. if (((updatedRows != null)
  10281. && (0 < updatedRows.Length))) {
  10282. result = (result + this._сотрудникиTableAdapter.Update(updatedRows));
  10283. allChangedRows.AddRange(updatedRows);
  10284. }
  10285. }
  10286. if ((this._типыКомплектующихTableAdapter != null)) {
  10287. global::System.Data.DataRow[] updatedRows = dataSet.ТипыКомплектующих.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10288. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10289. if (((updatedRows != null)
  10290. && (0 < updatedRows.Length))) {
  10291. result = (result + this._типыКомплектующихTableAdapter.Update(updatedRows));
  10292. allChangedRows.AddRange(updatedRows);
  10293. }
  10294. }
  10295. if ((this._клиентыTableAdapter != null)) {
  10296. global::System.Data.DataRow[] updatedRows = dataSet.Клиенты.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10297. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10298. if (((updatedRows != null)
  10299. && (0 < updatedRows.Length))) {
  10300. result = (result + this._клиентыTableAdapter.Update(updatedRows));
  10301. allChangedRows.AddRange(updatedRows);
  10302. }
  10303. }
  10304. if ((this._комплектующиеTableAdapter != null)) {
  10305. global::System.Data.DataRow[] updatedRows = dataSet.Комплектующие.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10306. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10307. if (((updatedRows != null)
  10308. && (0 < updatedRows.Length))) {
  10309. result = (result + this._комплектующиеTableAdapter.Update(updatedRows));
  10310. allChangedRows.AddRange(updatedRows);
  10311. }
  10312. }
  10313. if ((this._сборкаTableAdapter != null)) {
  10314. global::System.Data.DataRow[] updatedRows = dataSet.Сборка.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10315. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10316. if (((updatedRows != null)
  10317. && (0 < updatedRows.Length))) {
  10318. result = (result + this._сборкаTableAdapter.Update(updatedRows));
  10319. allChangedRows.AddRange(updatedRows);
  10320. }
  10321. }
  10322. if ((this._статусыЗаказаTableAdapter != null)) {
  10323. global::System.Data.DataRow[] updatedRows = dataSet.СтатусыЗаказа.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10324. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10325. if (((updatedRows != null)
  10326. && (0 < updatedRows.Length))) {
  10327. result = (result + this._статусыЗаказаTableAdapter.Update(updatedRows));
  10328. allChangedRows.AddRange(updatedRows);
  10329. }
  10330. }
  10331. if ((this._заказыTableAdapter != null)) {
  10332. global::System.Data.DataRow[] updatedRows = dataSet.Заказы.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10333. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10334. if (((updatedRows != null)
  10335. && (0 < updatedRows.Length))) {
  10336. result = (result + this._заказыTableAdapter.Update(updatedRows));
  10337. allChangedRows.AddRange(updatedRows);
  10338. }
  10339. }
  10340. if ((this._описаниеСборкиTableAdapter != null)) {
  10341. global::System.Data.DataRow[] updatedRows = dataSet.ОписаниеСборки.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10342. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10343. if (((updatedRows != null)
  10344. && (0 < updatedRows.Length))) {
  10345. result = (result + this._описаниеСборкиTableAdapter.Update(updatedRows));
  10346. allChangedRows.AddRange(updatedRows);
  10347. }
  10348. }
  10349. return result;
  10350. }
  10351. /// <summary>
  10352. ///Insert rows in top-down order.
  10353. ///</summary>
  10354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10356. private int UpdateInsertedRows(KazarinDE_03DataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10357. int result = 0;
  10358. if ((this._ролиTableAdapter != null)) {
  10359. global::System.Data.DataRow[] addedRows = dataSet.Роли.Select(null, null, global::System.Data.DataViewRowState.Added);
  10360. if (((addedRows != null)
  10361. && (0 < addedRows.Length))) {
  10362. result = (result + this._ролиTableAdapter.Update(addedRows));
  10363. allAddedRows.AddRange(addedRows);
  10364. }
  10365. }
  10366. if ((this._единицыИзмеренияTableAdapter != null)) {
  10367. global::System.Data.DataRow[] addedRows = dataSet.ЕдиницыИзмерения.Select(null, null, global::System.Data.DataViewRowState.Added);
  10368. if (((addedRows != null)
  10369. && (0 < addedRows.Length))) {
  10370. result = (result + this._единицыИзмеренияTableAdapter.Update(addedRows));
  10371. allAddedRows.AddRange(addedRows);
  10372. }
  10373. }
  10374. if ((this._компьютерыTableAdapter != null)) {
  10375. global::System.Data.DataRow[] addedRows = dataSet.Компьютеры.Select(null, null, global::System.Data.DataViewRowState.Added);
  10376. if (((addedRows != null)
  10377. && (0 < addedRows.Length))) {
  10378. result = (result + this._компьютерыTableAdapter.Update(addedRows));
  10379. allAddedRows.AddRange(addedRows);
  10380. }
  10381. }
  10382. if ((this._поставщикиTableAdapter != null)) {
  10383. global::System.Data.DataRow[] addedRows = dataSet.Поставщики.Select(null, null, global::System.Data.DataViewRowState.Added);
  10384. if (((addedRows != null)
  10385. && (0 < addedRows.Length))) {
  10386. result = (result + this._поставщикиTableAdapter.Update(addedRows));
  10387. allAddedRows.AddRange(addedRows);
  10388. }
  10389. }
  10390. if ((this._сотрудникиTableAdapter != null)) {
  10391. global::System.Data.DataRow[] addedRows = dataSet.Сотрудники.Select(null, null, global::System.Data.DataViewRowState.Added);
  10392. if (((addedRows != null)
  10393. && (0 < addedRows.Length))) {
  10394. result = (result + this._сотрудникиTableAdapter.Update(addedRows));
  10395. allAddedRows.AddRange(addedRows);
  10396. }
  10397. }
  10398. if ((this._типыКомплектующихTableAdapter != null)) {
  10399. global::System.Data.DataRow[] addedRows = dataSet.ТипыКомплектующих.Select(null, null, global::System.Data.DataViewRowState.Added);
  10400. if (((addedRows != null)
  10401. && (0 < addedRows.Length))) {
  10402. result = (result + this._типыКомплектующихTableAdapter.Update(addedRows));
  10403. allAddedRows.AddRange(addedRows);
  10404. }
  10405. }
  10406. if ((this._клиентыTableAdapter != null)) {
  10407. global::System.Data.DataRow[] addedRows = dataSet.Клиенты.Select(null, null, global::System.Data.DataViewRowState.Added);
  10408. if (((addedRows != null)
  10409. && (0 < addedRows.Length))) {
  10410. result = (result + this._клиентыTableAdapter.Update(addedRows));
  10411. allAddedRows.AddRange(addedRows);
  10412. }
  10413. }
  10414. if ((this._комплектующиеTableAdapter != null)) {
  10415. global::System.Data.DataRow[] addedRows = dataSet.Комплектующие.Select(null, null, global::System.Data.DataViewRowState.Added);
  10416. if (((addedRows != null)
  10417. && (0 < addedRows.Length))) {
  10418. result = (result + this._комплектующиеTableAdapter.Update(addedRows));
  10419. allAddedRows.AddRange(addedRows);
  10420. }
  10421. }
  10422. if ((this._сборкаTableAdapter != null)) {
  10423. global::System.Data.DataRow[] addedRows = dataSet.Сборка.Select(null, null, global::System.Data.DataViewRowState.Added);
  10424. if (((addedRows != null)
  10425. && (0 < addedRows.Length))) {
  10426. result = (result + this._сборкаTableAdapter.Update(addedRows));
  10427. allAddedRows.AddRange(addedRows);
  10428. }
  10429. }
  10430. if ((this._статусыЗаказаTableAdapter != null)) {
  10431. global::System.Data.DataRow[] addedRows = dataSet.СтатусыЗаказа.Select(null, null, global::System.Data.DataViewRowState.Added);
  10432. if (((addedRows != null)
  10433. && (0 < addedRows.Length))) {
  10434. result = (result + this._статусыЗаказаTableAdapter.Update(addedRows));
  10435. allAddedRows.AddRange(addedRows);
  10436. }
  10437. }
  10438. if ((this._заказыTableAdapter != null)) {
  10439. global::System.Data.DataRow[] addedRows = dataSet.Заказы.Select(null, null, global::System.Data.DataViewRowState.Added);
  10440. if (((addedRows != null)
  10441. && (0 < addedRows.Length))) {
  10442. result = (result + this._заказыTableAdapter.Update(addedRows));
  10443. allAddedRows.AddRange(addedRows);
  10444. }
  10445. }
  10446. if ((this._описаниеСборкиTableAdapter != null)) {
  10447. global::System.Data.DataRow[] addedRows = dataSet.ОписаниеСборки.Select(null, null, global::System.Data.DataViewRowState.Added);
  10448. if (((addedRows != null)
  10449. && (0 < addedRows.Length))) {
  10450. result = (result + this._описаниеСборкиTableAdapter.Update(addedRows));
  10451. allAddedRows.AddRange(addedRows);
  10452. }
  10453. }
  10454. return result;
  10455. }
  10456. /// <summary>
  10457. ///Delete rows in bottom-up order.
  10458. ///</summary>
  10459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10461. private int UpdateDeletedRows(KazarinDE_03DataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  10462. int result = 0;
  10463. if ((this._описаниеСборкиTableAdapter != null)) {
  10464. global::System.Data.DataRow[] deletedRows = dataSet.ОписаниеСборки.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10465. if (((deletedRows != null)
  10466. && (0 < deletedRows.Length))) {
  10467. result = (result + this._описаниеСборкиTableAdapter.Update(deletedRows));
  10468. allChangedRows.AddRange(deletedRows);
  10469. }
  10470. }
  10471. if ((this._заказыTableAdapter != null)) {
  10472. global::System.Data.DataRow[] deletedRows = dataSet.Заказы.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10473. if (((deletedRows != null)
  10474. && (0 < deletedRows.Length))) {
  10475. result = (result + this._заказыTableAdapter.Update(deletedRows));
  10476. allChangedRows.AddRange(deletedRows);
  10477. }
  10478. }
  10479. if ((this._статусыЗаказаTableAdapter != null)) {
  10480. global::System.Data.DataRow[] deletedRows = dataSet.СтатусыЗаказа.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10481. if (((deletedRows != null)
  10482. && (0 < deletedRows.Length))) {
  10483. result = (result + this._статусыЗаказаTableAdapter.Update(deletedRows));
  10484. allChangedRows.AddRange(deletedRows);
  10485. }
  10486. }
  10487. if ((this._сборкаTableAdapter != null)) {
  10488. global::System.Data.DataRow[] deletedRows = dataSet.Сборка.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10489. if (((deletedRows != null)
  10490. && (0 < deletedRows.Length))) {
  10491. result = (result + this._сборкаTableAdapter.Update(deletedRows));
  10492. allChangedRows.AddRange(deletedRows);
  10493. }
  10494. }
  10495. if ((this._комплектующиеTableAdapter != null)) {
  10496. global::System.Data.DataRow[] deletedRows = dataSet.Комплектующие.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10497. if (((deletedRows != null)
  10498. && (0 < deletedRows.Length))) {
  10499. result = (result + this._комплектующиеTableAdapter.Update(deletedRows));
  10500. allChangedRows.AddRange(deletedRows);
  10501. }
  10502. }
  10503. if ((this._клиентыTableAdapter != null)) {
  10504. global::System.Data.DataRow[] deletedRows = dataSet.Клиенты.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10505. if (((deletedRows != null)
  10506. && (0 < deletedRows.Length))) {
  10507. result = (result + this._клиентыTableAdapter.Update(deletedRows));
  10508. allChangedRows.AddRange(deletedRows);
  10509. }
  10510. }
  10511. if ((this._типыКомплектующихTableAdapter != null)) {
  10512. global::System.Data.DataRow[] deletedRows = dataSet.ТипыКомплектующих.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10513. if (((deletedRows != null)
  10514. && (0 < deletedRows.Length))) {
  10515. result = (result + this._типыКомплектующихTableAdapter.Update(deletedRows));
  10516. allChangedRows.AddRange(deletedRows);
  10517. }
  10518. }
  10519. if ((this._сотрудникиTableAdapter != null)) {
  10520. global::System.Data.DataRow[] deletedRows = dataSet.Сотрудники.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10521. if (((deletedRows != null)
  10522. && (0 < deletedRows.Length))) {
  10523. result = (result + this._сотрудникиTableAdapter.Update(deletedRows));
  10524. allChangedRows.AddRange(deletedRows);
  10525. }
  10526. }
  10527. if ((this._поставщикиTableAdapter != null)) {
  10528. global::System.Data.DataRow[] deletedRows = dataSet.Поставщики.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10529. if (((deletedRows != null)
  10530. && (0 < deletedRows.Length))) {
  10531. result = (result + this._поставщикиTableAdapter.Update(deletedRows));
  10532. allChangedRows.AddRange(deletedRows);
  10533. }
  10534. }
  10535. if ((this._компьютерыTableAdapter != null)) {
  10536. global::System.Data.DataRow[] deletedRows = dataSet.Компьютеры.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10537. if (((deletedRows != null)
  10538. && (0 < deletedRows.Length))) {
  10539. result = (result + this._компьютерыTableAdapter.Update(deletedRows));
  10540. allChangedRows.AddRange(deletedRows);
  10541. }
  10542. }
  10543. if ((this._единицыИзмеренияTableAdapter != null)) {
  10544. global::System.Data.DataRow[] deletedRows = dataSet.ЕдиницыИзмерения.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10545. if (((deletedRows != null)
  10546. && (0 < deletedRows.Length))) {
  10547. result = (result + this._единицыИзмеренияTableAdapter.Update(deletedRows));
  10548. allChangedRows.AddRange(deletedRows);
  10549. }
  10550. }
  10551. if ((this._ролиTableAdapter != null)) {
  10552. global::System.Data.DataRow[] deletedRows = dataSet.Роли.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10553. if (((deletedRows != null)
  10554. && (0 < deletedRows.Length))) {
  10555. result = (result + this._ролиTableAdapter.Update(deletedRows));
  10556. allChangedRows.AddRange(deletedRows);
  10557. }
  10558. }
  10559. return result;
  10560. }
  10561. /// <summary>
  10562. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  10563. ///</summary>
  10564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10566. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10567. if (((updatedRows == null)
  10568. || (updatedRows.Length < 1))) {
  10569. return updatedRows;
  10570. }
  10571. if (((allAddedRows == null)
  10572. || (allAddedRows.Count < 1))) {
  10573. return updatedRows;
  10574. }
  10575. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10576. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  10577. global::System.Data.DataRow row = updatedRows[i];
  10578. if ((allAddedRows.Contains(row) == false)) {
  10579. realUpdatedRows.Add(row);
  10580. }
  10581. }
  10582. return realUpdatedRows.ToArray();
  10583. }
  10584. /// <summary>
  10585. ///Update all changes to the dataset.
  10586. ///</summary>
  10587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10589. public virtual int UpdateAll(KazarinDE_03DataSet1 dataSet) {
  10590. if ((dataSet == null)) {
  10591. throw new global::System.ArgumentNullException("dataSet");
  10592. }
  10593. if ((dataSet.HasChanges() == false)) {
  10594. return 0;
  10595. }
  10596. if (((this._единицыИзмеренияTableAdapter != null)
  10597. && (this.MatchTableAdapterConnection(this._единицыИзмеренияTableAdapter.Connection) == false))) {
  10598. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10599. "r, должны использовать одинаковую строку подключения.");
  10600. }
  10601. if (((this._заказыTableAdapter != null)
  10602. && (this.MatchTableAdapterConnection(this._заказыTableAdapter.Connection) == false))) {
  10603. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10604. "r, должны использовать одинаковую строку подключения.");
  10605. }
  10606. if (((this._клиентыTableAdapter != null)
  10607. && (this.MatchTableAdapterConnection(this._клиентыTableAdapter.Connection) == false))) {
  10608. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10609. "r, должны использовать одинаковую строку подключения.");
  10610. }
  10611. if (((this._комплектующиеTableAdapter != null)
  10612. && (this.MatchTableAdapterConnection(this._комплектующиеTableAdapter.Connection) == false))) {
  10613. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10614. "r, должны использовать одинаковую строку подключения.");
  10615. }
  10616. if (((this._компьютерыTableAdapter != null)
  10617. && (this.MatchTableAdapterConnection(this._компьютерыTableAdapter.Connection) == false))) {
  10618. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10619. "r, должны использовать одинаковую строку подключения.");
  10620. }
  10621. if (((this._описаниеСборкиTableAdapter != null)
  10622. && (this.MatchTableAdapterConnection(this._описаниеСборкиTableAdapter.Connection) == false))) {
  10623. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10624. "r, должны использовать одинаковую строку подключения.");
  10625. }
  10626. if (((this._поставщикиTableAdapter != null)
  10627. && (this.MatchTableAdapterConnection(this._поставщикиTableAdapter.Connection) == false))) {
  10628. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10629. "r, должны использовать одинаковую строку подключения.");
  10630. }
  10631. if (((this._ролиTableAdapter != null)
  10632. && (this.MatchTableAdapterConnection(this._ролиTableAdapter.Connection) == false))) {
  10633. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10634. "r, должны использовать одинаковую строку подключения.");
  10635. }
  10636. if (((this._сборкаTableAdapter != null)
  10637. && (this.MatchTableAdapterConnection(this._сборкаTableAdapter.Connection) == false))) {
  10638. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10639. "r, должны использовать одинаковую строку подключения.");
  10640. }
  10641. if (((this._сотрудникиTableAdapter != null)
  10642. && (this.MatchTableAdapterConnection(this._сотрудникиTableAdapter.Connection) == false))) {
  10643. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10644. "r, должны использовать одинаковую строку подключения.");
  10645. }
  10646. if (((this._статусыЗаказаTableAdapter != null)
  10647. && (this.MatchTableAdapterConnection(this._статусыЗаказаTableAdapter.Connection) == false))) {
  10648. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10649. "r, должны использовать одинаковую строку подключения.");
  10650. }
  10651. if (((this._типыКомплектующихTableAdapter != null)
  10652. && (this.MatchTableAdapterConnection(this._типыКомплектующихTableAdapter.Connection) == false))) {
  10653. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10654. "r, должны использовать одинаковую строку подключения.");
  10655. }
  10656. global::System.Data.IDbConnection workConnection = this.Connection;
  10657. if ((workConnection == null)) {
  10658. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  10659. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  10660. }
  10661. bool workConnOpened = false;
  10662. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  10663. == global::System.Data.ConnectionState.Broken)) {
  10664. workConnection.Close();
  10665. }
  10666. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  10667. workConnection.Open();
  10668. workConnOpened = true;
  10669. }
  10670. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  10671. if ((workTransaction == null)) {
  10672. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  10673. "и или текущее состояние не позволяет начать транзакцию.");
  10674. }
  10675. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10676. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10677. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  10678. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  10679. int result = 0;
  10680. global::System.Data.DataSet backupDataSet = null;
  10681. if (this.BackupDataSetBeforeUpdate) {
  10682. backupDataSet = new global::System.Data.DataSet();
  10683. backupDataSet.Merge(dataSet);
  10684. }
  10685. try {
  10686. // ---- Prepare for update -----------
  10687. //
  10688. if ((this._единицыИзмеренияTableAdapter != null)) {
  10689. revertConnections.Add(this._единицыИзмеренияTableAdapter, this._единицыИзмеренияTableAdapter.Connection);
  10690. this._единицыИзмеренияTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10691. this._единицыИзмеренияTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10692. if (this._единицыИзмеренияTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10693. this._единицыИзмеренияTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10694. adaptersWithAcceptChangesDuringUpdate.Add(this._единицыИзмеренияTableAdapter.Adapter);
  10695. }
  10696. }
  10697. if ((this._заказыTableAdapter != null)) {
  10698. revertConnections.Add(this._заказыTableAdapter, this._заказыTableAdapter.Connection);
  10699. this._заказыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10700. this._заказыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10701. if (this._заказыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10702. this._заказыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10703. adaptersWithAcceptChangesDuringUpdate.Add(this._заказыTableAdapter.Adapter);
  10704. }
  10705. }
  10706. if ((this._клиентыTableAdapter != null)) {
  10707. revertConnections.Add(this._клиентыTableAdapter, this._клиентыTableAdapter.Connection);
  10708. this._клиентыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10709. this._клиентыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10710. if (this._клиентыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10711. this._клиентыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10712. adaptersWithAcceptChangesDuringUpdate.Add(this._клиентыTableAdapter.Adapter);
  10713. }
  10714. }
  10715. if ((this._комплектующиеTableAdapter != null)) {
  10716. revertConnections.Add(this._комплектующиеTableAdapter, this._комплектующиеTableAdapter.Connection);
  10717. this._комплектующиеTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10718. this._комплектующиеTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10719. if (this._комплектующиеTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10720. this._комплектующиеTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10721. adaptersWithAcceptChangesDuringUpdate.Add(this._комплектующиеTableAdapter.Adapter);
  10722. }
  10723. }
  10724. if ((this._компьютерыTableAdapter != null)) {
  10725. revertConnections.Add(this._компьютерыTableAdapter, this._компьютерыTableAdapter.Connection);
  10726. this._компьютерыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10727. this._компьютерыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10728. if (this._компьютерыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10729. this._компьютерыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10730. adaptersWithAcceptChangesDuringUpdate.Add(this._компьютерыTableAdapter.Adapter);
  10731. }
  10732. }
  10733. if ((this._описаниеСборкиTableAdapter != null)) {
  10734. revertConnections.Add(this._описаниеСборкиTableAdapter, this._описаниеСборкиTableAdapter.Connection);
  10735. this._описаниеСборкиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10736. this._описаниеСборкиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10737. if (this._описаниеСборкиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10738. this._описаниеСборкиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10739. adaptersWithAcceptChangesDuringUpdate.Add(this._описаниеСборкиTableAdapter.Adapter);
  10740. }
  10741. }
  10742. if ((this._поставщикиTableAdapter != null)) {
  10743. revertConnections.Add(this._поставщикиTableAdapter, this._поставщикиTableAdapter.Connection);
  10744. this._поставщикиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10745. this._поставщикиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10746. if (this._поставщикиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10747. this._поставщикиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10748. adaptersWithAcceptChangesDuringUpdate.Add(this._поставщикиTableAdapter.Adapter);
  10749. }
  10750. }
  10751. if ((this._ролиTableAdapter != null)) {
  10752. revertConnections.Add(this._ролиTableAdapter, this._ролиTableAdapter.Connection);
  10753. this._ролиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10754. this._ролиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10755. if (this._ролиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10756. this._ролиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10757. adaptersWithAcceptChangesDuringUpdate.Add(this._ролиTableAdapter.Adapter);
  10758. }
  10759. }
  10760. if ((this._сборкаTableAdapter != null)) {
  10761. revertConnections.Add(this._сборкаTableAdapter, this._сборкаTableAdapter.Connection);
  10762. this._сборкаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10763. this._сборкаTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10764. if (this._сборкаTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10765. this._сборкаTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10766. adaptersWithAcceptChangesDuringUpdate.Add(this._сборкаTableAdapter.Adapter);
  10767. }
  10768. }
  10769. if ((this._сотрудникиTableAdapter != null)) {
  10770. revertConnections.Add(this._сотрудникиTableAdapter, this._сотрудникиTableAdapter.Connection);
  10771. this._сотрудникиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10772. this._сотрудникиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10773. if (this._сотрудникиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10774. this._сотрудникиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10775. adaptersWithAcceptChangesDuringUpdate.Add(this._сотрудникиTableAdapter.Adapter);
  10776. }
  10777. }
  10778. if ((this._статусыЗаказаTableAdapter != null)) {
  10779. revertConnections.Add(this._статусыЗаказаTableAdapter, this._статусыЗаказаTableAdapter.Connection);
  10780. this._статусыЗаказаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10781. this._статусыЗаказаTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10782. if (this._статусыЗаказаTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10783. this._статусыЗаказаTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10784. adaptersWithAcceptChangesDuringUpdate.Add(this._статусыЗаказаTableAdapter.Adapter);
  10785. }
  10786. }
  10787. if ((this._типыКомплектующихTableAdapter != null)) {
  10788. revertConnections.Add(this._типыКомплектующихTableAdapter, this._типыКомплектующихTableAdapter.Connection);
  10789. this._типыКомплектующихTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10790. this._типыКомплектующихTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10791. if (this._типыКомплектующихTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10792. this._типыКомплектующихTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10793. adaptersWithAcceptChangesDuringUpdate.Add(this._типыКомплектующихTableAdapter.Adapter);
  10794. }
  10795. }
  10796. //
  10797. //---- Perform updates -----------
  10798. //
  10799. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  10800. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  10801. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  10802. }
  10803. else {
  10804. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  10805. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  10806. }
  10807. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  10808. //
  10809. //---- Commit updates -----------
  10810. //
  10811. workTransaction.Commit();
  10812. if ((0 < allAddedRows.Count)) {
  10813. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  10814. allAddedRows.CopyTo(rows);
  10815. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10816. global::System.Data.DataRow row = rows[i];
  10817. row.AcceptChanges();
  10818. }
  10819. }
  10820. if ((0 < allChangedRows.Count)) {
  10821. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  10822. allChangedRows.CopyTo(rows);
  10823. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10824. global::System.Data.DataRow row = rows[i];
  10825. row.AcceptChanges();
  10826. }
  10827. }
  10828. }
  10829. catch (global::System.Exception ex) {
  10830. workTransaction.Rollback();
  10831. // ---- Restore the dataset -----------
  10832. if (this.BackupDataSetBeforeUpdate) {
  10833. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  10834. dataSet.Clear();
  10835. dataSet.Merge(backupDataSet);
  10836. }
  10837. else {
  10838. if ((0 < allAddedRows.Count)) {
  10839. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  10840. allAddedRows.CopyTo(rows);
  10841. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10842. global::System.Data.DataRow row = rows[i];
  10843. row.AcceptChanges();
  10844. row.SetAdded();
  10845. }
  10846. }
  10847. }
  10848. throw ex;
  10849. }
  10850. finally {
  10851. if (workConnOpened) {
  10852. workConnection.Close();
  10853. }
  10854. if ((this._единицыИзмеренияTableAdapter != null)) {
  10855. this._единицыИзмеренияTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._единицыИзмеренияTableAdapter]));
  10856. this._единицыИзмеренияTableAdapter.Transaction = null;
  10857. }
  10858. if ((this._заказыTableAdapter != null)) {
  10859. this._заказыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._заказыTableAdapter]));
  10860. this._заказыTableAdapter.Transaction = null;
  10861. }
  10862. if ((this._клиентыTableAdapter != null)) {
  10863. this._клиентыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._клиентыTableAdapter]));
  10864. this._клиентыTableAdapter.Transaction = null;
  10865. }
  10866. if ((this._комплектующиеTableAdapter != null)) {
  10867. this._комплектующиеTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._комплектующиеTableAdapter]));
  10868. this._комплектующиеTableAdapter.Transaction = null;
  10869. }
  10870. if ((this._компьютерыTableAdapter != null)) {
  10871. this._компьютерыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._компьютерыTableAdapter]));
  10872. this._компьютерыTableAdapter.Transaction = null;
  10873. }
  10874. if ((this._описаниеСборкиTableAdapter != null)) {
  10875. this._описаниеСборкиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._описаниеСборкиTableAdapter]));
  10876. this._описаниеСборкиTableAdapter.Transaction = null;
  10877. }
  10878. if ((this._поставщикиTableAdapter != null)) {
  10879. this._поставщикиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._поставщикиTableAdapter]));
  10880. this._поставщикиTableAdapter.Transaction = null;
  10881. }
  10882. if ((this._ролиTableAdapter != null)) {
  10883. this._ролиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._ролиTableAdapter]));
  10884. this._ролиTableAdapter.Transaction = null;
  10885. }
  10886. if ((this._сборкаTableAdapter != null)) {
  10887. this._сборкаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._сборкаTableAdapter]));
  10888. this._сборкаTableAdapter.Transaction = null;
  10889. }
  10890. if ((this._сотрудникиTableAdapter != null)) {
  10891. this._сотрудникиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._сотрудникиTableAdapter]));
  10892. this._сотрудникиTableAdapter.Transaction = null;
  10893. }
  10894. if ((this._статусыЗаказаTableAdapter != null)) {
  10895. this._статусыЗаказаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._статусыЗаказаTableAdapter]));
  10896. this._статусыЗаказаTableAdapter.Transaction = null;
  10897. }
  10898. if ((this._типыКомплектующихTableAdapter != null)) {
  10899. this._типыКомплектующихTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._типыКомплектующихTableAdapter]));
  10900. this._типыКомплектующихTableAdapter.Transaction = null;
  10901. }
  10902. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  10903. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  10904. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  10905. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  10906. global::System.Data.Common.DataAdapter adapter = adapters[i];
  10907. adapter.AcceptChangesDuringUpdate = true;
  10908. }
  10909. }
  10910. }
  10911. return result;
  10912. }
  10913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10915. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  10916. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  10917. }
  10918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10920. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  10921. if ((this._connection != null)) {
  10922. return true;
  10923. }
  10924. if (((this.Connection == null)
  10925. || (inputConnection == null))) {
  10926. return true;
  10927. }
  10928. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  10929. return true;
  10930. }
  10931. return false;
  10932. }
  10933. /// <summary>
  10934. ///Update Order Option
  10935. ///</summary>
  10936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10937. public enum UpdateOrderOption {
  10938. InsertUpdateDelete = 0,
  10939. UpdateInsertDelete = 1,
  10940. }
  10941. /// <summary>
  10942. ///Used to sort self-referenced table's rows
  10943. ///</summary>
  10944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10945. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  10946. private global::System.Data.DataRelation _relation;
  10947. private int _childFirst;
  10948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10950. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  10951. this._relation = relation;
  10952. if (childFirst) {
  10953. this._childFirst = -1;
  10954. }
  10955. else {
  10956. this._childFirst = 1;
  10957. }
  10958. }
  10959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10961. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  10962. global::System.Diagnostics.Debug.Assert((row != null));
  10963. global::System.Data.DataRow root = row;
  10964. distance = 0;
  10965. 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>();
  10966. traversedRows[row] = row;
  10967. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  10968. for (
  10969. ; ((parent != null)
  10970. && (traversedRows.ContainsKey(parent) == false));
  10971. ) {
  10972. distance = (distance + 1);
  10973. root = parent;
  10974. traversedRows[parent] = parent;
  10975. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  10976. }
  10977. if ((distance == 0)) {
  10978. traversedRows.Clear();
  10979. traversedRows[row] = row;
  10980. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  10981. for (
  10982. ; ((parent != null)
  10983. && (traversedRows.ContainsKey(parent) == false));
  10984. ) {
  10985. distance = (distance + 1);
  10986. root = parent;
  10987. traversedRows[parent] = parent;
  10988. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  10989. }
  10990. }
  10991. return root;
  10992. }
  10993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10995. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  10996. if (object.ReferenceEquals(row1, row2)) {
  10997. return 0;
  10998. }
  10999. if ((row1 == null)) {
  11000. return -1;
  11001. }
  11002. if ((row2 == null)) {
  11003. return 1;
  11004. }
  11005. int distance1 = 0;
  11006. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  11007. int distance2 = 0;
  11008. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  11009. if (object.ReferenceEquals(root1, root2)) {
  11010. return (this._childFirst * distance1.CompareTo(distance2));
  11011. }
  11012. else {
  11013. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  11014. && (root2.Table != null)));
  11015. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  11016. return -1;
  11017. }
  11018. else {
  11019. return 1;
  11020. }
  11021. }
  11022. }
  11023. }
  11024. }
  11025. }
  11026. #pragma warning restore 1591