Starichikhina_remont_butovoy_texnikiDataSet.Designer.cs 539 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace Starichkxina_remont_bytovoy_texniki {
  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("Starichikhina_remont_butovoy_texnikiDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class Starichikhina_remont_butovoy_texnikiDataSet : 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 zakazDataTable tablezakaz;
  28. private запрос_2DataTable tableзапрос_2;
  29. private запрос_3DataTable tableзапрос_3;
  30. private ПредставлениеDataTable tableПредставление;
  31. private global::System.Data.DataRelation relationFK_заказ_Товары;
  32. private global::System.Data.DataRelation relationFK_исполнение_заказов_заказ;
  33. private global::System.Data.DataRelation relationFK_сотрудники_исполнение_заказов_исполнение_заказов;
  34. private global::System.Data.DataRelation relationFK_сотрудники_исполнение_заказов_сотрудники;
  35. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  36. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  37. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  38. public Starichikhina_remont_butovoy_texnikiDataSet() {
  39. this.BeginInit();
  40. this.InitClass();
  41. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  42. base.Tables.CollectionChanged += schemaChangedHandler;
  43. base.Relations.CollectionChanged += schemaChangedHandler;
  44. this.EndInit();
  45. }
  46. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  47. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  48. protected Starichikhina_remont_butovoy_texnikiDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  49. base(info, context, false) {
  50. if ((this.IsBinarySerialized(info, context) == true)) {
  51. this.InitVars(false);
  52. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  53. this.Tables.CollectionChanged += schemaChangedHandler1;
  54. this.Relations.CollectionChanged += schemaChangedHandler1;
  55. return;
  56. }
  57. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  58. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  59. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  60. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  61. if ((ds.Tables["заказ"] != null)) {
  62. base.Tables.Add(new заказDataTable(ds.Tables["заказ"]));
  63. }
  64. if ((ds.Tables["исполнение_заказов"] != null)) {
  65. base.Tables.Add(new исполнение_заказовDataTable(ds.Tables["исполнение_заказов"]));
  66. }
  67. if ((ds.Tables["сотрудники"] != null)) {
  68. base.Tables.Add(new сотрудникиDataTable(ds.Tables["сотрудники"]));
  69. }
  70. if ((ds.Tables["сотрудники_исполнение_заказов"] != null)) {
  71. base.Tables.Add(new сотрудники_исполнение_заказовDataTable(ds.Tables["сотрудники_исполнение_заказов"]));
  72. }
  73. if ((ds.Tables["Товары"] != null)) {
  74. base.Tables.Add(new ТоварыDataTable(ds.Tables["Товары"]));
  75. }
  76. if ((ds.Tables["zakaz"] != null)) {
  77. base.Tables.Add(new zakazDataTable(ds.Tables["zakaz"]));
  78. }
  79. if ((ds.Tables["запрос_2"] != null)) {
  80. base.Tables.Add(new запрос_2DataTable(ds.Tables["запрос_2"]));
  81. }
  82. if ((ds.Tables["запрос_3"] != null)) {
  83. base.Tables.Add(new запрос_3DataTable(ds.Tables["запрос_3"]));
  84. }
  85. if ((ds.Tables["Представление"] != null)) {
  86. base.Tables.Add(new ПредставлениеDataTable(ds.Tables["Представление"]));
  87. }
  88. this.DataSetName = ds.DataSetName;
  89. this.Prefix = ds.Prefix;
  90. this.Namespace = ds.Namespace;
  91. this.Locale = ds.Locale;
  92. this.CaseSensitive = ds.CaseSensitive;
  93. this.EnforceConstraints = ds.EnforceConstraints;
  94. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  95. this.InitVars();
  96. }
  97. else {
  98. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  99. }
  100. this.GetSerializationData(info, context);
  101. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  102. base.Tables.CollectionChanged += schemaChangedHandler;
  103. this.Relations.CollectionChanged += schemaChangedHandler;
  104. }
  105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  107. [global::System.ComponentModel.Browsable(false)]
  108. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  109. public заказDataTable заказ {
  110. get {
  111. return this.tableзаказ;
  112. }
  113. }
  114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  116. [global::System.ComponentModel.Browsable(false)]
  117. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  118. public исполнение_заказовDataTable исполнение_заказов {
  119. get {
  120. return this.tableисполнение_заказов;
  121. }
  122. }
  123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  125. [global::System.ComponentModel.Browsable(false)]
  126. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  127. public сотрудникиDataTable сотрудники {
  128. get {
  129. return this.tableсотрудники;
  130. }
  131. }
  132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  134. [global::System.ComponentModel.Browsable(false)]
  135. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  136. public сотрудники_исполнение_заказовDataTable сотрудники_исполнение_заказов {
  137. get {
  138. return this.tableсотрудники_исполнение_заказов;
  139. }
  140. }
  141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  143. [global::System.ComponentModel.Browsable(false)]
  144. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  145. public ТоварыDataTable Товары {
  146. get {
  147. return this.tableТовары;
  148. }
  149. }
  150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  152. [global::System.ComponentModel.Browsable(false)]
  153. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  154. public zakazDataTable zakaz {
  155. get {
  156. return this.tablezakaz;
  157. }
  158. }
  159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  161. [global::System.ComponentModel.Browsable(false)]
  162. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  163. public запрос_2DataTable запрос_2 {
  164. get {
  165. return this.tableзапрос_2;
  166. }
  167. }
  168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  170. [global::System.ComponentModel.Browsable(false)]
  171. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  172. public запрос_3DataTable запрос_3 {
  173. get {
  174. return this.tableзапрос_3;
  175. }
  176. }
  177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  179. [global::System.ComponentModel.Browsable(false)]
  180. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  181. public ПредставлениеDataTable Представление {
  182. get {
  183. return this.tableПредставление;
  184. }
  185. }
  186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  188. [global::System.ComponentModel.BrowsableAttribute(true)]
  189. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  190. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  191. get {
  192. return this._schemaSerializationMode;
  193. }
  194. set {
  195. this._schemaSerializationMode = value;
  196. }
  197. }
  198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  200. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  201. public new global::System.Data.DataTableCollection Tables {
  202. get {
  203. return base.Tables;
  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.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  209. public new global::System.Data.DataRelationCollection Relations {
  210. get {
  211. return base.Relations;
  212. }
  213. }
  214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  216. protected override void InitializeDerivedDataSet() {
  217. this.BeginInit();
  218. this.InitClass();
  219. this.EndInit();
  220. }
  221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  223. public override global::System.Data.DataSet Clone() {
  224. Starichikhina_remont_butovoy_texnikiDataSet cln = ((Starichikhina_remont_butovoy_texnikiDataSet)(base.Clone()));
  225. cln.InitVars();
  226. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  227. return cln;
  228. }
  229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  231. protected override bool ShouldSerializeTables() {
  232. return false;
  233. }
  234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  236. protected override bool ShouldSerializeRelations() {
  237. return false;
  238. }
  239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  241. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  242. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  243. this.Reset();
  244. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  245. ds.ReadXml(reader);
  246. if ((ds.Tables["заказ"] != null)) {
  247. base.Tables.Add(new заказDataTable(ds.Tables["заказ"]));
  248. }
  249. if ((ds.Tables["исполнение_заказов"] != null)) {
  250. base.Tables.Add(new исполнение_заказовDataTable(ds.Tables["исполнение_заказов"]));
  251. }
  252. if ((ds.Tables["сотрудники"] != null)) {
  253. base.Tables.Add(new сотрудникиDataTable(ds.Tables["сотрудники"]));
  254. }
  255. if ((ds.Tables["сотрудники_исполнение_заказов"] != null)) {
  256. base.Tables.Add(new сотрудники_исполнение_заказовDataTable(ds.Tables["сотрудники_исполнение_заказов"]));
  257. }
  258. if ((ds.Tables["Товары"] != null)) {
  259. base.Tables.Add(new ТоварыDataTable(ds.Tables["Товары"]));
  260. }
  261. if ((ds.Tables["zakaz"] != null)) {
  262. base.Tables.Add(new zakazDataTable(ds.Tables["zakaz"]));
  263. }
  264. if ((ds.Tables["запрос_2"] != null)) {
  265. base.Tables.Add(new запрос_2DataTable(ds.Tables["запрос_2"]));
  266. }
  267. if ((ds.Tables["запрос_3"] != null)) {
  268. base.Tables.Add(new запрос_3DataTable(ds.Tables["запрос_3"]));
  269. }
  270. if ((ds.Tables["Представление"] != null)) {
  271. base.Tables.Add(new ПредставлениеDataTable(ds.Tables["Представление"]));
  272. }
  273. this.DataSetName = ds.DataSetName;
  274. this.Prefix = ds.Prefix;
  275. this.Namespace = ds.Namespace;
  276. this.Locale = ds.Locale;
  277. this.CaseSensitive = ds.CaseSensitive;
  278. this.EnforceConstraints = ds.EnforceConstraints;
  279. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  280. this.InitVars();
  281. }
  282. else {
  283. this.ReadXml(reader);
  284. this.InitVars();
  285. }
  286. }
  287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  289. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  290. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  291. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  292. stream.Position = 0;
  293. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  294. }
  295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  297. internal void InitVars() {
  298. this.InitVars(true);
  299. }
  300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  302. internal void InitVars(bool initTable) {
  303. this.tableзаказ = ((заказDataTable)(base.Tables["заказ"]));
  304. if ((initTable == true)) {
  305. if ((this.tableзаказ != null)) {
  306. this.tableзаказ.InitVars();
  307. }
  308. }
  309. this.tableисполнение_заказов = ((исполнение_заказовDataTable)(base.Tables["исполнение_заказов"]));
  310. if ((initTable == true)) {
  311. if ((this.tableисполнение_заказов != null)) {
  312. this.tableисполнение_заказов.InitVars();
  313. }
  314. }
  315. this.tableсотрудники = ((сотрудникиDataTable)(base.Tables["сотрудники"]));
  316. if ((initTable == true)) {
  317. if ((this.tableсотрудники != null)) {
  318. this.tableсотрудники.InitVars();
  319. }
  320. }
  321. this.tableсотрудники_исполнение_заказов = ((сотрудники_исполнение_заказовDataTable)(base.Tables["сотрудники_исполнение_заказов"]));
  322. if ((initTable == true)) {
  323. if ((this.tableсотрудники_исполнение_заказов != null)) {
  324. this.tableсотрудники_исполнение_заказов.InitVars();
  325. }
  326. }
  327. this.tableТовары = ((ТоварыDataTable)(base.Tables["Товары"]));
  328. if ((initTable == true)) {
  329. if ((this.tableТовары != null)) {
  330. this.tableТовары.InitVars();
  331. }
  332. }
  333. this.tablezakaz = ((zakazDataTable)(base.Tables["zakaz"]));
  334. if ((initTable == true)) {
  335. if ((this.tablezakaz != null)) {
  336. this.tablezakaz.InitVars();
  337. }
  338. }
  339. this.tableзапрос_2 = ((запрос_2DataTable)(base.Tables["запрос_2"]));
  340. if ((initTable == true)) {
  341. if ((this.tableзапрос_2 != null)) {
  342. this.tableзапрос_2.InitVars();
  343. }
  344. }
  345. this.tableзапрос_3 = ((запрос_3DataTable)(base.Tables["запрос_3"]));
  346. if ((initTable == true)) {
  347. if ((this.tableзапрос_3 != null)) {
  348. this.tableзапрос_3.InitVars();
  349. }
  350. }
  351. this.tableПредставление = ((ПредставлениеDataTable)(base.Tables["Представление"]));
  352. if ((initTable == true)) {
  353. if ((this.tableПредставление != null)) {
  354. this.tableПредставление.InitVars();
  355. }
  356. }
  357. this.relationFK_заказ_Товары = this.Relations["FK_заказ_Товары"];
  358. this.relationFK_исполнение_заказов_заказ = this.Relations["FK_исполнение_заказов_заказ"];
  359. this.relationFK_сотрудники_исполнение_заказов_исполнение_заказов = this.Relations["FK_сотрудники_исполнение_заказов_исполнение_заказов"];
  360. this.relationFK_сотрудники_исполнение_заказов_сотрудники = this.Relations["FK_сотрудники_исполнение_заказов_сотрудники"];
  361. }
  362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  364. private void InitClass() {
  365. this.DataSetName = "Starichikhina_remont_butovoy_texnikiDataSet";
  366. this.Prefix = "";
  367. this.Namespace = "http://tempuri.org/Starichikhina_remont_butovoy_texnikiDataSet.xsd";
  368. this.EnforceConstraints = true;
  369. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  370. this.tableзаказ = new заказDataTable();
  371. base.Tables.Add(this.tableзаказ);
  372. this.tableисполнение_заказов = new исполнение_заказовDataTable();
  373. base.Tables.Add(this.tableисполнение_заказов);
  374. this.tableсотрудники = new сотрудникиDataTable();
  375. base.Tables.Add(this.tableсотрудники);
  376. this.tableсотрудники_исполнение_заказов = new сотрудники_исполнение_заказовDataTable();
  377. base.Tables.Add(this.tableсотрудники_исполнение_заказов);
  378. this.tableТовары = new ТоварыDataTable();
  379. base.Tables.Add(this.tableТовары);
  380. this.tablezakaz = new zakazDataTable();
  381. base.Tables.Add(this.tablezakaz);
  382. this.tableзапрос_2 = new запрос_2DataTable();
  383. base.Tables.Add(this.tableзапрос_2);
  384. this.tableзапрос_3 = new запрос_3DataTable();
  385. base.Tables.Add(this.tableзапрос_3);
  386. this.tableПредставление = new ПредставлениеDataTable();
  387. base.Tables.Add(this.tableПредставление);
  388. this.relationFK_заказ_Товары = new global::System.Data.DataRelation("FK_заказ_Товары", new global::System.Data.DataColumn[] {
  389. this.tableТовары.id_товараColumn}, new global::System.Data.DataColumn[] {
  390. this.tableзаказ.id_товараColumn}, false);
  391. this.Relations.Add(this.relationFK_заказ_Товары);
  392. this.relationFK_исполнение_заказов_заказ = new global::System.Data.DataRelation("FK_исполнение_заказов_заказ", new global::System.Data.DataColumn[] {
  393. this.tableзаказ.id_заказаColumn}, new global::System.Data.DataColumn[] {
  394. this.tableисполнение_заказов.id_заказаColumn}, false);
  395. this.Relations.Add(this.relationFK_исполнение_заказов_заказ);
  396. this.relationFK_сотрудники_исполнение_заказов_исполнение_заказов = new global::System.Data.DataRelation("FK_сотрудники_исполнение_заказов_исполнение_заказов", new global::System.Data.DataColumn[] {
  397. this.tableисполнение_заказов.id_заказаColumn}, new global::System.Data.DataColumn[] {
  398. this.tableсотрудники_исполнение_заказов.id_заказаColumn}, false);
  399. this.Relations.Add(this.relationFK_сотрудники_исполнение_заказов_исполнение_заказов);
  400. this.relationFK_сотрудники_исполнение_заказов_сотрудники = new global::System.Data.DataRelation("FK_сотрудники_исполнение_заказов_сотрудники", new global::System.Data.DataColumn[] {
  401. this.tableсотрудники.id_сотрудникаColumn}, new global::System.Data.DataColumn[] {
  402. this.tableсотрудники_исполнение_заказов.id_сотрудникаColumn}, false);
  403. this.Relations.Add(this.relationFK_сотрудники_исполнение_заказов_сотрудники);
  404. }
  405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  407. private bool ShouldSerializeзаказ() {
  408. return false;
  409. }
  410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  412. private bool ShouldSerializeисполнение_заказов() {
  413. return false;
  414. }
  415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  417. private bool ShouldSerializeсотрудники() {
  418. return false;
  419. }
  420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  422. private bool ShouldSerializeсотрудники_исполнение_заказов() {
  423. return false;
  424. }
  425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  427. private bool ShouldSerializeТовары() {
  428. return false;
  429. }
  430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  432. private bool ShouldSerializezakaz() {
  433. return false;
  434. }
  435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  437. private bool ShouldSerializeзапрос_2() {
  438. return false;
  439. }
  440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  442. private bool ShouldSerializeзапрос_3() {
  443. return false;
  444. }
  445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  447. private bool ShouldSerializeПредставление() {
  448. return false;
  449. }
  450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  452. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  453. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  454. this.InitVars();
  455. }
  456. }
  457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  459. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  460. Starichikhina_remont_butovoy_texnikiDataSet ds = new Starichikhina_remont_butovoy_texnikiDataSet();
  461. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  462. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  463. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  464. any.Namespace = ds.Namespace;
  465. sequence.Items.Add(any);
  466. type.Particle = sequence;
  467. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  468. if (xs.Contains(dsSchema.TargetNamespace)) {
  469. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  470. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  471. try {
  472. global::System.Xml.Schema.XmlSchema schema = null;
  473. dsSchema.Write(s1);
  474. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  475. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  476. s2.SetLength(0);
  477. schema.Write(s2);
  478. if ((s1.Length == s2.Length)) {
  479. s1.Position = 0;
  480. s2.Position = 0;
  481. for (; ((s1.Position != s1.Length)
  482. && (s1.ReadByte() == s2.ReadByte())); ) {
  483. ;
  484. }
  485. if ((s1.Position == s1.Length)) {
  486. return type;
  487. }
  488. }
  489. }
  490. }
  491. finally {
  492. if ((s1 != null)) {
  493. s1.Close();
  494. }
  495. if ((s2 != null)) {
  496. s2.Close();
  497. }
  498. }
  499. }
  500. xs.Add(dsSchema);
  501. return type;
  502. }
  503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  504. public delegate void заказRowChangeEventHandler(object sender, заказRowChangeEvent e);
  505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  506. public delegate void исполнение_заказовRowChangeEventHandler(object sender, исполнение_заказовRowChangeEvent e);
  507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  508. public delegate void сотрудникиRowChangeEventHandler(object sender, сотрудникиRowChangeEvent e);
  509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  510. public delegate void сотрудники_исполнение_заказовRowChangeEventHandler(object sender, сотрудники_исполнение_заказовRowChangeEvent e);
  511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  512. public delegate void ТоварыRowChangeEventHandler(object sender, ТоварыRowChangeEvent e);
  513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  514. public delegate void zakazRowChangeEventHandler(object sender, zakazRowChangeEvent e);
  515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  516. public delegate void запрос_2RowChangeEventHandler(object sender, запрос_2RowChangeEvent e);
  517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  518. public delegate void запрос_3RowChangeEventHandler(object sender, запрос_3RowChangeEvent e);
  519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  520. public delegate void ПредставлениеRowChangeEventHandler(object sender, ПредставлениеRowChangeEvent e);
  521. /// <summary>
  522. ///Represents the strongly named DataTable class.
  523. ///</summary>
  524. [global::System.Serializable()]
  525. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  526. public partial class заказDataTable : global::System.Data.TypedTableBase<заказRow> {
  527. private global::System.Data.DataColumn columnid_заказа;
  528. private global::System.Data.DataColumn columnФИО;
  529. private global::System.Data.DataColumn columnid_товара;
  530. private global::System.Data.DataColumn columnгарантия;
  531. private global::System.Data.DataColumn columnдата_поступления_заказа;
  532. private global::System.Data.DataColumn _columnтелефон_клиента;
  533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  535. public заказDataTable() {
  536. this.TableName = "заказ";
  537. this.BeginInit();
  538. this.InitClass();
  539. this.EndInit();
  540. }
  541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  543. internal заказDataTable(global::System.Data.DataTable table) {
  544. this.TableName = table.TableName;
  545. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  546. this.CaseSensitive = table.CaseSensitive;
  547. }
  548. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  549. this.Locale = table.Locale;
  550. }
  551. if ((table.Namespace != table.DataSet.Namespace)) {
  552. this.Namespace = table.Namespace;
  553. }
  554. this.Prefix = table.Prefix;
  555. this.MinimumCapacity = table.MinimumCapacity;
  556. }
  557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  559. protected заказDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  560. base(info, context) {
  561. this.InitVars();
  562. }
  563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  565. public global::System.Data.DataColumn id_заказаColumn {
  566. get {
  567. return this.columnid_заказа;
  568. }
  569. }
  570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  572. public global::System.Data.DataColumn ФИОColumn {
  573. get {
  574. return this.columnФИО;
  575. }
  576. }
  577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  579. public global::System.Data.DataColumn id_товараColumn {
  580. get {
  581. return this.columnid_товара;
  582. }
  583. }
  584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  586. public global::System.Data.DataColumn гарантияColumn {
  587. get {
  588. return this.columnгарантия;
  589. }
  590. }
  591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  593. public global::System.Data.DataColumn дата_поступления_заказаColumn {
  594. get {
  595. return this.columnдата_поступления_заказа;
  596. }
  597. }
  598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  600. public global::System.Data.DataColumn _телефон_клиентаColumn {
  601. get {
  602. return this._columnтелефон_клиента;
  603. }
  604. }
  605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  607. [global::System.ComponentModel.Browsable(false)]
  608. public int Count {
  609. get {
  610. return this.Rows.Count;
  611. }
  612. }
  613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  615. public заказRow this[int index] {
  616. get {
  617. return ((заказRow)(this.Rows[index]));
  618. }
  619. }
  620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  621. public event заказRowChangeEventHandler заказRowChanging;
  622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  623. public event заказRowChangeEventHandler заказRowChanged;
  624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  625. public event заказRowChangeEventHandler заказRowDeleting;
  626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  627. public event заказRowChangeEventHandler заказRowDeleted;
  628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  630. public void AddзаказRow(заказRow row) {
  631. this.Rows.Add(row);
  632. }
  633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  635. public заказRow AddзаказRow(string ФИО, ТоварыRow parentТоварыRowByFK_заказ_Товары, bool гарантия, System.DateTime дата_поступления_заказа, decimal _телефон_клиента) {
  636. заказRow rowзаказRow = ((заказRow)(this.NewRow()));
  637. object[] columnValuesArray = new object[] {
  638. null,
  639. ФИО,
  640. null,
  641. гарантия,
  642. дата_поступления_заказа,
  643. _телефон_клиента};
  644. if ((parentТоварыRowByFK_заказ_Товары != null)) {
  645. columnValuesArray[2] = parentТоварыRowByFK_заказ_Товары[0];
  646. }
  647. rowзаказRow.ItemArray = columnValuesArray;
  648. this.Rows.Add(rowзаказRow);
  649. return rowзаказRow;
  650. }
  651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  653. public заказRow FindByid_заказа(int id_заказа) {
  654. return ((заказRow)(this.Rows.Find(new object[] {
  655. id_заказа})));
  656. }
  657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  659. public override global::System.Data.DataTable Clone() {
  660. заказDataTable cln = ((заказDataTable)(base.Clone()));
  661. cln.InitVars();
  662. return cln;
  663. }
  664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  666. protected override global::System.Data.DataTable CreateInstance() {
  667. return new заказDataTable();
  668. }
  669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  671. internal void InitVars() {
  672. this.columnid_заказа = base.Columns["id_заказа"];
  673. this.columnФИО = base.Columns["ФИО"];
  674. this.columnid_товара = base.Columns["id_товара"];
  675. this.columnгарантия = base.Columns["гарантия"];
  676. this.columnдата_поступления_заказа = base.Columns["дата_поступления_заказа"];
  677. this._columnтелефон_клиента = base.Columns["телефон-клиента"];
  678. }
  679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  681. private void InitClass() {
  682. this.columnid_заказа = new global::System.Data.DataColumn("id_заказа", typeof(int), null, global::System.Data.MappingType.Element);
  683. base.Columns.Add(this.columnid_заказа);
  684. this.columnФИО = new global::System.Data.DataColumn("ФИО", typeof(string), null, global::System.Data.MappingType.Element);
  685. base.Columns.Add(this.columnФИО);
  686. this.columnid_товара = new global::System.Data.DataColumn("id_товара", typeof(int), null, global::System.Data.MappingType.Element);
  687. base.Columns.Add(this.columnid_товара);
  688. this.columnгарантия = new global::System.Data.DataColumn("гарантия", typeof(bool), null, global::System.Data.MappingType.Element);
  689. base.Columns.Add(this.columnгарантия);
  690. this.columnдата_поступления_заказа = new global::System.Data.DataColumn("дата_поступления_заказа", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  691. base.Columns.Add(this.columnдата_поступления_заказа);
  692. this._columnтелефон_клиента = new global::System.Data.DataColumn("телефон-клиента", typeof(decimal), null, global::System.Data.MappingType.Element);
  693. this._columnтелефон_клиента.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnтелефон_клиента");
  694. this._columnтелефон_клиента.ExtendedProperties.Add("Generator_UserColumnName", "телефон-клиента");
  695. base.Columns.Add(this._columnтелефон_клиента);
  696. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  697. this.columnid_заказа}, true));
  698. this.columnid_заказа.AutoIncrement = true;
  699. this.columnid_заказа.AutoIncrementSeed = -1;
  700. this.columnid_заказа.AutoIncrementStep = -1;
  701. this.columnid_заказа.AllowDBNull = false;
  702. this.columnid_заказа.ReadOnly = true;
  703. this.columnid_заказа.Unique = true;
  704. this.columnФИО.MaxLength = 50;
  705. }
  706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  708. public заказRow NewзаказRow() {
  709. return ((заказRow)(this.NewRow()));
  710. }
  711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  713. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  714. return new заказRow(builder);
  715. }
  716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  718. protected override global::System.Type GetRowType() {
  719. return typeof(заказRow);
  720. }
  721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  723. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  724. base.OnRowChanged(e);
  725. if ((this.заказRowChanged != null)) {
  726. this.заказRowChanged(this, new заказRowChangeEvent(((заказRow)(e.Row)), e.Action));
  727. }
  728. }
  729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  731. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  732. base.OnRowChanging(e);
  733. if ((this.заказRowChanging != null)) {
  734. this.заказRowChanging(this, new заказRowChangeEvent(((заказRow)(e.Row)), e.Action));
  735. }
  736. }
  737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  739. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  740. base.OnRowDeleted(e);
  741. if ((this.заказRowDeleted != null)) {
  742. this.заказRowDeleted(this, new заказRowChangeEvent(((заказRow)(e.Row)), e.Action));
  743. }
  744. }
  745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  747. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  748. base.OnRowDeleting(e);
  749. if ((this.заказRowDeleting != null)) {
  750. this.заказRowDeleting(this, new заказRowChangeEvent(((заказRow)(e.Row)), e.Action));
  751. }
  752. }
  753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  755. public void RemoveзаказRow(заказRow row) {
  756. this.Rows.Remove(row);
  757. }
  758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  760. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  761. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  762. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  763. Starichikhina_remont_butovoy_texnikiDataSet ds = new Starichikhina_remont_butovoy_texnikiDataSet();
  764. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  765. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  766. any1.MinOccurs = new decimal(0);
  767. any1.MaxOccurs = decimal.MaxValue;
  768. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  769. sequence.Items.Add(any1);
  770. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  771. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  772. any2.MinOccurs = new decimal(1);
  773. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  774. sequence.Items.Add(any2);
  775. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  776. attribute1.Name = "namespace";
  777. attribute1.FixedValue = ds.Namespace;
  778. type.Attributes.Add(attribute1);
  779. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  780. attribute2.Name = "tableTypeName";
  781. attribute2.FixedValue = "заказDataTable";
  782. type.Attributes.Add(attribute2);
  783. type.Particle = sequence;
  784. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  785. if (xs.Contains(dsSchema.TargetNamespace)) {
  786. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  787. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  788. try {
  789. global::System.Xml.Schema.XmlSchema schema = null;
  790. dsSchema.Write(s1);
  791. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  792. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  793. s2.SetLength(0);
  794. schema.Write(s2);
  795. if ((s1.Length == s2.Length)) {
  796. s1.Position = 0;
  797. s2.Position = 0;
  798. for (; ((s1.Position != s1.Length)
  799. && (s1.ReadByte() == s2.ReadByte())); ) {
  800. ;
  801. }
  802. if ((s1.Position == s1.Length)) {
  803. return type;
  804. }
  805. }
  806. }
  807. }
  808. finally {
  809. if ((s1 != null)) {
  810. s1.Close();
  811. }
  812. if ((s2 != null)) {
  813. s2.Close();
  814. }
  815. }
  816. }
  817. xs.Add(dsSchema);
  818. return type;
  819. }
  820. }
  821. /// <summary>
  822. ///Represents the strongly named DataTable class.
  823. ///</summary>
  824. [global::System.Serializable()]
  825. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  826. public partial class исполнение_заказовDataTable : global::System.Data.TypedTableBase<исполнение_заказовRow> {
  827. private global::System.Data.DataColumn columnid_заказа;
  828. private global::System.Data.DataColumn columnвид_ремонта;
  829. private global::System.Data.DataColumn columnстоимость_ремонта;
  830. private global::System.Data.DataColumn columnдата_исполнения_заказа;
  831. private global::System.Data.DataColumn columnсообщение_клиенту;
  832. private global::System.Data.DataColumn columnдата_получения_товара;
  833. private global::System.Data.DataColumn columnсумма_оплаты_услуг;
  834. private global::System.Data.DataColumn columnid_сотрудника;
  835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  837. public исполнение_заказовDataTable() {
  838. this.TableName = "исполнение_заказов";
  839. this.BeginInit();
  840. this.InitClass();
  841. this.EndInit();
  842. }
  843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  845. internal исполнение_заказовDataTable(global::System.Data.DataTable table) {
  846. this.TableName = table.TableName;
  847. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  848. this.CaseSensitive = table.CaseSensitive;
  849. }
  850. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  851. this.Locale = table.Locale;
  852. }
  853. if ((table.Namespace != table.DataSet.Namespace)) {
  854. this.Namespace = table.Namespace;
  855. }
  856. this.Prefix = table.Prefix;
  857. this.MinimumCapacity = table.MinimumCapacity;
  858. }
  859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  861. protected исполнение_заказовDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  862. base(info, context) {
  863. this.InitVars();
  864. }
  865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  867. public global::System.Data.DataColumn id_заказаColumn {
  868. get {
  869. return this.columnid_заказа;
  870. }
  871. }
  872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  874. public global::System.Data.DataColumn вид_ремонтаColumn {
  875. get {
  876. return this.columnвид_ремонта;
  877. }
  878. }
  879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  881. public global::System.Data.DataColumn стоимость_ремонтаColumn {
  882. get {
  883. return this.columnстоимость_ремонта;
  884. }
  885. }
  886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  888. public global::System.Data.DataColumn дата_исполнения_заказаColumn {
  889. get {
  890. return this.columnдата_исполнения_заказа;
  891. }
  892. }
  893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  895. public global::System.Data.DataColumn сообщение_клиентуColumn {
  896. get {
  897. return this.columnсообщение_клиенту;
  898. }
  899. }
  900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  902. public global::System.Data.DataColumn дата_получения_товараColumn {
  903. get {
  904. return this.columnдата_получения_товара;
  905. }
  906. }
  907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  909. public global::System.Data.DataColumn сумма_оплаты_услугColumn {
  910. get {
  911. return this.columnсумма_оплаты_услуг;
  912. }
  913. }
  914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  916. public global::System.Data.DataColumn id_сотрудникаColumn {
  917. get {
  918. return this.columnid_сотрудника;
  919. }
  920. }
  921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  923. [global::System.ComponentModel.Browsable(false)]
  924. public int Count {
  925. get {
  926. return this.Rows.Count;
  927. }
  928. }
  929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  931. public исполнение_заказовRow this[int index] {
  932. get {
  933. return ((исполнение_заказовRow)(this.Rows[index]));
  934. }
  935. }
  936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  937. public event исполнение_заказовRowChangeEventHandler исполнение_заказовRowChanging;
  938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  939. public event исполнение_заказовRowChangeEventHandler исполнение_заказовRowChanged;
  940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  941. public event исполнение_заказовRowChangeEventHandler исполнение_заказовRowDeleting;
  942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  943. public event исполнение_заказовRowChangeEventHandler исполнение_заказовRowDeleted;
  944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  946. public void Addисполнение_заказовRow(исполнение_заказовRow row) {
  947. this.Rows.Add(row);
  948. }
  949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  951. public исполнение_заказовRow Addисполнение_заказовRow(string вид_ремонта, string стоимость_ремонта, System.DateTime дата_исполнения_заказа, bool сообщение_клиенту, string дата_получения_товара, decimal сумма_оплаты_услуг, int id_сотрудника) {
  952. исполнение_заказовRow rowисполнение_заказовRow = ((исполнение_заказовRow)(this.NewRow()));
  953. object[] columnValuesArray = new object[] {
  954. null,
  955. вид_ремонта,
  956. стоимость_ремонта,
  957. дата_исполнения_заказа,
  958. сообщение_клиенту,
  959. дата_получения_товара,
  960. сумма_оплаты_услуг,
  961. id_сотрудника};
  962. rowисполнение_заказовRow.ItemArray = columnValuesArray;
  963. this.Rows.Add(rowисполнение_заказовRow);
  964. return rowисполнение_заказовRow;
  965. }
  966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  968. public исполнение_заказовRow FindByid_заказа(int id_заказа) {
  969. return ((исполнение_заказовRow)(this.Rows.Find(new object[] {
  970. id_заказа})));
  971. }
  972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  974. public override global::System.Data.DataTable Clone() {
  975. исполнение_заказовDataTable cln = ((исполнение_заказовDataTable)(base.Clone()));
  976. cln.InitVars();
  977. return cln;
  978. }
  979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  981. protected override global::System.Data.DataTable CreateInstance() {
  982. return new исполнение_заказовDataTable();
  983. }
  984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  986. internal void InitVars() {
  987. this.columnid_заказа = base.Columns["id_заказа"];
  988. this.columnвид_ремонта = base.Columns["вид_ремонта"];
  989. this.columnстоимость_ремонта = base.Columns["стоимость_ремонта"];
  990. this.columnдата_исполнения_заказа = base.Columns["дата_исполнения_заказа"];
  991. this.columnсообщение_клиенту = base.Columns["сообщение_клиенту"];
  992. this.columnдата_получения_товара = base.Columns["дата_получения_товара"];
  993. this.columnсумма_оплаты_услуг = base.Columns["сумма_оплаты_услуг"];
  994. this.columnid_сотрудника = base.Columns["id_сотрудника"];
  995. }
  996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  998. private void InitClass() {
  999. this.columnid_заказа = new global::System.Data.DataColumn("id_заказа", typeof(int), null, global::System.Data.MappingType.Element);
  1000. base.Columns.Add(this.columnid_заказа);
  1001. this.columnвид_ремонта = new global::System.Data.DataColumn("вид_ремонта", typeof(string), null, global::System.Data.MappingType.Element);
  1002. base.Columns.Add(this.columnвид_ремонта);
  1003. this.columnстоимость_ремонта = new global::System.Data.DataColumn("стоимость_ремонта", typeof(string), null, global::System.Data.MappingType.Element);
  1004. base.Columns.Add(this.columnстоимость_ремонта);
  1005. this.columnдата_исполнения_заказа = new global::System.Data.DataColumn("дата_исполнения_заказа", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1006. base.Columns.Add(this.columnдата_исполнения_заказа);
  1007. this.columnсообщение_клиенту = new global::System.Data.DataColumn("сообщение_клиенту", typeof(bool), null, global::System.Data.MappingType.Element);
  1008. base.Columns.Add(this.columnсообщение_клиенту);
  1009. this.columnдата_получения_товара = new global::System.Data.DataColumn("дата_получения_товара", typeof(string), null, global::System.Data.MappingType.Element);
  1010. base.Columns.Add(this.columnдата_получения_товара);
  1011. this.columnсумма_оплаты_услуг = new global::System.Data.DataColumn("сумма_оплаты_услуг", typeof(decimal), null, global::System.Data.MappingType.Element);
  1012. base.Columns.Add(this.columnсумма_оплаты_услуг);
  1013. this.columnid_сотрудника = new global::System.Data.DataColumn("id_сотрудника", typeof(int), null, global::System.Data.MappingType.Element);
  1014. base.Columns.Add(this.columnid_сотрудника);
  1015. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1016. this.columnid_заказа}, true));
  1017. this.columnid_заказа.AutoIncrement = true;
  1018. this.columnid_заказа.AutoIncrementSeed = -1;
  1019. this.columnid_заказа.AutoIncrementStep = -1;
  1020. this.columnid_заказа.AllowDBNull = false;
  1021. this.columnid_заказа.ReadOnly = true;
  1022. this.columnid_заказа.Unique = true;
  1023. this.columnвид_ремонта.MaxLength = 50;
  1024. this.columnстоимость_ремонта.MaxLength = 50;
  1025. this.columnдата_получения_товара.MaxLength = 10;
  1026. this.columnid_сотрудника.AllowDBNull = false;
  1027. }
  1028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1030. public исполнение_заказовRow Newисполнение_заказовRow() {
  1031. return ((исполнение_заказовRow)(this.NewRow()));
  1032. }
  1033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1035. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1036. return new исполнение_заказовRow(builder);
  1037. }
  1038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1040. protected override global::System.Type GetRowType() {
  1041. return typeof(исполнение_заказовRow);
  1042. }
  1043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1045. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1046. base.OnRowChanged(e);
  1047. if ((this.исполнение_заказовRowChanged != null)) {
  1048. this.исполнение_заказовRowChanged(this, new исполнение_заказовRowChangeEvent(((исполнение_заказовRow)(e.Row)), e.Action));
  1049. }
  1050. }
  1051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1053. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1054. base.OnRowChanging(e);
  1055. if ((this.исполнение_заказовRowChanging != null)) {
  1056. this.исполнение_заказовRowChanging(this, new исполнение_заказовRowChangeEvent(((исполнение_заказовRow)(e.Row)), e.Action));
  1057. }
  1058. }
  1059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1061. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1062. base.OnRowDeleted(e);
  1063. if ((this.исполнение_заказовRowDeleted != null)) {
  1064. this.исполнение_заказовRowDeleted(this, new исполнение_заказовRowChangeEvent(((исполнение_заказовRow)(e.Row)), e.Action));
  1065. }
  1066. }
  1067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1069. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1070. base.OnRowDeleting(e);
  1071. if ((this.исполнение_заказовRowDeleting != null)) {
  1072. this.исполнение_заказовRowDeleting(this, new исполнение_заказовRowChangeEvent(((исполнение_заказовRow)(e.Row)), e.Action));
  1073. }
  1074. }
  1075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1077. public void Removeисполнение_заказовRow(исполнение_заказовRow row) {
  1078. this.Rows.Remove(row);
  1079. }
  1080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1082. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1083. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1084. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1085. Starichikhina_remont_butovoy_texnikiDataSet ds = new Starichikhina_remont_butovoy_texnikiDataSet();
  1086. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1087. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1088. any1.MinOccurs = new decimal(0);
  1089. any1.MaxOccurs = decimal.MaxValue;
  1090. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1091. sequence.Items.Add(any1);
  1092. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1093. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1094. any2.MinOccurs = new decimal(1);
  1095. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1096. sequence.Items.Add(any2);
  1097. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1098. attribute1.Name = "namespace";
  1099. attribute1.FixedValue = ds.Namespace;
  1100. type.Attributes.Add(attribute1);
  1101. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1102. attribute2.Name = "tableTypeName";
  1103. attribute2.FixedValue = "исполнение_заказовDataTable";
  1104. type.Attributes.Add(attribute2);
  1105. type.Particle = sequence;
  1106. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1107. if (xs.Contains(dsSchema.TargetNamespace)) {
  1108. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1109. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1110. try {
  1111. global::System.Xml.Schema.XmlSchema schema = null;
  1112. dsSchema.Write(s1);
  1113. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1114. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1115. s2.SetLength(0);
  1116. schema.Write(s2);
  1117. if ((s1.Length == s2.Length)) {
  1118. s1.Position = 0;
  1119. s2.Position = 0;
  1120. for (; ((s1.Position != s1.Length)
  1121. && (s1.ReadByte() == s2.ReadByte())); ) {
  1122. ;
  1123. }
  1124. if ((s1.Position == s1.Length)) {
  1125. return type;
  1126. }
  1127. }
  1128. }
  1129. }
  1130. finally {
  1131. if ((s1 != null)) {
  1132. s1.Close();
  1133. }
  1134. if ((s2 != null)) {
  1135. s2.Close();
  1136. }
  1137. }
  1138. }
  1139. xs.Add(dsSchema);
  1140. return type;
  1141. }
  1142. }
  1143. /// <summary>
  1144. ///Represents the strongly named DataTable class.
  1145. ///</summary>
  1146. [global::System.Serializable()]
  1147. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1148. public partial class сотрудникиDataTable : global::System.Data.TypedTableBase<сотрудникиRow> {
  1149. private global::System.Data.DataColumn columnid_сотрудника;
  1150. private global::System.Data.DataColumn columnФИО;
  1151. private global::System.Data.DataColumn columnдолжность;
  1152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1154. public сотрудникиDataTable() {
  1155. this.TableName = "сотрудники";
  1156. this.BeginInit();
  1157. this.InitClass();
  1158. this.EndInit();
  1159. }
  1160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1162. internal сотрудникиDataTable(global::System.Data.DataTable table) {
  1163. this.TableName = table.TableName;
  1164. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1165. this.CaseSensitive = table.CaseSensitive;
  1166. }
  1167. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1168. this.Locale = table.Locale;
  1169. }
  1170. if ((table.Namespace != table.DataSet.Namespace)) {
  1171. this.Namespace = table.Namespace;
  1172. }
  1173. this.Prefix = table.Prefix;
  1174. this.MinimumCapacity = table.MinimumCapacity;
  1175. }
  1176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1178. protected сотрудникиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1179. base(info, context) {
  1180. this.InitVars();
  1181. }
  1182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1184. public global::System.Data.DataColumn id_сотрудникаColumn {
  1185. get {
  1186. return this.columnid_сотрудника;
  1187. }
  1188. }
  1189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1191. public global::System.Data.DataColumn ФИОColumn {
  1192. get {
  1193. return this.columnФИО;
  1194. }
  1195. }
  1196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1198. public global::System.Data.DataColumn должностьColumn {
  1199. get {
  1200. return this.columnдолжность;
  1201. }
  1202. }
  1203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1205. [global::System.ComponentModel.Browsable(false)]
  1206. public int Count {
  1207. get {
  1208. return this.Rows.Count;
  1209. }
  1210. }
  1211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1213. public сотрудникиRow this[int index] {
  1214. get {
  1215. return ((сотрудникиRow)(this.Rows[index]));
  1216. }
  1217. }
  1218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1219. public event сотрудникиRowChangeEventHandler сотрудникиRowChanging;
  1220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1221. public event сотрудникиRowChangeEventHandler сотрудникиRowChanged;
  1222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1223. public event сотрудникиRowChangeEventHandler сотрудникиRowDeleting;
  1224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1225. public event сотрудникиRowChangeEventHandler сотрудникиRowDeleted;
  1226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1228. public void AddсотрудникиRow(сотрудникиRow row) {
  1229. this.Rows.Add(row);
  1230. }
  1231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1233. public сотрудникиRow AddсотрудникиRow(string ФИО, string должность) {
  1234. сотрудникиRow rowсотрудникиRow = ((сотрудникиRow)(this.NewRow()));
  1235. object[] columnValuesArray = new object[] {
  1236. null,
  1237. ФИО,
  1238. должность};
  1239. rowсотрудникиRow.ItemArray = columnValuesArray;
  1240. this.Rows.Add(rowсотрудникиRow);
  1241. return rowсотрудникиRow;
  1242. }
  1243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1245. public сотрудникиRow FindByid_сотрудника(int id_сотрудника) {
  1246. return ((сотрудникиRow)(this.Rows.Find(new object[] {
  1247. id_сотрудника})));
  1248. }
  1249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1251. public override global::System.Data.DataTable Clone() {
  1252. сотрудникиDataTable cln = ((сотрудникиDataTable)(base.Clone()));
  1253. cln.InitVars();
  1254. return cln;
  1255. }
  1256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1258. protected override global::System.Data.DataTable CreateInstance() {
  1259. return new сотрудникиDataTable();
  1260. }
  1261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1263. internal void InitVars() {
  1264. this.columnid_сотрудника = base.Columns["id_сотрудника"];
  1265. this.columnФИО = base.Columns["ФИО"];
  1266. this.columnдолжность = base.Columns["должность"];
  1267. }
  1268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1270. private void InitClass() {
  1271. this.columnid_сотрудника = new global::System.Data.DataColumn("id_сотрудника", typeof(int), null, global::System.Data.MappingType.Element);
  1272. base.Columns.Add(this.columnid_сотрудника);
  1273. this.columnФИО = new global::System.Data.DataColumn("ФИО", typeof(string), null, global::System.Data.MappingType.Element);
  1274. base.Columns.Add(this.columnФИО);
  1275. this.columnдолжность = new global::System.Data.DataColumn("должность", typeof(string), null, global::System.Data.MappingType.Element);
  1276. base.Columns.Add(this.columnдолжность);
  1277. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1278. this.columnid_сотрудника}, true));
  1279. this.columnid_сотрудника.AutoIncrement = true;
  1280. this.columnid_сотрудника.AutoIncrementSeed = -1;
  1281. this.columnid_сотрудника.AutoIncrementStep = -1;
  1282. this.columnid_сотрудника.AllowDBNull = false;
  1283. this.columnid_сотрудника.ReadOnly = true;
  1284. this.columnid_сотрудника.Unique = true;
  1285. this.columnФИО.MaxLength = 50;
  1286. this.columnдолжность.MaxLength = 50;
  1287. }
  1288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1290. public сотрудникиRow NewсотрудникиRow() {
  1291. return ((сотрудникиRow)(this.NewRow()));
  1292. }
  1293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1295. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1296. return new сотрудникиRow(builder);
  1297. }
  1298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1300. protected override global::System.Type GetRowType() {
  1301. return typeof(сотрудникиRow);
  1302. }
  1303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1305. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1306. base.OnRowChanged(e);
  1307. if ((this.сотрудникиRowChanged != null)) {
  1308. this.сотрудникиRowChanged(this, new сотрудникиRowChangeEvent(((сотрудникиRow)(e.Row)), e.Action));
  1309. }
  1310. }
  1311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1313. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1314. base.OnRowChanging(e);
  1315. if ((this.сотрудникиRowChanging != null)) {
  1316. this.сотрудникиRowChanging(this, new сотрудникиRowChangeEvent(((сотрудникиRow)(e.Row)), e.Action));
  1317. }
  1318. }
  1319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1321. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1322. base.OnRowDeleted(e);
  1323. if ((this.сотрудникиRowDeleted != null)) {
  1324. this.сотрудникиRowDeleted(this, new сотрудникиRowChangeEvent(((сотрудникиRow)(e.Row)), e.Action));
  1325. }
  1326. }
  1327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1329. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1330. base.OnRowDeleting(e);
  1331. if ((this.сотрудникиRowDeleting != null)) {
  1332. this.сотрудникиRowDeleting(this, new сотрудникиRowChangeEvent(((сотрудникиRow)(e.Row)), e.Action));
  1333. }
  1334. }
  1335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1337. public void RemoveсотрудникиRow(сотрудникиRow row) {
  1338. this.Rows.Remove(row);
  1339. }
  1340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1342. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1343. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1344. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1345. Starichikhina_remont_butovoy_texnikiDataSet ds = new Starichikhina_remont_butovoy_texnikiDataSet();
  1346. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1347. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1348. any1.MinOccurs = new decimal(0);
  1349. any1.MaxOccurs = decimal.MaxValue;
  1350. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1351. sequence.Items.Add(any1);
  1352. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1353. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1354. any2.MinOccurs = new decimal(1);
  1355. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1356. sequence.Items.Add(any2);
  1357. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1358. attribute1.Name = "namespace";
  1359. attribute1.FixedValue = ds.Namespace;
  1360. type.Attributes.Add(attribute1);
  1361. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1362. attribute2.Name = "tableTypeName";
  1363. attribute2.FixedValue = "сотрудникиDataTable";
  1364. type.Attributes.Add(attribute2);
  1365. type.Particle = sequence;
  1366. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1367. if (xs.Contains(dsSchema.TargetNamespace)) {
  1368. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1369. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1370. try {
  1371. global::System.Xml.Schema.XmlSchema schema = null;
  1372. dsSchema.Write(s1);
  1373. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1374. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1375. s2.SetLength(0);
  1376. schema.Write(s2);
  1377. if ((s1.Length == s2.Length)) {
  1378. s1.Position = 0;
  1379. s2.Position = 0;
  1380. for (; ((s1.Position != s1.Length)
  1381. && (s1.ReadByte() == s2.ReadByte())); ) {
  1382. ;
  1383. }
  1384. if ((s1.Position == s1.Length)) {
  1385. return type;
  1386. }
  1387. }
  1388. }
  1389. }
  1390. finally {
  1391. if ((s1 != null)) {
  1392. s1.Close();
  1393. }
  1394. if ((s2 != null)) {
  1395. s2.Close();
  1396. }
  1397. }
  1398. }
  1399. xs.Add(dsSchema);
  1400. return type;
  1401. }
  1402. }
  1403. /// <summary>
  1404. ///Represents the strongly named DataTable class.
  1405. ///</summary>
  1406. [global::System.Serializable()]
  1407. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1408. public partial class сотрудники_исполнение_заказовDataTable : global::System.Data.TypedTableBase<сотрудники_исполнение_заказовRow> {
  1409. private global::System.Data.DataColumn columnid_сотрудника;
  1410. private global::System.Data.DataColumn columnid_заказа;
  1411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1413. public сотрудники_исполнение_заказовDataTable() {
  1414. this.TableName = "сотрудники_исполнение_заказов";
  1415. this.BeginInit();
  1416. this.InitClass();
  1417. this.EndInit();
  1418. }
  1419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1421. internal сотрудники_исполнение_заказовDataTable(global::System.Data.DataTable table) {
  1422. this.TableName = table.TableName;
  1423. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1424. this.CaseSensitive = table.CaseSensitive;
  1425. }
  1426. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1427. this.Locale = table.Locale;
  1428. }
  1429. if ((table.Namespace != table.DataSet.Namespace)) {
  1430. this.Namespace = table.Namespace;
  1431. }
  1432. this.Prefix = table.Prefix;
  1433. this.MinimumCapacity = table.MinimumCapacity;
  1434. }
  1435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1437. protected сотрудники_исполнение_заказовDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1438. base(info, context) {
  1439. this.InitVars();
  1440. }
  1441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1443. public global::System.Data.DataColumn id_сотрудникаColumn {
  1444. get {
  1445. return this.columnid_сотрудника;
  1446. }
  1447. }
  1448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1450. public global::System.Data.DataColumn id_заказаColumn {
  1451. get {
  1452. return this.columnid_заказа;
  1453. }
  1454. }
  1455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1457. [global::System.ComponentModel.Browsable(false)]
  1458. public int Count {
  1459. get {
  1460. return this.Rows.Count;
  1461. }
  1462. }
  1463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1465. public сотрудники_исполнение_заказовRow this[int index] {
  1466. get {
  1467. return ((сотрудники_исполнение_заказовRow)(this.Rows[index]));
  1468. }
  1469. }
  1470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1471. public event сотрудники_исполнение_заказовRowChangeEventHandler сотрудники_исполнение_заказовRowChanging;
  1472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1473. public event сотрудники_исполнение_заказовRowChangeEventHandler сотрудники_исполнение_заказовRowChanged;
  1474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1475. public event сотрудники_исполнение_заказовRowChangeEventHandler сотрудники_исполнение_заказовRowDeleting;
  1476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1477. public event сотрудники_исполнение_заказовRowChangeEventHandler сотрудники_исполнение_заказовRowDeleted;
  1478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1480. public void Addсотрудники_исполнение_заказовRow(сотрудники_исполнение_заказовRow row) {
  1481. this.Rows.Add(row);
  1482. }
  1483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1485. public сотрудники_исполнение_заказовRow Addсотрудники_исполнение_заказовRow(сотрудникиRow parentсотрудникиRowByFK_сотрудники_исполнение_заказов_сотрудники, исполнение_заказовRow parentисполнение_заказовRowByFK_сотрудники_исполнение_заказов_исполнение_заказов) {
  1486. сотрудники_исполнение_заказовRow rowсотрудники_исполнение_заказовRow = ((сотрудники_исполнение_заказовRow)(this.NewRow()));
  1487. object[] columnValuesArray = new object[] {
  1488. null,
  1489. null};
  1490. if ((parentсотрудникиRowByFK_сотрудники_исполнение_заказов_сотрудники != null)) {
  1491. columnValuesArray[0] = parentсотрудникиRowByFK_сотрудники_исполнение_заказов_сотрудники[0];
  1492. }
  1493. if ((parentисполнение_заказовRowByFK_сотрудники_исполнение_заказов_исполнение_заказов != null)) {
  1494. columnValuesArray[1] = parentисполнение_заказовRowByFK_сотрудники_исполнение_заказов_исполнение_заказов[0];
  1495. }
  1496. rowсотрудники_исполнение_заказовRow.ItemArray = columnValuesArray;
  1497. this.Rows.Add(rowсотрудники_исполнение_заказовRow);
  1498. return rowсотрудники_исполнение_заказовRow;
  1499. }
  1500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1502. public override global::System.Data.DataTable Clone() {
  1503. сотрудники_исполнение_заказовDataTable cln = ((сотрудники_исполнение_заказовDataTable)(base.Clone()));
  1504. cln.InitVars();
  1505. return cln;
  1506. }
  1507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1509. protected override global::System.Data.DataTable CreateInstance() {
  1510. return new сотрудники_исполнение_заказовDataTable();
  1511. }
  1512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1514. internal void InitVars() {
  1515. this.columnid_сотрудника = base.Columns["id_сотрудника"];
  1516. this.columnid_заказа = base.Columns["id_заказа"];
  1517. }
  1518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1520. private void InitClass() {
  1521. this.columnid_сотрудника = new global::System.Data.DataColumn("id_сотрудника", typeof(int), null, global::System.Data.MappingType.Element);
  1522. base.Columns.Add(this.columnid_сотрудника);
  1523. this.columnid_заказа = new global::System.Data.DataColumn("id_заказа", typeof(int), null, global::System.Data.MappingType.Element);
  1524. base.Columns.Add(this.columnid_заказа);
  1525. }
  1526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1528. public сотрудники_исполнение_заказовRow Newсотрудники_исполнение_заказовRow() {
  1529. return ((сотрудники_исполнение_заказовRow)(this.NewRow()));
  1530. }
  1531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1533. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1534. return new сотрудники_исполнение_заказовRow(builder);
  1535. }
  1536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1538. protected override global::System.Type GetRowType() {
  1539. return typeof(сотрудники_исполнение_заказовRow);
  1540. }
  1541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1543. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1544. base.OnRowChanged(e);
  1545. if ((this.сотрудники_исполнение_заказовRowChanged != null)) {
  1546. this.сотрудники_исполнение_заказовRowChanged(this, new сотрудники_исполнение_заказовRowChangeEvent(((сотрудники_исполнение_заказовRow)(e.Row)), e.Action));
  1547. }
  1548. }
  1549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1551. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1552. base.OnRowChanging(e);
  1553. if ((this.сотрудники_исполнение_заказовRowChanging != null)) {
  1554. this.сотрудники_исполнение_заказовRowChanging(this, new сотрудники_исполнение_заказовRowChangeEvent(((сотрудники_исполнение_заказовRow)(e.Row)), e.Action));
  1555. }
  1556. }
  1557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1559. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1560. base.OnRowDeleted(e);
  1561. if ((this.сотрудники_исполнение_заказовRowDeleted != null)) {
  1562. this.сотрудники_исполнение_заказовRowDeleted(this, new сотрудники_исполнение_заказовRowChangeEvent(((сотрудники_исполнение_заказовRow)(e.Row)), e.Action));
  1563. }
  1564. }
  1565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1567. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1568. base.OnRowDeleting(e);
  1569. if ((this.сотрудники_исполнение_заказовRowDeleting != null)) {
  1570. this.сотрудники_исполнение_заказовRowDeleting(this, new сотрудники_исполнение_заказовRowChangeEvent(((сотрудники_исполнение_заказовRow)(e.Row)), e.Action));
  1571. }
  1572. }
  1573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1575. public void Removeсотрудники_исполнение_заказовRow(сотрудники_исполнение_заказовRow row) {
  1576. this.Rows.Remove(row);
  1577. }
  1578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1580. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1581. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1582. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1583. Starichikhina_remont_butovoy_texnikiDataSet ds = new Starichikhina_remont_butovoy_texnikiDataSet();
  1584. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1585. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1586. any1.MinOccurs = new decimal(0);
  1587. any1.MaxOccurs = decimal.MaxValue;
  1588. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1589. sequence.Items.Add(any1);
  1590. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1591. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1592. any2.MinOccurs = new decimal(1);
  1593. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1594. sequence.Items.Add(any2);
  1595. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1596. attribute1.Name = "namespace";
  1597. attribute1.FixedValue = ds.Namespace;
  1598. type.Attributes.Add(attribute1);
  1599. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1600. attribute2.Name = "tableTypeName";
  1601. attribute2.FixedValue = "сотрудники_исполнение_заказовDataTable";
  1602. type.Attributes.Add(attribute2);
  1603. type.Particle = sequence;
  1604. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1605. if (xs.Contains(dsSchema.TargetNamespace)) {
  1606. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1607. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1608. try {
  1609. global::System.Xml.Schema.XmlSchema schema = null;
  1610. dsSchema.Write(s1);
  1611. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1612. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1613. s2.SetLength(0);
  1614. schema.Write(s2);
  1615. if ((s1.Length == s2.Length)) {
  1616. s1.Position = 0;
  1617. s2.Position = 0;
  1618. for (; ((s1.Position != s1.Length)
  1619. && (s1.ReadByte() == s2.ReadByte())); ) {
  1620. ;
  1621. }
  1622. if ((s1.Position == s1.Length)) {
  1623. return type;
  1624. }
  1625. }
  1626. }
  1627. }
  1628. finally {
  1629. if ((s1 != null)) {
  1630. s1.Close();
  1631. }
  1632. if ((s2 != null)) {
  1633. s2.Close();
  1634. }
  1635. }
  1636. }
  1637. xs.Add(dsSchema);
  1638. return type;
  1639. }
  1640. }
  1641. /// <summary>
  1642. ///Represents the strongly named DataTable class.
  1643. ///</summary>
  1644. [global::System.Serializable()]
  1645. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1646. public partial class ТоварыDataTable : global::System.Data.TypedTableBase<ТоварыRow> {
  1647. private global::System.Data.DataColumn columnid_товара;
  1648. private global::System.Data.DataColumn columnнаим_товара;
  1649. private global::System.Data.DataColumn columnфирма;
  1650. private global::System.Data.DataColumn columnмодель;
  1651. private global::System.Data.DataColumn columnтехнические_характеристики;
  1652. private global::System.Data.DataColumn columnгарантированный_срок;
  1653. private global::System.Data.DataColumn columnизображение;
  1654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1656. public ТоварыDataTable() {
  1657. this.TableName = "Товары";
  1658. this.BeginInit();
  1659. this.InitClass();
  1660. this.EndInit();
  1661. }
  1662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1664. internal ТоварыDataTable(global::System.Data.DataTable table) {
  1665. this.TableName = table.TableName;
  1666. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1667. this.CaseSensitive = table.CaseSensitive;
  1668. }
  1669. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1670. this.Locale = table.Locale;
  1671. }
  1672. if ((table.Namespace != table.DataSet.Namespace)) {
  1673. this.Namespace = table.Namespace;
  1674. }
  1675. this.Prefix = table.Prefix;
  1676. this.MinimumCapacity = table.MinimumCapacity;
  1677. }
  1678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1680. protected ТоварыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1681. base(info, context) {
  1682. this.InitVars();
  1683. }
  1684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1686. public global::System.Data.DataColumn id_товараColumn {
  1687. get {
  1688. return this.columnid_товара;
  1689. }
  1690. }
  1691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1693. public global::System.Data.DataColumn наим_товараColumn {
  1694. get {
  1695. return this.columnнаим_товара;
  1696. }
  1697. }
  1698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1700. public global::System.Data.DataColumn фирмаColumn {
  1701. get {
  1702. return this.columnфирма;
  1703. }
  1704. }
  1705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1707. public global::System.Data.DataColumn модельColumn {
  1708. get {
  1709. return this.columnмодель;
  1710. }
  1711. }
  1712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1714. public global::System.Data.DataColumn технические_характеристикиColumn {
  1715. get {
  1716. return this.columnтехнические_характеристики;
  1717. }
  1718. }
  1719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1721. public global::System.Data.DataColumn гарантированный_срокColumn {
  1722. get {
  1723. return this.columnгарантированный_срок;
  1724. }
  1725. }
  1726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1728. public global::System.Data.DataColumn изображениеColumn {
  1729. get {
  1730. return this.columnизображение;
  1731. }
  1732. }
  1733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1735. [global::System.ComponentModel.Browsable(false)]
  1736. public int Count {
  1737. get {
  1738. return this.Rows.Count;
  1739. }
  1740. }
  1741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1743. public ТоварыRow this[int index] {
  1744. get {
  1745. return ((ТоварыRow)(this.Rows[index]));
  1746. }
  1747. }
  1748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1749. public event ТоварыRowChangeEventHandler ТоварыRowChanging;
  1750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1751. public event ТоварыRowChangeEventHandler ТоварыRowChanged;
  1752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1753. public event ТоварыRowChangeEventHandler ТоварыRowDeleting;
  1754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1755. public event ТоварыRowChangeEventHandler ТоварыRowDeleted;
  1756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1758. public void AddТоварыRow(ТоварыRow row) {
  1759. this.Rows.Add(row);
  1760. }
  1761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1763. public ТоварыRow AddТоварыRow(string наим_товара, string фирма, string модель, string технические_характеристики, string гарантированный_срок, byte[] изображение) {
  1764. ТоварыRow rowТоварыRow = ((ТоварыRow)(this.NewRow()));
  1765. object[] columnValuesArray = new object[] {
  1766. null,
  1767. наим_товара,
  1768. фирма,
  1769. модель,
  1770. технические_характеристики,
  1771. гарантированный_срок,
  1772. изображение};
  1773. rowТоварыRow.ItemArray = columnValuesArray;
  1774. this.Rows.Add(rowТоварыRow);
  1775. return rowТоварыRow;
  1776. }
  1777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1779. public ТоварыRow FindByid_товара(int id_товара) {
  1780. return ((ТоварыRow)(this.Rows.Find(new object[] {
  1781. id_товара})));
  1782. }
  1783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1785. public override global::System.Data.DataTable Clone() {
  1786. ТоварыDataTable cln = ((ТоварыDataTable)(base.Clone()));
  1787. cln.InitVars();
  1788. return cln;
  1789. }
  1790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1792. protected override global::System.Data.DataTable CreateInstance() {
  1793. return new ТоварыDataTable();
  1794. }
  1795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1797. internal void InitVars() {
  1798. this.columnid_товара = base.Columns["id_товара"];
  1799. this.columnнаим_товара = base.Columns["наим_товара"];
  1800. this.columnфирма = base.Columns["фирма"];
  1801. this.columnмодель = base.Columns["модель"];
  1802. this.columnтехнические_характеристики = base.Columns["технические_характеристики"];
  1803. this.columnгарантированный_срок = base.Columns["гарантированный_срок"];
  1804. this.columnизображение = base.Columns["изображение"];
  1805. }
  1806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1808. private void InitClass() {
  1809. this.columnid_товара = new global::System.Data.DataColumn("id_товара", typeof(int), null, global::System.Data.MappingType.Element);
  1810. base.Columns.Add(this.columnid_товара);
  1811. this.columnнаим_товара = new global::System.Data.DataColumn("наим_товара", typeof(string), null, global::System.Data.MappingType.Element);
  1812. base.Columns.Add(this.columnнаим_товара);
  1813. this.columnфирма = new global::System.Data.DataColumn("фирма", typeof(string), null, global::System.Data.MappingType.Element);
  1814. base.Columns.Add(this.columnфирма);
  1815. this.columnмодель = new global::System.Data.DataColumn("модель", typeof(string), null, global::System.Data.MappingType.Element);
  1816. base.Columns.Add(this.columnмодель);
  1817. this.columnтехнические_характеристики = new global::System.Data.DataColumn("технические_характеристики", typeof(string), null, global::System.Data.MappingType.Element);
  1818. base.Columns.Add(this.columnтехнические_характеристики);
  1819. this.columnгарантированный_срок = new global::System.Data.DataColumn("гарантированный_срок", typeof(string), null, global::System.Data.MappingType.Element);
  1820. base.Columns.Add(this.columnгарантированный_срок);
  1821. this.columnизображение = new global::System.Data.DataColumn("изображение", typeof(byte[]), null, global::System.Data.MappingType.Element);
  1822. base.Columns.Add(this.columnизображение);
  1823. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1824. this.columnid_товара}, true));
  1825. this.columnid_товара.AutoIncrement = true;
  1826. this.columnid_товара.AutoIncrementSeed = -1;
  1827. this.columnid_товара.AutoIncrementStep = -1;
  1828. this.columnid_товара.AllowDBNull = false;
  1829. this.columnid_товара.ReadOnly = true;
  1830. this.columnid_товара.Unique = true;
  1831. this.columnнаим_товара.MaxLength = 50;
  1832. this.columnфирма.MaxLength = 50;
  1833. this.columnмодель.MaxLength = 50;
  1834. this.columnтехнические_характеристики.MaxLength = 50;
  1835. this.columnгарантированный_срок.MaxLength = 50;
  1836. }
  1837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1839. public ТоварыRow NewТоварыRow() {
  1840. return ((ТоварыRow)(this.NewRow()));
  1841. }
  1842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1844. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1845. return new ТоварыRow(builder);
  1846. }
  1847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1849. protected override global::System.Type GetRowType() {
  1850. return typeof(ТоварыRow);
  1851. }
  1852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1854. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1855. base.OnRowChanged(e);
  1856. if ((this.ТоварыRowChanged != null)) {
  1857. this.ТоварыRowChanged(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  1858. }
  1859. }
  1860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1862. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1863. base.OnRowChanging(e);
  1864. if ((this.ТоварыRowChanging != null)) {
  1865. this.ТоварыRowChanging(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  1866. }
  1867. }
  1868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1870. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1871. base.OnRowDeleted(e);
  1872. if ((this.ТоварыRowDeleted != null)) {
  1873. this.ТоварыRowDeleted(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  1874. }
  1875. }
  1876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1878. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1879. base.OnRowDeleting(e);
  1880. if ((this.ТоварыRowDeleting != null)) {
  1881. this.ТоварыRowDeleting(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  1882. }
  1883. }
  1884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1886. public void RemoveТоварыRow(ТоварыRow row) {
  1887. this.Rows.Remove(row);
  1888. }
  1889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1891. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1892. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1893. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1894. Starichikhina_remont_butovoy_texnikiDataSet ds = new Starichikhina_remont_butovoy_texnikiDataSet();
  1895. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1896. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1897. any1.MinOccurs = new decimal(0);
  1898. any1.MaxOccurs = decimal.MaxValue;
  1899. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1900. sequence.Items.Add(any1);
  1901. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1902. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1903. any2.MinOccurs = new decimal(1);
  1904. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1905. sequence.Items.Add(any2);
  1906. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1907. attribute1.Name = "namespace";
  1908. attribute1.FixedValue = ds.Namespace;
  1909. type.Attributes.Add(attribute1);
  1910. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1911. attribute2.Name = "tableTypeName";
  1912. attribute2.FixedValue = "ТоварыDataTable";
  1913. type.Attributes.Add(attribute2);
  1914. type.Particle = sequence;
  1915. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1916. if (xs.Contains(dsSchema.TargetNamespace)) {
  1917. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1918. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1919. try {
  1920. global::System.Xml.Schema.XmlSchema schema = null;
  1921. dsSchema.Write(s1);
  1922. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1923. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1924. s2.SetLength(0);
  1925. schema.Write(s2);
  1926. if ((s1.Length == s2.Length)) {
  1927. s1.Position = 0;
  1928. s2.Position = 0;
  1929. for (; ((s1.Position != s1.Length)
  1930. && (s1.ReadByte() == s2.ReadByte())); ) {
  1931. ;
  1932. }
  1933. if ((s1.Position == s1.Length)) {
  1934. return type;
  1935. }
  1936. }
  1937. }
  1938. }
  1939. finally {
  1940. if ((s1 != null)) {
  1941. s1.Close();
  1942. }
  1943. if ((s2 != null)) {
  1944. s2.Close();
  1945. }
  1946. }
  1947. }
  1948. xs.Add(dsSchema);
  1949. return type;
  1950. }
  1951. }
  1952. /// <summary>
  1953. ///Represents the strongly named DataTable class.
  1954. ///</summary>
  1955. [global::System.Serializable()]
  1956. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1957. public partial class zakazDataTable : global::System.Data.TypedTableBase<zakazRow> {
  1958. private global::System.Data.DataColumn columnid_заказа;
  1959. private global::System.Data.DataColumn columnгарантия;
  1960. private global::System.Data.DataColumn columnid_сотрудника;
  1961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1963. public zakazDataTable() {
  1964. this.TableName = "zakaz";
  1965. this.BeginInit();
  1966. this.InitClass();
  1967. this.EndInit();
  1968. }
  1969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1971. internal zakazDataTable(global::System.Data.DataTable table) {
  1972. this.TableName = table.TableName;
  1973. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1974. this.CaseSensitive = table.CaseSensitive;
  1975. }
  1976. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1977. this.Locale = table.Locale;
  1978. }
  1979. if ((table.Namespace != table.DataSet.Namespace)) {
  1980. this.Namespace = table.Namespace;
  1981. }
  1982. this.Prefix = table.Prefix;
  1983. this.MinimumCapacity = table.MinimumCapacity;
  1984. }
  1985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1987. protected zakazDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1988. base(info, context) {
  1989. this.InitVars();
  1990. }
  1991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1993. public global::System.Data.DataColumn id_заказаColumn {
  1994. get {
  1995. return this.columnid_заказа;
  1996. }
  1997. }
  1998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2000. public global::System.Data.DataColumn гарантияColumn {
  2001. get {
  2002. return this.columnгарантия;
  2003. }
  2004. }
  2005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2007. public global::System.Data.DataColumn id_сотрудникаColumn {
  2008. get {
  2009. return this.columnid_сотрудника;
  2010. }
  2011. }
  2012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2014. [global::System.ComponentModel.Browsable(false)]
  2015. public int Count {
  2016. get {
  2017. return this.Rows.Count;
  2018. }
  2019. }
  2020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2022. public zakazRow this[int index] {
  2023. get {
  2024. return ((zakazRow)(this.Rows[index]));
  2025. }
  2026. }
  2027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2028. public event zakazRowChangeEventHandler zakazRowChanging;
  2029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2030. public event zakazRowChangeEventHandler zakazRowChanged;
  2031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2032. public event zakazRowChangeEventHandler zakazRowDeleting;
  2033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2034. public event zakazRowChangeEventHandler zakazRowDeleted;
  2035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2037. public void AddzakazRow(zakazRow row) {
  2038. this.Rows.Add(row);
  2039. }
  2040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2042. public zakazRow AddzakazRow(int id_заказа, bool гарантия, int id_сотрудника) {
  2043. zakazRow rowzakazRow = ((zakazRow)(this.NewRow()));
  2044. object[] columnValuesArray = new object[] {
  2045. id_заказа,
  2046. гарантия,
  2047. id_сотрудника};
  2048. rowzakazRow.ItemArray = columnValuesArray;
  2049. this.Rows.Add(rowzakazRow);
  2050. return rowzakazRow;
  2051. }
  2052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2054. public zakazRow FindByid_заказаid_сотрудника(int id_заказа, int id_сотрудника) {
  2055. return ((zakazRow)(this.Rows.Find(new object[] {
  2056. id_заказа,
  2057. id_сотрудника})));
  2058. }
  2059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2061. public override global::System.Data.DataTable Clone() {
  2062. zakazDataTable cln = ((zakazDataTable)(base.Clone()));
  2063. cln.InitVars();
  2064. return cln;
  2065. }
  2066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2068. protected override global::System.Data.DataTable CreateInstance() {
  2069. return new zakazDataTable();
  2070. }
  2071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2073. internal void InitVars() {
  2074. this.columnid_заказа = base.Columns["id_заказа"];
  2075. this.columnгарантия = base.Columns["гарантия"];
  2076. this.columnid_сотрудника = base.Columns["id_сотрудника"];
  2077. }
  2078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2080. private void InitClass() {
  2081. this.columnid_заказа = new global::System.Data.DataColumn("id_заказа", typeof(int), null, global::System.Data.MappingType.Element);
  2082. base.Columns.Add(this.columnid_заказа);
  2083. this.columnгарантия = new global::System.Data.DataColumn("гарантия", typeof(bool), null, global::System.Data.MappingType.Element);
  2084. base.Columns.Add(this.columnгарантия);
  2085. this.columnid_сотрудника = new global::System.Data.DataColumn("id_сотрудника", typeof(int), null, global::System.Data.MappingType.Element);
  2086. base.Columns.Add(this.columnid_сотрудника);
  2087. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2088. this.columnid_заказа,
  2089. this.columnid_сотрудника}, true));
  2090. this.columnid_заказа.AllowDBNull = false;
  2091. this.columnid_сотрудника.AllowDBNull = false;
  2092. }
  2093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2095. public zakazRow NewzakazRow() {
  2096. return ((zakazRow)(this.NewRow()));
  2097. }
  2098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2100. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2101. return new zakazRow(builder);
  2102. }
  2103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2105. protected override global::System.Type GetRowType() {
  2106. return typeof(zakazRow);
  2107. }
  2108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2110. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2111. base.OnRowChanged(e);
  2112. if ((this.zakazRowChanged != null)) {
  2113. this.zakazRowChanged(this, new zakazRowChangeEvent(((zakazRow)(e.Row)), e.Action));
  2114. }
  2115. }
  2116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2118. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2119. base.OnRowChanging(e);
  2120. if ((this.zakazRowChanging != null)) {
  2121. this.zakazRowChanging(this, new zakazRowChangeEvent(((zakazRow)(e.Row)), e.Action));
  2122. }
  2123. }
  2124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2126. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2127. base.OnRowDeleted(e);
  2128. if ((this.zakazRowDeleted != null)) {
  2129. this.zakazRowDeleted(this, new zakazRowChangeEvent(((zakazRow)(e.Row)), e.Action));
  2130. }
  2131. }
  2132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2134. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2135. base.OnRowDeleting(e);
  2136. if ((this.zakazRowDeleting != null)) {
  2137. this.zakazRowDeleting(this, new zakazRowChangeEvent(((zakazRow)(e.Row)), e.Action));
  2138. }
  2139. }
  2140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2142. public void RemovezakazRow(zakazRow row) {
  2143. this.Rows.Remove(row);
  2144. }
  2145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2147. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2148. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2149. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2150. Starichikhina_remont_butovoy_texnikiDataSet ds = new Starichikhina_remont_butovoy_texnikiDataSet();
  2151. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2152. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2153. any1.MinOccurs = new decimal(0);
  2154. any1.MaxOccurs = decimal.MaxValue;
  2155. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2156. sequence.Items.Add(any1);
  2157. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2158. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2159. any2.MinOccurs = new decimal(1);
  2160. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2161. sequence.Items.Add(any2);
  2162. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2163. attribute1.Name = "namespace";
  2164. attribute1.FixedValue = ds.Namespace;
  2165. type.Attributes.Add(attribute1);
  2166. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2167. attribute2.Name = "tableTypeName";
  2168. attribute2.FixedValue = "zakazDataTable";
  2169. type.Attributes.Add(attribute2);
  2170. type.Particle = sequence;
  2171. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2172. if (xs.Contains(dsSchema.TargetNamespace)) {
  2173. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2174. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2175. try {
  2176. global::System.Xml.Schema.XmlSchema schema = null;
  2177. dsSchema.Write(s1);
  2178. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2179. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2180. s2.SetLength(0);
  2181. schema.Write(s2);
  2182. if ((s1.Length == s2.Length)) {
  2183. s1.Position = 0;
  2184. s2.Position = 0;
  2185. for (; ((s1.Position != s1.Length)
  2186. && (s1.ReadByte() == s2.ReadByte())); ) {
  2187. ;
  2188. }
  2189. if ((s1.Position == s1.Length)) {
  2190. return type;
  2191. }
  2192. }
  2193. }
  2194. }
  2195. finally {
  2196. if ((s1 != null)) {
  2197. s1.Close();
  2198. }
  2199. if ((s2 != null)) {
  2200. s2.Close();
  2201. }
  2202. }
  2203. }
  2204. xs.Add(dsSchema);
  2205. return type;
  2206. }
  2207. }
  2208. /// <summary>
  2209. ///Represents the strongly named DataTable class.
  2210. ///</summary>
  2211. [global::System.Serializable()]
  2212. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2213. public partial class запрос_2DataTable : global::System.Data.TypedTableBase<запрос_2Row> {
  2214. private global::System.Data.DataColumn columnid_сотрудника;
  2215. private global::System.Data.DataColumn columnФИО;
  2216. private global::System.Data.DataColumn columnвид_ремонта;
  2217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2219. public запрос_2DataTable() {
  2220. this.TableName = "запрос_2";
  2221. this.BeginInit();
  2222. this.InitClass();
  2223. this.EndInit();
  2224. }
  2225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2227. internal запрос_2DataTable(global::System.Data.DataTable table) {
  2228. this.TableName = table.TableName;
  2229. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2230. this.CaseSensitive = table.CaseSensitive;
  2231. }
  2232. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2233. this.Locale = table.Locale;
  2234. }
  2235. if ((table.Namespace != table.DataSet.Namespace)) {
  2236. this.Namespace = table.Namespace;
  2237. }
  2238. this.Prefix = table.Prefix;
  2239. this.MinimumCapacity = table.MinimumCapacity;
  2240. }
  2241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2243. protected запрос_2DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2244. base(info, context) {
  2245. this.InitVars();
  2246. }
  2247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2249. public global::System.Data.DataColumn id_сотрудникаColumn {
  2250. get {
  2251. return this.columnid_сотрудника;
  2252. }
  2253. }
  2254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2256. public global::System.Data.DataColumn ФИОColumn {
  2257. get {
  2258. return this.columnФИО;
  2259. }
  2260. }
  2261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2263. public global::System.Data.DataColumn вид_ремонтаColumn {
  2264. get {
  2265. return this.columnвид_ремонта;
  2266. }
  2267. }
  2268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2270. [global::System.ComponentModel.Browsable(false)]
  2271. public int Count {
  2272. get {
  2273. return this.Rows.Count;
  2274. }
  2275. }
  2276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2278. public запрос_2Row this[int index] {
  2279. get {
  2280. return ((запрос_2Row)(this.Rows[index]));
  2281. }
  2282. }
  2283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2284. public event запрос_2RowChangeEventHandler запрос_2RowChanging;
  2285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2286. public event запрос_2RowChangeEventHandler запрос_2RowChanged;
  2287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2288. public event запрос_2RowChangeEventHandler запрос_2RowDeleting;
  2289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2290. public event запрос_2RowChangeEventHandler запрос_2RowDeleted;
  2291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2293. public void Addзапрос_2Row(запрос_2Row row) {
  2294. this.Rows.Add(row);
  2295. }
  2296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2298. public запрос_2Row Addзапрос_2Row(int id_сотрудника, string ФИО, string вид_ремонта) {
  2299. запрос_2Row rowзапрос_2Row = ((запрос_2Row)(this.NewRow()));
  2300. object[] columnValuesArray = new object[] {
  2301. id_сотрудника,
  2302. ФИО,
  2303. вид_ремонта};
  2304. rowзапрос_2Row.ItemArray = columnValuesArray;
  2305. this.Rows.Add(rowзапрос_2Row);
  2306. return rowзапрос_2Row;
  2307. }
  2308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2310. public запрос_2Row FindByid_сотрудника(int id_сотрудника) {
  2311. return ((запрос_2Row)(this.Rows.Find(new object[] {
  2312. id_сотрудника})));
  2313. }
  2314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2316. public override global::System.Data.DataTable Clone() {
  2317. запрос_2DataTable cln = ((запрос_2DataTable)(base.Clone()));
  2318. cln.InitVars();
  2319. return cln;
  2320. }
  2321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2323. protected override global::System.Data.DataTable CreateInstance() {
  2324. return new запрос_2DataTable();
  2325. }
  2326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2328. internal void InitVars() {
  2329. this.columnid_сотрудника = base.Columns["id_сотрудника"];
  2330. this.columnФИО = base.Columns["ФИО"];
  2331. this.columnвид_ремонта = base.Columns["вид_ремонта"];
  2332. }
  2333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2335. private void InitClass() {
  2336. this.columnid_сотрудника = new global::System.Data.DataColumn("id_сотрудника", typeof(int), null, global::System.Data.MappingType.Element);
  2337. base.Columns.Add(this.columnid_сотрудника);
  2338. this.columnФИО = new global::System.Data.DataColumn("ФИО", typeof(string), null, global::System.Data.MappingType.Element);
  2339. base.Columns.Add(this.columnФИО);
  2340. this.columnвид_ремонта = new global::System.Data.DataColumn("вид_ремонта", typeof(string), null, global::System.Data.MappingType.Element);
  2341. base.Columns.Add(this.columnвид_ремонта);
  2342. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2343. this.columnid_сотрудника}, true));
  2344. this.columnid_сотрудника.AllowDBNull = false;
  2345. this.columnid_сотрудника.Unique = true;
  2346. this.columnФИО.MaxLength = 50;
  2347. this.columnвид_ремонта.MaxLength = 50;
  2348. }
  2349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2351. public запрос_2Row Newзапрос_2Row() {
  2352. return ((запрос_2Row)(this.NewRow()));
  2353. }
  2354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2356. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2357. return new запрос_2Row(builder);
  2358. }
  2359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2361. protected override global::System.Type GetRowType() {
  2362. return typeof(запрос_2Row);
  2363. }
  2364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2366. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2367. base.OnRowChanged(e);
  2368. if ((this.запрос_2RowChanged != null)) {
  2369. this.запрос_2RowChanged(this, new запрос_2RowChangeEvent(((запрос_2Row)(e.Row)), e.Action));
  2370. }
  2371. }
  2372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2374. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2375. base.OnRowChanging(e);
  2376. if ((this.запрос_2RowChanging != null)) {
  2377. this.запрос_2RowChanging(this, new запрос_2RowChangeEvent(((запрос_2Row)(e.Row)), e.Action));
  2378. }
  2379. }
  2380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2382. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2383. base.OnRowDeleted(e);
  2384. if ((this.запрос_2RowDeleted != null)) {
  2385. this.запрос_2RowDeleted(this, new запрос_2RowChangeEvent(((запрос_2Row)(e.Row)), e.Action));
  2386. }
  2387. }
  2388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2390. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2391. base.OnRowDeleting(e);
  2392. if ((this.запрос_2RowDeleting != null)) {
  2393. this.запрос_2RowDeleting(this, new запрос_2RowChangeEvent(((запрос_2Row)(e.Row)), e.Action));
  2394. }
  2395. }
  2396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2398. public void Removeзапрос_2Row(запрос_2Row row) {
  2399. this.Rows.Remove(row);
  2400. }
  2401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2403. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2404. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2405. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2406. Starichikhina_remont_butovoy_texnikiDataSet ds = new Starichikhina_remont_butovoy_texnikiDataSet();
  2407. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2408. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2409. any1.MinOccurs = new decimal(0);
  2410. any1.MaxOccurs = decimal.MaxValue;
  2411. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2412. sequence.Items.Add(any1);
  2413. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2414. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2415. any2.MinOccurs = new decimal(1);
  2416. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2417. sequence.Items.Add(any2);
  2418. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2419. attribute1.Name = "namespace";
  2420. attribute1.FixedValue = ds.Namespace;
  2421. type.Attributes.Add(attribute1);
  2422. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2423. attribute2.Name = "tableTypeName";
  2424. attribute2.FixedValue = "запрос_2DataTable";
  2425. type.Attributes.Add(attribute2);
  2426. type.Particle = sequence;
  2427. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2428. if (xs.Contains(dsSchema.TargetNamespace)) {
  2429. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2430. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2431. try {
  2432. global::System.Xml.Schema.XmlSchema schema = null;
  2433. dsSchema.Write(s1);
  2434. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2435. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2436. s2.SetLength(0);
  2437. schema.Write(s2);
  2438. if ((s1.Length == s2.Length)) {
  2439. s1.Position = 0;
  2440. s2.Position = 0;
  2441. for (; ((s1.Position != s1.Length)
  2442. && (s1.ReadByte() == s2.ReadByte())); ) {
  2443. ;
  2444. }
  2445. if ((s1.Position == s1.Length)) {
  2446. return type;
  2447. }
  2448. }
  2449. }
  2450. }
  2451. finally {
  2452. if ((s1 != null)) {
  2453. s1.Close();
  2454. }
  2455. if ((s2 != null)) {
  2456. s2.Close();
  2457. }
  2458. }
  2459. }
  2460. xs.Add(dsSchema);
  2461. return type;
  2462. }
  2463. }
  2464. /// <summary>
  2465. ///Represents the strongly named DataTable class.
  2466. ///</summary>
  2467. [global::System.Serializable()]
  2468. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2469. public partial class запрос_3DataTable : global::System.Data.TypedTableBase<запрос_3Row> {
  2470. private global::System.Data.DataColumn columnid_сотрудника;
  2471. private global::System.Data.DataColumn columnФИО;
  2472. private global::System.Data.DataColumn columnдолжность;
  2473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2475. public запрос_3DataTable() {
  2476. this.TableName = "запрос_3";
  2477. this.BeginInit();
  2478. this.InitClass();
  2479. this.EndInit();
  2480. }
  2481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2483. internal запрос_3DataTable(global::System.Data.DataTable table) {
  2484. this.TableName = table.TableName;
  2485. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2486. this.CaseSensitive = table.CaseSensitive;
  2487. }
  2488. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2489. this.Locale = table.Locale;
  2490. }
  2491. if ((table.Namespace != table.DataSet.Namespace)) {
  2492. this.Namespace = table.Namespace;
  2493. }
  2494. this.Prefix = table.Prefix;
  2495. this.MinimumCapacity = table.MinimumCapacity;
  2496. }
  2497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2499. protected запрос_3DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2500. base(info, context) {
  2501. this.InitVars();
  2502. }
  2503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2505. public global::System.Data.DataColumn id_сотрудникаColumn {
  2506. get {
  2507. return this.columnid_сотрудника;
  2508. }
  2509. }
  2510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2512. public global::System.Data.DataColumn ФИОColumn {
  2513. get {
  2514. return this.columnФИО;
  2515. }
  2516. }
  2517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2519. public global::System.Data.DataColumn должностьColumn {
  2520. get {
  2521. return this.columnдолжность;
  2522. }
  2523. }
  2524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2526. [global::System.ComponentModel.Browsable(false)]
  2527. public int Count {
  2528. get {
  2529. return this.Rows.Count;
  2530. }
  2531. }
  2532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2534. public запрос_3Row this[int index] {
  2535. get {
  2536. return ((запрос_3Row)(this.Rows[index]));
  2537. }
  2538. }
  2539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2540. public event запрос_3RowChangeEventHandler запрос_3RowChanging;
  2541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2542. public event запрос_3RowChangeEventHandler запрос_3RowChanged;
  2543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2544. public event запрос_3RowChangeEventHandler запрос_3RowDeleting;
  2545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2546. public event запрос_3RowChangeEventHandler запрос_3RowDeleted;
  2547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2549. public void Addзапрос_3Row(запрос_3Row row) {
  2550. this.Rows.Add(row);
  2551. }
  2552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2554. public запрос_3Row Addзапрос_3Row(string ФИО, string должность) {
  2555. запрос_3Row rowзапрос_3Row = ((запрос_3Row)(this.NewRow()));
  2556. object[] columnValuesArray = new object[] {
  2557. null,
  2558. ФИО,
  2559. должность};
  2560. rowзапрос_3Row.ItemArray = columnValuesArray;
  2561. this.Rows.Add(rowзапрос_3Row);
  2562. return rowзапрос_3Row;
  2563. }
  2564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2566. public запрос_3Row FindByid_сотрудника(int id_сотрудника) {
  2567. return ((запрос_3Row)(this.Rows.Find(new object[] {
  2568. id_сотрудника})));
  2569. }
  2570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2572. public override global::System.Data.DataTable Clone() {
  2573. запрос_3DataTable cln = ((запрос_3DataTable)(base.Clone()));
  2574. cln.InitVars();
  2575. return cln;
  2576. }
  2577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2579. protected override global::System.Data.DataTable CreateInstance() {
  2580. return new запрос_3DataTable();
  2581. }
  2582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2584. internal void InitVars() {
  2585. this.columnid_сотрудника = base.Columns["id_сотрудника"];
  2586. this.columnФИО = base.Columns["ФИО"];
  2587. this.columnдолжность = base.Columns["должность"];
  2588. }
  2589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2591. private void InitClass() {
  2592. this.columnid_сотрудника = new global::System.Data.DataColumn("id_сотрудника", typeof(int), null, global::System.Data.MappingType.Element);
  2593. base.Columns.Add(this.columnid_сотрудника);
  2594. this.columnФИО = new global::System.Data.DataColumn("ФИО", typeof(string), null, global::System.Data.MappingType.Element);
  2595. base.Columns.Add(this.columnФИО);
  2596. this.columnдолжность = new global::System.Data.DataColumn("должность", typeof(string), null, global::System.Data.MappingType.Element);
  2597. base.Columns.Add(this.columnдолжность);
  2598. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2599. this.columnid_сотрудника}, true));
  2600. this.columnid_сотрудника.AutoIncrement = true;
  2601. this.columnid_сотрудника.AutoIncrementSeed = -1;
  2602. this.columnid_сотрудника.AutoIncrementStep = -1;
  2603. this.columnid_сотрудника.AllowDBNull = false;
  2604. this.columnid_сотрудника.ReadOnly = true;
  2605. this.columnid_сотрудника.Unique = true;
  2606. this.columnФИО.MaxLength = 50;
  2607. this.columnдолжность.MaxLength = 50;
  2608. }
  2609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2611. public запрос_3Row Newзапрос_3Row() {
  2612. return ((запрос_3Row)(this.NewRow()));
  2613. }
  2614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2616. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2617. return new запрос_3Row(builder);
  2618. }
  2619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2621. protected override global::System.Type GetRowType() {
  2622. return typeof(запрос_3Row);
  2623. }
  2624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2626. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2627. base.OnRowChanged(e);
  2628. if ((this.запрос_3RowChanged != null)) {
  2629. this.запрос_3RowChanged(this, new запрос_3RowChangeEvent(((запрос_3Row)(e.Row)), e.Action));
  2630. }
  2631. }
  2632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2634. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2635. base.OnRowChanging(e);
  2636. if ((this.запрос_3RowChanging != null)) {
  2637. this.запрос_3RowChanging(this, new запрос_3RowChangeEvent(((запрос_3Row)(e.Row)), e.Action));
  2638. }
  2639. }
  2640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2642. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2643. base.OnRowDeleted(e);
  2644. if ((this.запрос_3RowDeleted != null)) {
  2645. this.запрос_3RowDeleted(this, new запрос_3RowChangeEvent(((запрос_3Row)(e.Row)), e.Action));
  2646. }
  2647. }
  2648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2650. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2651. base.OnRowDeleting(e);
  2652. if ((this.запрос_3RowDeleting != null)) {
  2653. this.запрос_3RowDeleting(this, new запрос_3RowChangeEvent(((запрос_3Row)(e.Row)), e.Action));
  2654. }
  2655. }
  2656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2658. public void Removeзапрос_3Row(запрос_3Row row) {
  2659. this.Rows.Remove(row);
  2660. }
  2661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2663. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2664. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2665. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2666. Starichikhina_remont_butovoy_texnikiDataSet ds = new Starichikhina_remont_butovoy_texnikiDataSet();
  2667. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2668. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2669. any1.MinOccurs = new decimal(0);
  2670. any1.MaxOccurs = decimal.MaxValue;
  2671. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2672. sequence.Items.Add(any1);
  2673. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2674. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2675. any2.MinOccurs = new decimal(1);
  2676. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2677. sequence.Items.Add(any2);
  2678. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2679. attribute1.Name = "namespace";
  2680. attribute1.FixedValue = ds.Namespace;
  2681. type.Attributes.Add(attribute1);
  2682. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2683. attribute2.Name = "tableTypeName";
  2684. attribute2.FixedValue = "запрос_3DataTable";
  2685. type.Attributes.Add(attribute2);
  2686. type.Particle = sequence;
  2687. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2688. if (xs.Contains(dsSchema.TargetNamespace)) {
  2689. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2690. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2691. try {
  2692. global::System.Xml.Schema.XmlSchema schema = null;
  2693. dsSchema.Write(s1);
  2694. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2695. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2696. s2.SetLength(0);
  2697. schema.Write(s2);
  2698. if ((s1.Length == s2.Length)) {
  2699. s1.Position = 0;
  2700. s2.Position = 0;
  2701. for (; ((s1.Position != s1.Length)
  2702. && (s1.ReadByte() == s2.ReadByte())); ) {
  2703. ;
  2704. }
  2705. if ((s1.Position == s1.Length)) {
  2706. return type;
  2707. }
  2708. }
  2709. }
  2710. }
  2711. finally {
  2712. if ((s1 != null)) {
  2713. s1.Close();
  2714. }
  2715. if ((s2 != null)) {
  2716. s2.Close();
  2717. }
  2718. }
  2719. }
  2720. xs.Add(dsSchema);
  2721. return type;
  2722. }
  2723. }
  2724. /// <summary>
  2725. ///Represents the strongly named DataTable class.
  2726. ///</summary>
  2727. [global::System.Serializable()]
  2728. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2729. public partial class ПредставлениеDataTable : global::System.Data.TypedTableBase<ПредставлениеRow> {
  2730. private global::System.Data.DataColumn columnнаим_товара;
  2731. private global::System.Data.DataColumn columnФИО;
  2732. private global::System.Data.DataColumn columnдолжность;
  2733. private global::System.Data.DataColumn columnвид_ремонта;
  2734. private global::System.Data.DataColumn columnдата_исполнения_заказа;
  2735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2737. public ПредставлениеDataTable() {
  2738. this.TableName = "Представление";
  2739. this.BeginInit();
  2740. this.InitClass();
  2741. this.EndInit();
  2742. }
  2743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2745. internal ПредставлениеDataTable(global::System.Data.DataTable table) {
  2746. this.TableName = table.TableName;
  2747. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2748. this.CaseSensitive = table.CaseSensitive;
  2749. }
  2750. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2751. this.Locale = table.Locale;
  2752. }
  2753. if ((table.Namespace != table.DataSet.Namespace)) {
  2754. this.Namespace = table.Namespace;
  2755. }
  2756. this.Prefix = table.Prefix;
  2757. this.MinimumCapacity = table.MinimumCapacity;
  2758. }
  2759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2761. protected ПредставлениеDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2762. base(info, context) {
  2763. this.InitVars();
  2764. }
  2765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2767. public global::System.Data.DataColumn наим_товараColumn {
  2768. get {
  2769. return this.columnнаим_товара;
  2770. }
  2771. }
  2772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2774. public global::System.Data.DataColumn ФИОColumn {
  2775. get {
  2776. return this.columnФИО;
  2777. }
  2778. }
  2779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2781. public global::System.Data.DataColumn должностьColumn {
  2782. get {
  2783. return this.columnдолжность;
  2784. }
  2785. }
  2786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2788. public global::System.Data.DataColumn вид_ремонтаColumn {
  2789. get {
  2790. return this.columnвид_ремонта;
  2791. }
  2792. }
  2793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2795. public global::System.Data.DataColumn дата_исполнения_заказаColumn {
  2796. get {
  2797. return this.columnдата_исполнения_заказа;
  2798. }
  2799. }
  2800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2802. [global::System.ComponentModel.Browsable(false)]
  2803. public int Count {
  2804. get {
  2805. return this.Rows.Count;
  2806. }
  2807. }
  2808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2810. public ПредставлениеRow this[int index] {
  2811. get {
  2812. return ((ПредставлениеRow)(this.Rows[index]));
  2813. }
  2814. }
  2815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2816. public event ПредставлениеRowChangeEventHandler ПредставлениеRowChanging;
  2817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2818. public event ПредставлениеRowChangeEventHandler ПредставлениеRowChanged;
  2819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2820. public event ПредставлениеRowChangeEventHandler ПредставлениеRowDeleting;
  2821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2822. public event ПредставлениеRowChangeEventHandler ПредставлениеRowDeleted;
  2823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2825. public void AddПредставлениеRow(ПредставлениеRow row) {
  2826. this.Rows.Add(row);
  2827. }
  2828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2830. public ПредставлениеRow AddПредставлениеRow(string наим_товара, string ФИО, string должность, string вид_ремонта, System.DateTime дата_исполнения_заказа) {
  2831. ПредставлениеRow rowПредставлениеRow = ((ПредставлениеRow)(this.NewRow()));
  2832. object[] columnValuesArray = new object[] {
  2833. наим_товара,
  2834. ФИО,
  2835. должность,
  2836. вид_ремонта,
  2837. дата_исполнения_заказа};
  2838. rowПредставлениеRow.ItemArray = columnValuesArray;
  2839. this.Rows.Add(rowПредставлениеRow);
  2840. return rowПредставлениеRow;
  2841. }
  2842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2844. public override global::System.Data.DataTable Clone() {
  2845. ПредставлениеDataTable cln = ((ПредставлениеDataTable)(base.Clone()));
  2846. cln.InitVars();
  2847. return cln;
  2848. }
  2849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2851. protected override global::System.Data.DataTable CreateInstance() {
  2852. return new ПредставлениеDataTable();
  2853. }
  2854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2856. internal void InitVars() {
  2857. this.columnнаим_товара = base.Columns["наим_товара"];
  2858. this.columnФИО = base.Columns["ФИО"];
  2859. this.columnдолжность = base.Columns["должность"];
  2860. this.columnвид_ремонта = base.Columns["вид_ремонта"];
  2861. this.columnдата_исполнения_заказа = base.Columns["дата_исполнения_заказа"];
  2862. }
  2863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2865. private void InitClass() {
  2866. this.columnнаим_товара = new global::System.Data.DataColumn("наим_товара", typeof(string), null, global::System.Data.MappingType.Element);
  2867. base.Columns.Add(this.columnнаим_товара);
  2868. this.columnФИО = new global::System.Data.DataColumn("ФИО", typeof(string), null, global::System.Data.MappingType.Element);
  2869. base.Columns.Add(this.columnФИО);
  2870. this.columnдолжность = new global::System.Data.DataColumn("должность", typeof(string), null, global::System.Data.MappingType.Element);
  2871. base.Columns.Add(this.columnдолжность);
  2872. this.columnвид_ремонта = new global::System.Data.DataColumn("вид_ремонта", typeof(string), null, global::System.Data.MappingType.Element);
  2873. base.Columns.Add(this.columnвид_ремонта);
  2874. this.columnдата_исполнения_заказа = new global::System.Data.DataColumn("дата_исполнения_заказа", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2875. base.Columns.Add(this.columnдата_исполнения_заказа);
  2876. this.columnнаим_товара.MaxLength = 50;
  2877. this.columnФИО.MaxLength = 50;
  2878. this.columnдолжность.MaxLength = 50;
  2879. this.columnвид_ремонта.MaxLength = 50;
  2880. }
  2881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2883. public ПредставлениеRow NewПредставлениеRow() {
  2884. return ((ПредставлениеRow)(this.NewRow()));
  2885. }
  2886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2888. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2889. return new ПредставлениеRow(builder);
  2890. }
  2891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2893. protected override global::System.Type GetRowType() {
  2894. return typeof(ПредставлениеRow);
  2895. }
  2896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2898. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2899. base.OnRowChanged(e);
  2900. if ((this.ПредставлениеRowChanged != null)) {
  2901. this.ПредставлениеRowChanged(this, new ПредставлениеRowChangeEvent(((ПредставлениеRow)(e.Row)), e.Action));
  2902. }
  2903. }
  2904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2906. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2907. base.OnRowChanging(e);
  2908. if ((this.ПредставлениеRowChanging != null)) {
  2909. this.ПредставлениеRowChanging(this, new ПредставлениеRowChangeEvent(((ПредставлениеRow)(e.Row)), e.Action));
  2910. }
  2911. }
  2912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2914. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2915. base.OnRowDeleted(e);
  2916. if ((this.ПредставлениеRowDeleted != null)) {
  2917. this.ПредставлениеRowDeleted(this, new ПредставлениеRowChangeEvent(((ПредставлениеRow)(e.Row)), e.Action));
  2918. }
  2919. }
  2920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2922. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2923. base.OnRowDeleting(e);
  2924. if ((this.ПредставлениеRowDeleting != null)) {
  2925. this.ПредставлениеRowDeleting(this, new ПредставлениеRowChangeEvent(((ПредставлениеRow)(e.Row)), e.Action));
  2926. }
  2927. }
  2928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2930. public void RemoveПредставлениеRow(ПредставлениеRow row) {
  2931. this.Rows.Remove(row);
  2932. }
  2933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2935. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2936. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2937. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2938. Starichikhina_remont_butovoy_texnikiDataSet ds = new Starichikhina_remont_butovoy_texnikiDataSet();
  2939. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2940. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2941. any1.MinOccurs = new decimal(0);
  2942. any1.MaxOccurs = decimal.MaxValue;
  2943. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2944. sequence.Items.Add(any1);
  2945. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2946. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2947. any2.MinOccurs = new decimal(1);
  2948. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2949. sequence.Items.Add(any2);
  2950. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2951. attribute1.Name = "namespace";
  2952. attribute1.FixedValue = ds.Namespace;
  2953. type.Attributes.Add(attribute1);
  2954. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2955. attribute2.Name = "tableTypeName";
  2956. attribute2.FixedValue = "ПредставлениеDataTable";
  2957. type.Attributes.Add(attribute2);
  2958. type.Particle = sequence;
  2959. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2960. if (xs.Contains(dsSchema.TargetNamespace)) {
  2961. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2962. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2963. try {
  2964. global::System.Xml.Schema.XmlSchema schema = null;
  2965. dsSchema.Write(s1);
  2966. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2967. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2968. s2.SetLength(0);
  2969. schema.Write(s2);
  2970. if ((s1.Length == s2.Length)) {
  2971. s1.Position = 0;
  2972. s2.Position = 0;
  2973. for (; ((s1.Position != s1.Length)
  2974. && (s1.ReadByte() == s2.ReadByte())); ) {
  2975. ;
  2976. }
  2977. if ((s1.Position == s1.Length)) {
  2978. return type;
  2979. }
  2980. }
  2981. }
  2982. }
  2983. finally {
  2984. if ((s1 != null)) {
  2985. s1.Close();
  2986. }
  2987. if ((s2 != null)) {
  2988. s2.Close();
  2989. }
  2990. }
  2991. }
  2992. xs.Add(dsSchema);
  2993. return type;
  2994. }
  2995. }
  2996. /// <summary>
  2997. ///Represents strongly named DataRow class.
  2998. ///</summary>
  2999. public partial class заказRow : global::System.Data.DataRow {
  3000. private заказDataTable tableзаказ;
  3001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3003. internal заказRow(global::System.Data.DataRowBuilder rb) :
  3004. base(rb) {
  3005. this.tableзаказ = ((заказDataTable)(this.Table));
  3006. }
  3007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3009. public int id_заказа {
  3010. get {
  3011. return ((int)(this[this.tableзаказ.id_заказаColumn]));
  3012. }
  3013. set {
  3014. this[this.tableзаказ.id_заказаColumn] = value;
  3015. }
  3016. }
  3017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3019. public string ФИО {
  3020. get {
  3021. try {
  3022. return ((string)(this[this.tableзаказ.ФИОColumn]));
  3023. }
  3024. catch (global::System.InvalidCastException e) {
  3025. throw new global::System.Data.StrongTypingException("Значение для столбца \'ФИО\' в таблице \'заказ\' равно DBNull.", e);
  3026. }
  3027. }
  3028. set {
  3029. this[this.tableзаказ.ФИОColumn] = value;
  3030. }
  3031. }
  3032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3034. public int id_товара {
  3035. get {
  3036. try {
  3037. return ((int)(this[this.tableзаказ.id_товараColumn]));
  3038. }
  3039. catch (global::System.InvalidCastException e) {
  3040. throw new global::System.Data.StrongTypingException("Значение для столбца \'id_товара\' в таблице \'заказ\' равно DBNull.", e);
  3041. }
  3042. }
  3043. set {
  3044. this[this.tableзаказ.id_товараColumn] = value;
  3045. }
  3046. }
  3047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3049. public bool гарантия {
  3050. get {
  3051. try {
  3052. return ((bool)(this[this.tableзаказ.гарантияColumn]));
  3053. }
  3054. catch (global::System.InvalidCastException e) {
  3055. throw new global::System.Data.StrongTypingException("Значение для столбца \'гарантия\' в таблице \'заказ\' равно DBNull.", e);
  3056. }
  3057. }
  3058. set {
  3059. this[this.tableзаказ.гарантияColumn] = value;
  3060. }
  3061. }
  3062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3064. public System.DateTime дата_поступления_заказа {
  3065. get {
  3066. try {
  3067. return ((global::System.DateTime)(this[this.tableзаказ.дата_поступления_заказаColumn]));
  3068. }
  3069. catch (global::System.InvalidCastException e) {
  3070. throw new global::System.Data.StrongTypingException("Значение для столбца \'дата_поступления_заказа\' в таблице \'заказ\' равно DBNull.", e);
  3071. }
  3072. }
  3073. set {
  3074. this[this.tableзаказ.дата_поступления_заказаColumn] = value;
  3075. }
  3076. }
  3077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3079. public decimal _телефон_клиента {
  3080. get {
  3081. try {
  3082. return ((decimal)(this[this.tableзаказ._телефон_клиентаColumn]));
  3083. }
  3084. catch (global::System.InvalidCastException e) {
  3085. throw new global::System.Data.StrongTypingException("Значение для столбца \'телефон-клиента\' в таблице \'заказ\' равно DBNull.", e);
  3086. }
  3087. }
  3088. set {
  3089. this[this.tableзаказ._телефон_клиентаColumn] = value;
  3090. }
  3091. }
  3092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3094. public ТоварыRow ТоварыRow {
  3095. get {
  3096. return ((ТоварыRow)(this.GetParentRow(this.Table.ParentRelations["FK_заказ_Товары"])));
  3097. }
  3098. set {
  3099. this.SetParentRow(value, this.Table.ParentRelations["FK_заказ_Товары"]);
  3100. }
  3101. }
  3102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3104. public bool IsФИОNull() {
  3105. return this.IsNull(this.tableзаказ.ФИОColumn);
  3106. }
  3107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3109. public void SetФИОNull() {
  3110. this[this.tableзаказ.ФИОColumn] = global::System.Convert.DBNull;
  3111. }
  3112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3114. public bool Isid_товараNull() {
  3115. return this.IsNull(this.tableзаказ.id_товараColumn);
  3116. }
  3117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3119. public void Setid_товараNull() {
  3120. this[this.tableзаказ.id_товараColumn] = global::System.Convert.DBNull;
  3121. }
  3122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3124. public bool IsгарантияNull() {
  3125. return this.IsNull(this.tableзаказ.гарантияColumn);
  3126. }
  3127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3129. public void SetгарантияNull() {
  3130. this[this.tableзаказ.гарантияColumn] = global::System.Convert.DBNull;
  3131. }
  3132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3134. public bool Isдата_поступления_заказаNull() {
  3135. return this.IsNull(this.tableзаказ.дата_поступления_заказаColumn);
  3136. }
  3137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3139. public void Setдата_поступления_заказаNull() {
  3140. this[this.tableзаказ.дата_поступления_заказаColumn] = global::System.Convert.DBNull;
  3141. }
  3142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3144. public bool Is_телефон_клиентаNull() {
  3145. return this.IsNull(this.tableзаказ._телефон_клиентаColumn);
  3146. }
  3147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3149. public void Set_телефон_клиентаNull() {
  3150. this[this.tableзаказ._телефон_клиентаColumn] = global::System.Convert.DBNull;
  3151. }
  3152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3154. public исполнение_заказовRow[] Getисполнение_заказовRows() {
  3155. if ((this.Table.ChildRelations["FK_исполнение_заказов_заказ"] == null)) {
  3156. return new исполнение_заказовRow[0];
  3157. }
  3158. else {
  3159. return ((исполнение_заказовRow[])(base.GetChildRows(this.Table.ChildRelations["FK_исполнение_заказов_заказ"])));
  3160. }
  3161. }
  3162. }
  3163. /// <summary>
  3164. ///Represents strongly named DataRow class.
  3165. ///</summary>
  3166. public partial class исполнение_заказовRow : global::System.Data.DataRow {
  3167. private исполнение_заказовDataTable tableисполнение_заказов;
  3168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3170. internal исполнение_заказовRow(global::System.Data.DataRowBuilder rb) :
  3171. base(rb) {
  3172. this.tableисполнение_заказов = ((исполнение_заказовDataTable)(this.Table));
  3173. }
  3174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3176. public int id_заказа {
  3177. get {
  3178. return ((int)(this[this.tableисполнение_заказов.id_заказаColumn]));
  3179. }
  3180. set {
  3181. this[this.tableисполнение_заказов.id_заказаColumn] = value;
  3182. }
  3183. }
  3184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3186. public string вид_ремонта {
  3187. get {
  3188. try {
  3189. return ((string)(this[this.tableисполнение_заказов.вид_ремонтаColumn]));
  3190. }
  3191. catch (global::System.InvalidCastException e) {
  3192. throw new global::System.Data.StrongTypingException("Значение для столбца \'вид_ремонта\' в таблице \'исполнение_заказов\' равно DBNull.", e);
  3193. }
  3194. }
  3195. set {
  3196. this[this.tableисполнение_заказов.вид_ремонтаColumn] = value;
  3197. }
  3198. }
  3199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3201. public string стоимость_ремонта {
  3202. get {
  3203. try {
  3204. return ((string)(this[this.tableисполнение_заказов.стоимость_ремонтаColumn]));
  3205. }
  3206. catch (global::System.InvalidCastException e) {
  3207. throw new global::System.Data.StrongTypingException("Значение для столбца \'стоимость_ремонта\' в таблице \'исполнение_заказов\' равно DBN" +
  3208. "ull.", e);
  3209. }
  3210. }
  3211. set {
  3212. this[this.tableисполнение_заказов.стоимость_ремонтаColumn] = value;
  3213. }
  3214. }
  3215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3217. public System.DateTime дата_исполнения_заказа {
  3218. get {
  3219. try {
  3220. return ((global::System.DateTime)(this[this.tableисполнение_заказов.дата_исполнения_заказаColumn]));
  3221. }
  3222. catch (global::System.InvalidCastException e) {
  3223. throw new global::System.Data.StrongTypingException("Значение для столбца \'дата_исполнения_заказа\' в таблице \'исполнение_заказов\' равн" +
  3224. "о DBNull.", e);
  3225. }
  3226. }
  3227. set {
  3228. this[this.tableисполнение_заказов.дата_исполнения_заказаColumn] = value;
  3229. }
  3230. }
  3231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3233. public bool сообщение_клиенту {
  3234. get {
  3235. try {
  3236. return ((bool)(this[this.tableисполнение_заказов.сообщение_клиентуColumn]));
  3237. }
  3238. catch (global::System.InvalidCastException e) {
  3239. throw new global::System.Data.StrongTypingException("Значение для столбца \'сообщение_клиенту\' в таблице \'исполнение_заказов\' равно DBN" +
  3240. "ull.", e);
  3241. }
  3242. }
  3243. set {
  3244. this[this.tableисполнение_заказов.сообщение_клиентуColumn] = value;
  3245. }
  3246. }
  3247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3249. public string дата_получения_товара {
  3250. get {
  3251. try {
  3252. return ((string)(this[this.tableисполнение_заказов.дата_получения_товараColumn]));
  3253. }
  3254. catch (global::System.InvalidCastException e) {
  3255. throw new global::System.Data.StrongTypingException("Значение для столбца \'дата_получения_товара\' в таблице \'исполнение_заказов\' равно" +
  3256. " DBNull.", e);
  3257. }
  3258. }
  3259. set {
  3260. this[this.tableисполнение_заказов.дата_получения_товараColumn] = value;
  3261. }
  3262. }
  3263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3265. public decimal сумма_оплаты_услуг {
  3266. get {
  3267. try {
  3268. return ((decimal)(this[this.tableисполнение_заказов.сумма_оплаты_услугColumn]));
  3269. }
  3270. catch (global::System.InvalidCastException e) {
  3271. throw new global::System.Data.StrongTypingException("Значение для столбца \'сумма_оплаты_услуг\' в таблице \'исполнение_заказов\' равно DB" +
  3272. "Null.", e);
  3273. }
  3274. }
  3275. set {
  3276. this[this.tableисполнение_заказов.сумма_оплаты_услугColumn] = value;
  3277. }
  3278. }
  3279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3281. public int id_сотрудника {
  3282. get {
  3283. return ((int)(this[this.tableисполнение_заказов.id_сотрудникаColumn]));
  3284. }
  3285. set {
  3286. this[this.tableисполнение_заказов.id_сотрудникаColumn] = value;
  3287. }
  3288. }
  3289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3291. public заказRow заказRow {
  3292. get {
  3293. return ((заказRow)(this.GetParentRow(this.Table.ParentRelations["FK_исполнение_заказов_заказ"])));
  3294. }
  3295. set {
  3296. this.SetParentRow(value, this.Table.ParentRelations["FK_исполнение_заказов_заказ"]);
  3297. }
  3298. }
  3299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3301. public bool Isвид_ремонтаNull() {
  3302. return this.IsNull(this.tableисполнение_заказов.вид_ремонтаColumn);
  3303. }
  3304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3306. public void Setвид_ремонтаNull() {
  3307. this[this.tableисполнение_заказов.вид_ремонтаColumn] = global::System.Convert.DBNull;
  3308. }
  3309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3311. public bool Isстоимость_ремонтаNull() {
  3312. return this.IsNull(this.tableисполнение_заказов.стоимость_ремонтаColumn);
  3313. }
  3314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3316. public void Setстоимость_ремонтаNull() {
  3317. this[this.tableисполнение_заказов.стоимость_ремонтаColumn] = global::System.Convert.DBNull;
  3318. }
  3319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3321. public bool Isдата_исполнения_заказаNull() {
  3322. return this.IsNull(this.tableисполнение_заказов.дата_исполнения_заказаColumn);
  3323. }
  3324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3326. public void Setдата_исполнения_заказаNull() {
  3327. this[this.tableисполнение_заказов.дата_исполнения_заказаColumn] = global::System.Convert.DBNull;
  3328. }
  3329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3331. public bool Isсообщение_клиентуNull() {
  3332. return this.IsNull(this.tableисполнение_заказов.сообщение_клиентуColumn);
  3333. }
  3334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3336. public void Setсообщение_клиентуNull() {
  3337. this[this.tableисполнение_заказов.сообщение_клиентуColumn] = global::System.Convert.DBNull;
  3338. }
  3339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3341. public bool Isдата_получения_товараNull() {
  3342. return this.IsNull(this.tableисполнение_заказов.дата_получения_товараColumn);
  3343. }
  3344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3346. public void Setдата_получения_товараNull() {
  3347. this[this.tableисполнение_заказов.дата_получения_товараColumn] = global::System.Convert.DBNull;
  3348. }
  3349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3351. public bool Isсумма_оплаты_услугNull() {
  3352. return this.IsNull(this.tableисполнение_заказов.сумма_оплаты_услугColumn);
  3353. }
  3354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3356. public void Setсумма_оплаты_услугNull() {
  3357. this[this.tableисполнение_заказов.сумма_оплаты_услугColumn] = global::System.Convert.DBNull;
  3358. }
  3359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3361. public сотрудники_исполнение_заказовRow[] Getсотрудники_исполнение_заказовRows() {
  3362. if ((this.Table.ChildRelations["FK_сотрудники_исполнение_заказов_исполнение_заказов"] == null)) {
  3363. return new сотрудники_исполнение_заказовRow[0];
  3364. }
  3365. else {
  3366. return ((сотрудники_исполнение_заказовRow[])(base.GetChildRows(this.Table.ChildRelations["FK_сотрудники_исполнение_заказов_исполнение_заказов"])));
  3367. }
  3368. }
  3369. }
  3370. /// <summary>
  3371. ///Represents strongly named DataRow class.
  3372. ///</summary>
  3373. public partial class сотрудникиRow : global::System.Data.DataRow {
  3374. private сотрудникиDataTable tableсотрудники;
  3375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3377. internal сотрудникиRow(global::System.Data.DataRowBuilder rb) :
  3378. base(rb) {
  3379. this.tableсотрудники = ((сотрудникиDataTable)(this.Table));
  3380. }
  3381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3383. public int id_сотрудника {
  3384. get {
  3385. return ((int)(this[this.tableсотрудники.id_сотрудникаColumn]));
  3386. }
  3387. set {
  3388. this[this.tableсотрудники.id_сотрудникаColumn] = value;
  3389. }
  3390. }
  3391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3393. public string ФИО {
  3394. get {
  3395. try {
  3396. return ((string)(this[this.tableсотрудники.ФИОColumn]));
  3397. }
  3398. catch (global::System.InvalidCastException e) {
  3399. throw new global::System.Data.StrongTypingException("Значение для столбца \'ФИО\' в таблице \'сотрудники\' равно DBNull.", e);
  3400. }
  3401. }
  3402. set {
  3403. this[this.tableсотрудники.ФИОColumn] = value;
  3404. }
  3405. }
  3406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3408. public string должность {
  3409. get {
  3410. try {
  3411. return ((string)(this[this.tableсотрудники.должностьColumn]));
  3412. }
  3413. catch (global::System.InvalidCastException e) {
  3414. throw new global::System.Data.StrongTypingException("Значение для столбца \'должность\' в таблице \'сотрудники\' равно DBNull.", e);
  3415. }
  3416. }
  3417. set {
  3418. this[this.tableсотрудники.должностьColumn] = value;
  3419. }
  3420. }
  3421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3423. public bool IsФИОNull() {
  3424. return this.IsNull(this.tableсотрудники.ФИОColumn);
  3425. }
  3426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3428. public void SetФИОNull() {
  3429. this[this.tableсотрудники.ФИОColumn] = global::System.Convert.DBNull;
  3430. }
  3431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3433. public bool IsдолжностьNull() {
  3434. return this.IsNull(this.tableсотрудники.должностьColumn);
  3435. }
  3436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3438. public void SetдолжностьNull() {
  3439. this[this.tableсотрудники.должностьColumn] = global::System.Convert.DBNull;
  3440. }
  3441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3443. public сотрудники_исполнение_заказовRow[] Getсотрудники_исполнение_заказовRows() {
  3444. if ((this.Table.ChildRelations["FK_сотрудники_исполнение_заказов_сотрудники"] == null)) {
  3445. return new сотрудники_исполнение_заказовRow[0];
  3446. }
  3447. else {
  3448. return ((сотрудники_исполнение_заказовRow[])(base.GetChildRows(this.Table.ChildRelations["FK_сотрудники_исполнение_заказов_сотрудники"])));
  3449. }
  3450. }
  3451. }
  3452. /// <summary>
  3453. ///Represents strongly named DataRow class.
  3454. ///</summary>
  3455. public partial class сотрудники_исполнение_заказовRow : global::System.Data.DataRow {
  3456. private сотрудники_исполнение_заказовDataTable tableсотрудники_исполнение_заказов;
  3457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3459. internal сотрудники_исполнение_заказовRow(global::System.Data.DataRowBuilder rb) :
  3460. base(rb) {
  3461. this.tableсотрудники_исполнение_заказов = ((сотрудники_исполнение_заказовDataTable)(this.Table));
  3462. }
  3463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3465. public int id_сотрудника {
  3466. get {
  3467. try {
  3468. return ((int)(this[this.tableсотрудники_исполнение_заказов.id_сотрудникаColumn]));
  3469. }
  3470. catch (global::System.InvalidCastException e) {
  3471. throw new global::System.Data.StrongTypingException("Значение для столбца \'id_сотрудника\' в таблице \'сотрудники_исполнение_заказов\' ра" +
  3472. "вно DBNull.", e);
  3473. }
  3474. }
  3475. set {
  3476. this[this.tableсотрудники_исполнение_заказов.id_сотрудникаColumn] = value;
  3477. }
  3478. }
  3479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3481. public int id_заказа {
  3482. get {
  3483. try {
  3484. return ((int)(this[this.tableсотрудники_исполнение_заказов.id_заказаColumn]));
  3485. }
  3486. catch (global::System.InvalidCastException e) {
  3487. throw new global::System.Data.StrongTypingException("Значение для столбца \'id_заказа\' в таблице \'сотрудники_исполнение_заказов\' равно " +
  3488. "DBNull.", e);
  3489. }
  3490. }
  3491. set {
  3492. this[this.tableсотрудники_исполнение_заказов.id_заказаColumn] = value;
  3493. }
  3494. }
  3495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3497. public исполнение_заказовRow исполнение_заказовRow {
  3498. get {
  3499. return ((исполнение_заказовRow)(this.GetParentRow(this.Table.ParentRelations["FK_сотрудники_исполнение_заказов_исполнение_заказов"])));
  3500. }
  3501. set {
  3502. this.SetParentRow(value, this.Table.ParentRelations["FK_сотрудники_исполнение_заказов_исполнение_заказов"]);
  3503. }
  3504. }
  3505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3507. public сотрудникиRow сотрудникиRow {
  3508. get {
  3509. return ((сотрудникиRow)(this.GetParentRow(this.Table.ParentRelations["FK_сотрудники_исполнение_заказов_сотрудники"])));
  3510. }
  3511. set {
  3512. this.SetParentRow(value, this.Table.ParentRelations["FK_сотрудники_исполнение_заказов_сотрудники"]);
  3513. }
  3514. }
  3515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3517. public bool Isid_сотрудникаNull() {
  3518. return this.IsNull(this.tableсотрудники_исполнение_заказов.id_сотрудникаColumn);
  3519. }
  3520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3522. public void Setid_сотрудникаNull() {
  3523. this[this.tableсотрудники_исполнение_заказов.id_сотрудникаColumn] = global::System.Convert.DBNull;
  3524. }
  3525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3527. public bool Isid_заказаNull() {
  3528. return this.IsNull(this.tableсотрудники_исполнение_заказов.id_заказаColumn);
  3529. }
  3530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3532. public void Setid_заказаNull() {
  3533. this[this.tableсотрудники_исполнение_заказов.id_заказаColumn] = global::System.Convert.DBNull;
  3534. }
  3535. }
  3536. /// <summary>
  3537. ///Represents strongly named DataRow class.
  3538. ///</summary>
  3539. public partial class ТоварыRow : global::System.Data.DataRow {
  3540. private ТоварыDataTable tableТовары;
  3541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3543. internal ТоварыRow(global::System.Data.DataRowBuilder rb) :
  3544. base(rb) {
  3545. this.tableТовары = ((ТоварыDataTable)(this.Table));
  3546. }
  3547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3549. public int id_товара {
  3550. get {
  3551. return ((int)(this[this.tableТовары.id_товараColumn]));
  3552. }
  3553. set {
  3554. this[this.tableТовары.id_товараColumn] = value;
  3555. }
  3556. }
  3557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3559. public string наим_товара {
  3560. get {
  3561. try {
  3562. return ((string)(this[this.tableТовары.наим_товараColumn]));
  3563. }
  3564. catch (global::System.InvalidCastException e) {
  3565. throw new global::System.Data.StrongTypingException("Значение для столбца \'наим_товара\' в таблице \'Товары\' равно DBNull.", e);
  3566. }
  3567. }
  3568. set {
  3569. this[this.tableТовары.наим_товараColumn] = value;
  3570. }
  3571. }
  3572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3574. public string фирма {
  3575. get {
  3576. try {
  3577. return ((string)(this[this.tableТовары.фирмаColumn]));
  3578. }
  3579. catch (global::System.InvalidCastException e) {
  3580. throw new global::System.Data.StrongTypingException("Значение для столбца \'фирма\' в таблице \'Товары\' равно DBNull.", e);
  3581. }
  3582. }
  3583. set {
  3584. this[this.tableТовары.фирмаColumn] = value;
  3585. }
  3586. }
  3587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3589. public string модель {
  3590. get {
  3591. try {
  3592. return ((string)(this[this.tableТовары.модельColumn]));
  3593. }
  3594. catch (global::System.InvalidCastException e) {
  3595. throw new global::System.Data.StrongTypingException("Значение для столбца \'модель\' в таблице \'Товары\' равно DBNull.", e);
  3596. }
  3597. }
  3598. set {
  3599. this[this.tableТовары.модельColumn] = value;
  3600. }
  3601. }
  3602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3604. public string технические_характеристики {
  3605. get {
  3606. try {
  3607. return ((string)(this[this.tableТовары.технические_характеристикиColumn]));
  3608. }
  3609. catch (global::System.InvalidCastException e) {
  3610. throw new global::System.Data.StrongTypingException("Значение для столбца \'технические_характеристики\' в таблице \'Товары\' равно DBNull" +
  3611. ".", e);
  3612. }
  3613. }
  3614. set {
  3615. this[this.tableТовары.технические_характеристикиColumn] = value;
  3616. }
  3617. }
  3618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3620. public string гарантированный_срок {
  3621. get {
  3622. try {
  3623. return ((string)(this[this.tableТовары.гарантированный_срокColumn]));
  3624. }
  3625. catch (global::System.InvalidCastException e) {
  3626. throw new global::System.Data.StrongTypingException("Значение для столбца \'гарантированный_срок\' в таблице \'Товары\' равно DBNull.", e);
  3627. }
  3628. }
  3629. set {
  3630. this[this.tableТовары.гарантированный_срокColumn] = value;
  3631. }
  3632. }
  3633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3635. public byte[] изображение {
  3636. get {
  3637. try {
  3638. return ((byte[])(this[this.tableТовары.изображениеColumn]));
  3639. }
  3640. catch (global::System.InvalidCastException e) {
  3641. throw new global::System.Data.StrongTypingException("Значение для столбца \'изображение\' в таблице \'Товары\' равно DBNull.", e);
  3642. }
  3643. }
  3644. set {
  3645. this[this.tableТовары.изображениеColumn] = value;
  3646. }
  3647. }
  3648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3650. public bool Isнаим_товараNull() {
  3651. return this.IsNull(this.tableТовары.наим_товараColumn);
  3652. }
  3653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3655. public void Setнаим_товараNull() {
  3656. this[this.tableТовары.наим_товараColumn] = global::System.Convert.DBNull;
  3657. }
  3658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3660. public bool IsфирмаNull() {
  3661. return this.IsNull(this.tableТовары.фирмаColumn);
  3662. }
  3663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3665. public void SetфирмаNull() {
  3666. this[this.tableТовары.фирмаColumn] = global::System.Convert.DBNull;
  3667. }
  3668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3670. public bool IsмодельNull() {
  3671. return this.IsNull(this.tableТовары.модельColumn);
  3672. }
  3673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3675. public void SetмодельNull() {
  3676. this[this.tableТовары.модельColumn] = global::System.Convert.DBNull;
  3677. }
  3678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3680. public bool Isтехнические_характеристикиNull() {
  3681. return this.IsNull(this.tableТовары.технические_характеристикиColumn);
  3682. }
  3683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3685. public void Setтехнические_характеристикиNull() {
  3686. this[this.tableТовары.технические_характеристикиColumn] = global::System.Convert.DBNull;
  3687. }
  3688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3690. public bool Isгарантированный_срокNull() {
  3691. return this.IsNull(this.tableТовары.гарантированный_срокColumn);
  3692. }
  3693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3695. public void Setгарантированный_срокNull() {
  3696. this[this.tableТовары.гарантированный_срокColumn] = global::System.Convert.DBNull;
  3697. }
  3698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3700. public bool IsизображениеNull() {
  3701. return this.IsNull(this.tableТовары.изображениеColumn);
  3702. }
  3703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3705. public void SetизображениеNull() {
  3706. this[this.tableТовары.изображениеColumn] = global::System.Convert.DBNull;
  3707. }
  3708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3710. public заказRow[] GetзаказRows() {
  3711. if ((this.Table.ChildRelations["FK_заказ_Товары"] == null)) {
  3712. return new заказRow[0];
  3713. }
  3714. else {
  3715. return ((заказRow[])(base.GetChildRows(this.Table.ChildRelations["FK_заказ_Товары"])));
  3716. }
  3717. }
  3718. }
  3719. /// <summary>
  3720. ///Represents strongly named DataRow class.
  3721. ///</summary>
  3722. public partial class zakazRow : global::System.Data.DataRow {
  3723. private zakazDataTable tablezakaz;
  3724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3726. internal zakazRow(global::System.Data.DataRowBuilder rb) :
  3727. base(rb) {
  3728. this.tablezakaz = ((zakazDataTable)(this.Table));
  3729. }
  3730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3732. public int id_заказа {
  3733. get {
  3734. return ((int)(this[this.tablezakaz.id_заказаColumn]));
  3735. }
  3736. set {
  3737. this[this.tablezakaz.id_заказаColumn] = value;
  3738. }
  3739. }
  3740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3742. public bool гарантия {
  3743. get {
  3744. try {
  3745. return ((bool)(this[this.tablezakaz.гарантияColumn]));
  3746. }
  3747. catch (global::System.InvalidCastException e) {
  3748. throw new global::System.Data.StrongTypingException("Значение для столбца \'гарантия\' в таблице \'zakaz\' равно DBNull.", e);
  3749. }
  3750. }
  3751. set {
  3752. this[this.tablezakaz.гарантияColumn] = value;
  3753. }
  3754. }
  3755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3757. public int id_сотрудника {
  3758. get {
  3759. return ((int)(this[this.tablezakaz.id_сотрудникаColumn]));
  3760. }
  3761. set {
  3762. this[this.tablezakaz.id_сотрудникаColumn] = value;
  3763. }
  3764. }
  3765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3767. public bool IsгарантияNull() {
  3768. return this.IsNull(this.tablezakaz.гарантияColumn);
  3769. }
  3770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3772. public void SetгарантияNull() {
  3773. this[this.tablezakaz.гарантияColumn] = global::System.Convert.DBNull;
  3774. }
  3775. }
  3776. /// <summary>
  3777. ///Represents strongly named DataRow class.
  3778. ///</summary>
  3779. public partial class запрос_2Row : global::System.Data.DataRow {
  3780. private запрос_2DataTable tableзапрос_2;
  3781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3783. internal запрос_2Row(global::System.Data.DataRowBuilder rb) :
  3784. base(rb) {
  3785. this.tableзапрос_2 = ((запрос_2DataTable)(this.Table));
  3786. }
  3787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3789. public int id_сотрудника {
  3790. get {
  3791. return ((int)(this[this.tableзапрос_2.id_сотрудникаColumn]));
  3792. }
  3793. set {
  3794. this[this.tableзапрос_2.id_сотрудникаColumn] = value;
  3795. }
  3796. }
  3797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3799. public string ФИО {
  3800. get {
  3801. try {
  3802. return ((string)(this[this.tableзапрос_2.ФИОColumn]));
  3803. }
  3804. catch (global::System.InvalidCastException e) {
  3805. throw new global::System.Data.StrongTypingException("Значение для столбца \'ФИО\' в таблице \'запрос_2\' равно DBNull.", e);
  3806. }
  3807. }
  3808. set {
  3809. this[this.tableзапрос_2.ФИОColumn] = value;
  3810. }
  3811. }
  3812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3814. public string вид_ремонта {
  3815. get {
  3816. try {
  3817. return ((string)(this[this.tableзапрос_2.вид_ремонтаColumn]));
  3818. }
  3819. catch (global::System.InvalidCastException e) {
  3820. throw new global::System.Data.StrongTypingException("Значение для столбца \'вид_ремонта\' в таблице \'запрос_2\' равно DBNull.", e);
  3821. }
  3822. }
  3823. set {
  3824. this[this.tableзапрос_2.вид_ремонтаColumn] = value;
  3825. }
  3826. }
  3827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3829. public bool IsФИОNull() {
  3830. return this.IsNull(this.tableзапрос_2.ФИОColumn);
  3831. }
  3832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3834. public void SetФИОNull() {
  3835. this[this.tableзапрос_2.ФИОColumn] = global::System.Convert.DBNull;
  3836. }
  3837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3839. public bool Isвид_ремонтаNull() {
  3840. return this.IsNull(this.tableзапрос_2.вид_ремонтаColumn);
  3841. }
  3842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3844. public void Setвид_ремонтаNull() {
  3845. this[this.tableзапрос_2.вид_ремонтаColumn] = global::System.Convert.DBNull;
  3846. }
  3847. }
  3848. /// <summary>
  3849. ///Represents strongly named DataRow class.
  3850. ///</summary>
  3851. public partial class запрос_3Row : global::System.Data.DataRow {
  3852. private запрос_3DataTable tableзапрос_3;
  3853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3855. internal запрос_3Row(global::System.Data.DataRowBuilder rb) :
  3856. base(rb) {
  3857. this.tableзапрос_3 = ((запрос_3DataTable)(this.Table));
  3858. }
  3859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3861. public int id_сотрудника {
  3862. get {
  3863. return ((int)(this[this.tableзапрос_3.id_сотрудникаColumn]));
  3864. }
  3865. set {
  3866. this[this.tableзапрос_3.id_сотрудникаColumn] = value;
  3867. }
  3868. }
  3869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3871. public string ФИО {
  3872. get {
  3873. try {
  3874. return ((string)(this[this.tableзапрос_3.ФИОColumn]));
  3875. }
  3876. catch (global::System.InvalidCastException e) {
  3877. throw new global::System.Data.StrongTypingException("Значение для столбца \'ФИО\' в таблице \'запрос_3\' равно DBNull.", e);
  3878. }
  3879. }
  3880. set {
  3881. this[this.tableзапрос_3.ФИОColumn] = value;
  3882. }
  3883. }
  3884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3886. public string должность {
  3887. get {
  3888. try {
  3889. return ((string)(this[this.tableзапрос_3.должностьColumn]));
  3890. }
  3891. catch (global::System.InvalidCastException e) {
  3892. throw new global::System.Data.StrongTypingException("Значение для столбца \'должность\' в таблице \'запрос_3\' равно DBNull.", e);
  3893. }
  3894. }
  3895. set {
  3896. this[this.tableзапрос_3.должностьColumn] = value;
  3897. }
  3898. }
  3899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3901. public bool IsФИОNull() {
  3902. return this.IsNull(this.tableзапрос_3.ФИОColumn);
  3903. }
  3904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3906. public void SetФИОNull() {
  3907. this[this.tableзапрос_3.ФИОColumn] = global::System.Convert.DBNull;
  3908. }
  3909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3911. public bool IsдолжностьNull() {
  3912. return this.IsNull(this.tableзапрос_3.должностьColumn);
  3913. }
  3914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3916. public void SetдолжностьNull() {
  3917. this[this.tableзапрос_3.должностьColumn] = global::System.Convert.DBNull;
  3918. }
  3919. }
  3920. /// <summary>
  3921. ///Represents strongly named DataRow class.
  3922. ///</summary>
  3923. public partial class ПредставлениеRow : global::System.Data.DataRow {
  3924. private ПредставлениеDataTable tableПредставление;
  3925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3927. internal ПредставлениеRow(global::System.Data.DataRowBuilder rb) :
  3928. base(rb) {
  3929. this.tableПредставление = ((ПредставлениеDataTable)(this.Table));
  3930. }
  3931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3933. public string наим_товара {
  3934. get {
  3935. try {
  3936. return ((string)(this[this.tableПредставление.наим_товараColumn]));
  3937. }
  3938. catch (global::System.InvalidCastException e) {
  3939. throw new global::System.Data.StrongTypingException("Значение для столбца \'наим_товара\' в таблице \'Представление\' равно DBNull.", e);
  3940. }
  3941. }
  3942. set {
  3943. this[this.tableПредставление.наим_товараColumn] = value;
  3944. }
  3945. }
  3946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3948. public string ФИО {
  3949. get {
  3950. try {
  3951. return ((string)(this[this.tableПредставление.ФИОColumn]));
  3952. }
  3953. catch (global::System.InvalidCastException e) {
  3954. throw new global::System.Data.StrongTypingException("Значение для столбца \'ФИО\' в таблице \'Представление\' равно DBNull.", e);
  3955. }
  3956. }
  3957. set {
  3958. this[this.tableПредставление.ФИОColumn] = value;
  3959. }
  3960. }
  3961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3963. public string должность {
  3964. get {
  3965. try {
  3966. return ((string)(this[this.tableПредставление.должностьColumn]));
  3967. }
  3968. catch (global::System.InvalidCastException e) {
  3969. throw new global::System.Data.StrongTypingException("Значение для столбца \'должность\' в таблице \'Представление\' равно DBNull.", e);
  3970. }
  3971. }
  3972. set {
  3973. this[this.tableПредставление.должностьColumn] = value;
  3974. }
  3975. }
  3976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3978. public string вид_ремонта {
  3979. get {
  3980. try {
  3981. return ((string)(this[this.tableПредставление.вид_ремонтаColumn]));
  3982. }
  3983. catch (global::System.InvalidCastException e) {
  3984. throw new global::System.Data.StrongTypingException("Значение для столбца \'вид_ремонта\' в таблице \'Представление\' равно DBNull.", e);
  3985. }
  3986. }
  3987. set {
  3988. this[this.tableПредставление.вид_ремонтаColumn] = value;
  3989. }
  3990. }
  3991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3993. public System.DateTime дата_исполнения_заказа {
  3994. get {
  3995. try {
  3996. return ((global::System.DateTime)(this[this.tableПредставление.дата_исполнения_заказаColumn]));
  3997. }
  3998. catch (global::System.InvalidCastException e) {
  3999. throw new global::System.Data.StrongTypingException("Значение для столбца \'дата_исполнения_заказа\' в таблице \'Представление\' равно DBN" +
  4000. "ull.", e);
  4001. }
  4002. }
  4003. set {
  4004. this[this.tableПредставление.дата_исполнения_заказаColumn] = value;
  4005. }
  4006. }
  4007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4009. public bool Isнаим_товараNull() {
  4010. return this.IsNull(this.tableПредставление.наим_товараColumn);
  4011. }
  4012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4014. public void Setнаим_товараNull() {
  4015. this[this.tableПредставление.наим_товараColumn] = global::System.Convert.DBNull;
  4016. }
  4017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4019. public bool IsФИОNull() {
  4020. return this.IsNull(this.tableПредставление.ФИОColumn);
  4021. }
  4022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4024. public void SetФИОNull() {
  4025. this[this.tableПредставление.ФИОColumn] = global::System.Convert.DBNull;
  4026. }
  4027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4029. public bool IsдолжностьNull() {
  4030. return this.IsNull(this.tableПредставление.должностьColumn);
  4031. }
  4032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4034. public void SetдолжностьNull() {
  4035. this[this.tableПредставление.должностьColumn] = global::System.Convert.DBNull;
  4036. }
  4037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4039. public bool Isвид_ремонтаNull() {
  4040. return this.IsNull(this.tableПредставление.вид_ремонтаColumn);
  4041. }
  4042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4044. public void Setвид_ремонтаNull() {
  4045. this[this.tableПредставление.вид_ремонтаColumn] = global::System.Convert.DBNull;
  4046. }
  4047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4049. public bool Isдата_исполнения_заказаNull() {
  4050. return this.IsNull(this.tableПредставление.дата_исполнения_заказаColumn);
  4051. }
  4052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4054. public void Setдата_исполнения_заказаNull() {
  4055. this[this.tableПредставление.дата_исполнения_заказаColumn] = global::System.Convert.DBNull;
  4056. }
  4057. }
  4058. /// <summary>
  4059. ///Row event argument class
  4060. ///</summary>
  4061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4062. public class заказRowChangeEvent : global::System.EventArgs {
  4063. private заказRow eventRow;
  4064. private global::System.Data.DataRowAction eventAction;
  4065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4067. public заказRowChangeEvent(заказRow row, global::System.Data.DataRowAction action) {
  4068. this.eventRow = row;
  4069. this.eventAction = action;
  4070. }
  4071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4073. public заказRow Row {
  4074. get {
  4075. return this.eventRow;
  4076. }
  4077. }
  4078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4080. public global::System.Data.DataRowAction Action {
  4081. get {
  4082. return this.eventAction;
  4083. }
  4084. }
  4085. }
  4086. /// <summary>
  4087. ///Row event argument class
  4088. ///</summary>
  4089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4090. public class исполнение_заказовRowChangeEvent : global::System.EventArgs {
  4091. private исполнение_заказовRow eventRow;
  4092. private global::System.Data.DataRowAction eventAction;
  4093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4095. public исполнение_заказовRowChangeEvent(исполнение_заказовRow row, global::System.Data.DataRowAction action) {
  4096. this.eventRow = row;
  4097. this.eventAction = action;
  4098. }
  4099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4101. public исполнение_заказовRow Row {
  4102. get {
  4103. return this.eventRow;
  4104. }
  4105. }
  4106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4108. public global::System.Data.DataRowAction Action {
  4109. get {
  4110. return this.eventAction;
  4111. }
  4112. }
  4113. }
  4114. /// <summary>
  4115. ///Row event argument class
  4116. ///</summary>
  4117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4118. public class сотрудникиRowChangeEvent : global::System.EventArgs {
  4119. private сотрудникиRow eventRow;
  4120. private global::System.Data.DataRowAction eventAction;
  4121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4123. public сотрудникиRowChangeEvent(сотрудникиRow row, global::System.Data.DataRowAction action) {
  4124. this.eventRow = row;
  4125. this.eventAction = action;
  4126. }
  4127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4129. public сотрудникиRow Row {
  4130. get {
  4131. return this.eventRow;
  4132. }
  4133. }
  4134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4136. public global::System.Data.DataRowAction Action {
  4137. get {
  4138. return this.eventAction;
  4139. }
  4140. }
  4141. }
  4142. /// <summary>
  4143. ///Row event argument class
  4144. ///</summary>
  4145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4146. public class сотрудники_исполнение_заказовRowChangeEvent : global::System.EventArgs {
  4147. private сотрудники_исполнение_заказовRow eventRow;
  4148. private global::System.Data.DataRowAction eventAction;
  4149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4151. public сотрудники_исполнение_заказовRowChangeEvent(сотрудники_исполнение_заказовRow row, global::System.Data.DataRowAction action) {
  4152. this.eventRow = row;
  4153. this.eventAction = action;
  4154. }
  4155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4157. public сотрудники_исполнение_заказовRow Row {
  4158. get {
  4159. return this.eventRow;
  4160. }
  4161. }
  4162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4164. public global::System.Data.DataRowAction Action {
  4165. get {
  4166. return this.eventAction;
  4167. }
  4168. }
  4169. }
  4170. /// <summary>
  4171. ///Row event argument class
  4172. ///</summary>
  4173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4174. public class ТоварыRowChangeEvent : global::System.EventArgs {
  4175. private ТоварыRow eventRow;
  4176. private global::System.Data.DataRowAction eventAction;
  4177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4179. public ТоварыRowChangeEvent(ТоварыRow row, global::System.Data.DataRowAction action) {
  4180. this.eventRow = row;
  4181. this.eventAction = action;
  4182. }
  4183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4185. public ТоварыRow Row {
  4186. get {
  4187. return this.eventRow;
  4188. }
  4189. }
  4190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4192. public global::System.Data.DataRowAction Action {
  4193. get {
  4194. return this.eventAction;
  4195. }
  4196. }
  4197. }
  4198. /// <summary>
  4199. ///Row event argument class
  4200. ///</summary>
  4201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4202. public class zakazRowChangeEvent : global::System.EventArgs {
  4203. private zakazRow eventRow;
  4204. private global::System.Data.DataRowAction eventAction;
  4205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4207. public zakazRowChangeEvent(zakazRow row, global::System.Data.DataRowAction action) {
  4208. this.eventRow = row;
  4209. this.eventAction = action;
  4210. }
  4211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4213. public zakazRow Row {
  4214. get {
  4215. return this.eventRow;
  4216. }
  4217. }
  4218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4220. public global::System.Data.DataRowAction Action {
  4221. get {
  4222. return this.eventAction;
  4223. }
  4224. }
  4225. }
  4226. /// <summary>
  4227. ///Row event argument class
  4228. ///</summary>
  4229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4230. public class запрос_2RowChangeEvent : global::System.EventArgs {
  4231. private запрос_2Row eventRow;
  4232. private global::System.Data.DataRowAction eventAction;
  4233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4235. public запрос_2RowChangeEvent(запрос_2Row row, global::System.Data.DataRowAction action) {
  4236. this.eventRow = row;
  4237. this.eventAction = action;
  4238. }
  4239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4241. public запрос_2Row Row {
  4242. get {
  4243. return this.eventRow;
  4244. }
  4245. }
  4246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4248. public global::System.Data.DataRowAction Action {
  4249. get {
  4250. return this.eventAction;
  4251. }
  4252. }
  4253. }
  4254. /// <summary>
  4255. ///Row event argument class
  4256. ///</summary>
  4257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4258. public class запрос_3RowChangeEvent : global::System.EventArgs {
  4259. private запрос_3Row eventRow;
  4260. private global::System.Data.DataRowAction eventAction;
  4261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4263. public запрос_3RowChangeEvent(запрос_3Row row, global::System.Data.DataRowAction action) {
  4264. this.eventRow = row;
  4265. this.eventAction = action;
  4266. }
  4267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4269. public запрос_3Row Row {
  4270. get {
  4271. return this.eventRow;
  4272. }
  4273. }
  4274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4276. public global::System.Data.DataRowAction Action {
  4277. get {
  4278. return this.eventAction;
  4279. }
  4280. }
  4281. }
  4282. /// <summary>
  4283. ///Row event argument class
  4284. ///</summary>
  4285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4286. public class ПредставлениеRowChangeEvent : global::System.EventArgs {
  4287. private ПредставлениеRow eventRow;
  4288. private global::System.Data.DataRowAction eventAction;
  4289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4291. public ПредставлениеRowChangeEvent(ПредставлениеRow row, global::System.Data.DataRowAction action) {
  4292. this.eventRow = row;
  4293. this.eventAction = action;
  4294. }
  4295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4297. public ПредставлениеRow Row {
  4298. get {
  4299. return this.eventRow;
  4300. }
  4301. }
  4302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4304. public global::System.Data.DataRowAction Action {
  4305. get {
  4306. return this.eventAction;
  4307. }
  4308. }
  4309. }
  4310. }
  4311. }
  4312. namespace Starichkxina_remont_bytovoy_texniki.Starichikhina_remont_butovoy_texnikiDataSetTableAdapters {
  4313. /// <summary>
  4314. ///Represents the connection and commands used to retrieve and save data.
  4315. ///</summary>
  4316. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4317. [global::System.ComponentModel.ToolboxItem(true)]
  4318. [global::System.ComponentModel.DataObjectAttribute(true)]
  4319. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4320. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4321. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4322. public partial class заказTableAdapter : global::System.ComponentModel.Component {
  4323. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4324. private global::System.Data.SqlClient.SqlConnection _connection;
  4325. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4326. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4327. private bool _clearBeforeFill;
  4328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4330. public заказTableAdapter() {
  4331. this.ClearBeforeFill = true;
  4332. }
  4333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4335. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4336. get {
  4337. if ((this._adapter == null)) {
  4338. this.InitAdapter();
  4339. }
  4340. return this._adapter;
  4341. }
  4342. }
  4343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4345. internal global::System.Data.SqlClient.SqlConnection Connection {
  4346. get {
  4347. if ((this._connection == null)) {
  4348. this.InitConnection();
  4349. }
  4350. return this._connection;
  4351. }
  4352. set {
  4353. this._connection = value;
  4354. if ((this.Adapter.InsertCommand != null)) {
  4355. this.Adapter.InsertCommand.Connection = value;
  4356. }
  4357. if ((this.Adapter.DeleteCommand != null)) {
  4358. this.Adapter.DeleteCommand.Connection = value;
  4359. }
  4360. if ((this.Adapter.UpdateCommand != null)) {
  4361. this.Adapter.UpdateCommand.Connection = value;
  4362. }
  4363. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4364. if ((this.CommandCollection[i] != null)) {
  4365. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4366. }
  4367. }
  4368. }
  4369. }
  4370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4372. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4373. get {
  4374. return this._transaction;
  4375. }
  4376. set {
  4377. this._transaction = value;
  4378. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4379. this.CommandCollection[i].Transaction = this._transaction;
  4380. }
  4381. if (((this.Adapter != null)
  4382. && (this.Adapter.DeleteCommand != null))) {
  4383. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4384. }
  4385. if (((this.Adapter != null)
  4386. && (this.Adapter.InsertCommand != null))) {
  4387. this.Adapter.InsertCommand.Transaction = this._transaction;
  4388. }
  4389. if (((this.Adapter != null)
  4390. && (this.Adapter.UpdateCommand != null))) {
  4391. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4392. }
  4393. }
  4394. }
  4395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4397. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4398. get {
  4399. if ((this._commandCollection == null)) {
  4400. this.InitCommandCollection();
  4401. }
  4402. return this._commandCollection;
  4403. }
  4404. }
  4405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4407. public bool ClearBeforeFill {
  4408. get {
  4409. return this._clearBeforeFill;
  4410. }
  4411. set {
  4412. this._clearBeforeFill = value;
  4413. }
  4414. }
  4415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4417. private void InitAdapter() {
  4418. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4419. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4420. tableMapping.SourceTable = "Table";
  4421. tableMapping.DataSetTable = "заказ";
  4422. tableMapping.ColumnMappings.Add("id_заказа", "id_заказа");
  4423. tableMapping.ColumnMappings.Add("ФИО", "ФИО");
  4424. tableMapping.ColumnMappings.Add("id_товара", "id_товара");
  4425. tableMapping.ColumnMappings.Add("гарантия", "гарантия");
  4426. tableMapping.ColumnMappings.Add("дата_поступления_заказа", "дата_поступления_заказа");
  4427. tableMapping.ColumnMappings.Add("телефон-клиента", "телефон-клиента");
  4428. this._adapter.TableMappings.Add(tableMapping);
  4429. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4430. this._adapter.DeleteCommand.Connection = this.Connection;
  4431. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[заказ] WHERE (([id_заказа] = @Original_id_заказа) AND ((@IsNull_ФИО = 1 AND [ФИО] IS NULL) OR ([ФИО] = @Original_ФИО)) AND ((@IsNull_id_товара = 1 AND [id_товара] IS NULL) OR ([id_товара] = @Original_id_товара)) AND ((@IsNull_гарантия = 1 AND [гарантия] IS NULL) OR ([гарантия] = @Original_гарантия)) AND ((@IsNull_дата_поступления_заказа = 1 AND [дата_поступления_заказа] IS NULL) OR ([дата_поступления_заказа] = @Original_дата_поступления_заказа)) AND ((@p3 = 1 AND [телефон-клиента] IS NULL) OR ([телефон-клиента] = @p2)))";
  4432. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4433. 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, "", "", ""));
  4434. 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, "", "", ""));
  4435. 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, "", "", ""));
  4436. 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, "", "", ""));
  4437. 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, "", "", ""));
  4438. 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, "", "", ""));
  4439. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_гарантия", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "гарантия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4440. 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, "", "", ""));
  4441. 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, "", "", ""));
  4442. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "телефон-клиента", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4443. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p2", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "телефон-клиента", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4444. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4445. this._adapter.InsertCommand.Connection = this.Connection;
  4446. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[заказ] ([ФИО], [id_товара], [гарантия], [дата_поступления_заказа], [телефон-клиента]) VALUES (@ФИО, @id_товара, @гарантия, @дата_поступления_заказа, @p1);
  4447. SELECT id_заказа, ФИО, id_товара, гарантия, дата_поступления_заказа, [телефон-клиента] FROM заказ WHERE (id_заказа = SCOPE_IDENTITY())";
  4448. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4449. 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, "", "", ""));
  4450. 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, "", "", ""));
  4451. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@гарантия", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "гарантия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4452. 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, "", "", ""));
  4453. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "телефон-клиента", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4454. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4455. this._adapter.UpdateCommand.Connection = this.Connection;
  4456. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[заказ] SET [ФИО] = @ФИО, [id_товара] = @id_товара, [гарантия] = @гарантия, [дата_поступления_заказа] = @дата_поступления_заказа, [телефон-клиента] = @p1 WHERE (([id_заказа] = @Original_id_заказа) AND ((@IsNull_ФИО = 1 AND [ФИО] IS NULL) OR ([ФИО] = @Original_ФИО)) AND ((@IsNull_id_товара = 1 AND [id_товара] IS NULL) OR ([id_товара] = @Original_id_товара)) AND ((@IsNull_гарантия = 1 AND [гарантия] IS NULL) OR ([гарантия] = @Original_гарантия)) AND ((@IsNull_дата_поступления_заказа = 1 AND [дата_поступления_заказа] IS NULL) OR ([дата_поступления_заказа] = @Original_дата_поступления_заказа)) AND ((@p3 = 1 AND [телефон-клиента] IS NULL) OR ([телефон-клиента] = @p2)));
  4457. SELECT id_заказа, ФИО, id_товара, гарантия, дата_поступления_заказа, [телефон-клиента] FROM заказ WHERE (id_заказа = @id_заказа)";
  4458. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4459. 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, "", "", ""));
  4460. 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, "", "", ""));
  4461. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@гарантия", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "гарантия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4462. 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, "", "", ""));
  4463. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "телефон-клиента", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4464. 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, "", "", ""));
  4465. 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, "", "", ""));
  4466. 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, "", "", ""));
  4467. 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, "", "", ""));
  4468. 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, "", "", ""));
  4469. 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, "", "", ""));
  4470. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_гарантия", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "гарантия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4471. 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, "", "", ""));
  4472. 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, "", "", ""));
  4473. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "телефон-клиента", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4474. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p2", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "телефон-клиента", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4475. 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, "", "", ""));
  4476. }
  4477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4479. private void InitConnection() {
  4480. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4481. this._connection.ConnectionString = global::Starichkxina_remont_bytovoy_texniki.Properties.Settings.Default.Starichikhina_remont_butovoy_texnikiConnectionString;
  4482. }
  4483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4485. private void InitCommandCollection() {
  4486. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4487. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4488. this._commandCollection[0].Connection = this.Connection;
  4489. this._commandCollection[0].CommandText = "SELECT id_заказа, ФИО, id_товара, гарантия, дата_поступления_заказа, [телефон-кли" +
  4490. "ента] FROM dbo.заказ";
  4491. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4492. }
  4493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4495. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4496. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4497. public virtual int Fill(Starichikhina_remont_butovoy_texnikiDataSet.заказDataTable dataTable) {
  4498. this.Adapter.SelectCommand = this.CommandCollection[0];
  4499. if ((this.ClearBeforeFill == true)) {
  4500. dataTable.Clear();
  4501. }
  4502. int returnValue = this.Adapter.Fill(dataTable);
  4503. return returnValue;
  4504. }
  4505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4507. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4508. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4509. public virtual Starichikhina_remont_butovoy_texnikiDataSet.заказDataTable GetData() {
  4510. this.Adapter.SelectCommand = this.CommandCollection[0];
  4511. Starichikhina_remont_butovoy_texnikiDataSet.заказDataTable dataTable = new Starichikhina_remont_butovoy_texnikiDataSet.заказDataTable();
  4512. this.Adapter.Fill(dataTable);
  4513. return dataTable;
  4514. }
  4515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4517. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4518. public virtual int Update(Starichikhina_remont_butovoy_texnikiDataSet.заказDataTable dataTable) {
  4519. return this.Adapter.Update(dataTable);
  4520. }
  4521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4523. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4524. public virtual int Update(Starichikhina_remont_butovoy_texnikiDataSet dataSet) {
  4525. return this.Adapter.Update(dataSet, "заказ");
  4526. }
  4527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4529. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4530. public virtual int Update(global::System.Data.DataRow dataRow) {
  4531. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4532. dataRow});
  4533. }
  4534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4536. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4537. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4538. return this.Adapter.Update(dataRows);
  4539. }
  4540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4542. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4543. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4544. public virtual int Delete(int Original_id_заказа, string Original_ФИО, global::System.Nullable<int> Original_id_товара, global::System.Nullable<bool> Original_гарантия, global::System.Nullable<global::System.DateTime> Original_дата_поступления_заказа, global::System.Nullable<decimal> p2) {
  4545. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_заказа));
  4546. if ((Original_ФИО == null)) {
  4547. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4548. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4549. }
  4550. else {
  4551. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4552. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_ФИО));
  4553. }
  4554. if ((Original_id_товара.HasValue == true)) {
  4555. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4556. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_id_товара.Value));
  4557. }
  4558. else {
  4559. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4560. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4561. }
  4562. if ((Original_гарантия.HasValue == true)) {
  4563. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4564. this.Adapter.DeleteCommand.Parameters[6].Value = ((bool)(Original_гарантия.Value));
  4565. }
  4566. else {
  4567. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4568. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4569. }
  4570. if ((Original_дата_поступления_заказа.HasValue == true)) {
  4571. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  4572. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_дата_поступления_заказа.Value));
  4573. }
  4574. else {
  4575. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  4576. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  4577. }
  4578. if ((p2.HasValue == true)) {
  4579. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  4580. this.Adapter.DeleteCommand.Parameters[10].Value = ((decimal)(p2.Value));
  4581. }
  4582. else {
  4583. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  4584. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  4585. }
  4586. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4587. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4588. != global::System.Data.ConnectionState.Open)) {
  4589. this.Adapter.DeleteCommand.Connection.Open();
  4590. }
  4591. try {
  4592. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4593. return returnValue;
  4594. }
  4595. finally {
  4596. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4597. this.Adapter.DeleteCommand.Connection.Close();
  4598. }
  4599. }
  4600. }
  4601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4603. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4604. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4605. public virtual int Insert(string ФИО, global::System.Nullable<int> id_товара, global::System.Nullable<bool> гарантия, global::System.Nullable<global::System.DateTime> дата_поступления_заказа, global::System.Nullable<decimal> p1) {
  4606. if ((ФИО == null)) {
  4607. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4608. }
  4609. else {
  4610. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(ФИО));
  4611. }
  4612. if ((id_товара.HasValue == true)) {
  4613. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(id_товара.Value));
  4614. }
  4615. else {
  4616. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4617. }
  4618. if ((гарантия.HasValue == true)) {
  4619. this.Adapter.InsertCommand.Parameters[2].Value = ((bool)(гарантия.Value));
  4620. }
  4621. else {
  4622. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4623. }
  4624. if ((дата_поступления_заказа.HasValue == true)) {
  4625. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(дата_поступления_заказа.Value));
  4626. }
  4627. else {
  4628. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4629. }
  4630. if ((p1.HasValue == true)) {
  4631. this.Adapter.InsertCommand.Parameters[4].Value = ((decimal)(p1.Value));
  4632. }
  4633. else {
  4634. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  4635. }
  4636. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4637. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4638. != global::System.Data.ConnectionState.Open)) {
  4639. this.Adapter.InsertCommand.Connection.Open();
  4640. }
  4641. try {
  4642. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4643. return returnValue;
  4644. }
  4645. finally {
  4646. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4647. this.Adapter.InsertCommand.Connection.Close();
  4648. }
  4649. }
  4650. }
  4651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4653. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4654. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4655. public virtual int Update(string ФИО, global::System.Nullable<int> id_товара, global::System.Nullable<bool> гарантия, global::System.Nullable<global::System.DateTime> дата_поступления_заказа, global::System.Nullable<decimal> p1, int Original_id_заказа, string Original_ФИО, global::System.Nullable<int> Original_id_товара, global::System.Nullable<bool> Original_гарантия, global::System.Nullable<global::System.DateTime> Original_дата_поступления_заказа, global::System.Nullable<decimal> p2, int id_заказа) {
  4656. if ((ФИО == null)) {
  4657. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4658. }
  4659. else {
  4660. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(ФИО));
  4661. }
  4662. if ((id_товара.HasValue == true)) {
  4663. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(id_товара.Value));
  4664. }
  4665. else {
  4666. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4667. }
  4668. if ((гарантия.HasValue == true)) {
  4669. this.Adapter.UpdateCommand.Parameters[2].Value = ((bool)(гарантия.Value));
  4670. }
  4671. else {
  4672. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4673. }
  4674. if ((дата_поступления_заказа.HasValue == true)) {
  4675. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(дата_поступления_заказа.Value));
  4676. }
  4677. else {
  4678. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4679. }
  4680. if ((p1.HasValue == true)) {
  4681. this.Adapter.UpdateCommand.Parameters[4].Value = ((decimal)(p1.Value));
  4682. }
  4683. else {
  4684. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4685. }
  4686. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_id_заказа));
  4687. if ((Original_ФИО == null)) {
  4688. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  4689. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  4690. }
  4691. else {
  4692. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  4693. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_ФИО));
  4694. }
  4695. if ((Original_id_товара.HasValue == true)) {
  4696. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  4697. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_id_товара.Value));
  4698. }
  4699. else {
  4700. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  4701. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  4702. }
  4703. if ((Original_гарантия.HasValue == true)) {
  4704. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  4705. this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(Original_гарантия.Value));
  4706. }
  4707. else {
  4708. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  4709. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  4710. }
  4711. if ((Original_дата_поступления_заказа.HasValue == true)) {
  4712. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  4713. this.Adapter.UpdateCommand.Parameters[13].Value = ((System.DateTime)(Original_дата_поступления_заказа.Value));
  4714. }
  4715. else {
  4716. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  4717. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  4718. }
  4719. if ((p2.HasValue == true)) {
  4720. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  4721. this.Adapter.UpdateCommand.Parameters[15].Value = ((decimal)(p2.Value));
  4722. }
  4723. else {
  4724. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  4725. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  4726. }
  4727. this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(id_заказа));
  4728. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4729. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4730. != global::System.Data.ConnectionState.Open)) {
  4731. this.Adapter.UpdateCommand.Connection.Open();
  4732. }
  4733. try {
  4734. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4735. return returnValue;
  4736. }
  4737. finally {
  4738. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4739. this.Adapter.UpdateCommand.Connection.Close();
  4740. }
  4741. }
  4742. }
  4743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4745. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4746. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4747. public virtual int Update(string ФИО, global::System.Nullable<int> id_товара, global::System.Nullable<bool> гарантия, global::System.Nullable<global::System.DateTime> дата_поступления_заказа, global::System.Nullable<decimal> p1, int Original_id_заказа, string Original_ФИО, global::System.Nullable<int> Original_id_товара, global::System.Nullable<bool> Original_гарантия, global::System.Nullable<global::System.DateTime> Original_дата_поступления_заказа, global::System.Nullable<decimal> p2) {
  4748. return this.Update(ФИО, id_товара, гарантия, дата_поступления_заказа, p1, Original_id_заказа, Original_ФИО, Original_id_товара, Original_гарантия, Original_дата_поступления_заказа, p2, Original_id_заказа);
  4749. }
  4750. }
  4751. /// <summary>
  4752. ///Represents the connection and commands used to retrieve and save data.
  4753. ///</summary>
  4754. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4755. [global::System.ComponentModel.ToolboxItem(true)]
  4756. [global::System.ComponentModel.DataObjectAttribute(true)]
  4757. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4758. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4759. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4760. public partial class исполнение_заказовTableAdapter : global::System.ComponentModel.Component {
  4761. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4762. private global::System.Data.SqlClient.SqlConnection _connection;
  4763. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4764. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4765. private bool _clearBeforeFill;
  4766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4768. public исполнение_заказовTableAdapter() {
  4769. this.ClearBeforeFill = true;
  4770. }
  4771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4773. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4774. get {
  4775. if ((this._adapter == null)) {
  4776. this.InitAdapter();
  4777. }
  4778. return this._adapter;
  4779. }
  4780. }
  4781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4783. internal global::System.Data.SqlClient.SqlConnection Connection {
  4784. get {
  4785. if ((this._connection == null)) {
  4786. this.InitConnection();
  4787. }
  4788. return this._connection;
  4789. }
  4790. set {
  4791. this._connection = value;
  4792. if ((this.Adapter.InsertCommand != null)) {
  4793. this.Adapter.InsertCommand.Connection = value;
  4794. }
  4795. if ((this.Adapter.DeleteCommand != null)) {
  4796. this.Adapter.DeleteCommand.Connection = value;
  4797. }
  4798. if ((this.Adapter.UpdateCommand != null)) {
  4799. this.Adapter.UpdateCommand.Connection = value;
  4800. }
  4801. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4802. if ((this.CommandCollection[i] != null)) {
  4803. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4804. }
  4805. }
  4806. }
  4807. }
  4808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4810. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4811. get {
  4812. return this._transaction;
  4813. }
  4814. set {
  4815. this._transaction = value;
  4816. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4817. this.CommandCollection[i].Transaction = this._transaction;
  4818. }
  4819. if (((this.Adapter != null)
  4820. && (this.Adapter.DeleteCommand != null))) {
  4821. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4822. }
  4823. if (((this.Adapter != null)
  4824. && (this.Adapter.InsertCommand != null))) {
  4825. this.Adapter.InsertCommand.Transaction = this._transaction;
  4826. }
  4827. if (((this.Adapter != null)
  4828. && (this.Adapter.UpdateCommand != null))) {
  4829. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4830. }
  4831. }
  4832. }
  4833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4835. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4836. get {
  4837. if ((this._commandCollection == null)) {
  4838. this.InitCommandCollection();
  4839. }
  4840. return this._commandCollection;
  4841. }
  4842. }
  4843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4845. public bool ClearBeforeFill {
  4846. get {
  4847. return this._clearBeforeFill;
  4848. }
  4849. set {
  4850. this._clearBeforeFill = value;
  4851. }
  4852. }
  4853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4855. private void InitAdapter() {
  4856. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4857. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4858. tableMapping.SourceTable = "Table";
  4859. tableMapping.DataSetTable = "исполнение_заказов";
  4860. tableMapping.ColumnMappings.Add("id_заказа", "id_заказа");
  4861. tableMapping.ColumnMappings.Add("вид_ремонта", "вид_ремонта");
  4862. tableMapping.ColumnMappings.Add("стоимость_ремонта", "стоимость_ремонта");
  4863. tableMapping.ColumnMappings.Add("дата_исполнения_заказа", "дата_исполнения_заказа");
  4864. tableMapping.ColumnMappings.Add("сообщение_клиенту", "сообщение_клиенту");
  4865. tableMapping.ColumnMappings.Add("дата_получения_товара", "дата_получения_товара");
  4866. tableMapping.ColumnMappings.Add("сумма_оплаты_услуг", "сумма_оплаты_услуг");
  4867. tableMapping.ColumnMappings.Add("id_сотрудника", "id_сотрудника");
  4868. this._adapter.TableMappings.Add(tableMapping);
  4869. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4870. this._adapter.DeleteCommand.Connection = this.Connection;
  4871. 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_дата_получения_товара = 1 AND [дата_получения_товара] IS NULL) OR ([дата_получения_товара] = @Original_дата_получения_товара)) AND ((@IsNull_сумма_оплаты_услуг = 1 AND [сумма_оплаты_услуг] IS NULL) OR ([сумма_оплаты_услуг] = @Original_сумма_оплаты_услуг)) AND ([id_сотрудника] = @Original_id_сотрудника))";
  4872. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4873. 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, "", "", ""));
  4874. 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, "", "", ""));
  4875. 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, "", "", ""));
  4876. 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, "", "", ""));
  4877. 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, "", "", ""));
  4878. 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, "", "", ""));
  4879. 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, "", "", ""));
  4880. 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, "", "", ""));
  4881. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_сообщение_клиенту", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "сообщение_клиенту", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4882. 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, "", "", ""));
  4883. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_дата_получения_товара", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "дата_получения_товара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4884. 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, "", "", ""));
  4885. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_сумма_оплаты_услуг", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "сумма_оплаты_услуг", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4886. 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, "", "", ""));
  4887. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4888. this._adapter.InsertCommand.Connection = this.Connection;
  4889. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[исполнение_заказов] ([вид_ремонта], [стоимость_ремонта], [дата_исполнения_заказа], [сообщение_клиенту], [дата_получения_товара], [сумма_оплаты_услуг], [id_сотрудника]) VALUES (@вид_ремонта, @стоимость_ремонта, @дата_исполнения_заказа, @сообщение_клиенту, @дата_получения_товара, @сумма_оплаты_услуг, @id_сотрудника);
  4890. SELECT id_заказа, вид_ремонта, стоимость_ремонта, дата_исполнения_заказа, сообщение_клиенту, дата_получения_товара, сумма_оплаты_услуг, id_сотрудника FROM исполнение_заказов WHERE (id_заказа = SCOPE_IDENTITY())";
  4891. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4892. 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, "", "", ""));
  4893. 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, "", "", ""));
  4894. 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, "", "", ""));
  4895. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@сообщение_клиенту", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "сообщение_клиенту", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4896. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@дата_получения_товара", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "дата_получения_товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4897. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@сумма_оплаты_услуг", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "сумма_оплаты_услуг", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4898. 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, "", "", ""));
  4899. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4900. this._adapter.UpdateCommand.Connection = this.Connection;
  4901. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[исполнение_заказов] SET [вид_ремонта] = @вид_ремонта, [стоимость_ремонта] = @стоимость_ремонта, [дата_исполнения_заказа] = @дата_исполнения_заказа, [сообщение_клиенту] = @сообщение_клиенту, [дата_получения_товара] = @дата_получения_товара, [сумма_оплаты_услуг] = @сумма_оплаты_услуг, [id_сотрудника] = @id_сотрудника WHERE (([id_заказа] = @Original_id_заказа) AND ((@IsNull_вид_ремонта = 1 AND [вид_ремонта] IS NULL) OR ([вид_ремонта] = @Original_вид_ремонта)) AND ((@IsNull_стоимость_ремонта = 1 AND [стоимость_ремонта] IS NULL) OR ([стоимость_ремонта] = @Original_стоимость_ремонта)) AND ((@IsNull_дата_исполнения_заказа = 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 ([id_сотрудника] = @Original_id_сотрудника));
  4902. SELECT id_заказа, вид_ремонта, стоимость_ремонта, дата_исполнения_заказа, сообщение_клиенту, дата_получения_товара, сумма_оплаты_услуг, id_сотрудника FROM исполнение_заказов WHERE (id_заказа = @id_заказа)";
  4903. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4904. 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, "", "", ""));
  4905. 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, "", "", ""));
  4906. 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, "", "", ""));
  4907. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@сообщение_клиенту", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "сообщение_клиенту", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4908. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@дата_получения_товара", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "дата_получения_товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4909. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@сумма_оплаты_услуг", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "сумма_оплаты_услуг", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4910. 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, "", "", ""));
  4911. 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, "", "", ""));
  4912. 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, "", "", ""));
  4913. 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, "", "", ""));
  4914. 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, "", "", ""));
  4915. 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, "", "", ""));
  4916. 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, "", "", ""));
  4917. 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, "", "", ""));
  4918. 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, "", "", ""));
  4919. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_сообщение_клиенту", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "сообщение_клиенту", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4920. 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, "", "", ""));
  4921. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_дата_получения_товара", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "дата_получения_товара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4922. 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, "", "", ""));
  4923. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_сумма_оплаты_услуг", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "сумма_оплаты_услуг", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4924. 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, "", "", ""));
  4925. 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, "", "", ""));
  4926. }
  4927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4929. private void InitConnection() {
  4930. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4931. this._connection.ConnectionString = global::Starichkxina_remont_bytovoy_texniki.Properties.Settings.Default.Starichikhina_remont_butovoy_texnikiConnectionString;
  4932. }
  4933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4935. private void InitCommandCollection() {
  4936. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4937. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4938. this._commandCollection[0].Connection = this.Connection;
  4939. this._commandCollection[0].CommandText = "SELECT id_заказа, вид_ремонта, стоимость_ремонта, дата_исполнения_заказа, сообщен" +
  4940. "ие_клиенту, дата_получения_товара, сумма_оплаты_услуг, id_сотрудника FROM dbo.ис" +
  4941. "полнение_заказов";
  4942. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4943. }
  4944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4946. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4947. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4948. public virtual int Fill(Starichikhina_remont_butovoy_texnikiDataSet.исполнение_заказовDataTable dataTable) {
  4949. this.Adapter.SelectCommand = this.CommandCollection[0];
  4950. if ((this.ClearBeforeFill == true)) {
  4951. dataTable.Clear();
  4952. }
  4953. int returnValue = this.Adapter.Fill(dataTable);
  4954. return returnValue;
  4955. }
  4956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4958. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4959. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4960. public virtual Starichikhina_remont_butovoy_texnikiDataSet.исполнение_заказовDataTable GetData() {
  4961. this.Adapter.SelectCommand = this.CommandCollection[0];
  4962. Starichikhina_remont_butovoy_texnikiDataSet.исполнение_заказовDataTable dataTable = new Starichikhina_remont_butovoy_texnikiDataSet.исполнение_заказовDataTable();
  4963. this.Adapter.Fill(dataTable);
  4964. return dataTable;
  4965. }
  4966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4968. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4969. public virtual int Update(Starichikhina_remont_butovoy_texnikiDataSet.исполнение_заказовDataTable dataTable) {
  4970. return this.Adapter.Update(dataTable);
  4971. }
  4972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4974. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4975. public virtual int Update(Starichikhina_remont_butovoy_texnikiDataSet dataSet) {
  4976. return this.Adapter.Update(dataSet, "исполнение_заказов");
  4977. }
  4978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4980. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4981. public virtual int Update(global::System.Data.DataRow dataRow) {
  4982. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4983. dataRow});
  4984. }
  4985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4987. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4988. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4989. return this.Adapter.Update(dataRows);
  4990. }
  4991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4993. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4994. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4995. public virtual int Delete(int Original_id_заказа, string Original_вид_ремонта, string Original_стоимость_ремонта, global::System.Nullable<global::System.DateTime> Original_дата_исполнения_заказа, global::System.Nullable<bool> Original_сообщение_клиенту, string Original_дата_получения_товара, global::System.Nullable<decimal> Original_сумма_оплаты_услуг, int Original_id_сотрудника) {
  4996. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_заказа));
  4997. if ((Original_вид_ремонта == null)) {
  4998. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4999. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5000. }
  5001. else {
  5002. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5003. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_вид_ремонта));
  5004. }
  5005. if ((Original_стоимость_ремонта == null)) {
  5006. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5007. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5008. }
  5009. else {
  5010. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5011. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_стоимость_ремонта));
  5012. }
  5013. if ((Original_дата_исполнения_заказа.HasValue == true)) {
  5014. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5015. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_дата_исполнения_заказа.Value));
  5016. }
  5017. else {
  5018. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5019. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5020. }
  5021. if ((Original_сообщение_клиенту.HasValue == true)) {
  5022. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  5023. this.Adapter.DeleteCommand.Parameters[8].Value = ((bool)(Original_сообщение_клиенту.Value));
  5024. }
  5025. else {
  5026. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  5027. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  5028. }
  5029. if ((Original_дата_получения_товара == null)) {
  5030. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  5031. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  5032. }
  5033. else {
  5034. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  5035. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_дата_получения_товара));
  5036. }
  5037. if ((Original_сумма_оплаты_услуг.HasValue == true)) {
  5038. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  5039. this.Adapter.DeleteCommand.Parameters[12].Value = ((decimal)(Original_сумма_оплаты_услуг.Value));
  5040. }
  5041. else {
  5042. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  5043. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  5044. }
  5045. this.Adapter.DeleteCommand.Parameters[13].Value = ((int)(Original_id_сотрудника));
  5046. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5047. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5048. != global::System.Data.ConnectionState.Open)) {
  5049. this.Adapter.DeleteCommand.Connection.Open();
  5050. }
  5051. try {
  5052. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5053. return returnValue;
  5054. }
  5055. finally {
  5056. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5057. this.Adapter.DeleteCommand.Connection.Close();
  5058. }
  5059. }
  5060. }
  5061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5063. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5064. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5065. public virtual int Insert(string вид_ремонта, string стоимость_ремонта, global::System.Nullable<global::System.DateTime> дата_исполнения_заказа, global::System.Nullable<bool> сообщение_клиенту, string дата_получения_товара, global::System.Nullable<decimal> сумма_оплаты_услуг, int id_сотрудника) {
  5066. if ((вид_ремонта == null)) {
  5067. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5068. }
  5069. else {
  5070. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(вид_ремонта));
  5071. }
  5072. if ((стоимость_ремонта == null)) {
  5073. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5074. }
  5075. else {
  5076. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(стоимость_ремонта));
  5077. }
  5078. if ((дата_исполнения_заказа.HasValue == true)) {
  5079. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(дата_исполнения_заказа.Value));
  5080. }
  5081. else {
  5082. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5083. }
  5084. if ((сообщение_клиенту.HasValue == true)) {
  5085. this.Adapter.InsertCommand.Parameters[3].Value = ((bool)(сообщение_клиенту.Value));
  5086. }
  5087. else {
  5088. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5089. }
  5090. if ((дата_получения_товара == null)) {
  5091. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5092. }
  5093. else {
  5094. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(дата_получения_товара));
  5095. }
  5096. if ((сумма_оплаты_услуг.HasValue == true)) {
  5097. this.Adapter.InsertCommand.Parameters[5].Value = ((decimal)(сумма_оплаты_услуг.Value));
  5098. }
  5099. else {
  5100. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  5101. }
  5102. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(id_сотрудника));
  5103. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5104. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5105. != global::System.Data.ConnectionState.Open)) {
  5106. this.Adapter.InsertCommand.Connection.Open();
  5107. }
  5108. try {
  5109. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5110. return returnValue;
  5111. }
  5112. finally {
  5113. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5114. this.Adapter.InsertCommand.Connection.Close();
  5115. }
  5116. }
  5117. }
  5118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5120. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5121. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5122. public virtual int Update(
  5123. string вид_ремонта,
  5124. string стоимость_ремонта,
  5125. global::System.Nullable<global::System.DateTime> дата_исполнения_заказа,
  5126. global::System.Nullable<bool> сообщение_клиенту,
  5127. string дата_получения_товара,
  5128. global::System.Nullable<decimal> сумма_оплаты_услуг,
  5129. int id_сотрудника,
  5130. int Original_id_заказа,
  5131. string Original_вид_ремонта,
  5132. string Original_стоимость_ремонта,
  5133. global::System.Nullable<global::System.DateTime> Original_дата_исполнения_заказа,
  5134. global::System.Nullable<bool> Original_сообщение_клиенту,
  5135. string Original_дата_получения_товара,
  5136. global::System.Nullable<decimal> Original_сумма_оплаты_услуг,
  5137. int Original_id_сотрудника,
  5138. int id_заказа) {
  5139. if ((вид_ремонта == null)) {
  5140. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5141. }
  5142. else {
  5143. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(вид_ремонта));
  5144. }
  5145. if ((стоимость_ремонта == null)) {
  5146. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5147. }
  5148. else {
  5149. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(стоимость_ремонта));
  5150. }
  5151. if ((дата_исполнения_заказа.HasValue == true)) {
  5152. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(дата_исполнения_заказа.Value));
  5153. }
  5154. else {
  5155. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5156. }
  5157. if ((сообщение_клиенту.HasValue == true)) {
  5158. this.Adapter.UpdateCommand.Parameters[3].Value = ((bool)(сообщение_клиенту.Value));
  5159. }
  5160. else {
  5161. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5162. }
  5163. if ((дата_получения_товара == null)) {
  5164. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5165. }
  5166. else {
  5167. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(дата_получения_товара));
  5168. }
  5169. if ((сумма_оплаты_услуг.HasValue == true)) {
  5170. this.Adapter.UpdateCommand.Parameters[5].Value = ((decimal)(сумма_оплаты_услуг.Value));
  5171. }
  5172. else {
  5173. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5174. }
  5175. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(id_сотрудника));
  5176. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_id_заказа));
  5177. if ((Original_вид_ремонта == null)) {
  5178. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  5179. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  5180. }
  5181. else {
  5182. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  5183. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_вид_ремонта));
  5184. }
  5185. if ((Original_стоимость_ремонта == null)) {
  5186. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  5187. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  5188. }
  5189. else {
  5190. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  5191. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_стоимость_ремонта));
  5192. }
  5193. if ((Original_дата_исполнения_заказа.HasValue == true)) {
  5194. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  5195. this.Adapter.UpdateCommand.Parameters[13].Value = ((System.DateTime)(Original_дата_исполнения_заказа.Value));
  5196. }
  5197. else {
  5198. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  5199. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  5200. }
  5201. if ((Original_сообщение_клиенту.HasValue == true)) {
  5202. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  5203. this.Adapter.UpdateCommand.Parameters[15].Value = ((bool)(Original_сообщение_клиенту.Value));
  5204. }
  5205. else {
  5206. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  5207. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  5208. }
  5209. if ((Original_дата_получения_товара == null)) {
  5210. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  5211. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  5212. }
  5213. else {
  5214. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  5215. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_дата_получения_товара));
  5216. }
  5217. if ((Original_сумма_оплаты_услуг.HasValue == true)) {
  5218. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  5219. this.Adapter.UpdateCommand.Parameters[19].Value = ((decimal)(Original_сумма_оплаты_услуг.Value));
  5220. }
  5221. else {
  5222. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  5223. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  5224. }
  5225. this.Adapter.UpdateCommand.Parameters[20].Value = ((int)(Original_id_сотрудника));
  5226. this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(id_заказа));
  5227. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5228. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5229. != global::System.Data.ConnectionState.Open)) {
  5230. this.Adapter.UpdateCommand.Connection.Open();
  5231. }
  5232. try {
  5233. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5234. return returnValue;
  5235. }
  5236. finally {
  5237. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5238. this.Adapter.UpdateCommand.Connection.Close();
  5239. }
  5240. }
  5241. }
  5242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5244. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5245. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5246. public virtual int Update(string вид_ремонта, string стоимость_ремонта, global::System.Nullable<global::System.DateTime> дата_исполнения_заказа, global::System.Nullable<bool> сообщение_клиенту, string дата_получения_товара, global::System.Nullable<decimal> сумма_оплаты_услуг, int id_сотрудника, int Original_id_заказа, string Original_вид_ремонта, string Original_стоимость_ремонта, global::System.Nullable<global::System.DateTime> Original_дата_исполнения_заказа, global::System.Nullable<bool> Original_сообщение_клиенту, string Original_дата_получения_товара, global::System.Nullable<decimal> Original_сумма_оплаты_услуг, int Original_id_сотрудника) {
  5247. return this.Update(вид_ремонта, стоимость_ремонта, дата_исполнения_заказа, сообщение_клиенту, дата_получения_товара, сумма_оплаты_услуг, id_сотрудника, Original_id_заказа, Original_вид_ремонта, Original_стоимость_ремонта, Original_дата_исполнения_заказа, Original_сообщение_клиенту, Original_дата_получения_товара, Original_сумма_оплаты_услуг, Original_id_сотрудника, Original_id_заказа);
  5248. }
  5249. }
  5250. /// <summary>
  5251. ///Represents the connection and commands used to retrieve and save data.
  5252. ///</summary>
  5253. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5254. [global::System.ComponentModel.ToolboxItem(true)]
  5255. [global::System.ComponentModel.DataObjectAttribute(true)]
  5256. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5257. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5258. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5259. public partial class сотрудникиTableAdapter : global::System.ComponentModel.Component {
  5260. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5261. private global::System.Data.SqlClient.SqlConnection _connection;
  5262. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5263. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5264. private bool _clearBeforeFill;
  5265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5267. public сотрудникиTableAdapter() {
  5268. this.ClearBeforeFill = true;
  5269. }
  5270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5272. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5273. get {
  5274. if ((this._adapter == null)) {
  5275. this.InitAdapter();
  5276. }
  5277. return this._adapter;
  5278. }
  5279. }
  5280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5282. internal global::System.Data.SqlClient.SqlConnection Connection {
  5283. get {
  5284. if ((this._connection == null)) {
  5285. this.InitConnection();
  5286. }
  5287. return this._connection;
  5288. }
  5289. set {
  5290. this._connection = value;
  5291. if ((this.Adapter.InsertCommand != null)) {
  5292. this.Adapter.InsertCommand.Connection = value;
  5293. }
  5294. if ((this.Adapter.DeleteCommand != null)) {
  5295. this.Adapter.DeleteCommand.Connection = value;
  5296. }
  5297. if ((this.Adapter.UpdateCommand != null)) {
  5298. this.Adapter.UpdateCommand.Connection = value;
  5299. }
  5300. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5301. if ((this.CommandCollection[i] != null)) {
  5302. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5303. }
  5304. }
  5305. }
  5306. }
  5307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5309. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5310. get {
  5311. return this._transaction;
  5312. }
  5313. set {
  5314. this._transaction = value;
  5315. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5316. this.CommandCollection[i].Transaction = this._transaction;
  5317. }
  5318. if (((this.Adapter != null)
  5319. && (this.Adapter.DeleteCommand != null))) {
  5320. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5321. }
  5322. if (((this.Adapter != null)
  5323. && (this.Adapter.InsertCommand != null))) {
  5324. this.Adapter.InsertCommand.Transaction = this._transaction;
  5325. }
  5326. if (((this.Adapter != null)
  5327. && (this.Adapter.UpdateCommand != null))) {
  5328. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5329. }
  5330. }
  5331. }
  5332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5334. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5335. get {
  5336. if ((this._commandCollection == null)) {
  5337. this.InitCommandCollection();
  5338. }
  5339. return this._commandCollection;
  5340. }
  5341. }
  5342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5344. public bool ClearBeforeFill {
  5345. get {
  5346. return this._clearBeforeFill;
  5347. }
  5348. set {
  5349. this._clearBeforeFill = value;
  5350. }
  5351. }
  5352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5354. private void InitAdapter() {
  5355. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5356. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5357. tableMapping.SourceTable = "Table";
  5358. tableMapping.DataSetTable = "сотрудники";
  5359. tableMapping.ColumnMappings.Add("id_сотрудника", "id_сотрудника");
  5360. tableMapping.ColumnMappings.Add("ФИО", "ФИО");
  5361. tableMapping.ColumnMappings.Add("должность", "должность");
  5362. this._adapter.TableMappings.Add(tableMapping);
  5363. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5364. this._adapter.DeleteCommand.Connection = this.Connection;
  5365. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[сотрудники] WHERE (([id_сотрудника] = @Original_id_сотрудника)" +
  5366. " AND ((@IsNull_ФИО = 1 AND [ФИО] IS NULL) OR ([ФИО] = @Original_ФИО)) AND ((@IsN" +
  5367. "ull_должность = 1 AND [должность] IS NULL) OR ([должность] = @Original_должность" +
  5368. ")))";
  5369. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5370. 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, "", "", ""));
  5371. 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, "", "", ""));
  5372. 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, "", "", ""));
  5373. 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, "", "", ""));
  5374. 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, "", "", ""));
  5375. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5376. this._adapter.InsertCommand.Connection = this.Connection;
  5377. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[сотрудники] ([ФИО], [должность]) VALUES (@ФИО, @должность);\r\nS" +
  5378. "ELECT id_сотрудника, ФИО, должность FROM сотрудники WHERE (id_сотрудника = SCOPE" +
  5379. "_IDENTITY())";
  5380. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5381. 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, "", "", ""));
  5382. 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, "", "", ""));
  5383. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5384. this._adapter.UpdateCommand.Connection = this.Connection;
  5385. 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_должность)));
  5386. SELECT id_сотрудника, ФИО, должность FROM сотрудники WHERE (id_сотрудника = @id_сотрудника)";
  5387. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5388. 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, "", "", ""));
  5389. 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, "", "", ""));
  5390. 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, "", "", ""));
  5391. 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, "", "", ""));
  5392. 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, "", "", ""));
  5393. 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, "", "", ""));
  5394. 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, "", "", ""));
  5395. 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, "", "", ""));
  5396. }
  5397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5399. private void InitConnection() {
  5400. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5401. this._connection.ConnectionString = global::Starichkxina_remont_bytovoy_texniki.Properties.Settings.Default.Starichikhina_remont_butovoy_texnikiConnectionString;
  5402. }
  5403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5405. private void InitCommandCollection() {
  5406. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5407. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5408. this._commandCollection[0].Connection = this.Connection;
  5409. this._commandCollection[0].CommandText = "SELECT id_сотрудника, ФИО, должность FROM dbo.сотрудники";
  5410. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5411. }
  5412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5414. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5415. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5416. public virtual int Fill(Starichikhina_remont_butovoy_texnikiDataSet.сотрудникиDataTable dataTable) {
  5417. this.Adapter.SelectCommand = this.CommandCollection[0];
  5418. if ((this.ClearBeforeFill == true)) {
  5419. dataTable.Clear();
  5420. }
  5421. int returnValue = this.Adapter.Fill(dataTable);
  5422. return returnValue;
  5423. }
  5424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5426. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5427. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5428. public virtual Starichikhina_remont_butovoy_texnikiDataSet.сотрудникиDataTable GetData() {
  5429. this.Adapter.SelectCommand = this.CommandCollection[0];
  5430. Starichikhina_remont_butovoy_texnikiDataSet.сотрудникиDataTable dataTable = new Starichikhina_remont_butovoy_texnikiDataSet.сотрудникиDataTable();
  5431. this.Adapter.Fill(dataTable);
  5432. return dataTable;
  5433. }
  5434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5436. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5437. public virtual int Update(Starichikhina_remont_butovoy_texnikiDataSet.сотрудникиDataTable dataTable) {
  5438. return this.Adapter.Update(dataTable);
  5439. }
  5440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5442. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5443. public virtual int Update(Starichikhina_remont_butovoy_texnikiDataSet dataSet) {
  5444. return this.Adapter.Update(dataSet, "сотрудники");
  5445. }
  5446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5448. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5449. public virtual int Update(global::System.Data.DataRow dataRow) {
  5450. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5451. dataRow});
  5452. }
  5453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5455. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5456. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5457. return this.Adapter.Update(dataRows);
  5458. }
  5459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5461. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5462. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5463. public virtual int Delete(int Original_id_сотрудника, string Original_ФИО, string Original_должность) {
  5464. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_сотрудника));
  5465. if ((Original_ФИО == null)) {
  5466. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5467. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5468. }
  5469. else {
  5470. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5471. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_ФИО));
  5472. }
  5473. if ((Original_должность == null)) {
  5474. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5475. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5476. }
  5477. else {
  5478. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5479. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_должность));
  5480. }
  5481. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5482. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5483. != global::System.Data.ConnectionState.Open)) {
  5484. this.Adapter.DeleteCommand.Connection.Open();
  5485. }
  5486. try {
  5487. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5488. return returnValue;
  5489. }
  5490. finally {
  5491. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5492. this.Adapter.DeleteCommand.Connection.Close();
  5493. }
  5494. }
  5495. }
  5496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5498. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5499. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5500. public virtual int Insert(string ФИО, string должность) {
  5501. if ((ФИО == null)) {
  5502. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5503. }
  5504. else {
  5505. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(ФИО));
  5506. }
  5507. if ((должность == null)) {
  5508. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5509. }
  5510. else {
  5511. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(должность));
  5512. }
  5513. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5514. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5515. != global::System.Data.ConnectionState.Open)) {
  5516. this.Adapter.InsertCommand.Connection.Open();
  5517. }
  5518. try {
  5519. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5520. return returnValue;
  5521. }
  5522. finally {
  5523. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5524. this.Adapter.InsertCommand.Connection.Close();
  5525. }
  5526. }
  5527. }
  5528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5530. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5531. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5532. public virtual int Update(string ФИО, string должность, int Original_id_сотрудника, string Original_ФИО, string Original_должность, int id_сотрудника) {
  5533. if ((ФИО == null)) {
  5534. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5535. }
  5536. else {
  5537. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(ФИО));
  5538. }
  5539. if ((должность == null)) {
  5540. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5541. }
  5542. else {
  5543. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(должность));
  5544. }
  5545. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_id_сотрудника));
  5546. if ((Original_ФИО == null)) {
  5547. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  5548. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5549. }
  5550. else {
  5551. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  5552. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_ФИО));
  5553. }
  5554. if ((Original_должность == null)) {
  5555. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  5556. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  5557. }
  5558. else {
  5559. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  5560. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_должность));
  5561. }
  5562. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(id_сотрудника));
  5563. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5564. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5565. != global::System.Data.ConnectionState.Open)) {
  5566. this.Adapter.UpdateCommand.Connection.Open();
  5567. }
  5568. try {
  5569. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5570. return returnValue;
  5571. }
  5572. finally {
  5573. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5574. this.Adapter.UpdateCommand.Connection.Close();
  5575. }
  5576. }
  5577. }
  5578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5580. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5581. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5582. public virtual int Update(string ФИО, string должность, int Original_id_сотрудника, string Original_ФИО, string Original_должность) {
  5583. return this.Update(ФИО, должность, Original_id_сотрудника, Original_ФИО, Original_должность, Original_id_сотрудника);
  5584. }
  5585. }
  5586. /// <summary>
  5587. ///Represents the connection and commands used to retrieve and save data.
  5588. ///</summary>
  5589. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5590. [global::System.ComponentModel.ToolboxItem(true)]
  5591. [global::System.ComponentModel.DataObjectAttribute(true)]
  5592. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5593. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5594. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5595. public partial class сотрудники_исполнение_заказовTableAdapter : global::System.ComponentModel.Component {
  5596. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5597. private global::System.Data.SqlClient.SqlConnection _connection;
  5598. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5599. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5600. private bool _clearBeforeFill;
  5601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5603. public сотрудники_исполнение_заказовTableAdapter() {
  5604. this.ClearBeforeFill = true;
  5605. }
  5606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5608. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5609. get {
  5610. if ((this._adapter == null)) {
  5611. this.InitAdapter();
  5612. }
  5613. return this._adapter;
  5614. }
  5615. }
  5616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5618. internal global::System.Data.SqlClient.SqlConnection Connection {
  5619. get {
  5620. if ((this._connection == null)) {
  5621. this.InitConnection();
  5622. }
  5623. return this._connection;
  5624. }
  5625. set {
  5626. this._connection = value;
  5627. if ((this.Adapter.InsertCommand != null)) {
  5628. this.Adapter.InsertCommand.Connection = value;
  5629. }
  5630. if ((this.Adapter.DeleteCommand != null)) {
  5631. this.Adapter.DeleteCommand.Connection = value;
  5632. }
  5633. if ((this.Adapter.UpdateCommand != null)) {
  5634. this.Adapter.UpdateCommand.Connection = value;
  5635. }
  5636. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5637. if ((this.CommandCollection[i] != null)) {
  5638. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5639. }
  5640. }
  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.SqlTransaction Transaction {
  5646. get {
  5647. return this._transaction;
  5648. }
  5649. set {
  5650. this._transaction = value;
  5651. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5652. this.CommandCollection[i].Transaction = this._transaction;
  5653. }
  5654. if (((this.Adapter != null)
  5655. && (this.Adapter.DeleteCommand != null))) {
  5656. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5657. }
  5658. if (((this.Adapter != null)
  5659. && (this.Adapter.InsertCommand != null))) {
  5660. this.Adapter.InsertCommand.Transaction = this._transaction;
  5661. }
  5662. if (((this.Adapter != null)
  5663. && (this.Adapter.UpdateCommand != null))) {
  5664. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5665. }
  5666. }
  5667. }
  5668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5670. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5671. get {
  5672. if ((this._commandCollection == null)) {
  5673. this.InitCommandCollection();
  5674. }
  5675. return this._commandCollection;
  5676. }
  5677. }
  5678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5680. public bool ClearBeforeFill {
  5681. get {
  5682. return this._clearBeforeFill;
  5683. }
  5684. set {
  5685. this._clearBeforeFill = value;
  5686. }
  5687. }
  5688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5690. private void InitAdapter() {
  5691. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5692. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5693. tableMapping.SourceTable = "Table";
  5694. tableMapping.DataSetTable = "сотрудники_исполнение_заказов";
  5695. tableMapping.ColumnMappings.Add("id_сотрудника", "id_сотрудника");
  5696. tableMapping.ColumnMappings.Add("id_заказа", "id_заказа");
  5697. this._adapter.TableMappings.Add(tableMapping);
  5698. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5699. this._adapter.InsertCommand.Connection = this.Connection;
  5700. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[сотрудники_исполнение_заказов] ([id_сотрудника], [id_заказа]) " +
  5701. "VALUES (@id_сотрудника, @id_заказа)";
  5702. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5703. 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, "", "", ""));
  5704. 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, "", "", ""));
  5705. }
  5706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5708. private void InitConnection() {
  5709. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5710. this._connection.ConnectionString = global::Starichkxina_remont_bytovoy_texniki.Properties.Settings.Default.Starichikhina_remont_butovoy_texnikiConnectionString;
  5711. }
  5712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5714. private void InitCommandCollection() {
  5715. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5716. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5717. this._commandCollection[0].Connection = this.Connection;
  5718. this._commandCollection[0].CommandText = "SELECT id_сотрудника, id_заказа FROM dbo.сотрудники_исполнение_заказов";
  5719. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5720. }
  5721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5723. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5724. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5725. public virtual int Fill(Starichikhina_remont_butovoy_texnikiDataSet.сотрудники_исполнение_заказовDataTable dataTable) {
  5726. this.Adapter.SelectCommand = this.CommandCollection[0];
  5727. if ((this.ClearBeforeFill == true)) {
  5728. dataTable.Clear();
  5729. }
  5730. int returnValue = this.Adapter.Fill(dataTable);
  5731. return returnValue;
  5732. }
  5733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5735. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5736. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5737. public virtual Starichikhina_remont_butovoy_texnikiDataSet.сотрудники_исполнение_заказовDataTable GetData() {
  5738. this.Adapter.SelectCommand = this.CommandCollection[0];
  5739. Starichikhina_remont_butovoy_texnikiDataSet.сотрудники_исполнение_заказовDataTable dataTable = new Starichikhina_remont_butovoy_texnikiDataSet.сотрудники_исполнение_заказовDataTable();
  5740. this.Adapter.Fill(dataTable);
  5741. return dataTable;
  5742. }
  5743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5745. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5746. public virtual int Update(Starichikhina_remont_butovoy_texnikiDataSet.сотрудники_исполнение_заказовDataTable dataTable) {
  5747. return this.Adapter.Update(dataTable);
  5748. }
  5749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5751. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5752. public virtual int Update(Starichikhina_remont_butovoy_texnikiDataSet dataSet) {
  5753. return this.Adapter.Update(dataSet, "сотрудники_исполнение_заказов");
  5754. }
  5755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5757. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5758. public virtual int Update(global::System.Data.DataRow dataRow) {
  5759. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5760. dataRow});
  5761. }
  5762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5764. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5765. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5766. return this.Adapter.Update(dataRows);
  5767. }
  5768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5770. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5771. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5772. public virtual int Insert(global::System.Nullable<int> id_сотрудника, global::System.Nullable<int> id_заказа) {
  5773. if ((id_сотрудника.HasValue == true)) {
  5774. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id_сотрудника.Value));
  5775. }
  5776. else {
  5777. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5778. }
  5779. if ((id_заказа.HasValue == true)) {
  5780. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(id_заказа.Value));
  5781. }
  5782. else {
  5783. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5784. }
  5785. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5786. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5787. != global::System.Data.ConnectionState.Open)) {
  5788. this.Adapter.InsertCommand.Connection.Open();
  5789. }
  5790. try {
  5791. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5792. return returnValue;
  5793. }
  5794. finally {
  5795. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5796. this.Adapter.InsertCommand.Connection.Close();
  5797. }
  5798. }
  5799. }
  5800. }
  5801. /// <summary>
  5802. ///Represents the connection and commands used to retrieve and save data.
  5803. ///</summary>
  5804. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5805. [global::System.ComponentModel.ToolboxItem(true)]
  5806. [global::System.ComponentModel.DataObjectAttribute(true)]
  5807. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5808. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5809. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5810. public partial class ТоварыTableAdapter : global::System.ComponentModel.Component {
  5811. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5812. private global::System.Data.SqlClient.SqlConnection _connection;
  5813. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5814. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5815. private bool _clearBeforeFill;
  5816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5818. public ТоварыTableAdapter() {
  5819. this.ClearBeforeFill = true;
  5820. }
  5821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5823. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5824. get {
  5825. if ((this._adapter == null)) {
  5826. this.InitAdapter();
  5827. }
  5828. return this._adapter;
  5829. }
  5830. }
  5831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5833. internal global::System.Data.SqlClient.SqlConnection Connection {
  5834. get {
  5835. if ((this._connection == null)) {
  5836. this.InitConnection();
  5837. }
  5838. return this._connection;
  5839. }
  5840. set {
  5841. this._connection = value;
  5842. if ((this.Adapter.InsertCommand != null)) {
  5843. this.Adapter.InsertCommand.Connection = value;
  5844. }
  5845. if ((this.Adapter.DeleteCommand != null)) {
  5846. this.Adapter.DeleteCommand.Connection = value;
  5847. }
  5848. if ((this.Adapter.UpdateCommand != null)) {
  5849. this.Adapter.UpdateCommand.Connection = value;
  5850. }
  5851. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5852. if ((this.CommandCollection[i] != null)) {
  5853. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5854. }
  5855. }
  5856. }
  5857. }
  5858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5860. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5861. get {
  5862. return this._transaction;
  5863. }
  5864. set {
  5865. this._transaction = value;
  5866. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5867. this.CommandCollection[i].Transaction = this._transaction;
  5868. }
  5869. if (((this.Adapter != null)
  5870. && (this.Adapter.DeleteCommand != null))) {
  5871. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5872. }
  5873. if (((this.Adapter != null)
  5874. && (this.Adapter.InsertCommand != null))) {
  5875. this.Adapter.InsertCommand.Transaction = this._transaction;
  5876. }
  5877. if (((this.Adapter != null)
  5878. && (this.Adapter.UpdateCommand != null))) {
  5879. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5880. }
  5881. }
  5882. }
  5883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5885. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5886. get {
  5887. if ((this._commandCollection == null)) {
  5888. this.InitCommandCollection();
  5889. }
  5890. return this._commandCollection;
  5891. }
  5892. }
  5893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5895. public bool ClearBeforeFill {
  5896. get {
  5897. return this._clearBeforeFill;
  5898. }
  5899. set {
  5900. this._clearBeforeFill = value;
  5901. }
  5902. }
  5903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5905. private void InitAdapter() {
  5906. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5907. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5908. tableMapping.SourceTable = "Table";
  5909. tableMapping.DataSetTable = "Товары";
  5910. tableMapping.ColumnMappings.Add("id_товара", "id_товара");
  5911. tableMapping.ColumnMappings.Add("наим_товара", "наим_товара");
  5912. tableMapping.ColumnMappings.Add("фирма", "фирма");
  5913. tableMapping.ColumnMappings.Add("модель", "модель");
  5914. tableMapping.ColumnMappings.Add("технические_характеристики", "технические_характеристики");
  5915. tableMapping.ColumnMappings.Add("гарантированный_срок", "гарантированный_срок");
  5916. tableMapping.ColumnMappings.Add("изображение", "изображение");
  5917. this._adapter.TableMappings.Add(tableMapping);
  5918. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5919. this._adapter.DeleteCommand.Connection = this.Connection;
  5920. 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_гарантированный_срок = 1 AND [гарантированный_срок] IS NULL) OR ([гарантированный_срок] = @Original_гарантированный_срок)))";
  5921. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5922. 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, "", "", ""));
  5923. 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, "", "", ""));
  5924. 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, "", "", ""));
  5925. 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, "", "", ""));
  5926. 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, "", "", ""));
  5927. 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, "", "", ""));
  5928. 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, "", "", ""));
  5929. 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, "", "", ""));
  5930. 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, "", "", ""));
  5931. 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, "", "", ""));
  5932. 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, "", "", ""));
  5933. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5934. this._adapter.InsertCommand.Connection = this.Connection;
  5935. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Товары] ([наим_товара], [фирма], [модель], [технические_характеристики], [гарантированный_срок], [изображение]) VALUES (@наим_товара, @фирма, @модель, @технические_характеристики, @гарантированный_срок, @изображение);
  5936. SELECT id_товара, наим_товара, фирма, модель, технические_характеристики, гарантированный_срок, изображение FROM Товары WHERE (id_товара = SCOPE_IDENTITY())";
  5937. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5938. 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, "", "", ""));
  5939. 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, "", "", ""));
  5940. 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, "", "", ""));
  5941. 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, "", "", ""));
  5942. 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, "", "", ""));
  5943. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@изображение", global::System.Data.SqlDbType.Image, 0, global::System.Data.ParameterDirection.Input, 0, 0, "изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5944. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5945. this._adapter.UpdateCommand.Connection = this.Connection;
  5946. 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_модель)) AND ((@IsNull_технические_характеристики = 1 AND [технические_характеристики] IS NULL) OR ([технические_характеристики] = @Original_технические_характеристики)) AND ((@IsNull_гарантированный_срок = 1 AND [гарантированный_срок] IS NULL) OR ([гарантированный_срок] = @Original_гарантированный_срок)));
  5947. SELECT id_товара, наим_товара, фирма, модель, технические_характеристики, гарантированный_срок, изображение FROM Товары WHERE (id_товара = @id_товара)";
  5948. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5949. 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, "", "", ""));
  5950. 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, "", "", ""));
  5951. 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, "", "", ""));
  5952. 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, "", "", ""));
  5953. 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, "", "", ""));
  5954. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@изображение", global::System.Data.SqlDbType.Image, 0, global::System.Data.ParameterDirection.Input, 0, 0, "изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5955. 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, "", "", ""));
  5956. 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, "", "", ""));
  5957. 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, "", "", ""));
  5958. 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, "", "", ""));
  5959. 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, "", "", ""));
  5960. 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, "", "", ""));
  5961. 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, "", "", ""));
  5962. 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, "", "", ""));
  5963. 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, "", "", ""));
  5964. 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, "", "", ""));
  5965. 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, "", "", ""));
  5966. 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, "", "", ""));
  5967. }
  5968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5970. private void InitConnection() {
  5971. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5972. this._connection.ConnectionString = global::Starichkxina_remont_bytovoy_texniki.Properties.Settings.Default.Starichikhina_remont_butovoy_texnikiConnectionString;
  5973. }
  5974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5976. private void InitCommandCollection() {
  5977. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5978. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5979. this._commandCollection[0].Connection = this.Connection;
  5980. this._commandCollection[0].CommandText = "SELECT id_товара, наим_товара, фирма, модель, технические_характеристики, гаранти" +
  5981. "рованный_срок, изображение FROM dbo.Товары";
  5982. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5983. }
  5984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5986. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5987. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5988. public virtual int Fill(Starichikhina_remont_butovoy_texnikiDataSet.ТоварыDataTable dataTable) {
  5989. this.Adapter.SelectCommand = this.CommandCollection[0];
  5990. if ((this.ClearBeforeFill == true)) {
  5991. dataTable.Clear();
  5992. }
  5993. int returnValue = this.Adapter.Fill(dataTable);
  5994. return returnValue;
  5995. }
  5996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5998. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5999. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6000. public virtual Starichikhina_remont_butovoy_texnikiDataSet.ТоварыDataTable GetData() {
  6001. this.Adapter.SelectCommand = this.CommandCollection[0];
  6002. Starichikhina_remont_butovoy_texnikiDataSet.ТоварыDataTable dataTable = new Starichikhina_remont_butovoy_texnikiDataSet.ТоварыDataTable();
  6003. this.Adapter.Fill(dataTable);
  6004. return dataTable;
  6005. }
  6006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6008. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6009. public virtual int Update(Starichikhina_remont_butovoy_texnikiDataSet.ТоварыDataTable dataTable) {
  6010. return this.Adapter.Update(dataTable);
  6011. }
  6012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6014. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6015. public virtual int Update(Starichikhina_remont_butovoy_texnikiDataSet dataSet) {
  6016. return this.Adapter.Update(dataSet, "Товары");
  6017. }
  6018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6020. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6021. public virtual int Update(global::System.Data.DataRow dataRow) {
  6022. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6023. dataRow});
  6024. }
  6025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6027. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6028. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6029. return this.Adapter.Update(dataRows);
  6030. }
  6031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6033. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6034. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6035. public virtual int Delete(int Original_id_товара, string Original_наим_товара, string Original_фирма, string Original_модель, string Original_технические_характеристики, string Original_гарантированный_срок) {
  6036. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_товара));
  6037. if ((Original_наим_товара == null)) {
  6038. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6039. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6040. }
  6041. else {
  6042. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6043. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_наим_товара));
  6044. }
  6045. if ((Original_фирма == null)) {
  6046. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6047. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6048. }
  6049. else {
  6050. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6051. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_фирма));
  6052. }
  6053. if ((Original_модель == null)) {
  6054. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6055. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6056. }
  6057. else {
  6058. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6059. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_модель));
  6060. }
  6061. if ((Original_технические_характеристики == null)) {
  6062. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6063. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6064. }
  6065. else {
  6066. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6067. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_технические_характеристики));
  6068. }
  6069. if ((Original_гарантированный_срок == null)) {
  6070. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6071. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6072. }
  6073. else {
  6074. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6075. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_гарантированный_срок));
  6076. }
  6077. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6078. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6079. != global::System.Data.ConnectionState.Open)) {
  6080. this.Adapter.DeleteCommand.Connection.Open();
  6081. }
  6082. try {
  6083. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6084. return returnValue;
  6085. }
  6086. finally {
  6087. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6088. this.Adapter.DeleteCommand.Connection.Close();
  6089. }
  6090. }
  6091. }
  6092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6094. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6095. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6096. public virtual int Insert(string наим_товара, string фирма, string модель, string технические_характеристики, string гарантированный_срок, byte[] изображение) {
  6097. if ((наим_товара == null)) {
  6098. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6099. }
  6100. else {
  6101. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(наим_товара));
  6102. }
  6103. if ((фирма == null)) {
  6104. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6105. }
  6106. else {
  6107. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(фирма));
  6108. }
  6109. if ((модель == null)) {
  6110. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6111. }
  6112. else {
  6113. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(модель));
  6114. }
  6115. if ((технические_характеристики == null)) {
  6116. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6117. }
  6118. else {
  6119. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(технические_характеристики));
  6120. }
  6121. if ((гарантированный_срок == null)) {
  6122. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6123. }
  6124. else {
  6125. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(гарантированный_срок));
  6126. }
  6127. if ((изображение == null)) {
  6128. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6129. }
  6130. else {
  6131. this.Adapter.InsertCommand.Parameters[5].Value = ((byte[])(изображение));
  6132. }
  6133. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6134. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6135. != global::System.Data.ConnectionState.Open)) {
  6136. this.Adapter.InsertCommand.Connection.Open();
  6137. }
  6138. try {
  6139. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6140. return returnValue;
  6141. }
  6142. finally {
  6143. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6144. this.Adapter.InsertCommand.Connection.Close();
  6145. }
  6146. }
  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. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6152. public virtual int Update(string наим_товара, string фирма, string модель, string технические_характеристики, string гарантированный_срок, byte[] изображение, int Original_id_товара, string Original_наим_товара, string Original_фирма, string Original_модель, string Original_технические_характеристики, string Original_гарантированный_срок, int id_товара) {
  6153. if ((наим_товара == null)) {
  6154. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6155. }
  6156. else {
  6157. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(наим_товара));
  6158. }
  6159. if ((фирма == null)) {
  6160. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6161. }
  6162. else {
  6163. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(фирма));
  6164. }
  6165. if ((модель == null)) {
  6166. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6167. }
  6168. else {
  6169. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(модель));
  6170. }
  6171. if ((технические_характеристики == null)) {
  6172. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6173. }
  6174. else {
  6175. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(технические_характеристики));
  6176. }
  6177. if ((гарантированный_срок == null)) {
  6178. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6179. }
  6180. else {
  6181. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(гарантированный_срок));
  6182. }
  6183. if ((изображение == null)) {
  6184. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6185. }
  6186. else {
  6187. this.Adapter.UpdateCommand.Parameters[5].Value = ((byte[])(изображение));
  6188. }
  6189. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_id_товара));
  6190. if ((Original_наим_товара == null)) {
  6191. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  6192. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6193. }
  6194. else {
  6195. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  6196. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_наим_товара));
  6197. }
  6198. if ((Original_фирма == null)) {
  6199. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  6200. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  6201. }
  6202. else {
  6203. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  6204. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_фирма));
  6205. }
  6206. if ((Original_модель == null)) {
  6207. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  6208. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  6209. }
  6210. else {
  6211. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  6212. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_модель));
  6213. }
  6214. if ((Original_технические_характеристики == null)) {
  6215. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  6216. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  6217. }
  6218. else {
  6219. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  6220. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_технические_характеристики));
  6221. }
  6222. if ((Original_гарантированный_срок == null)) {
  6223. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  6224. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  6225. }
  6226. else {
  6227. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  6228. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_гарантированный_срок));
  6229. }
  6230. this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(id_товара));
  6231. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6232. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6233. != global::System.Data.ConnectionState.Open)) {
  6234. this.Adapter.UpdateCommand.Connection.Open();
  6235. }
  6236. try {
  6237. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6238. return returnValue;
  6239. }
  6240. finally {
  6241. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6242. this.Adapter.UpdateCommand.Connection.Close();
  6243. }
  6244. }
  6245. }
  6246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6248. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6249. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6250. public virtual int Update(string наим_товара, string фирма, string модель, string технические_характеристики, string гарантированный_срок, byte[] изображение, int Original_id_товара, string Original_наим_товара, string Original_фирма, string Original_модель, string Original_технические_характеристики, string Original_гарантированный_срок) {
  6251. return this.Update(наим_товара, фирма, модель, технические_характеристики, гарантированный_срок, изображение, Original_id_товара, Original_наим_товара, Original_фирма, Original_модель, Original_технические_характеристики, Original_гарантированный_срок, Original_id_товара);
  6252. }
  6253. }
  6254. /// <summary>
  6255. ///Represents the connection and commands used to retrieve and save data.
  6256. ///</summary>
  6257. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6258. [global::System.ComponentModel.ToolboxItem(true)]
  6259. [global::System.ComponentModel.DataObjectAttribute(true)]
  6260. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6261. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6262. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6263. public partial class zakazTableAdapter : global::System.ComponentModel.Component {
  6264. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6265. private global::System.Data.SqlClient.SqlConnection _connection;
  6266. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6267. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6268. private bool _clearBeforeFill;
  6269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6271. public zakazTableAdapter() {
  6272. this.ClearBeforeFill = true;
  6273. }
  6274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6276. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6277. get {
  6278. if ((this._adapter == null)) {
  6279. this.InitAdapter();
  6280. }
  6281. return this._adapter;
  6282. }
  6283. }
  6284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6286. internal global::System.Data.SqlClient.SqlConnection Connection {
  6287. get {
  6288. if ((this._connection == null)) {
  6289. this.InitConnection();
  6290. }
  6291. return this._connection;
  6292. }
  6293. set {
  6294. this._connection = value;
  6295. if ((this.Adapter.InsertCommand != null)) {
  6296. this.Adapter.InsertCommand.Connection = value;
  6297. }
  6298. if ((this.Adapter.DeleteCommand != null)) {
  6299. this.Adapter.DeleteCommand.Connection = value;
  6300. }
  6301. if ((this.Adapter.UpdateCommand != null)) {
  6302. this.Adapter.UpdateCommand.Connection = value;
  6303. }
  6304. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6305. if ((this.CommandCollection[i] != null)) {
  6306. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6307. }
  6308. }
  6309. }
  6310. }
  6311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6313. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6314. get {
  6315. return this._transaction;
  6316. }
  6317. set {
  6318. this._transaction = value;
  6319. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6320. this.CommandCollection[i].Transaction = this._transaction;
  6321. }
  6322. if (((this.Adapter != null)
  6323. && (this.Adapter.DeleteCommand != null))) {
  6324. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6325. }
  6326. if (((this.Adapter != null)
  6327. && (this.Adapter.InsertCommand != null))) {
  6328. this.Adapter.InsertCommand.Transaction = this._transaction;
  6329. }
  6330. if (((this.Adapter != null)
  6331. && (this.Adapter.UpdateCommand != null))) {
  6332. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6333. }
  6334. }
  6335. }
  6336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6338. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6339. get {
  6340. if ((this._commandCollection == null)) {
  6341. this.InitCommandCollection();
  6342. }
  6343. return this._commandCollection;
  6344. }
  6345. }
  6346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6348. public bool ClearBeforeFill {
  6349. get {
  6350. return this._clearBeforeFill;
  6351. }
  6352. set {
  6353. this._clearBeforeFill = value;
  6354. }
  6355. }
  6356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6358. private void InitAdapter() {
  6359. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6360. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6361. tableMapping.SourceTable = "Table";
  6362. tableMapping.DataSetTable = "zakaz";
  6363. tableMapping.ColumnMappings.Add("id_заказа", "id_заказа");
  6364. tableMapping.ColumnMappings.Add("гарантия", "гарантия");
  6365. tableMapping.ColumnMappings.Add("id_сотрудника", "id_сотрудника");
  6366. this._adapter.TableMappings.Add(tableMapping);
  6367. }
  6368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6370. private void InitConnection() {
  6371. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6372. this._connection.ConnectionString = global::Starichkxina_remont_bytovoy_texniki.Properties.Settings.Default.Starichikhina_remont_butovoy_texnikiConnectionString;
  6373. }
  6374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6376. private void InitCommandCollection() {
  6377. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6378. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6379. this._commandCollection[0].Connection = this.Connection;
  6380. this._commandCollection[0].CommandText = "SELECT id_заказа, гарантия, id_сотрудника FROM dbo.zakaz";
  6381. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6382. }
  6383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6385. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6386. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6387. public virtual int Fill(Starichikhina_remont_butovoy_texnikiDataSet.zakazDataTable dataTable) {
  6388. this.Adapter.SelectCommand = this.CommandCollection[0];
  6389. if ((this.ClearBeforeFill == true)) {
  6390. dataTable.Clear();
  6391. }
  6392. int returnValue = this.Adapter.Fill(dataTable);
  6393. return returnValue;
  6394. }
  6395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6397. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6398. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6399. public virtual Starichikhina_remont_butovoy_texnikiDataSet.zakazDataTable GetData() {
  6400. this.Adapter.SelectCommand = this.CommandCollection[0];
  6401. Starichikhina_remont_butovoy_texnikiDataSet.zakazDataTable dataTable = new Starichikhina_remont_butovoy_texnikiDataSet.zakazDataTable();
  6402. this.Adapter.Fill(dataTable);
  6403. return dataTable;
  6404. }
  6405. }
  6406. /// <summary>
  6407. ///Represents the connection and commands used to retrieve and save data.
  6408. ///</summary>
  6409. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6410. [global::System.ComponentModel.ToolboxItem(true)]
  6411. [global::System.ComponentModel.DataObjectAttribute(true)]
  6412. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6413. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6414. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6415. public partial class запрос_2TableAdapter : global::System.ComponentModel.Component {
  6416. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6417. private global::System.Data.SqlClient.SqlConnection _connection;
  6418. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6419. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6420. private bool _clearBeforeFill;
  6421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6423. public запрос_2TableAdapter() {
  6424. this.ClearBeforeFill = true;
  6425. }
  6426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6428. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6429. get {
  6430. if ((this._adapter == null)) {
  6431. this.InitAdapter();
  6432. }
  6433. return this._adapter;
  6434. }
  6435. }
  6436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6438. internal global::System.Data.SqlClient.SqlConnection Connection {
  6439. get {
  6440. if ((this._connection == null)) {
  6441. this.InitConnection();
  6442. }
  6443. return this._connection;
  6444. }
  6445. set {
  6446. this._connection = value;
  6447. if ((this.Adapter.InsertCommand != null)) {
  6448. this.Adapter.InsertCommand.Connection = value;
  6449. }
  6450. if ((this.Adapter.DeleteCommand != null)) {
  6451. this.Adapter.DeleteCommand.Connection = value;
  6452. }
  6453. if ((this.Adapter.UpdateCommand != null)) {
  6454. this.Adapter.UpdateCommand.Connection = value;
  6455. }
  6456. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6457. if ((this.CommandCollection[i] != null)) {
  6458. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6459. }
  6460. }
  6461. }
  6462. }
  6463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6465. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6466. get {
  6467. return this._transaction;
  6468. }
  6469. set {
  6470. this._transaction = value;
  6471. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6472. this.CommandCollection[i].Transaction = this._transaction;
  6473. }
  6474. if (((this.Adapter != null)
  6475. && (this.Adapter.DeleteCommand != null))) {
  6476. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6477. }
  6478. if (((this.Adapter != null)
  6479. && (this.Adapter.InsertCommand != null))) {
  6480. this.Adapter.InsertCommand.Transaction = this._transaction;
  6481. }
  6482. if (((this.Adapter != null)
  6483. && (this.Adapter.UpdateCommand != null))) {
  6484. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6485. }
  6486. }
  6487. }
  6488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6490. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6491. get {
  6492. if ((this._commandCollection == null)) {
  6493. this.InitCommandCollection();
  6494. }
  6495. return this._commandCollection;
  6496. }
  6497. }
  6498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6500. public bool ClearBeforeFill {
  6501. get {
  6502. return this._clearBeforeFill;
  6503. }
  6504. set {
  6505. this._clearBeforeFill = value;
  6506. }
  6507. }
  6508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6510. private void InitAdapter() {
  6511. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6512. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6513. tableMapping.SourceTable = "Table";
  6514. tableMapping.DataSetTable = "запрос_2";
  6515. tableMapping.ColumnMappings.Add("id_сотрудника", "id_сотрудника");
  6516. tableMapping.ColumnMappings.Add("ФИО", "ФИО");
  6517. tableMapping.ColumnMappings.Add("вид_ремонта", "вид_ремонта");
  6518. this._adapter.TableMappings.Add(tableMapping);
  6519. }
  6520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6522. private void InitConnection() {
  6523. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6524. this._connection.ConnectionString = global::Starichkxina_remont_bytovoy_texniki.Properties.Settings.Default.Starichikhina_remont_butovoy_texnikiConnectionString;
  6525. }
  6526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6528. private void InitCommandCollection() {
  6529. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6530. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6531. this._commandCollection[0].Connection = this.Connection;
  6532. this._commandCollection[0].CommandText = "SELECT id_сотрудника, ФИО, вид_ремонта FROM dbo.запрос_2";
  6533. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6534. }
  6535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6537. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6538. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6539. public virtual int Fill(Starichikhina_remont_butovoy_texnikiDataSet.запрос_2DataTable dataTable) {
  6540. this.Adapter.SelectCommand = this.CommandCollection[0];
  6541. if ((this.ClearBeforeFill == true)) {
  6542. dataTable.Clear();
  6543. }
  6544. int returnValue = this.Adapter.Fill(dataTable);
  6545. return returnValue;
  6546. }
  6547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6549. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6550. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6551. public virtual Starichikhina_remont_butovoy_texnikiDataSet.запрос_2DataTable GetData() {
  6552. this.Adapter.SelectCommand = this.CommandCollection[0];
  6553. Starichikhina_remont_butovoy_texnikiDataSet.запрос_2DataTable dataTable = new Starichikhina_remont_butovoy_texnikiDataSet.запрос_2DataTable();
  6554. this.Adapter.Fill(dataTable);
  6555. return dataTable;
  6556. }
  6557. }
  6558. /// <summary>
  6559. ///Represents the connection and commands used to retrieve and save data.
  6560. ///</summary>
  6561. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6562. [global::System.ComponentModel.ToolboxItem(true)]
  6563. [global::System.ComponentModel.DataObjectAttribute(true)]
  6564. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6565. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6566. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6567. public partial class запрос_3TableAdapter : global::System.ComponentModel.Component {
  6568. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6569. private global::System.Data.SqlClient.SqlConnection _connection;
  6570. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6571. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6572. private bool _clearBeforeFill;
  6573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6575. public запрос_3TableAdapter() {
  6576. this.ClearBeforeFill = true;
  6577. }
  6578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6580. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6581. get {
  6582. if ((this._adapter == null)) {
  6583. this.InitAdapter();
  6584. }
  6585. return this._adapter;
  6586. }
  6587. }
  6588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6590. internal global::System.Data.SqlClient.SqlConnection Connection {
  6591. get {
  6592. if ((this._connection == null)) {
  6593. this.InitConnection();
  6594. }
  6595. return this._connection;
  6596. }
  6597. set {
  6598. this._connection = value;
  6599. if ((this.Adapter.InsertCommand != null)) {
  6600. this.Adapter.InsertCommand.Connection = value;
  6601. }
  6602. if ((this.Adapter.DeleteCommand != null)) {
  6603. this.Adapter.DeleteCommand.Connection = value;
  6604. }
  6605. if ((this.Adapter.UpdateCommand != null)) {
  6606. this.Adapter.UpdateCommand.Connection = value;
  6607. }
  6608. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6609. if ((this.CommandCollection[i] != null)) {
  6610. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6611. }
  6612. }
  6613. }
  6614. }
  6615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6617. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6618. get {
  6619. return this._transaction;
  6620. }
  6621. set {
  6622. this._transaction = value;
  6623. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6624. this.CommandCollection[i].Transaction = this._transaction;
  6625. }
  6626. if (((this.Adapter != null)
  6627. && (this.Adapter.DeleteCommand != null))) {
  6628. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6629. }
  6630. if (((this.Adapter != null)
  6631. && (this.Adapter.InsertCommand != null))) {
  6632. this.Adapter.InsertCommand.Transaction = this._transaction;
  6633. }
  6634. if (((this.Adapter != null)
  6635. && (this.Adapter.UpdateCommand != null))) {
  6636. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6637. }
  6638. }
  6639. }
  6640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6642. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6643. get {
  6644. if ((this._commandCollection == null)) {
  6645. this.InitCommandCollection();
  6646. }
  6647. return this._commandCollection;
  6648. }
  6649. }
  6650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6652. public bool ClearBeforeFill {
  6653. get {
  6654. return this._clearBeforeFill;
  6655. }
  6656. set {
  6657. this._clearBeforeFill = value;
  6658. }
  6659. }
  6660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6662. private void InitAdapter() {
  6663. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6664. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6665. tableMapping.SourceTable = "Table";
  6666. tableMapping.DataSetTable = "запрос_3";
  6667. tableMapping.ColumnMappings.Add("id_сотрудника", "id_сотрудника");
  6668. tableMapping.ColumnMappings.Add("ФИО", "ФИО");
  6669. tableMapping.ColumnMappings.Add("должность", "должность");
  6670. this._adapter.TableMappings.Add(tableMapping);
  6671. }
  6672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6674. private void InitConnection() {
  6675. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6676. this._connection.ConnectionString = global::Starichkxina_remont_bytovoy_texniki.Properties.Settings.Default.Starichikhina_remont_butovoy_texnikiConnectionString;
  6677. }
  6678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6680. private void InitCommandCollection() {
  6681. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6682. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6683. this._commandCollection[0].Connection = this.Connection;
  6684. this._commandCollection[0].CommandText = "SELECT id_сотрудника, ФИО, должность FROM dbo.запрос_3";
  6685. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6686. }
  6687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6689. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6690. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6691. public virtual int Fill(Starichikhina_remont_butovoy_texnikiDataSet.запрос_3DataTable dataTable) {
  6692. this.Adapter.SelectCommand = this.CommandCollection[0];
  6693. if ((this.ClearBeforeFill == true)) {
  6694. dataTable.Clear();
  6695. }
  6696. int returnValue = this.Adapter.Fill(dataTable);
  6697. return returnValue;
  6698. }
  6699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6701. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6702. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6703. public virtual Starichikhina_remont_butovoy_texnikiDataSet.запрос_3DataTable GetData() {
  6704. this.Adapter.SelectCommand = this.CommandCollection[0];
  6705. Starichikhina_remont_butovoy_texnikiDataSet.запрос_3DataTable dataTable = new Starichikhina_remont_butovoy_texnikiDataSet.запрос_3DataTable();
  6706. this.Adapter.Fill(dataTable);
  6707. return dataTable;
  6708. }
  6709. }
  6710. /// <summary>
  6711. ///Represents the connection and commands used to retrieve and save data.
  6712. ///</summary>
  6713. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6714. [global::System.ComponentModel.ToolboxItem(true)]
  6715. [global::System.ComponentModel.DataObjectAttribute(true)]
  6716. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6717. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6718. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6719. public partial class ПредставлениеTableAdapter : global::System.ComponentModel.Component {
  6720. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6721. private global::System.Data.SqlClient.SqlConnection _connection;
  6722. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6723. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6724. private bool _clearBeforeFill;
  6725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6727. public ПредставлениеTableAdapter() {
  6728. this.ClearBeforeFill = true;
  6729. }
  6730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6732. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6733. get {
  6734. if ((this._adapter == null)) {
  6735. this.InitAdapter();
  6736. }
  6737. return this._adapter;
  6738. }
  6739. }
  6740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6742. internal global::System.Data.SqlClient.SqlConnection Connection {
  6743. get {
  6744. if ((this._connection == null)) {
  6745. this.InitConnection();
  6746. }
  6747. return this._connection;
  6748. }
  6749. set {
  6750. this._connection = value;
  6751. if ((this.Adapter.InsertCommand != null)) {
  6752. this.Adapter.InsertCommand.Connection = value;
  6753. }
  6754. if ((this.Adapter.DeleteCommand != null)) {
  6755. this.Adapter.DeleteCommand.Connection = value;
  6756. }
  6757. if ((this.Adapter.UpdateCommand != null)) {
  6758. this.Adapter.UpdateCommand.Connection = value;
  6759. }
  6760. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6761. if ((this.CommandCollection[i] != null)) {
  6762. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6763. }
  6764. }
  6765. }
  6766. }
  6767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6769. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6770. get {
  6771. return this._transaction;
  6772. }
  6773. set {
  6774. this._transaction = value;
  6775. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6776. this.CommandCollection[i].Transaction = this._transaction;
  6777. }
  6778. if (((this.Adapter != null)
  6779. && (this.Adapter.DeleteCommand != null))) {
  6780. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6781. }
  6782. if (((this.Adapter != null)
  6783. && (this.Adapter.InsertCommand != null))) {
  6784. this.Adapter.InsertCommand.Transaction = this._transaction;
  6785. }
  6786. if (((this.Adapter != null)
  6787. && (this.Adapter.UpdateCommand != null))) {
  6788. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6789. }
  6790. }
  6791. }
  6792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6794. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6795. get {
  6796. if ((this._commandCollection == null)) {
  6797. this.InitCommandCollection();
  6798. }
  6799. return this._commandCollection;
  6800. }
  6801. }
  6802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6804. public bool ClearBeforeFill {
  6805. get {
  6806. return this._clearBeforeFill;
  6807. }
  6808. set {
  6809. this._clearBeforeFill = value;
  6810. }
  6811. }
  6812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6814. private void InitAdapter() {
  6815. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6816. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6817. tableMapping.SourceTable = "Table";
  6818. tableMapping.DataSetTable = "Представление";
  6819. tableMapping.ColumnMappings.Add("наим_товара", "наим_товара");
  6820. tableMapping.ColumnMappings.Add("ФИО", "ФИО");
  6821. tableMapping.ColumnMappings.Add("должность", "должность");
  6822. tableMapping.ColumnMappings.Add("вид_ремонта", "вид_ремонта");
  6823. tableMapping.ColumnMappings.Add("дата_исполнения_заказа", "дата_исполнения_заказа");
  6824. this._adapter.TableMappings.Add(tableMapping);
  6825. }
  6826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6828. private void InitConnection() {
  6829. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6830. this._connection.ConnectionString = global::Starichkxina_remont_bytovoy_texniki.Properties.Settings.Default.Starichikhina_remont_butovoy_texnikiConnectionString;
  6831. }
  6832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6834. private void InitCommandCollection() {
  6835. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6836. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6837. this._commandCollection[0].Connection = this.Connection;
  6838. this._commandCollection[0].CommandText = "SELECT наим_товара, ФИО, должность, вид_ремонта, дата_исполнения_заказа FROM dbo." +
  6839. "Представление";
  6840. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6841. }
  6842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6844. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6845. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6846. public virtual int Fill(Starichikhina_remont_butovoy_texnikiDataSet.ПредставлениеDataTable dataTable) {
  6847. this.Adapter.SelectCommand = this.CommandCollection[0];
  6848. if ((this.ClearBeforeFill == true)) {
  6849. dataTable.Clear();
  6850. }
  6851. int returnValue = this.Adapter.Fill(dataTable);
  6852. return returnValue;
  6853. }
  6854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6856. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6857. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6858. public virtual Starichikhina_remont_butovoy_texnikiDataSet.ПредставлениеDataTable GetData() {
  6859. this.Adapter.SelectCommand = this.CommandCollection[0];
  6860. Starichikhina_remont_butovoy_texnikiDataSet.ПредставлениеDataTable dataTable = new Starichikhina_remont_butovoy_texnikiDataSet.ПредставлениеDataTable();
  6861. this.Adapter.Fill(dataTable);
  6862. return dataTable;
  6863. }
  6864. }
  6865. /// <summary>
  6866. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  6867. ///</summary>
  6868. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6869. [global::System.ComponentModel.ToolboxItem(true)]
  6870. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  6871. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6872. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  6873. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  6874. private UpdateOrderOption _updateOrder;
  6875. private заказTableAdapter _заказTableAdapter;
  6876. private исполнение_заказовTableAdapter _исполнение_заказовTableAdapter;
  6877. private сотрудникиTableAdapter _сотрудникиTableAdapter;
  6878. private сотрудники_исполнение_заказовTableAdapter _сотрудники_исполнение_заказовTableAdapter;
  6879. private ТоварыTableAdapter _товарыTableAdapter;
  6880. private bool _backupDataSetBeforeUpdate;
  6881. private global::System.Data.IDbConnection _connection;
  6882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6884. public UpdateOrderOption UpdateOrder {
  6885. get {
  6886. return this._updateOrder;
  6887. }
  6888. set {
  6889. this._updateOrder = value;
  6890. }
  6891. }
  6892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6894. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6895. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6896. "a", "System.Drawing.Design.UITypeEditor")]
  6897. public заказTableAdapter заказTableAdapter {
  6898. get {
  6899. return this._заказTableAdapter;
  6900. }
  6901. set {
  6902. this._заказTableAdapter = value;
  6903. }
  6904. }
  6905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6907. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6908. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6909. "a", "System.Drawing.Design.UITypeEditor")]
  6910. public исполнение_заказовTableAdapter исполнение_заказовTableAdapter {
  6911. get {
  6912. return this._исполнение_заказовTableAdapter;
  6913. }
  6914. set {
  6915. this._исполнение_заказовTableAdapter = value;
  6916. }
  6917. }
  6918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6920. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6921. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6922. "a", "System.Drawing.Design.UITypeEditor")]
  6923. public сотрудникиTableAdapter сотрудникиTableAdapter {
  6924. get {
  6925. return this._сотрудникиTableAdapter;
  6926. }
  6927. set {
  6928. this._сотрудникиTableAdapter = value;
  6929. }
  6930. }
  6931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6933. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6934. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6935. "a", "System.Drawing.Design.UITypeEditor")]
  6936. public сотрудники_исполнение_заказовTableAdapter сотрудники_исполнение_заказовTableAdapter {
  6937. get {
  6938. return this._сотрудники_исполнение_заказовTableAdapter;
  6939. }
  6940. set {
  6941. this._сотрудники_исполнение_заказовTableAdapter = value;
  6942. }
  6943. }
  6944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6946. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6947. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6948. "a", "System.Drawing.Design.UITypeEditor")]
  6949. public ТоварыTableAdapter ТоварыTableAdapter {
  6950. get {
  6951. return this._товарыTableAdapter;
  6952. }
  6953. set {
  6954. this._товарыTableAdapter = value;
  6955. }
  6956. }
  6957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6959. public bool BackupDataSetBeforeUpdate {
  6960. get {
  6961. return this._backupDataSetBeforeUpdate;
  6962. }
  6963. set {
  6964. this._backupDataSetBeforeUpdate = value;
  6965. }
  6966. }
  6967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6969. [global::System.ComponentModel.Browsable(false)]
  6970. public global::System.Data.IDbConnection Connection {
  6971. get {
  6972. if ((this._connection != null)) {
  6973. return this._connection;
  6974. }
  6975. if (((this._заказTableAdapter != null)
  6976. && (this._заказTableAdapter.Connection != null))) {
  6977. return this._заказTableAdapter.Connection;
  6978. }
  6979. if (((this._исполнение_заказовTableAdapter != null)
  6980. && (this._исполнение_заказовTableAdapter.Connection != null))) {
  6981. return this._исполнение_заказовTableAdapter.Connection;
  6982. }
  6983. if (((this._сотрудникиTableAdapter != null)
  6984. && (this._сотрудникиTableAdapter.Connection != null))) {
  6985. return this._сотрудникиTableAdapter.Connection;
  6986. }
  6987. if (((this._сотрудники_исполнение_заказовTableAdapter != null)
  6988. && (this._сотрудники_исполнение_заказовTableAdapter.Connection != null))) {
  6989. return this._сотрудники_исполнение_заказовTableAdapter.Connection;
  6990. }
  6991. if (((this._товарыTableAdapter != null)
  6992. && (this._товарыTableAdapter.Connection != null))) {
  6993. return this._товарыTableAdapter.Connection;
  6994. }
  6995. return null;
  6996. }
  6997. set {
  6998. this._connection = value;
  6999. }
  7000. }
  7001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7003. [global::System.ComponentModel.Browsable(false)]
  7004. public int TableAdapterInstanceCount {
  7005. get {
  7006. int count = 0;
  7007. if ((this._заказTableAdapter != null)) {
  7008. count = (count + 1);
  7009. }
  7010. if ((this._исполнение_заказовTableAdapter != null)) {
  7011. count = (count + 1);
  7012. }
  7013. if ((this._сотрудникиTableAdapter != null)) {
  7014. count = (count + 1);
  7015. }
  7016. if ((this._сотрудники_исполнение_заказовTableAdapter != null)) {
  7017. count = (count + 1);
  7018. }
  7019. if ((this._товарыTableAdapter != null)) {
  7020. count = (count + 1);
  7021. }
  7022. return count;
  7023. }
  7024. }
  7025. /// <summary>
  7026. ///Update rows in top-down order.
  7027. ///</summary>
  7028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7030. private int UpdateUpdatedRows(Starichikhina_remont_butovoy_texnikiDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  7031. int result = 0;
  7032. if ((this._товарыTableAdapter != null)) {
  7033. global::System.Data.DataRow[] updatedRows = dataSet.Товары.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7034. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7035. if (((updatedRows != null)
  7036. && (0 < updatedRows.Length))) {
  7037. result = (result + this._товарыTableAdapter.Update(updatedRows));
  7038. allChangedRows.AddRange(updatedRows);
  7039. }
  7040. }
  7041. if ((this._заказTableAdapter != null)) {
  7042. global::System.Data.DataRow[] updatedRows = dataSet.заказ.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7043. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7044. if (((updatedRows != null)
  7045. && (0 < updatedRows.Length))) {
  7046. result = (result + this._заказTableAdapter.Update(updatedRows));
  7047. allChangedRows.AddRange(updatedRows);
  7048. }
  7049. }
  7050. if ((this._исполнение_заказовTableAdapter != null)) {
  7051. global::System.Data.DataRow[] updatedRows = dataSet.исполнение_заказов.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7052. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7053. if (((updatedRows != null)
  7054. && (0 < updatedRows.Length))) {
  7055. result = (result + this._исполнение_заказовTableAdapter.Update(updatedRows));
  7056. allChangedRows.AddRange(updatedRows);
  7057. }
  7058. }
  7059. if ((this._сотрудникиTableAdapter != null)) {
  7060. global::System.Data.DataRow[] updatedRows = dataSet.сотрудники.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7061. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7062. if (((updatedRows != null)
  7063. && (0 < updatedRows.Length))) {
  7064. result = (result + this._сотрудникиTableAdapter.Update(updatedRows));
  7065. allChangedRows.AddRange(updatedRows);
  7066. }
  7067. }
  7068. if ((this._сотрудники_исполнение_заказовTableAdapter != null)) {
  7069. global::System.Data.DataRow[] updatedRows = dataSet.сотрудники_исполнение_заказов.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7070. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7071. if (((updatedRows != null)
  7072. && (0 < updatedRows.Length))) {
  7073. result = (result + this._сотрудники_исполнение_заказовTableAdapter.Update(updatedRows));
  7074. allChangedRows.AddRange(updatedRows);
  7075. }
  7076. }
  7077. return result;
  7078. }
  7079. /// <summary>
  7080. ///Insert rows in top-down order.
  7081. ///</summary>
  7082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7084. private int UpdateInsertedRows(Starichikhina_remont_butovoy_texnikiDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  7085. int result = 0;
  7086. if ((this._товарыTableAdapter != null)) {
  7087. global::System.Data.DataRow[] addedRows = dataSet.Товары.Select(null, null, global::System.Data.DataViewRowState.Added);
  7088. if (((addedRows != null)
  7089. && (0 < addedRows.Length))) {
  7090. result = (result + this._товарыTableAdapter.Update(addedRows));
  7091. allAddedRows.AddRange(addedRows);
  7092. }
  7093. }
  7094. if ((this._заказTableAdapter != null)) {
  7095. global::System.Data.DataRow[] addedRows = dataSet.заказ.Select(null, null, global::System.Data.DataViewRowState.Added);
  7096. if (((addedRows != null)
  7097. && (0 < addedRows.Length))) {
  7098. result = (result + this._заказTableAdapter.Update(addedRows));
  7099. allAddedRows.AddRange(addedRows);
  7100. }
  7101. }
  7102. if ((this._исполнение_заказовTableAdapter != null)) {
  7103. global::System.Data.DataRow[] addedRows = dataSet.исполнение_заказов.Select(null, null, global::System.Data.DataViewRowState.Added);
  7104. if (((addedRows != null)
  7105. && (0 < addedRows.Length))) {
  7106. result = (result + this._исполнение_заказовTableAdapter.Update(addedRows));
  7107. allAddedRows.AddRange(addedRows);
  7108. }
  7109. }
  7110. if ((this._сотрудникиTableAdapter != null)) {
  7111. global::System.Data.DataRow[] addedRows = dataSet.сотрудники.Select(null, null, global::System.Data.DataViewRowState.Added);
  7112. if (((addedRows != null)
  7113. && (0 < addedRows.Length))) {
  7114. result = (result + this._сотрудникиTableAdapter.Update(addedRows));
  7115. allAddedRows.AddRange(addedRows);
  7116. }
  7117. }
  7118. if ((this._сотрудники_исполнение_заказовTableAdapter != null)) {
  7119. global::System.Data.DataRow[] addedRows = dataSet.сотрудники_исполнение_заказов.Select(null, null, global::System.Data.DataViewRowState.Added);
  7120. if (((addedRows != null)
  7121. && (0 < addedRows.Length))) {
  7122. result = (result + this._сотрудники_исполнение_заказовTableAdapter.Update(addedRows));
  7123. allAddedRows.AddRange(addedRows);
  7124. }
  7125. }
  7126. return result;
  7127. }
  7128. /// <summary>
  7129. ///Delete rows in bottom-up order.
  7130. ///</summary>
  7131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7133. private int UpdateDeletedRows(Starichikhina_remont_butovoy_texnikiDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  7134. int result = 0;
  7135. if ((this._сотрудники_исполнение_заказовTableAdapter != null)) {
  7136. global::System.Data.DataRow[] deletedRows = dataSet.сотрудники_исполнение_заказов.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7137. if (((deletedRows != null)
  7138. && (0 < deletedRows.Length))) {
  7139. result = (result + this._сотрудники_исполнение_заказовTableAdapter.Update(deletedRows));
  7140. allChangedRows.AddRange(deletedRows);
  7141. }
  7142. }
  7143. if ((this._сотрудникиTableAdapter != null)) {
  7144. global::System.Data.DataRow[] deletedRows = dataSet.сотрудники.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7145. if (((deletedRows != null)
  7146. && (0 < deletedRows.Length))) {
  7147. result = (result + this._сотрудникиTableAdapter.Update(deletedRows));
  7148. allChangedRows.AddRange(deletedRows);
  7149. }
  7150. }
  7151. if ((this._исполнение_заказовTableAdapter != null)) {
  7152. global::System.Data.DataRow[] deletedRows = dataSet.исполнение_заказов.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7153. if (((deletedRows != null)
  7154. && (0 < deletedRows.Length))) {
  7155. result = (result + this._исполнение_заказовTableAdapter.Update(deletedRows));
  7156. allChangedRows.AddRange(deletedRows);
  7157. }
  7158. }
  7159. if ((this._заказTableAdapter != null)) {
  7160. global::System.Data.DataRow[] deletedRows = dataSet.заказ.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7161. if (((deletedRows != null)
  7162. && (0 < deletedRows.Length))) {
  7163. result = (result + this._заказTableAdapter.Update(deletedRows));
  7164. allChangedRows.AddRange(deletedRows);
  7165. }
  7166. }
  7167. if ((this._товарыTableAdapter != null)) {
  7168. global::System.Data.DataRow[] deletedRows = dataSet.Товары.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7169. if (((deletedRows != null)
  7170. && (0 < deletedRows.Length))) {
  7171. result = (result + this._товарыTableAdapter.Update(deletedRows));
  7172. allChangedRows.AddRange(deletedRows);
  7173. }
  7174. }
  7175. return result;
  7176. }
  7177. /// <summary>
  7178. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  7179. ///</summary>
  7180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7182. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  7183. if (((updatedRows == null)
  7184. || (updatedRows.Length < 1))) {
  7185. return updatedRows;
  7186. }
  7187. if (((allAddedRows == null)
  7188. || (allAddedRows.Count < 1))) {
  7189. return updatedRows;
  7190. }
  7191. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7192. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  7193. global::System.Data.DataRow row = updatedRows[i];
  7194. if ((allAddedRows.Contains(row) == false)) {
  7195. realUpdatedRows.Add(row);
  7196. }
  7197. }
  7198. return realUpdatedRows.ToArray();
  7199. }
  7200. /// <summary>
  7201. ///Update all changes to the dataset.
  7202. ///</summary>
  7203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7205. public virtual int UpdateAll(Starichikhina_remont_butovoy_texnikiDataSet dataSet) {
  7206. if ((dataSet == null)) {
  7207. throw new global::System.ArgumentNullException("dataSet");
  7208. }
  7209. if ((dataSet.HasChanges() == false)) {
  7210. return 0;
  7211. }
  7212. if (((this._заказTableAdapter != null)
  7213. && (this.MatchTableAdapterConnection(this._заказTableAdapter.Connection) == false))) {
  7214. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7215. "r, должны использовать одинаковую строку подключения.");
  7216. }
  7217. if (((this._исполнение_заказовTableAdapter != null)
  7218. && (this.MatchTableAdapterConnection(this._исполнение_заказовTableAdapter.Connection) == false))) {
  7219. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7220. "r, должны использовать одинаковую строку подключения.");
  7221. }
  7222. if (((this._сотрудникиTableAdapter != null)
  7223. && (this.MatchTableAdapterConnection(this._сотрудникиTableAdapter.Connection) == false))) {
  7224. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7225. "r, должны использовать одинаковую строку подключения.");
  7226. }
  7227. if (((this._сотрудники_исполнение_заказовTableAdapter != null)
  7228. && (this.MatchTableAdapterConnection(this._сотрудники_исполнение_заказовTableAdapter.Connection) == false))) {
  7229. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7230. "r, должны использовать одинаковую строку подключения.");
  7231. }
  7232. if (((this._товарыTableAdapter != null)
  7233. && (this.MatchTableAdapterConnection(this._товарыTableAdapter.Connection) == false))) {
  7234. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7235. "r, должны использовать одинаковую строку подключения.");
  7236. }
  7237. global::System.Data.IDbConnection workConnection = this.Connection;
  7238. if ((workConnection == null)) {
  7239. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  7240. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  7241. }
  7242. bool workConnOpened = false;
  7243. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  7244. == global::System.Data.ConnectionState.Broken)) {
  7245. workConnection.Close();
  7246. }
  7247. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  7248. workConnection.Open();
  7249. workConnOpened = true;
  7250. }
  7251. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  7252. if ((workTransaction == null)) {
  7253. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  7254. "и или текущее состояние не позволяет начать транзакцию.");
  7255. }
  7256. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7257. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7258. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  7259. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  7260. int result = 0;
  7261. global::System.Data.DataSet backupDataSet = null;
  7262. if (this.BackupDataSetBeforeUpdate) {
  7263. backupDataSet = new global::System.Data.DataSet();
  7264. backupDataSet.Merge(dataSet);
  7265. }
  7266. try {
  7267. // ---- Prepare for update -----------
  7268. //
  7269. if ((this._заказTableAdapter != null)) {
  7270. revertConnections.Add(this._заказTableAdapter, this._заказTableAdapter.Connection);
  7271. this._заказTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7272. this._заказTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7273. if (this._заказTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7274. this._заказTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7275. adaptersWithAcceptChangesDuringUpdate.Add(this._заказTableAdapter.Adapter);
  7276. }
  7277. }
  7278. if ((this._исполнение_заказовTableAdapter != null)) {
  7279. revertConnections.Add(this._исполнение_заказовTableAdapter, this._исполнение_заказовTableAdapter.Connection);
  7280. this._исполнение_заказовTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7281. this._исполнение_заказовTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7282. if (this._исполнение_заказовTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7283. this._исполнение_заказовTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7284. adaptersWithAcceptChangesDuringUpdate.Add(this._исполнение_заказовTableAdapter.Adapter);
  7285. }
  7286. }
  7287. if ((this._сотрудникиTableAdapter != null)) {
  7288. revertConnections.Add(this._сотрудникиTableAdapter, this._сотрудникиTableAdapter.Connection);
  7289. this._сотрудникиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7290. this._сотрудникиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7291. if (this._сотрудникиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7292. this._сотрудникиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7293. adaptersWithAcceptChangesDuringUpdate.Add(this._сотрудникиTableAdapter.Adapter);
  7294. }
  7295. }
  7296. if ((this._сотрудники_исполнение_заказовTableAdapter != null)) {
  7297. revertConnections.Add(this._сотрудники_исполнение_заказовTableAdapter, this._сотрудники_исполнение_заказовTableAdapter.Connection);
  7298. this._сотрудники_исполнение_заказовTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7299. this._сотрудники_исполнение_заказовTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7300. if (this._сотрудники_исполнение_заказовTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7301. this._сотрудники_исполнение_заказовTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7302. adaptersWithAcceptChangesDuringUpdate.Add(this._сотрудники_исполнение_заказовTableAdapter.Adapter);
  7303. }
  7304. }
  7305. if ((this._товарыTableAdapter != null)) {
  7306. revertConnections.Add(this._товарыTableAdapter, this._товарыTableAdapter.Connection);
  7307. this._товарыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7308. this._товарыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7309. if (this._товарыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7310. this._товарыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7311. adaptersWithAcceptChangesDuringUpdate.Add(this._товарыTableAdapter.Adapter);
  7312. }
  7313. }
  7314. //
  7315. //---- Perform updates -----------
  7316. //
  7317. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  7318. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  7319. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  7320. }
  7321. else {
  7322. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  7323. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  7324. }
  7325. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  7326. //
  7327. //---- Commit updates -----------
  7328. //
  7329. workTransaction.Commit();
  7330. if ((0 < allAddedRows.Count)) {
  7331. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  7332. allAddedRows.CopyTo(rows);
  7333. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  7334. global::System.Data.DataRow row = rows[i];
  7335. row.AcceptChanges();
  7336. }
  7337. }
  7338. if ((0 < allChangedRows.Count)) {
  7339. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  7340. allChangedRows.CopyTo(rows);
  7341. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  7342. global::System.Data.DataRow row = rows[i];
  7343. row.AcceptChanges();
  7344. }
  7345. }
  7346. }
  7347. catch (global::System.Exception ex) {
  7348. workTransaction.Rollback();
  7349. // ---- Restore the dataset -----------
  7350. if (this.BackupDataSetBeforeUpdate) {
  7351. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  7352. dataSet.Clear();
  7353. dataSet.Merge(backupDataSet);
  7354. }
  7355. else {
  7356. if ((0 < allAddedRows.Count)) {
  7357. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  7358. allAddedRows.CopyTo(rows);
  7359. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  7360. global::System.Data.DataRow row = rows[i];
  7361. row.AcceptChanges();
  7362. row.SetAdded();
  7363. }
  7364. }
  7365. }
  7366. throw ex;
  7367. }
  7368. finally {
  7369. if (workConnOpened) {
  7370. workConnection.Close();
  7371. }
  7372. if ((this._заказTableAdapter != null)) {
  7373. this._заказTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._заказTableAdapter]));
  7374. this._заказTableAdapter.Transaction = null;
  7375. }
  7376. if ((this._исполнение_заказовTableAdapter != null)) {
  7377. this._исполнение_заказовTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._исполнение_заказовTableAdapter]));
  7378. this._исполнение_заказовTableAdapter.Transaction = null;
  7379. }
  7380. if ((this._сотрудникиTableAdapter != null)) {
  7381. this._сотрудникиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._сотрудникиTableAdapter]));
  7382. this._сотрудникиTableAdapter.Transaction = null;
  7383. }
  7384. if ((this._сотрудники_исполнение_заказовTableAdapter != null)) {
  7385. this._сотрудники_исполнение_заказовTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._сотрудники_исполнение_заказовTableAdapter]));
  7386. this._сотрудники_исполнение_заказовTableAdapter.Transaction = null;
  7387. }
  7388. if ((this._товарыTableAdapter != null)) {
  7389. this._товарыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._товарыTableAdapter]));
  7390. this._товарыTableAdapter.Transaction = null;
  7391. }
  7392. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  7393. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  7394. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  7395. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  7396. global::System.Data.Common.DataAdapter adapter = adapters[i];
  7397. adapter.AcceptChangesDuringUpdate = true;
  7398. }
  7399. }
  7400. }
  7401. return result;
  7402. }
  7403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7405. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  7406. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  7407. }
  7408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7410. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  7411. if ((this._connection != null)) {
  7412. return true;
  7413. }
  7414. if (((this.Connection == null)
  7415. || (inputConnection == null))) {
  7416. return true;
  7417. }
  7418. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  7419. return true;
  7420. }
  7421. return false;
  7422. }
  7423. /// <summary>
  7424. ///Update Order Option
  7425. ///</summary>
  7426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7427. public enum UpdateOrderOption {
  7428. InsertUpdateDelete = 0,
  7429. UpdateInsertDelete = 1,
  7430. }
  7431. /// <summary>
  7432. ///Used to sort self-referenced table's rows
  7433. ///</summary>
  7434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7435. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  7436. private global::System.Data.DataRelation _relation;
  7437. private int _childFirst;
  7438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7440. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  7441. this._relation = relation;
  7442. if (childFirst) {
  7443. this._childFirst = -1;
  7444. }
  7445. else {
  7446. this._childFirst = 1;
  7447. }
  7448. }
  7449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7451. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  7452. global::System.Diagnostics.Debug.Assert((row != null));
  7453. global::System.Data.DataRow root = row;
  7454. distance = 0;
  7455. 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>();
  7456. traversedRows[row] = row;
  7457. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  7458. for (
  7459. ; ((parent != null)
  7460. && (traversedRows.ContainsKey(parent) == false));
  7461. ) {
  7462. distance = (distance + 1);
  7463. root = parent;
  7464. traversedRows[parent] = parent;
  7465. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  7466. }
  7467. if ((distance == 0)) {
  7468. traversedRows.Clear();
  7469. traversedRows[row] = row;
  7470. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  7471. for (
  7472. ; ((parent != null)
  7473. && (traversedRows.ContainsKey(parent) == false));
  7474. ) {
  7475. distance = (distance + 1);
  7476. root = parent;
  7477. traversedRows[parent] = parent;
  7478. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  7479. }
  7480. }
  7481. return root;
  7482. }
  7483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7485. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  7486. if (object.ReferenceEquals(row1, row2)) {
  7487. return 0;
  7488. }
  7489. if ((row1 == null)) {
  7490. return -1;
  7491. }
  7492. if ((row2 == null)) {
  7493. return 1;
  7494. }
  7495. int distance1 = 0;
  7496. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  7497. int distance2 = 0;
  7498. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  7499. if (object.ReferenceEquals(root1, root2)) {
  7500. return (this._childFirst * distance1.CompareTo(distance2));
  7501. }
  7502. else {
  7503. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  7504. && (root2.Table != null)));
  7505. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  7506. return -1;
  7507. }
  7508. else {
  7509. return 1;
  7510. }
  7511. }
  7512. }
  7513. }
  7514. }
  7515. }
  7516. #pragma warning restore 1591