TechServiceBAUDataSet.Designer.cs 491 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace СУБД_Техносервис {
  12. /// <summary>
  13. ///Represents a strongly typed in-memory cache of data.
  14. ///</summary>
  15. [global::System.Serializable()]
  16. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  17. [global::System.ComponentModel.ToolboxItem(true)]
  18. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
  19. [global::System.Xml.Serialization.XmlRootAttribute("TechServiceBAUDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class TechServiceBAUDataSet : global::System.Data.DataSet {
  22. private ClientDataTable tableClient;
  23. private EmployeeDataTable tableEmployee;
  24. private ExecutionRequestDataTable tableExecutionRequest;
  25. private RequestDataTable tableRequest;
  26. private RoleDataTable tableRole;
  27. private StatusDataTable tableStatus;
  28. private TypeDefectDataTable tableTypeDefect;
  29. private AllTypeDefectDataTable tableAllTypeDefect;
  30. private global::System.Data.DataRelation relationFK_Employee_Role;
  31. private global::System.Data.DataRelation relationFK_ExecutionRequest_Employee;
  32. private global::System.Data.DataRelation relationFK_ExecutionRequest_Request;
  33. private global::System.Data.DataRelation relationFK_Request_Client;
  34. private global::System.Data.DataRelation relationFK_Request_Employee;
  35. private global::System.Data.DataRelation relationFK_Request_Status;
  36. private global::System.Data.DataRelation relationFK_Request_TypeDefect;
  37. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  38. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  39. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  40. public TechServiceBAUDataSet() {
  41. this.BeginInit();
  42. this.InitClass();
  43. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  44. base.Tables.CollectionChanged += schemaChangedHandler;
  45. base.Relations.CollectionChanged += schemaChangedHandler;
  46. this.EndInit();
  47. }
  48. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  49. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  50. protected TechServiceBAUDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  51. base(info, context, false) {
  52. if ((this.IsBinarySerialized(info, context) == true)) {
  53. this.InitVars(false);
  54. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  55. this.Tables.CollectionChanged += schemaChangedHandler1;
  56. this.Relations.CollectionChanged += schemaChangedHandler1;
  57. return;
  58. }
  59. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  60. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  61. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  62. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  63. if ((ds.Tables["Client"] != null)) {
  64. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  65. }
  66. if ((ds.Tables["Employee"] != null)) {
  67. base.Tables.Add(new EmployeeDataTable(ds.Tables["Employee"]));
  68. }
  69. if ((ds.Tables["ExecutionRequest"] != null)) {
  70. base.Tables.Add(new ExecutionRequestDataTable(ds.Tables["ExecutionRequest"]));
  71. }
  72. if ((ds.Tables["Request"] != null)) {
  73. base.Tables.Add(new RequestDataTable(ds.Tables["Request"]));
  74. }
  75. if ((ds.Tables["Role"] != null)) {
  76. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  77. }
  78. if ((ds.Tables["Status"] != null)) {
  79. base.Tables.Add(new StatusDataTable(ds.Tables["Status"]));
  80. }
  81. if ((ds.Tables["TypeDefect"] != null)) {
  82. base.Tables.Add(new TypeDefectDataTable(ds.Tables["TypeDefect"]));
  83. }
  84. if ((ds.Tables["AllTypeDefect"] != null)) {
  85. base.Tables.Add(new AllTypeDefectDataTable(ds.Tables["AllTypeDefect"]));
  86. }
  87. this.DataSetName = ds.DataSetName;
  88. this.Prefix = ds.Prefix;
  89. this.Namespace = ds.Namespace;
  90. this.Locale = ds.Locale;
  91. this.CaseSensitive = ds.CaseSensitive;
  92. this.EnforceConstraints = ds.EnforceConstraints;
  93. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  94. this.InitVars();
  95. }
  96. else {
  97. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  98. }
  99. this.GetSerializationData(info, context);
  100. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  101. base.Tables.CollectionChanged += schemaChangedHandler;
  102. this.Relations.CollectionChanged += schemaChangedHandler;
  103. }
  104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  106. [global::System.ComponentModel.Browsable(false)]
  107. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  108. public ClientDataTable Client {
  109. get {
  110. return this.tableClient;
  111. }
  112. }
  113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  115. [global::System.ComponentModel.Browsable(false)]
  116. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  117. public EmployeeDataTable Employee {
  118. get {
  119. return this.tableEmployee;
  120. }
  121. }
  122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  124. [global::System.ComponentModel.Browsable(false)]
  125. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  126. public ExecutionRequestDataTable ExecutionRequest {
  127. get {
  128. return this.tableExecutionRequest;
  129. }
  130. }
  131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  133. [global::System.ComponentModel.Browsable(false)]
  134. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  135. public RequestDataTable Request {
  136. get {
  137. return this.tableRequest;
  138. }
  139. }
  140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  142. [global::System.ComponentModel.Browsable(false)]
  143. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  144. public RoleDataTable Role {
  145. get {
  146. return this.tableRole;
  147. }
  148. }
  149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  151. [global::System.ComponentModel.Browsable(false)]
  152. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  153. public StatusDataTable Status {
  154. get {
  155. return this.tableStatus;
  156. }
  157. }
  158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  160. [global::System.ComponentModel.Browsable(false)]
  161. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  162. public TypeDefectDataTable TypeDefect {
  163. get {
  164. return this.tableTypeDefect;
  165. }
  166. }
  167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  169. [global::System.ComponentModel.Browsable(false)]
  170. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  171. public AllTypeDefectDataTable AllTypeDefect {
  172. get {
  173. return this.tableAllTypeDefect;
  174. }
  175. }
  176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  178. [global::System.ComponentModel.BrowsableAttribute(true)]
  179. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  180. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  181. get {
  182. return this._schemaSerializationMode;
  183. }
  184. set {
  185. this._schemaSerializationMode = value;
  186. }
  187. }
  188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  190. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  191. public new global::System.Data.DataTableCollection Tables {
  192. get {
  193. return base.Tables;
  194. }
  195. }
  196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  198. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  199. public new global::System.Data.DataRelationCollection Relations {
  200. get {
  201. return base.Relations;
  202. }
  203. }
  204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  206. protected override void InitializeDerivedDataSet() {
  207. this.BeginInit();
  208. this.InitClass();
  209. this.EndInit();
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  213. public override global::System.Data.DataSet Clone() {
  214. TechServiceBAUDataSet cln = ((TechServiceBAUDataSet)(base.Clone()));
  215. cln.InitVars();
  216. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  217. return cln;
  218. }
  219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  221. protected override bool ShouldSerializeTables() {
  222. return false;
  223. }
  224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  226. protected override bool ShouldSerializeRelations() {
  227. return false;
  228. }
  229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  231. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  232. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  233. this.Reset();
  234. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  235. ds.ReadXml(reader);
  236. if ((ds.Tables["Client"] != null)) {
  237. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  238. }
  239. if ((ds.Tables["Employee"] != null)) {
  240. base.Tables.Add(new EmployeeDataTable(ds.Tables["Employee"]));
  241. }
  242. if ((ds.Tables["ExecutionRequest"] != null)) {
  243. base.Tables.Add(new ExecutionRequestDataTable(ds.Tables["ExecutionRequest"]));
  244. }
  245. if ((ds.Tables["Request"] != null)) {
  246. base.Tables.Add(new RequestDataTable(ds.Tables["Request"]));
  247. }
  248. if ((ds.Tables["Role"] != null)) {
  249. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  250. }
  251. if ((ds.Tables["Status"] != null)) {
  252. base.Tables.Add(new StatusDataTable(ds.Tables["Status"]));
  253. }
  254. if ((ds.Tables["TypeDefect"] != null)) {
  255. base.Tables.Add(new TypeDefectDataTable(ds.Tables["TypeDefect"]));
  256. }
  257. if ((ds.Tables["AllTypeDefect"] != null)) {
  258. base.Tables.Add(new AllTypeDefectDataTable(ds.Tables["AllTypeDefect"]));
  259. }
  260. this.DataSetName = ds.DataSetName;
  261. this.Prefix = ds.Prefix;
  262. this.Namespace = ds.Namespace;
  263. this.Locale = ds.Locale;
  264. this.CaseSensitive = ds.CaseSensitive;
  265. this.EnforceConstraints = ds.EnforceConstraints;
  266. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  267. this.InitVars();
  268. }
  269. else {
  270. this.ReadXml(reader);
  271. this.InitVars();
  272. }
  273. }
  274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  276. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  277. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  278. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  279. stream.Position = 0;
  280. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  281. }
  282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  284. internal void InitVars() {
  285. this.InitVars(true);
  286. }
  287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  289. internal void InitVars(bool initTable) {
  290. this.tableClient = ((ClientDataTable)(base.Tables["Client"]));
  291. if ((initTable == true)) {
  292. if ((this.tableClient != null)) {
  293. this.tableClient.InitVars();
  294. }
  295. }
  296. this.tableEmployee = ((EmployeeDataTable)(base.Tables["Employee"]));
  297. if ((initTable == true)) {
  298. if ((this.tableEmployee != null)) {
  299. this.tableEmployee.InitVars();
  300. }
  301. }
  302. this.tableExecutionRequest = ((ExecutionRequestDataTable)(base.Tables["ExecutionRequest"]));
  303. if ((initTable == true)) {
  304. if ((this.tableExecutionRequest != null)) {
  305. this.tableExecutionRequest.InitVars();
  306. }
  307. }
  308. this.tableRequest = ((RequestDataTable)(base.Tables["Request"]));
  309. if ((initTable == true)) {
  310. if ((this.tableRequest != null)) {
  311. this.tableRequest.InitVars();
  312. }
  313. }
  314. this.tableRole = ((RoleDataTable)(base.Tables["Role"]));
  315. if ((initTable == true)) {
  316. if ((this.tableRole != null)) {
  317. this.tableRole.InitVars();
  318. }
  319. }
  320. this.tableStatus = ((StatusDataTable)(base.Tables["Status"]));
  321. if ((initTable == true)) {
  322. if ((this.tableStatus != null)) {
  323. this.tableStatus.InitVars();
  324. }
  325. }
  326. this.tableTypeDefect = ((TypeDefectDataTable)(base.Tables["TypeDefect"]));
  327. if ((initTable == true)) {
  328. if ((this.tableTypeDefect != null)) {
  329. this.tableTypeDefect.InitVars();
  330. }
  331. }
  332. this.tableAllTypeDefect = ((AllTypeDefectDataTable)(base.Tables["AllTypeDefect"]));
  333. if ((initTable == true)) {
  334. if ((this.tableAllTypeDefect != null)) {
  335. this.tableAllTypeDefect.InitVars();
  336. }
  337. }
  338. this.relationFK_Employee_Role = this.Relations["FK_Employee_Role"];
  339. this.relationFK_ExecutionRequest_Employee = this.Relations["FK_ExecutionRequest_Employee"];
  340. this.relationFK_ExecutionRequest_Request = this.Relations["FK_ExecutionRequest_Request"];
  341. this.relationFK_Request_Client = this.Relations["FK_Request_Client"];
  342. this.relationFK_Request_Employee = this.Relations["FK_Request_Employee"];
  343. this.relationFK_Request_Status = this.Relations["FK_Request_Status"];
  344. this.relationFK_Request_TypeDefect = this.Relations["FK_Request_TypeDefect"];
  345. }
  346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  348. private void InitClass() {
  349. this.DataSetName = "TechServiceBAUDataSet";
  350. this.Prefix = "";
  351. this.Namespace = "http://tempuri.org/TechServiceBAUDataSet.xsd";
  352. this.EnforceConstraints = true;
  353. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  354. this.tableClient = new ClientDataTable();
  355. base.Tables.Add(this.tableClient);
  356. this.tableEmployee = new EmployeeDataTable();
  357. base.Tables.Add(this.tableEmployee);
  358. this.tableExecutionRequest = new ExecutionRequestDataTable();
  359. base.Tables.Add(this.tableExecutionRequest);
  360. this.tableRequest = new RequestDataTable();
  361. base.Tables.Add(this.tableRequest);
  362. this.tableRole = new RoleDataTable();
  363. base.Tables.Add(this.tableRole);
  364. this.tableStatus = new StatusDataTable();
  365. base.Tables.Add(this.tableStatus);
  366. this.tableTypeDefect = new TypeDefectDataTable();
  367. base.Tables.Add(this.tableTypeDefect);
  368. this.tableAllTypeDefect = new AllTypeDefectDataTable();
  369. base.Tables.Add(this.tableAllTypeDefect);
  370. this.relationFK_Employee_Role = new global::System.Data.DataRelation("FK_Employee_Role", new global::System.Data.DataColumn[] {
  371. this.tableRole.IdRoleColumn}, new global::System.Data.DataColumn[] {
  372. this.tableEmployee.IdRoleColumn}, false);
  373. this.Relations.Add(this.relationFK_Employee_Role);
  374. this.relationFK_ExecutionRequest_Employee = new global::System.Data.DataRelation("FK_ExecutionRequest_Employee", new global::System.Data.DataColumn[] {
  375. this.tableEmployee.IdEmployeeColumn}, new global::System.Data.DataColumn[] {
  376. this.tableExecutionRequest.IdMasterColumn}, false);
  377. this.Relations.Add(this.relationFK_ExecutionRequest_Employee);
  378. this.relationFK_ExecutionRequest_Request = new global::System.Data.DataRelation("FK_ExecutionRequest_Request", new global::System.Data.DataColumn[] {
  379. this.tableRequest.IdRequestColumn}, new global::System.Data.DataColumn[] {
  380. this.tableExecutionRequest.IdRequestColumn}, false);
  381. this.Relations.Add(this.relationFK_ExecutionRequest_Request);
  382. this.relationFK_Request_Client = new global::System.Data.DataRelation("FK_Request_Client", new global::System.Data.DataColumn[] {
  383. this.tableClient.IdClientColumn}, new global::System.Data.DataColumn[] {
  384. this.tableRequest.IdClientColumn}, false);
  385. this.Relations.Add(this.relationFK_Request_Client);
  386. this.relationFK_Request_Employee = new global::System.Data.DataRelation("FK_Request_Employee", new global::System.Data.DataColumn[] {
  387. this.tableEmployee.IdEmployeeColumn}, new global::System.Data.DataColumn[] {
  388. this.tableRequest.IdManagerColumn}, false);
  389. this.Relations.Add(this.relationFK_Request_Employee);
  390. this.relationFK_Request_Status = new global::System.Data.DataRelation("FK_Request_Status", new global::System.Data.DataColumn[] {
  391. this.tableStatus.IdStatusColumn}, new global::System.Data.DataColumn[] {
  392. this.tableRequest.IdStatusColumn}, false);
  393. this.Relations.Add(this.relationFK_Request_Status);
  394. this.relationFK_Request_TypeDefect = new global::System.Data.DataRelation("FK_Request_TypeDefect", new global::System.Data.DataColumn[] {
  395. this.tableTypeDefect.IdTypeDefectColumn}, new global::System.Data.DataColumn[] {
  396. this.tableRequest.IdTypeDefectColumn}, false);
  397. this.Relations.Add(this.relationFK_Request_TypeDefect);
  398. }
  399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  401. private bool ShouldSerializeClient() {
  402. return false;
  403. }
  404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  406. private bool ShouldSerializeEmployee() {
  407. return false;
  408. }
  409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  411. private bool ShouldSerializeExecutionRequest() {
  412. return false;
  413. }
  414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  416. private bool ShouldSerializeRequest() {
  417. return false;
  418. }
  419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  421. private bool ShouldSerializeRole() {
  422. return false;
  423. }
  424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  426. private bool ShouldSerializeStatus() {
  427. return false;
  428. }
  429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  431. private bool ShouldSerializeTypeDefect() {
  432. return false;
  433. }
  434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  436. private bool ShouldSerializeAllTypeDefect() {
  437. return false;
  438. }
  439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  441. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  442. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  443. this.InitVars();
  444. }
  445. }
  446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  448. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  449. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  450. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  451. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  452. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  453. any.Namespace = ds.Namespace;
  454. sequence.Items.Add(any);
  455. type.Particle = sequence;
  456. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  457. if (xs.Contains(dsSchema.TargetNamespace)) {
  458. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  459. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  460. try {
  461. global::System.Xml.Schema.XmlSchema schema = null;
  462. dsSchema.Write(s1);
  463. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  464. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  465. s2.SetLength(0);
  466. schema.Write(s2);
  467. if ((s1.Length == s2.Length)) {
  468. s1.Position = 0;
  469. s2.Position = 0;
  470. for (; ((s1.Position != s1.Length)
  471. && (s1.ReadByte() == s2.ReadByte())); ) {
  472. ;
  473. }
  474. if ((s1.Position == s1.Length)) {
  475. return type;
  476. }
  477. }
  478. }
  479. }
  480. finally {
  481. if ((s1 != null)) {
  482. s1.Close();
  483. }
  484. if ((s2 != null)) {
  485. s2.Close();
  486. }
  487. }
  488. }
  489. xs.Add(dsSchema);
  490. return type;
  491. }
  492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  493. public delegate void ClientRowChangeEventHandler(object sender, ClientRowChangeEvent e);
  494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  495. public delegate void EmployeeRowChangeEventHandler(object sender, EmployeeRowChangeEvent e);
  496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  497. public delegate void ExecutionRequestRowChangeEventHandler(object sender, ExecutionRequestRowChangeEvent e);
  498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  499. public delegate void RequestRowChangeEventHandler(object sender, RequestRowChangeEvent e);
  500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  501. public delegate void RoleRowChangeEventHandler(object sender, RoleRowChangeEvent e);
  502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  503. public delegate void StatusRowChangeEventHandler(object sender, StatusRowChangeEvent e);
  504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  505. public delegate void TypeDefectRowChangeEventHandler(object sender, TypeDefectRowChangeEvent e);
  506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  507. public delegate void AllTypeDefectRowChangeEventHandler(object sender, AllTypeDefectRowChangeEvent e);
  508. /// <summary>
  509. ///Represents the strongly named DataTable class.
  510. ///</summary>
  511. [global::System.Serializable()]
  512. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  513. public partial class ClientDataTable : global::System.Data.TypedTableBase<ClientRow> {
  514. private global::System.Data.DataColumn columnIdClient;
  515. private global::System.Data.DataColumn columnSurname;
  516. private global::System.Data.DataColumn columnName;
  517. private global::System.Data.DataColumn columnPatronymic;
  518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  520. public ClientDataTable() {
  521. this.TableName = "Client";
  522. this.BeginInit();
  523. this.InitClass();
  524. this.EndInit();
  525. }
  526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  528. internal ClientDataTable(global::System.Data.DataTable table) {
  529. this.TableName = table.TableName;
  530. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  531. this.CaseSensitive = table.CaseSensitive;
  532. }
  533. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  534. this.Locale = table.Locale;
  535. }
  536. if ((table.Namespace != table.DataSet.Namespace)) {
  537. this.Namespace = table.Namespace;
  538. }
  539. this.Prefix = table.Prefix;
  540. this.MinimumCapacity = table.MinimumCapacity;
  541. }
  542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  544. protected ClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  545. base(info, context) {
  546. this.InitVars();
  547. }
  548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  550. public global::System.Data.DataColumn IdClientColumn {
  551. get {
  552. return this.columnIdClient;
  553. }
  554. }
  555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  557. public global::System.Data.DataColumn SurnameColumn {
  558. get {
  559. return this.columnSurname;
  560. }
  561. }
  562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  564. public global::System.Data.DataColumn NameColumn {
  565. get {
  566. return this.columnName;
  567. }
  568. }
  569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  571. public global::System.Data.DataColumn PatronymicColumn {
  572. get {
  573. return this.columnPatronymic;
  574. }
  575. }
  576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  578. [global::System.ComponentModel.Browsable(false)]
  579. public int Count {
  580. get {
  581. return this.Rows.Count;
  582. }
  583. }
  584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  586. public ClientRow this[int index] {
  587. get {
  588. return ((ClientRow)(this.Rows[index]));
  589. }
  590. }
  591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  592. public event ClientRowChangeEventHandler ClientRowChanging;
  593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  594. public event ClientRowChangeEventHandler ClientRowChanged;
  595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  596. public event ClientRowChangeEventHandler ClientRowDeleting;
  597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  598. public event ClientRowChangeEventHandler ClientRowDeleted;
  599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  601. public void AddClientRow(ClientRow row) {
  602. this.Rows.Add(row);
  603. }
  604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  606. public ClientRow AddClientRow(string Surname, string Name, string Patronymic) {
  607. ClientRow rowClientRow = ((ClientRow)(this.NewRow()));
  608. object[] columnValuesArray = new object[] {
  609. null,
  610. Surname,
  611. Name,
  612. Patronymic};
  613. rowClientRow.ItemArray = columnValuesArray;
  614. this.Rows.Add(rowClientRow);
  615. return rowClientRow;
  616. }
  617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  619. public ClientRow FindByIdClient(int IdClient) {
  620. return ((ClientRow)(this.Rows.Find(new object[] {
  621. IdClient})));
  622. }
  623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  625. public override global::System.Data.DataTable Clone() {
  626. ClientDataTable cln = ((ClientDataTable)(base.Clone()));
  627. cln.InitVars();
  628. return cln;
  629. }
  630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  632. protected override global::System.Data.DataTable CreateInstance() {
  633. return new ClientDataTable();
  634. }
  635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  637. internal void InitVars() {
  638. this.columnIdClient = base.Columns["IdClient"];
  639. this.columnSurname = base.Columns["Surname"];
  640. this.columnName = base.Columns["Name"];
  641. this.columnPatronymic = base.Columns["Patronymic"];
  642. }
  643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  645. private void InitClass() {
  646. this.columnIdClient = new global::System.Data.DataColumn("IdClient", typeof(int), null, global::System.Data.MappingType.Element);
  647. base.Columns.Add(this.columnIdClient);
  648. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  649. base.Columns.Add(this.columnSurname);
  650. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  651. base.Columns.Add(this.columnName);
  652. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  653. base.Columns.Add(this.columnPatronymic);
  654. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  655. this.columnIdClient}, true));
  656. this.columnIdClient.AutoIncrement = true;
  657. this.columnIdClient.AutoIncrementSeed = -1;
  658. this.columnIdClient.AutoIncrementStep = -1;
  659. this.columnIdClient.AllowDBNull = false;
  660. this.columnIdClient.ReadOnly = true;
  661. this.columnIdClient.Unique = true;
  662. this.columnSurname.MaxLength = 50;
  663. this.columnName.MaxLength = 50;
  664. this.columnPatronymic.MaxLength = 50;
  665. }
  666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  668. public ClientRow NewClientRow() {
  669. return ((ClientRow)(this.NewRow()));
  670. }
  671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  673. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  674. return new ClientRow(builder);
  675. }
  676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  678. protected override global::System.Type GetRowType() {
  679. return typeof(ClientRow);
  680. }
  681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  683. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  684. base.OnRowChanged(e);
  685. if ((this.ClientRowChanged != null)) {
  686. this.ClientRowChanged(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  687. }
  688. }
  689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  691. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  692. base.OnRowChanging(e);
  693. if ((this.ClientRowChanging != null)) {
  694. this.ClientRowChanging(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  695. }
  696. }
  697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  699. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  700. base.OnRowDeleted(e);
  701. if ((this.ClientRowDeleted != null)) {
  702. this.ClientRowDeleted(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  703. }
  704. }
  705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  707. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  708. base.OnRowDeleting(e);
  709. if ((this.ClientRowDeleting != null)) {
  710. this.ClientRowDeleting(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  711. }
  712. }
  713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  715. public void RemoveClientRow(ClientRow row) {
  716. this.Rows.Remove(row);
  717. }
  718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  720. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  721. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  722. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  723. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  724. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  725. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  726. any1.MinOccurs = new decimal(0);
  727. any1.MaxOccurs = decimal.MaxValue;
  728. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  729. sequence.Items.Add(any1);
  730. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  731. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  732. any2.MinOccurs = new decimal(1);
  733. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  734. sequence.Items.Add(any2);
  735. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  736. attribute1.Name = "namespace";
  737. attribute1.FixedValue = ds.Namespace;
  738. type.Attributes.Add(attribute1);
  739. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  740. attribute2.Name = "tableTypeName";
  741. attribute2.FixedValue = "ClientDataTable";
  742. type.Attributes.Add(attribute2);
  743. type.Particle = sequence;
  744. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  745. if (xs.Contains(dsSchema.TargetNamespace)) {
  746. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  747. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  748. try {
  749. global::System.Xml.Schema.XmlSchema schema = null;
  750. dsSchema.Write(s1);
  751. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  752. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  753. s2.SetLength(0);
  754. schema.Write(s2);
  755. if ((s1.Length == s2.Length)) {
  756. s1.Position = 0;
  757. s2.Position = 0;
  758. for (; ((s1.Position != s1.Length)
  759. && (s1.ReadByte() == s2.ReadByte())); ) {
  760. ;
  761. }
  762. if ((s1.Position == s1.Length)) {
  763. return type;
  764. }
  765. }
  766. }
  767. }
  768. finally {
  769. if ((s1 != null)) {
  770. s1.Close();
  771. }
  772. if ((s2 != null)) {
  773. s2.Close();
  774. }
  775. }
  776. }
  777. xs.Add(dsSchema);
  778. return type;
  779. }
  780. }
  781. /// <summary>
  782. ///Represents the strongly named DataTable class.
  783. ///</summary>
  784. [global::System.Serializable()]
  785. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  786. public partial class EmployeeDataTable : global::System.Data.TypedTableBase<EmployeeRow> {
  787. private global::System.Data.DataColumn columnIdEmployee;
  788. private global::System.Data.DataColumn columnIdRole;
  789. private global::System.Data.DataColumn columnSurname;
  790. private global::System.Data.DataColumn columnName;
  791. private global::System.Data.DataColumn columnPatronymic;
  792. private global::System.Data.DataColumn columnLogin;
  793. private global::System.Data.DataColumn columnPassword;
  794. private global::System.Data.DataColumn columnPhoto;
  795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  797. public EmployeeDataTable() {
  798. this.TableName = "Employee";
  799. this.BeginInit();
  800. this.InitClass();
  801. this.EndInit();
  802. }
  803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  805. internal EmployeeDataTable(global::System.Data.DataTable table) {
  806. this.TableName = table.TableName;
  807. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  808. this.CaseSensitive = table.CaseSensitive;
  809. }
  810. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  811. this.Locale = table.Locale;
  812. }
  813. if ((table.Namespace != table.DataSet.Namespace)) {
  814. this.Namespace = table.Namespace;
  815. }
  816. this.Prefix = table.Prefix;
  817. this.MinimumCapacity = table.MinimumCapacity;
  818. }
  819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  821. protected EmployeeDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  822. base(info, context) {
  823. this.InitVars();
  824. }
  825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  827. public global::System.Data.DataColumn IdEmployeeColumn {
  828. get {
  829. return this.columnIdEmployee;
  830. }
  831. }
  832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  834. public global::System.Data.DataColumn IdRoleColumn {
  835. get {
  836. return this.columnIdRole;
  837. }
  838. }
  839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  841. public global::System.Data.DataColumn SurnameColumn {
  842. get {
  843. return this.columnSurname;
  844. }
  845. }
  846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  848. public global::System.Data.DataColumn NameColumn {
  849. get {
  850. return this.columnName;
  851. }
  852. }
  853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  855. public global::System.Data.DataColumn PatronymicColumn {
  856. get {
  857. return this.columnPatronymic;
  858. }
  859. }
  860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  862. public global::System.Data.DataColumn LoginColumn {
  863. get {
  864. return this.columnLogin;
  865. }
  866. }
  867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  869. public global::System.Data.DataColumn PasswordColumn {
  870. get {
  871. return this.columnPassword;
  872. }
  873. }
  874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  876. public global::System.Data.DataColumn PhotoColumn {
  877. get {
  878. return this.columnPhoto;
  879. }
  880. }
  881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  883. [global::System.ComponentModel.Browsable(false)]
  884. public int Count {
  885. get {
  886. return this.Rows.Count;
  887. }
  888. }
  889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  891. public EmployeeRow this[int index] {
  892. get {
  893. return ((EmployeeRow)(this.Rows[index]));
  894. }
  895. }
  896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  897. public event EmployeeRowChangeEventHandler EmployeeRowChanging;
  898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  899. public event EmployeeRowChangeEventHandler EmployeeRowChanged;
  900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  901. public event EmployeeRowChangeEventHandler EmployeeRowDeleting;
  902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  903. public event EmployeeRowChangeEventHandler EmployeeRowDeleted;
  904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  906. public void AddEmployeeRow(EmployeeRow row) {
  907. this.Rows.Add(row);
  908. }
  909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  911. public EmployeeRow AddEmployeeRow(RoleRow parentRoleRowByFK_Employee_Role, string Surname, string Name, string Patronymic, string Login, string Password, string Photo) {
  912. EmployeeRow rowEmployeeRow = ((EmployeeRow)(this.NewRow()));
  913. object[] columnValuesArray = new object[] {
  914. null,
  915. null,
  916. Surname,
  917. Name,
  918. Patronymic,
  919. Login,
  920. Password,
  921. Photo};
  922. if ((parentRoleRowByFK_Employee_Role != null)) {
  923. columnValuesArray[1] = parentRoleRowByFK_Employee_Role[0];
  924. }
  925. rowEmployeeRow.ItemArray = columnValuesArray;
  926. this.Rows.Add(rowEmployeeRow);
  927. return rowEmployeeRow;
  928. }
  929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  931. public EmployeeRow FindByIdEmployee(int IdEmployee) {
  932. return ((EmployeeRow)(this.Rows.Find(new object[] {
  933. IdEmployee})));
  934. }
  935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  937. public override global::System.Data.DataTable Clone() {
  938. EmployeeDataTable cln = ((EmployeeDataTable)(base.Clone()));
  939. cln.InitVars();
  940. return cln;
  941. }
  942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  944. protected override global::System.Data.DataTable CreateInstance() {
  945. return new EmployeeDataTable();
  946. }
  947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  949. internal void InitVars() {
  950. this.columnIdEmployee = base.Columns["IdEmployee"];
  951. this.columnIdRole = base.Columns["IdRole"];
  952. this.columnSurname = base.Columns["Surname"];
  953. this.columnName = base.Columns["Name"];
  954. this.columnPatronymic = base.Columns["Patronymic"];
  955. this.columnLogin = base.Columns["Login"];
  956. this.columnPassword = base.Columns["Password"];
  957. this.columnPhoto = base.Columns["Photo"];
  958. }
  959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  961. private void InitClass() {
  962. this.columnIdEmployee = new global::System.Data.DataColumn("IdEmployee", typeof(int), null, global::System.Data.MappingType.Element);
  963. base.Columns.Add(this.columnIdEmployee);
  964. this.columnIdRole = new global::System.Data.DataColumn("IdRole", typeof(int), null, global::System.Data.MappingType.Element);
  965. base.Columns.Add(this.columnIdRole);
  966. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  967. base.Columns.Add(this.columnSurname);
  968. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  969. base.Columns.Add(this.columnName);
  970. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  971. base.Columns.Add(this.columnPatronymic);
  972. this.columnLogin = new global::System.Data.DataColumn("Login", typeof(string), null, global::System.Data.MappingType.Element);
  973. base.Columns.Add(this.columnLogin);
  974. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  975. base.Columns.Add(this.columnPassword);
  976. this.columnPhoto = new global::System.Data.DataColumn("Photo", typeof(string), null, global::System.Data.MappingType.Element);
  977. base.Columns.Add(this.columnPhoto);
  978. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  979. this.columnIdEmployee}, true));
  980. this.columnIdEmployee.AutoIncrement = true;
  981. this.columnIdEmployee.AutoIncrementSeed = -1;
  982. this.columnIdEmployee.AutoIncrementStep = -1;
  983. this.columnIdEmployee.AllowDBNull = false;
  984. this.columnIdEmployee.ReadOnly = true;
  985. this.columnIdEmployee.Unique = true;
  986. this.columnSurname.MaxLength = 50;
  987. this.columnName.MaxLength = 50;
  988. this.columnPatronymic.MaxLength = 50;
  989. this.columnLogin.MaxLength = 50;
  990. this.columnPassword.MaxLength = 50;
  991. this.columnPhoto.MaxLength = 50;
  992. }
  993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  995. public EmployeeRow NewEmployeeRow() {
  996. return ((EmployeeRow)(this.NewRow()));
  997. }
  998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1000. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1001. return new EmployeeRow(builder);
  1002. }
  1003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1005. protected override global::System.Type GetRowType() {
  1006. return typeof(EmployeeRow);
  1007. }
  1008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1010. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1011. base.OnRowChanged(e);
  1012. if ((this.EmployeeRowChanged != null)) {
  1013. this.EmployeeRowChanged(this, new EmployeeRowChangeEvent(((EmployeeRow)(e.Row)), e.Action));
  1014. }
  1015. }
  1016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1018. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1019. base.OnRowChanging(e);
  1020. if ((this.EmployeeRowChanging != null)) {
  1021. this.EmployeeRowChanging(this, new EmployeeRowChangeEvent(((EmployeeRow)(e.Row)), e.Action));
  1022. }
  1023. }
  1024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1026. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1027. base.OnRowDeleted(e);
  1028. if ((this.EmployeeRowDeleted != null)) {
  1029. this.EmployeeRowDeleted(this, new EmployeeRowChangeEvent(((EmployeeRow)(e.Row)), e.Action));
  1030. }
  1031. }
  1032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1034. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1035. base.OnRowDeleting(e);
  1036. if ((this.EmployeeRowDeleting != null)) {
  1037. this.EmployeeRowDeleting(this, new EmployeeRowChangeEvent(((EmployeeRow)(e.Row)), e.Action));
  1038. }
  1039. }
  1040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1042. public void RemoveEmployeeRow(EmployeeRow row) {
  1043. this.Rows.Remove(row);
  1044. }
  1045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1047. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1048. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1049. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1050. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  1051. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1052. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1053. any1.MinOccurs = new decimal(0);
  1054. any1.MaxOccurs = decimal.MaxValue;
  1055. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1056. sequence.Items.Add(any1);
  1057. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1058. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1059. any2.MinOccurs = new decimal(1);
  1060. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1061. sequence.Items.Add(any2);
  1062. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1063. attribute1.Name = "namespace";
  1064. attribute1.FixedValue = ds.Namespace;
  1065. type.Attributes.Add(attribute1);
  1066. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1067. attribute2.Name = "tableTypeName";
  1068. attribute2.FixedValue = "EmployeeDataTable";
  1069. type.Attributes.Add(attribute2);
  1070. type.Particle = sequence;
  1071. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1072. if (xs.Contains(dsSchema.TargetNamespace)) {
  1073. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1074. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1075. try {
  1076. global::System.Xml.Schema.XmlSchema schema = null;
  1077. dsSchema.Write(s1);
  1078. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1079. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1080. s2.SetLength(0);
  1081. schema.Write(s2);
  1082. if ((s1.Length == s2.Length)) {
  1083. s1.Position = 0;
  1084. s2.Position = 0;
  1085. for (; ((s1.Position != s1.Length)
  1086. && (s1.ReadByte() == s2.ReadByte())); ) {
  1087. ;
  1088. }
  1089. if ((s1.Position == s1.Length)) {
  1090. return type;
  1091. }
  1092. }
  1093. }
  1094. }
  1095. finally {
  1096. if ((s1 != null)) {
  1097. s1.Close();
  1098. }
  1099. if ((s2 != null)) {
  1100. s2.Close();
  1101. }
  1102. }
  1103. }
  1104. xs.Add(dsSchema);
  1105. return type;
  1106. }
  1107. }
  1108. /// <summary>
  1109. ///Represents the strongly named DataTable class.
  1110. ///</summary>
  1111. [global::System.Serializable()]
  1112. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1113. public partial class ExecutionRequestDataTable : global::System.Data.TypedTableBase<ExecutionRequestRow> {
  1114. private global::System.Data.DataColumn columnIdExecution;
  1115. private global::System.Data.DataColumn columnIdRequest;
  1116. private global::System.Data.DataColumn columnIdMaster;
  1117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1119. public ExecutionRequestDataTable() {
  1120. this.TableName = "ExecutionRequest";
  1121. this.BeginInit();
  1122. this.InitClass();
  1123. this.EndInit();
  1124. }
  1125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1127. internal ExecutionRequestDataTable(global::System.Data.DataTable table) {
  1128. this.TableName = table.TableName;
  1129. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1130. this.CaseSensitive = table.CaseSensitive;
  1131. }
  1132. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1133. this.Locale = table.Locale;
  1134. }
  1135. if ((table.Namespace != table.DataSet.Namespace)) {
  1136. this.Namespace = table.Namespace;
  1137. }
  1138. this.Prefix = table.Prefix;
  1139. this.MinimumCapacity = table.MinimumCapacity;
  1140. }
  1141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1143. protected ExecutionRequestDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1144. base(info, context) {
  1145. this.InitVars();
  1146. }
  1147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1149. public global::System.Data.DataColumn IdExecutionColumn {
  1150. get {
  1151. return this.columnIdExecution;
  1152. }
  1153. }
  1154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1156. public global::System.Data.DataColumn IdRequestColumn {
  1157. get {
  1158. return this.columnIdRequest;
  1159. }
  1160. }
  1161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1163. public global::System.Data.DataColumn IdMasterColumn {
  1164. get {
  1165. return this.columnIdMaster;
  1166. }
  1167. }
  1168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1170. [global::System.ComponentModel.Browsable(false)]
  1171. public int Count {
  1172. get {
  1173. return this.Rows.Count;
  1174. }
  1175. }
  1176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1178. public ExecutionRequestRow this[int index] {
  1179. get {
  1180. return ((ExecutionRequestRow)(this.Rows[index]));
  1181. }
  1182. }
  1183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1184. public event ExecutionRequestRowChangeEventHandler ExecutionRequestRowChanging;
  1185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1186. public event ExecutionRequestRowChangeEventHandler ExecutionRequestRowChanged;
  1187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1188. public event ExecutionRequestRowChangeEventHandler ExecutionRequestRowDeleting;
  1189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1190. public event ExecutionRequestRowChangeEventHandler ExecutionRequestRowDeleted;
  1191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1193. public void AddExecutionRequestRow(ExecutionRequestRow row) {
  1194. this.Rows.Add(row);
  1195. }
  1196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1198. public ExecutionRequestRow AddExecutionRequestRow(RequestRow parentRequestRowByFK_ExecutionRequest_Request, EmployeeRow parentEmployeeRowByFK_ExecutionRequest_Employee) {
  1199. ExecutionRequestRow rowExecutionRequestRow = ((ExecutionRequestRow)(this.NewRow()));
  1200. object[] columnValuesArray = new object[] {
  1201. null,
  1202. null,
  1203. null};
  1204. if ((parentRequestRowByFK_ExecutionRequest_Request != null)) {
  1205. columnValuesArray[1] = parentRequestRowByFK_ExecutionRequest_Request[0];
  1206. }
  1207. if ((parentEmployeeRowByFK_ExecutionRequest_Employee != null)) {
  1208. columnValuesArray[2] = parentEmployeeRowByFK_ExecutionRequest_Employee[0];
  1209. }
  1210. rowExecutionRequestRow.ItemArray = columnValuesArray;
  1211. this.Rows.Add(rowExecutionRequestRow);
  1212. return rowExecutionRequestRow;
  1213. }
  1214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1216. public ExecutionRequestRow FindByIdExecution(int IdExecution) {
  1217. return ((ExecutionRequestRow)(this.Rows.Find(new object[] {
  1218. IdExecution})));
  1219. }
  1220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1222. public override global::System.Data.DataTable Clone() {
  1223. ExecutionRequestDataTable cln = ((ExecutionRequestDataTable)(base.Clone()));
  1224. cln.InitVars();
  1225. return cln;
  1226. }
  1227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1229. protected override global::System.Data.DataTable CreateInstance() {
  1230. return new ExecutionRequestDataTable();
  1231. }
  1232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1234. internal void InitVars() {
  1235. this.columnIdExecution = base.Columns["IdExecution"];
  1236. this.columnIdRequest = base.Columns["IdRequest"];
  1237. this.columnIdMaster = base.Columns["IdMaster"];
  1238. }
  1239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1241. private void InitClass() {
  1242. this.columnIdExecution = new global::System.Data.DataColumn("IdExecution", typeof(int), null, global::System.Data.MappingType.Element);
  1243. base.Columns.Add(this.columnIdExecution);
  1244. this.columnIdRequest = new global::System.Data.DataColumn("IdRequest", typeof(int), null, global::System.Data.MappingType.Element);
  1245. base.Columns.Add(this.columnIdRequest);
  1246. this.columnIdMaster = new global::System.Data.DataColumn("IdMaster", typeof(int), null, global::System.Data.MappingType.Element);
  1247. base.Columns.Add(this.columnIdMaster);
  1248. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1249. this.columnIdExecution}, true));
  1250. this.columnIdExecution.AutoIncrement = true;
  1251. this.columnIdExecution.AutoIncrementSeed = -1;
  1252. this.columnIdExecution.AutoIncrementStep = -1;
  1253. this.columnIdExecution.AllowDBNull = false;
  1254. this.columnIdExecution.ReadOnly = true;
  1255. this.columnIdExecution.Unique = true;
  1256. }
  1257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1259. public ExecutionRequestRow NewExecutionRequestRow() {
  1260. return ((ExecutionRequestRow)(this.NewRow()));
  1261. }
  1262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1264. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1265. return new ExecutionRequestRow(builder);
  1266. }
  1267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1269. protected override global::System.Type GetRowType() {
  1270. return typeof(ExecutionRequestRow);
  1271. }
  1272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1274. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1275. base.OnRowChanged(e);
  1276. if ((this.ExecutionRequestRowChanged != null)) {
  1277. this.ExecutionRequestRowChanged(this, new ExecutionRequestRowChangeEvent(((ExecutionRequestRow)(e.Row)), e.Action));
  1278. }
  1279. }
  1280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1282. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1283. base.OnRowChanging(e);
  1284. if ((this.ExecutionRequestRowChanging != null)) {
  1285. this.ExecutionRequestRowChanging(this, new ExecutionRequestRowChangeEvent(((ExecutionRequestRow)(e.Row)), e.Action));
  1286. }
  1287. }
  1288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1290. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1291. base.OnRowDeleted(e);
  1292. if ((this.ExecutionRequestRowDeleted != null)) {
  1293. this.ExecutionRequestRowDeleted(this, new ExecutionRequestRowChangeEvent(((ExecutionRequestRow)(e.Row)), e.Action));
  1294. }
  1295. }
  1296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1298. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1299. base.OnRowDeleting(e);
  1300. if ((this.ExecutionRequestRowDeleting != null)) {
  1301. this.ExecutionRequestRowDeleting(this, new ExecutionRequestRowChangeEvent(((ExecutionRequestRow)(e.Row)), e.Action));
  1302. }
  1303. }
  1304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1306. public void RemoveExecutionRequestRow(ExecutionRequestRow row) {
  1307. this.Rows.Remove(row);
  1308. }
  1309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1311. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1312. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1313. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1314. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  1315. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1316. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1317. any1.MinOccurs = new decimal(0);
  1318. any1.MaxOccurs = decimal.MaxValue;
  1319. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1320. sequence.Items.Add(any1);
  1321. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1322. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1323. any2.MinOccurs = new decimal(1);
  1324. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1325. sequence.Items.Add(any2);
  1326. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1327. attribute1.Name = "namespace";
  1328. attribute1.FixedValue = ds.Namespace;
  1329. type.Attributes.Add(attribute1);
  1330. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1331. attribute2.Name = "tableTypeName";
  1332. attribute2.FixedValue = "ExecutionRequestDataTable";
  1333. type.Attributes.Add(attribute2);
  1334. type.Particle = sequence;
  1335. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1336. if (xs.Contains(dsSchema.TargetNamespace)) {
  1337. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1338. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1339. try {
  1340. global::System.Xml.Schema.XmlSchema schema = null;
  1341. dsSchema.Write(s1);
  1342. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1343. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1344. s2.SetLength(0);
  1345. schema.Write(s2);
  1346. if ((s1.Length == s2.Length)) {
  1347. s1.Position = 0;
  1348. s2.Position = 0;
  1349. for (; ((s1.Position != s1.Length)
  1350. && (s1.ReadByte() == s2.ReadByte())); ) {
  1351. ;
  1352. }
  1353. if ((s1.Position == s1.Length)) {
  1354. return type;
  1355. }
  1356. }
  1357. }
  1358. }
  1359. finally {
  1360. if ((s1 != null)) {
  1361. s1.Close();
  1362. }
  1363. if ((s2 != null)) {
  1364. s2.Close();
  1365. }
  1366. }
  1367. }
  1368. xs.Add(dsSchema);
  1369. return type;
  1370. }
  1371. }
  1372. /// <summary>
  1373. ///Represents the strongly named DataTable class.
  1374. ///</summary>
  1375. [global::System.Serializable()]
  1376. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1377. public partial class RequestDataTable : global::System.Data.TypedTableBase<RequestRow> {
  1378. private global::System.Data.DataColumn columnIdRequest;
  1379. private global::System.Data.DataColumn columnIdStatus;
  1380. private global::System.Data.DataColumn columnIdTypeDefect;
  1381. private global::System.Data.DataColumn columnIdClient;
  1382. private global::System.Data.DataColumn columnIdManager;
  1383. private global::System.Data.DataColumn columnDateAccepting;
  1384. private global::System.Data.DataColumn columnDateCompletion;
  1385. private global::System.Data.DataColumn columnEquipmentDefect;
  1386. private global::System.Data.DataColumn columnDescription;
  1387. private global::System.Data.DataColumn columnComment;
  1388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1390. public RequestDataTable() {
  1391. this.TableName = "Request";
  1392. this.BeginInit();
  1393. this.InitClass();
  1394. this.EndInit();
  1395. }
  1396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1398. internal RequestDataTable(global::System.Data.DataTable table) {
  1399. this.TableName = table.TableName;
  1400. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1401. this.CaseSensitive = table.CaseSensitive;
  1402. }
  1403. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1404. this.Locale = table.Locale;
  1405. }
  1406. if ((table.Namespace != table.DataSet.Namespace)) {
  1407. this.Namespace = table.Namespace;
  1408. }
  1409. this.Prefix = table.Prefix;
  1410. this.MinimumCapacity = table.MinimumCapacity;
  1411. }
  1412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1414. protected RequestDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1415. base(info, context) {
  1416. this.InitVars();
  1417. }
  1418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1420. public global::System.Data.DataColumn IdRequestColumn {
  1421. get {
  1422. return this.columnIdRequest;
  1423. }
  1424. }
  1425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1427. public global::System.Data.DataColumn IdStatusColumn {
  1428. get {
  1429. return this.columnIdStatus;
  1430. }
  1431. }
  1432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1434. public global::System.Data.DataColumn IdTypeDefectColumn {
  1435. get {
  1436. return this.columnIdTypeDefect;
  1437. }
  1438. }
  1439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1441. public global::System.Data.DataColumn IdClientColumn {
  1442. get {
  1443. return this.columnIdClient;
  1444. }
  1445. }
  1446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1448. public global::System.Data.DataColumn IdManagerColumn {
  1449. get {
  1450. return this.columnIdManager;
  1451. }
  1452. }
  1453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1455. public global::System.Data.DataColumn DateAcceptingColumn {
  1456. get {
  1457. return this.columnDateAccepting;
  1458. }
  1459. }
  1460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1462. public global::System.Data.DataColumn DateCompletionColumn {
  1463. get {
  1464. return this.columnDateCompletion;
  1465. }
  1466. }
  1467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1469. public global::System.Data.DataColumn EquipmentDefectColumn {
  1470. get {
  1471. return this.columnEquipmentDefect;
  1472. }
  1473. }
  1474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1476. public global::System.Data.DataColumn DescriptionColumn {
  1477. get {
  1478. return this.columnDescription;
  1479. }
  1480. }
  1481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1483. public global::System.Data.DataColumn CommentColumn {
  1484. get {
  1485. return this.columnComment;
  1486. }
  1487. }
  1488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1490. [global::System.ComponentModel.Browsable(false)]
  1491. public int Count {
  1492. get {
  1493. return this.Rows.Count;
  1494. }
  1495. }
  1496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1498. public RequestRow this[int index] {
  1499. get {
  1500. return ((RequestRow)(this.Rows[index]));
  1501. }
  1502. }
  1503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1504. public event RequestRowChangeEventHandler RequestRowChanging;
  1505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1506. public event RequestRowChangeEventHandler RequestRowChanged;
  1507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1508. public event RequestRowChangeEventHandler RequestRowDeleting;
  1509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1510. public event RequestRowChangeEventHandler RequestRowDeleted;
  1511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1513. public void AddRequestRow(RequestRow row) {
  1514. this.Rows.Add(row);
  1515. }
  1516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1518. public RequestRow AddRequestRow(StatusRow parentStatusRowByFK_Request_Status, TypeDefectRow parentTypeDefectRowByFK_Request_TypeDefect, ClientRow parentClientRowByFK_Request_Client, EmployeeRow parentEmployeeRowByFK_Request_Employee, System.DateTime DateAccepting, System.DateTime DateCompletion, string EquipmentDefect, string Description, string Comment) {
  1519. RequestRow rowRequestRow = ((RequestRow)(this.NewRow()));
  1520. object[] columnValuesArray = new object[] {
  1521. null,
  1522. null,
  1523. null,
  1524. null,
  1525. null,
  1526. DateAccepting,
  1527. DateCompletion,
  1528. EquipmentDefect,
  1529. Description,
  1530. Comment};
  1531. if ((parentStatusRowByFK_Request_Status != null)) {
  1532. columnValuesArray[1] = parentStatusRowByFK_Request_Status[0];
  1533. }
  1534. if ((parentTypeDefectRowByFK_Request_TypeDefect != null)) {
  1535. columnValuesArray[2] = parentTypeDefectRowByFK_Request_TypeDefect[0];
  1536. }
  1537. if ((parentClientRowByFK_Request_Client != null)) {
  1538. columnValuesArray[3] = parentClientRowByFK_Request_Client[0];
  1539. }
  1540. if ((parentEmployeeRowByFK_Request_Employee != null)) {
  1541. columnValuesArray[4] = parentEmployeeRowByFK_Request_Employee[0];
  1542. }
  1543. rowRequestRow.ItemArray = columnValuesArray;
  1544. this.Rows.Add(rowRequestRow);
  1545. return rowRequestRow;
  1546. }
  1547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1549. public RequestRow FindByIdRequest(int IdRequest) {
  1550. return ((RequestRow)(this.Rows.Find(new object[] {
  1551. IdRequest})));
  1552. }
  1553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1555. public override global::System.Data.DataTable Clone() {
  1556. RequestDataTable cln = ((RequestDataTable)(base.Clone()));
  1557. cln.InitVars();
  1558. return cln;
  1559. }
  1560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1562. protected override global::System.Data.DataTable CreateInstance() {
  1563. return new RequestDataTable();
  1564. }
  1565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1567. internal void InitVars() {
  1568. this.columnIdRequest = base.Columns["IdRequest"];
  1569. this.columnIdStatus = base.Columns["IdStatus"];
  1570. this.columnIdTypeDefect = base.Columns["IdTypeDefect"];
  1571. this.columnIdClient = base.Columns["IdClient"];
  1572. this.columnIdManager = base.Columns["IdManager"];
  1573. this.columnDateAccepting = base.Columns["DateAccepting"];
  1574. this.columnDateCompletion = base.Columns["DateCompletion"];
  1575. this.columnEquipmentDefect = base.Columns["EquipmentDefect"];
  1576. this.columnDescription = base.Columns["Description"];
  1577. this.columnComment = base.Columns["Comment"];
  1578. }
  1579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1581. private void InitClass() {
  1582. this.columnIdRequest = new global::System.Data.DataColumn("IdRequest", typeof(int), null, global::System.Data.MappingType.Element);
  1583. base.Columns.Add(this.columnIdRequest);
  1584. this.columnIdStatus = new global::System.Data.DataColumn("IdStatus", typeof(int), null, global::System.Data.MappingType.Element);
  1585. base.Columns.Add(this.columnIdStatus);
  1586. this.columnIdTypeDefect = new global::System.Data.DataColumn("IdTypeDefect", typeof(int), null, global::System.Data.MappingType.Element);
  1587. base.Columns.Add(this.columnIdTypeDefect);
  1588. this.columnIdClient = new global::System.Data.DataColumn("IdClient", typeof(int), null, global::System.Data.MappingType.Element);
  1589. base.Columns.Add(this.columnIdClient);
  1590. this.columnIdManager = new global::System.Data.DataColumn("IdManager", typeof(int), null, global::System.Data.MappingType.Element);
  1591. base.Columns.Add(this.columnIdManager);
  1592. this.columnDateAccepting = new global::System.Data.DataColumn("DateAccepting", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1593. base.Columns.Add(this.columnDateAccepting);
  1594. this.columnDateCompletion = new global::System.Data.DataColumn("DateCompletion", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1595. base.Columns.Add(this.columnDateCompletion);
  1596. this.columnEquipmentDefect = new global::System.Data.DataColumn("EquipmentDefect", typeof(string), null, global::System.Data.MappingType.Element);
  1597. base.Columns.Add(this.columnEquipmentDefect);
  1598. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  1599. base.Columns.Add(this.columnDescription);
  1600. this.columnComment = new global::System.Data.DataColumn("Comment", typeof(string), null, global::System.Data.MappingType.Element);
  1601. base.Columns.Add(this.columnComment);
  1602. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1603. this.columnIdRequest}, true));
  1604. this.columnIdRequest.AutoIncrement = true;
  1605. this.columnIdRequest.AutoIncrementSeed = -1;
  1606. this.columnIdRequest.AutoIncrementStep = -1;
  1607. this.columnIdRequest.AllowDBNull = false;
  1608. this.columnIdRequest.ReadOnly = true;
  1609. this.columnIdRequest.Unique = true;
  1610. this.columnEquipmentDefect.MaxLength = 100;
  1611. this.columnDescription.MaxLength = 2147483647;
  1612. this.columnComment.MaxLength = 2147483647;
  1613. }
  1614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1616. public RequestRow NewRequestRow() {
  1617. return ((RequestRow)(this.NewRow()));
  1618. }
  1619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1621. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1622. return new RequestRow(builder);
  1623. }
  1624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1626. protected override global::System.Type GetRowType() {
  1627. return typeof(RequestRow);
  1628. }
  1629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1631. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1632. base.OnRowChanged(e);
  1633. if ((this.RequestRowChanged != null)) {
  1634. this.RequestRowChanged(this, new RequestRowChangeEvent(((RequestRow)(e.Row)), e.Action));
  1635. }
  1636. }
  1637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1639. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1640. base.OnRowChanging(e);
  1641. if ((this.RequestRowChanging != null)) {
  1642. this.RequestRowChanging(this, new RequestRowChangeEvent(((RequestRow)(e.Row)), e.Action));
  1643. }
  1644. }
  1645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1647. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1648. base.OnRowDeleted(e);
  1649. if ((this.RequestRowDeleted != null)) {
  1650. this.RequestRowDeleted(this, new RequestRowChangeEvent(((RequestRow)(e.Row)), e.Action));
  1651. }
  1652. }
  1653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1655. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1656. base.OnRowDeleting(e);
  1657. if ((this.RequestRowDeleting != null)) {
  1658. this.RequestRowDeleting(this, new RequestRowChangeEvent(((RequestRow)(e.Row)), e.Action));
  1659. }
  1660. }
  1661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1663. public void RemoveRequestRow(RequestRow row) {
  1664. this.Rows.Remove(row);
  1665. }
  1666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1668. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1669. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1670. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1671. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  1672. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1673. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1674. any1.MinOccurs = new decimal(0);
  1675. any1.MaxOccurs = decimal.MaxValue;
  1676. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1677. sequence.Items.Add(any1);
  1678. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1679. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1680. any2.MinOccurs = new decimal(1);
  1681. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1682. sequence.Items.Add(any2);
  1683. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1684. attribute1.Name = "namespace";
  1685. attribute1.FixedValue = ds.Namespace;
  1686. type.Attributes.Add(attribute1);
  1687. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1688. attribute2.Name = "tableTypeName";
  1689. attribute2.FixedValue = "RequestDataTable";
  1690. type.Attributes.Add(attribute2);
  1691. type.Particle = sequence;
  1692. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1693. if (xs.Contains(dsSchema.TargetNamespace)) {
  1694. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1695. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1696. try {
  1697. global::System.Xml.Schema.XmlSchema schema = null;
  1698. dsSchema.Write(s1);
  1699. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1700. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1701. s2.SetLength(0);
  1702. schema.Write(s2);
  1703. if ((s1.Length == s2.Length)) {
  1704. s1.Position = 0;
  1705. s2.Position = 0;
  1706. for (; ((s1.Position != s1.Length)
  1707. && (s1.ReadByte() == s2.ReadByte())); ) {
  1708. ;
  1709. }
  1710. if ((s1.Position == s1.Length)) {
  1711. return type;
  1712. }
  1713. }
  1714. }
  1715. }
  1716. finally {
  1717. if ((s1 != null)) {
  1718. s1.Close();
  1719. }
  1720. if ((s2 != null)) {
  1721. s2.Close();
  1722. }
  1723. }
  1724. }
  1725. xs.Add(dsSchema);
  1726. return type;
  1727. }
  1728. }
  1729. /// <summary>
  1730. ///Represents the strongly named DataTable class.
  1731. ///</summary>
  1732. [global::System.Serializable()]
  1733. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1734. public partial class RoleDataTable : global::System.Data.TypedTableBase<RoleRow> {
  1735. private global::System.Data.DataColumn columnIdRole;
  1736. private global::System.Data.DataColumn columnTitle;
  1737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1739. public RoleDataTable() {
  1740. this.TableName = "Role";
  1741. this.BeginInit();
  1742. this.InitClass();
  1743. this.EndInit();
  1744. }
  1745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1747. internal RoleDataTable(global::System.Data.DataTable table) {
  1748. this.TableName = table.TableName;
  1749. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1750. this.CaseSensitive = table.CaseSensitive;
  1751. }
  1752. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1753. this.Locale = table.Locale;
  1754. }
  1755. if ((table.Namespace != table.DataSet.Namespace)) {
  1756. this.Namespace = table.Namespace;
  1757. }
  1758. this.Prefix = table.Prefix;
  1759. this.MinimumCapacity = table.MinimumCapacity;
  1760. }
  1761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1763. protected RoleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1764. base(info, context) {
  1765. this.InitVars();
  1766. }
  1767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1769. public global::System.Data.DataColumn IdRoleColumn {
  1770. get {
  1771. return this.columnIdRole;
  1772. }
  1773. }
  1774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1776. public global::System.Data.DataColumn TitleColumn {
  1777. get {
  1778. return this.columnTitle;
  1779. }
  1780. }
  1781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1783. [global::System.ComponentModel.Browsable(false)]
  1784. public int Count {
  1785. get {
  1786. return this.Rows.Count;
  1787. }
  1788. }
  1789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1791. public RoleRow this[int index] {
  1792. get {
  1793. return ((RoleRow)(this.Rows[index]));
  1794. }
  1795. }
  1796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1797. public event RoleRowChangeEventHandler RoleRowChanging;
  1798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1799. public event RoleRowChangeEventHandler RoleRowChanged;
  1800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1801. public event RoleRowChangeEventHandler RoleRowDeleting;
  1802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1803. public event RoleRowChangeEventHandler RoleRowDeleted;
  1804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1806. public void AddRoleRow(RoleRow row) {
  1807. this.Rows.Add(row);
  1808. }
  1809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1811. public RoleRow AddRoleRow(string Title) {
  1812. RoleRow rowRoleRow = ((RoleRow)(this.NewRow()));
  1813. object[] columnValuesArray = new object[] {
  1814. null,
  1815. Title};
  1816. rowRoleRow.ItemArray = columnValuesArray;
  1817. this.Rows.Add(rowRoleRow);
  1818. return rowRoleRow;
  1819. }
  1820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1822. public RoleRow FindByIdRole(int IdRole) {
  1823. return ((RoleRow)(this.Rows.Find(new object[] {
  1824. IdRole})));
  1825. }
  1826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1828. public override global::System.Data.DataTable Clone() {
  1829. RoleDataTable cln = ((RoleDataTable)(base.Clone()));
  1830. cln.InitVars();
  1831. return cln;
  1832. }
  1833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1835. protected override global::System.Data.DataTable CreateInstance() {
  1836. return new RoleDataTable();
  1837. }
  1838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1840. internal void InitVars() {
  1841. this.columnIdRole = base.Columns["IdRole"];
  1842. this.columnTitle = base.Columns["Title"];
  1843. }
  1844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1846. private void InitClass() {
  1847. this.columnIdRole = new global::System.Data.DataColumn("IdRole", typeof(int), null, global::System.Data.MappingType.Element);
  1848. base.Columns.Add(this.columnIdRole);
  1849. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  1850. base.Columns.Add(this.columnTitle);
  1851. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1852. this.columnIdRole}, true));
  1853. this.columnIdRole.AutoIncrement = true;
  1854. this.columnIdRole.AutoIncrementSeed = -1;
  1855. this.columnIdRole.AutoIncrementStep = -1;
  1856. this.columnIdRole.AllowDBNull = false;
  1857. this.columnIdRole.ReadOnly = true;
  1858. this.columnIdRole.Unique = true;
  1859. this.columnTitle.MaxLength = 50;
  1860. }
  1861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1863. public RoleRow NewRoleRow() {
  1864. return ((RoleRow)(this.NewRow()));
  1865. }
  1866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1868. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1869. return new RoleRow(builder);
  1870. }
  1871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1873. protected override global::System.Type GetRowType() {
  1874. return typeof(RoleRow);
  1875. }
  1876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1878. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1879. base.OnRowChanged(e);
  1880. if ((this.RoleRowChanged != null)) {
  1881. this.RoleRowChanged(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1882. }
  1883. }
  1884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1886. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1887. base.OnRowChanging(e);
  1888. if ((this.RoleRowChanging != null)) {
  1889. this.RoleRowChanging(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1890. }
  1891. }
  1892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1894. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1895. base.OnRowDeleted(e);
  1896. if ((this.RoleRowDeleted != null)) {
  1897. this.RoleRowDeleted(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1898. }
  1899. }
  1900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1902. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1903. base.OnRowDeleting(e);
  1904. if ((this.RoleRowDeleting != null)) {
  1905. this.RoleRowDeleting(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1906. }
  1907. }
  1908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1910. public void RemoveRoleRow(RoleRow row) {
  1911. this.Rows.Remove(row);
  1912. }
  1913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1915. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1916. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1917. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1918. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  1919. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1920. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1921. any1.MinOccurs = new decimal(0);
  1922. any1.MaxOccurs = decimal.MaxValue;
  1923. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1924. sequence.Items.Add(any1);
  1925. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1926. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1927. any2.MinOccurs = new decimal(1);
  1928. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1929. sequence.Items.Add(any2);
  1930. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1931. attribute1.Name = "namespace";
  1932. attribute1.FixedValue = ds.Namespace;
  1933. type.Attributes.Add(attribute1);
  1934. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1935. attribute2.Name = "tableTypeName";
  1936. attribute2.FixedValue = "RoleDataTable";
  1937. type.Attributes.Add(attribute2);
  1938. type.Particle = sequence;
  1939. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1940. if (xs.Contains(dsSchema.TargetNamespace)) {
  1941. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1942. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1943. try {
  1944. global::System.Xml.Schema.XmlSchema schema = null;
  1945. dsSchema.Write(s1);
  1946. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1947. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1948. s2.SetLength(0);
  1949. schema.Write(s2);
  1950. if ((s1.Length == s2.Length)) {
  1951. s1.Position = 0;
  1952. s2.Position = 0;
  1953. for (; ((s1.Position != s1.Length)
  1954. && (s1.ReadByte() == s2.ReadByte())); ) {
  1955. ;
  1956. }
  1957. if ((s1.Position == s1.Length)) {
  1958. return type;
  1959. }
  1960. }
  1961. }
  1962. }
  1963. finally {
  1964. if ((s1 != null)) {
  1965. s1.Close();
  1966. }
  1967. if ((s2 != null)) {
  1968. s2.Close();
  1969. }
  1970. }
  1971. }
  1972. xs.Add(dsSchema);
  1973. return type;
  1974. }
  1975. }
  1976. /// <summary>
  1977. ///Represents the strongly named DataTable class.
  1978. ///</summary>
  1979. [global::System.Serializable()]
  1980. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1981. public partial class StatusDataTable : global::System.Data.TypedTableBase<StatusRow> {
  1982. private global::System.Data.DataColumn columnIdStatus;
  1983. private global::System.Data.DataColumn columnTitle;
  1984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1986. public StatusDataTable() {
  1987. this.TableName = "Status";
  1988. this.BeginInit();
  1989. this.InitClass();
  1990. this.EndInit();
  1991. }
  1992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1994. internal StatusDataTable(global::System.Data.DataTable table) {
  1995. this.TableName = table.TableName;
  1996. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1997. this.CaseSensitive = table.CaseSensitive;
  1998. }
  1999. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2000. this.Locale = table.Locale;
  2001. }
  2002. if ((table.Namespace != table.DataSet.Namespace)) {
  2003. this.Namespace = table.Namespace;
  2004. }
  2005. this.Prefix = table.Prefix;
  2006. this.MinimumCapacity = table.MinimumCapacity;
  2007. }
  2008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2010. protected StatusDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2011. base(info, context) {
  2012. this.InitVars();
  2013. }
  2014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2016. public global::System.Data.DataColumn IdStatusColumn {
  2017. get {
  2018. return this.columnIdStatus;
  2019. }
  2020. }
  2021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2023. public global::System.Data.DataColumn TitleColumn {
  2024. get {
  2025. return this.columnTitle;
  2026. }
  2027. }
  2028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2030. [global::System.ComponentModel.Browsable(false)]
  2031. public int Count {
  2032. get {
  2033. return this.Rows.Count;
  2034. }
  2035. }
  2036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2038. public StatusRow this[int index] {
  2039. get {
  2040. return ((StatusRow)(this.Rows[index]));
  2041. }
  2042. }
  2043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2044. public event StatusRowChangeEventHandler StatusRowChanging;
  2045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2046. public event StatusRowChangeEventHandler StatusRowChanged;
  2047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2048. public event StatusRowChangeEventHandler StatusRowDeleting;
  2049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2050. public event StatusRowChangeEventHandler StatusRowDeleted;
  2051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2053. public void AddStatusRow(StatusRow row) {
  2054. this.Rows.Add(row);
  2055. }
  2056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2058. public StatusRow AddStatusRow(string Title) {
  2059. StatusRow rowStatusRow = ((StatusRow)(this.NewRow()));
  2060. object[] columnValuesArray = new object[] {
  2061. null,
  2062. Title};
  2063. rowStatusRow.ItemArray = columnValuesArray;
  2064. this.Rows.Add(rowStatusRow);
  2065. return rowStatusRow;
  2066. }
  2067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2069. public StatusRow FindByIdStatus(int IdStatus) {
  2070. return ((StatusRow)(this.Rows.Find(new object[] {
  2071. IdStatus})));
  2072. }
  2073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2075. public override global::System.Data.DataTable Clone() {
  2076. StatusDataTable cln = ((StatusDataTable)(base.Clone()));
  2077. cln.InitVars();
  2078. return cln;
  2079. }
  2080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2082. protected override global::System.Data.DataTable CreateInstance() {
  2083. return new StatusDataTable();
  2084. }
  2085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2087. internal void InitVars() {
  2088. this.columnIdStatus = base.Columns["IdStatus"];
  2089. this.columnTitle = base.Columns["Title"];
  2090. }
  2091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2093. private void InitClass() {
  2094. this.columnIdStatus = new global::System.Data.DataColumn("IdStatus", typeof(int), null, global::System.Data.MappingType.Element);
  2095. base.Columns.Add(this.columnIdStatus);
  2096. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2097. base.Columns.Add(this.columnTitle);
  2098. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2099. this.columnIdStatus}, true));
  2100. this.columnIdStatus.AutoIncrement = true;
  2101. this.columnIdStatus.AutoIncrementSeed = -1;
  2102. this.columnIdStatus.AutoIncrementStep = -1;
  2103. this.columnIdStatus.AllowDBNull = false;
  2104. this.columnIdStatus.ReadOnly = true;
  2105. this.columnIdStatus.Unique = true;
  2106. this.columnTitle.MaxLength = 50;
  2107. }
  2108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2110. public StatusRow NewStatusRow() {
  2111. return ((StatusRow)(this.NewRow()));
  2112. }
  2113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2115. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2116. return new StatusRow(builder);
  2117. }
  2118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2120. protected override global::System.Type GetRowType() {
  2121. return typeof(StatusRow);
  2122. }
  2123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2125. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2126. base.OnRowChanged(e);
  2127. if ((this.StatusRowChanged != null)) {
  2128. this.StatusRowChanged(this, new StatusRowChangeEvent(((StatusRow)(e.Row)), e.Action));
  2129. }
  2130. }
  2131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2133. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2134. base.OnRowChanging(e);
  2135. if ((this.StatusRowChanging != null)) {
  2136. this.StatusRowChanging(this, new StatusRowChangeEvent(((StatusRow)(e.Row)), e.Action));
  2137. }
  2138. }
  2139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2141. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2142. base.OnRowDeleted(e);
  2143. if ((this.StatusRowDeleted != null)) {
  2144. this.StatusRowDeleted(this, new StatusRowChangeEvent(((StatusRow)(e.Row)), e.Action));
  2145. }
  2146. }
  2147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2149. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2150. base.OnRowDeleting(e);
  2151. if ((this.StatusRowDeleting != null)) {
  2152. this.StatusRowDeleting(this, new StatusRowChangeEvent(((StatusRow)(e.Row)), e.Action));
  2153. }
  2154. }
  2155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2157. public void RemoveStatusRow(StatusRow row) {
  2158. this.Rows.Remove(row);
  2159. }
  2160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2162. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2163. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2164. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2165. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  2166. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2167. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2168. any1.MinOccurs = new decimal(0);
  2169. any1.MaxOccurs = decimal.MaxValue;
  2170. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2171. sequence.Items.Add(any1);
  2172. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2173. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2174. any2.MinOccurs = new decimal(1);
  2175. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2176. sequence.Items.Add(any2);
  2177. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2178. attribute1.Name = "namespace";
  2179. attribute1.FixedValue = ds.Namespace;
  2180. type.Attributes.Add(attribute1);
  2181. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2182. attribute2.Name = "tableTypeName";
  2183. attribute2.FixedValue = "StatusDataTable";
  2184. type.Attributes.Add(attribute2);
  2185. type.Particle = sequence;
  2186. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2187. if (xs.Contains(dsSchema.TargetNamespace)) {
  2188. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2189. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2190. try {
  2191. global::System.Xml.Schema.XmlSchema schema = null;
  2192. dsSchema.Write(s1);
  2193. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2194. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2195. s2.SetLength(0);
  2196. schema.Write(s2);
  2197. if ((s1.Length == s2.Length)) {
  2198. s1.Position = 0;
  2199. s2.Position = 0;
  2200. for (; ((s1.Position != s1.Length)
  2201. && (s1.ReadByte() == s2.ReadByte())); ) {
  2202. ;
  2203. }
  2204. if ((s1.Position == s1.Length)) {
  2205. return type;
  2206. }
  2207. }
  2208. }
  2209. }
  2210. finally {
  2211. if ((s1 != null)) {
  2212. s1.Close();
  2213. }
  2214. if ((s2 != null)) {
  2215. s2.Close();
  2216. }
  2217. }
  2218. }
  2219. xs.Add(dsSchema);
  2220. return type;
  2221. }
  2222. }
  2223. /// <summary>
  2224. ///Represents the strongly named DataTable class.
  2225. ///</summary>
  2226. [global::System.Serializable()]
  2227. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2228. public partial class TypeDefectDataTable : global::System.Data.TypedTableBase<TypeDefectRow> {
  2229. private global::System.Data.DataColumn columnIdTypeDefect;
  2230. private global::System.Data.DataColumn columnTitle;
  2231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2233. public TypeDefectDataTable() {
  2234. this.TableName = "TypeDefect";
  2235. this.BeginInit();
  2236. this.InitClass();
  2237. this.EndInit();
  2238. }
  2239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2241. internal TypeDefectDataTable(global::System.Data.DataTable table) {
  2242. this.TableName = table.TableName;
  2243. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2244. this.CaseSensitive = table.CaseSensitive;
  2245. }
  2246. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2247. this.Locale = table.Locale;
  2248. }
  2249. if ((table.Namespace != table.DataSet.Namespace)) {
  2250. this.Namespace = table.Namespace;
  2251. }
  2252. this.Prefix = table.Prefix;
  2253. this.MinimumCapacity = table.MinimumCapacity;
  2254. }
  2255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2257. protected TypeDefectDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2258. base(info, context) {
  2259. this.InitVars();
  2260. }
  2261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2263. public global::System.Data.DataColumn IdTypeDefectColumn {
  2264. get {
  2265. return this.columnIdTypeDefect;
  2266. }
  2267. }
  2268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2270. public global::System.Data.DataColumn TitleColumn {
  2271. get {
  2272. return this.columnTitle;
  2273. }
  2274. }
  2275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2277. [global::System.ComponentModel.Browsable(false)]
  2278. public int Count {
  2279. get {
  2280. return this.Rows.Count;
  2281. }
  2282. }
  2283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2285. public TypeDefectRow this[int index] {
  2286. get {
  2287. return ((TypeDefectRow)(this.Rows[index]));
  2288. }
  2289. }
  2290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2291. public event TypeDefectRowChangeEventHandler TypeDefectRowChanging;
  2292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2293. public event TypeDefectRowChangeEventHandler TypeDefectRowChanged;
  2294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2295. public event TypeDefectRowChangeEventHandler TypeDefectRowDeleting;
  2296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2297. public event TypeDefectRowChangeEventHandler TypeDefectRowDeleted;
  2298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2300. public void AddTypeDefectRow(TypeDefectRow row) {
  2301. this.Rows.Add(row);
  2302. }
  2303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2305. public TypeDefectRow AddTypeDefectRow(string Title) {
  2306. TypeDefectRow rowTypeDefectRow = ((TypeDefectRow)(this.NewRow()));
  2307. object[] columnValuesArray = new object[] {
  2308. null,
  2309. Title};
  2310. rowTypeDefectRow.ItemArray = columnValuesArray;
  2311. this.Rows.Add(rowTypeDefectRow);
  2312. return rowTypeDefectRow;
  2313. }
  2314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2316. public TypeDefectRow FindByIdTypeDefect(int IdTypeDefect) {
  2317. return ((TypeDefectRow)(this.Rows.Find(new object[] {
  2318. IdTypeDefect})));
  2319. }
  2320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2322. public override global::System.Data.DataTable Clone() {
  2323. TypeDefectDataTable cln = ((TypeDefectDataTable)(base.Clone()));
  2324. cln.InitVars();
  2325. return cln;
  2326. }
  2327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2329. protected override global::System.Data.DataTable CreateInstance() {
  2330. return new TypeDefectDataTable();
  2331. }
  2332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2334. internal void InitVars() {
  2335. this.columnIdTypeDefect = base.Columns["IdTypeDefect"];
  2336. this.columnTitle = base.Columns["Title"];
  2337. }
  2338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2340. private void InitClass() {
  2341. this.columnIdTypeDefect = new global::System.Data.DataColumn("IdTypeDefect", typeof(int), null, global::System.Data.MappingType.Element);
  2342. base.Columns.Add(this.columnIdTypeDefect);
  2343. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2344. base.Columns.Add(this.columnTitle);
  2345. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2346. this.columnIdTypeDefect}, true));
  2347. this.columnIdTypeDefect.AutoIncrement = true;
  2348. this.columnIdTypeDefect.AutoIncrementSeed = -1;
  2349. this.columnIdTypeDefect.AutoIncrementStep = -1;
  2350. this.columnIdTypeDefect.AllowDBNull = false;
  2351. this.columnIdTypeDefect.ReadOnly = true;
  2352. this.columnIdTypeDefect.Unique = true;
  2353. this.columnTitle.MaxLength = 50;
  2354. }
  2355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2357. public TypeDefectRow NewTypeDefectRow() {
  2358. return ((TypeDefectRow)(this.NewRow()));
  2359. }
  2360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2362. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2363. return new TypeDefectRow(builder);
  2364. }
  2365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2367. protected override global::System.Type GetRowType() {
  2368. return typeof(TypeDefectRow);
  2369. }
  2370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2372. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2373. base.OnRowChanged(e);
  2374. if ((this.TypeDefectRowChanged != null)) {
  2375. this.TypeDefectRowChanged(this, new TypeDefectRowChangeEvent(((TypeDefectRow)(e.Row)), e.Action));
  2376. }
  2377. }
  2378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2380. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2381. base.OnRowChanging(e);
  2382. if ((this.TypeDefectRowChanging != null)) {
  2383. this.TypeDefectRowChanging(this, new TypeDefectRowChangeEvent(((TypeDefectRow)(e.Row)), e.Action));
  2384. }
  2385. }
  2386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2388. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2389. base.OnRowDeleted(e);
  2390. if ((this.TypeDefectRowDeleted != null)) {
  2391. this.TypeDefectRowDeleted(this, new TypeDefectRowChangeEvent(((TypeDefectRow)(e.Row)), e.Action));
  2392. }
  2393. }
  2394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2396. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2397. base.OnRowDeleting(e);
  2398. if ((this.TypeDefectRowDeleting != null)) {
  2399. this.TypeDefectRowDeleting(this, new TypeDefectRowChangeEvent(((TypeDefectRow)(e.Row)), e.Action));
  2400. }
  2401. }
  2402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2404. public void RemoveTypeDefectRow(TypeDefectRow row) {
  2405. this.Rows.Remove(row);
  2406. }
  2407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2409. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2410. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2411. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2412. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  2413. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2414. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2415. any1.MinOccurs = new decimal(0);
  2416. any1.MaxOccurs = decimal.MaxValue;
  2417. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2418. sequence.Items.Add(any1);
  2419. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2420. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2421. any2.MinOccurs = new decimal(1);
  2422. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2423. sequence.Items.Add(any2);
  2424. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2425. attribute1.Name = "namespace";
  2426. attribute1.FixedValue = ds.Namespace;
  2427. type.Attributes.Add(attribute1);
  2428. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2429. attribute2.Name = "tableTypeName";
  2430. attribute2.FixedValue = "TypeDefectDataTable";
  2431. type.Attributes.Add(attribute2);
  2432. type.Particle = sequence;
  2433. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2434. if (xs.Contains(dsSchema.TargetNamespace)) {
  2435. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2436. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2437. try {
  2438. global::System.Xml.Schema.XmlSchema schema = null;
  2439. dsSchema.Write(s1);
  2440. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2441. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2442. s2.SetLength(0);
  2443. schema.Write(s2);
  2444. if ((s1.Length == s2.Length)) {
  2445. s1.Position = 0;
  2446. s2.Position = 0;
  2447. for (; ((s1.Position != s1.Length)
  2448. && (s1.ReadByte() == s2.ReadByte())); ) {
  2449. ;
  2450. }
  2451. if ((s1.Position == s1.Length)) {
  2452. return type;
  2453. }
  2454. }
  2455. }
  2456. }
  2457. finally {
  2458. if ((s1 != null)) {
  2459. s1.Close();
  2460. }
  2461. if ((s2 != null)) {
  2462. s2.Close();
  2463. }
  2464. }
  2465. }
  2466. xs.Add(dsSchema);
  2467. return type;
  2468. }
  2469. }
  2470. /// <summary>
  2471. ///Represents the strongly named DataTable class.
  2472. ///</summary>
  2473. [global::System.Serializable()]
  2474. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2475. public partial class AllTypeDefectDataTable : global::System.Data.TypedTableBase<AllTypeDefectRow> {
  2476. private global::System.Data.DataColumn columnTypeDefect;
  2477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2479. public AllTypeDefectDataTable() {
  2480. this.TableName = "AllTypeDefect";
  2481. this.BeginInit();
  2482. this.InitClass();
  2483. this.EndInit();
  2484. }
  2485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2487. internal AllTypeDefectDataTable(global::System.Data.DataTable table) {
  2488. this.TableName = table.TableName;
  2489. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2490. this.CaseSensitive = table.CaseSensitive;
  2491. }
  2492. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2493. this.Locale = table.Locale;
  2494. }
  2495. if ((table.Namespace != table.DataSet.Namespace)) {
  2496. this.Namespace = table.Namespace;
  2497. }
  2498. this.Prefix = table.Prefix;
  2499. this.MinimumCapacity = table.MinimumCapacity;
  2500. }
  2501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2503. protected AllTypeDefectDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2504. base(info, context) {
  2505. this.InitVars();
  2506. }
  2507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2509. public global::System.Data.DataColumn TypeDefectColumn {
  2510. get {
  2511. return this.columnTypeDefect;
  2512. }
  2513. }
  2514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2516. [global::System.ComponentModel.Browsable(false)]
  2517. public int Count {
  2518. get {
  2519. return this.Rows.Count;
  2520. }
  2521. }
  2522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2524. public AllTypeDefectRow this[int index] {
  2525. get {
  2526. return ((AllTypeDefectRow)(this.Rows[index]));
  2527. }
  2528. }
  2529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2530. public event AllTypeDefectRowChangeEventHandler AllTypeDefectRowChanging;
  2531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2532. public event AllTypeDefectRowChangeEventHandler AllTypeDefectRowChanged;
  2533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2534. public event AllTypeDefectRowChangeEventHandler AllTypeDefectRowDeleting;
  2535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2536. public event AllTypeDefectRowChangeEventHandler AllTypeDefectRowDeleted;
  2537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2539. public void AddAllTypeDefectRow(AllTypeDefectRow row) {
  2540. this.Rows.Add(row);
  2541. }
  2542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2544. public AllTypeDefectRow AddAllTypeDefectRow(string TypeDefect) {
  2545. AllTypeDefectRow rowAllTypeDefectRow = ((AllTypeDefectRow)(this.NewRow()));
  2546. object[] columnValuesArray = new object[] {
  2547. TypeDefect};
  2548. rowAllTypeDefectRow.ItemArray = columnValuesArray;
  2549. this.Rows.Add(rowAllTypeDefectRow);
  2550. return rowAllTypeDefectRow;
  2551. }
  2552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2554. public override global::System.Data.DataTable Clone() {
  2555. AllTypeDefectDataTable cln = ((AllTypeDefectDataTable)(base.Clone()));
  2556. cln.InitVars();
  2557. return cln;
  2558. }
  2559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2561. protected override global::System.Data.DataTable CreateInstance() {
  2562. return new AllTypeDefectDataTable();
  2563. }
  2564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2566. internal void InitVars() {
  2567. this.columnTypeDefect = base.Columns["TypeDefect"];
  2568. }
  2569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2571. private void InitClass() {
  2572. this.columnTypeDefect = new global::System.Data.DataColumn("TypeDefect", typeof(string), null, global::System.Data.MappingType.Element);
  2573. base.Columns.Add(this.columnTypeDefect);
  2574. this.columnTypeDefect.ReadOnly = true;
  2575. this.columnTypeDefect.Caption = "Column1";
  2576. this.columnTypeDefect.MaxLength = 50;
  2577. }
  2578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2580. public AllTypeDefectRow NewAllTypeDefectRow() {
  2581. return ((AllTypeDefectRow)(this.NewRow()));
  2582. }
  2583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2585. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2586. return new AllTypeDefectRow(builder);
  2587. }
  2588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2590. protected override global::System.Type GetRowType() {
  2591. return typeof(AllTypeDefectRow);
  2592. }
  2593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2595. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2596. base.OnRowChanged(e);
  2597. if ((this.AllTypeDefectRowChanged != null)) {
  2598. this.AllTypeDefectRowChanged(this, new AllTypeDefectRowChangeEvent(((AllTypeDefectRow)(e.Row)), e.Action));
  2599. }
  2600. }
  2601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2603. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2604. base.OnRowChanging(e);
  2605. if ((this.AllTypeDefectRowChanging != null)) {
  2606. this.AllTypeDefectRowChanging(this, new AllTypeDefectRowChangeEvent(((AllTypeDefectRow)(e.Row)), e.Action));
  2607. }
  2608. }
  2609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2611. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2612. base.OnRowDeleted(e);
  2613. if ((this.AllTypeDefectRowDeleted != null)) {
  2614. this.AllTypeDefectRowDeleted(this, new AllTypeDefectRowChangeEvent(((AllTypeDefectRow)(e.Row)), e.Action));
  2615. }
  2616. }
  2617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2619. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2620. base.OnRowDeleting(e);
  2621. if ((this.AllTypeDefectRowDeleting != null)) {
  2622. this.AllTypeDefectRowDeleting(this, new AllTypeDefectRowChangeEvent(((AllTypeDefectRow)(e.Row)), e.Action));
  2623. }
  2624. }
  2625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2627. public void RemoveAllTypeDefectRow(AllTypeDefectRow row) {
  2628. this.Rows.Remove(row);
  2629. }
  2630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2632. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2633. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2634. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2635. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  2636. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2637. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2638. any1.MinOccurs = new decimal(0);
  2639. any1.MaxOccurs = decimal.MaxValue;
  2640. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2641. sequence.Items.Add(any1);
  2642. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2643. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2644. any2.MinOccurs = new decimal(1);
  2645. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2646. sequence.Items.Add(any2);
  2647. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2648. attribute1.Name = "namespace";
  2649. attribute1.FixedValue = ds.Namespace;
  2650. type.Attributes.Add(attribute1);
  2651. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2652. attribute2.Name = "tableTypeName";
  2653. attribute2.FixedValue = "AllTypeDefectDataTable";
  2654. type.Attributes.Add(attribute2);
  2655. type.Particle = sequence;
  2656. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2657. if (xs.Contains(dsSchema.TargetNamespace)) {
  2658. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2659. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2660. try {
  2661. global::System.Xml.Schema.XmlSchema schema = null;
  2662. dsSchema.Write(s1);
  2663. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2664. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2665. s2.SetLength(0);
  2666. schema.Write(s2);
  2667. if ((s1.Length == s2.Length)) {
  2668. s1.Position = 0;
  2669. s2.Position = 0;
  2670. for (; ((s1.Position != s1.Length)
  2671. && (s1.ReadByte() == s2.ReadByte())); ) {
  2672. ;
  2673. }
  2674. if ((s1.Position == s1.Length)) {
  2675. return type;
  2676. }
  2677. }
  2678. }
  2679. }
  2680. finally {
  2681. if ((s1 != null)) {
  2682. s1.Close();
  2683. }
  2684. if ((s2 != null)) {
  2685. s2.Close();
  2686. }
  2687. }
  2688. }
  2689. xs.Add(dsSchema);
  2690. return type;
  2691. }
  2692. }
  2693. /// <summary>
  2694. ///Represents strongly named DataRow class.
  2695. ///</summary>
  2696. public partial class ClientRow : global::System.Data.DataRow {
  2697. private ClientDataTable tableClient;
  2698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2700. internal ClientRow(global::System.Data.DataRowBuilder rb) :
  2701. base(rb) {
  2702. this.tableClient = ((ClientDataTable)(this.Table));
  2703. }
  2704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2706. public int IdClient {
  2707. get {
  2708. return ((int)(this[this.tableClient.IdClientColumn]));
  2709. }
  2710. set {
  2711. this[this.tableClient.IdClientColumn] = value;
  2712. }
  2713. }
  2714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2716. public string Surname {
  2717. get {
  2718. try {
  2719. return ((string)(this[this.tableClient.SurnameColumn]));
  2720. }
  2721. catch (global::System.InvalidCastException e) {
  2722. throw new global::System.Data.StrongTypingException("Значение для столбца \'Surname\' в таблице \'Client\' равно DBNull.", e);
  2723. }
  2724. }
  2725. set {
  2726. this[this.tableClient.SurnameColumn] = value;
  2727. }
  2728. }
  2729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2731. public string Name {
  2732. get {
  2733. try {
  2734. return ((string)(this[this.tableClient.NameColumn]));
  2735. }
  2736. catch (global::System.InvalidCastException e) {
  2737. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Client\' равно DBNull.", e);
  2738. }
  2739. }
  2740. set {
  2741. this[this.tableClient.NameColumn] = value;
  2742. }
  2743. }
  2744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2746. public string Patronymic {
  2747. get {
  2748. try {
  2749. return ((string)(this[this.tableClient.PatronymicColumn]));
  2750. }
  2751. catch (global::System.InvalidCastException e) {
  2752. throw new global::System.Data.StrongTypingException("Значение для столбца \'Patronymic\' в таблице \'Client\' равно DBNull.", e);
  2753. }
  2754. }
  2755. set {
  2756. this[this.tableClient.PatronymicColumn] = value;
  2757. }
  2758. }
  2759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2761. public bool IsSurnameNull() {
  2762. return this.IsNull(this.tableClient.SurnameColumn);
  2763. }
  2764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2766. public void SetSurnameNull() {
  2767. this[this.tableClient.SurnameColumn] = global::System.Convert.DBNull;
  2768. }
  2769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2771. public bool IsNameNull() {
  2772. return this.IsNull(this.tableClient.NameColumn);
  2773. }
  2774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2776. public void SetNameNull() {
  2777. this[this.tableClient.NameColumn] = global::System.Convert.DBNull;
  2778. }
  2779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2781. public bool IsPatronymicNull() {
  2782. return this.IsNull(this.tableClient.PatronymicColumn);
  2783. }
  2784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2786. public void SetPatronymicNull() {
  2787. this[this.tableClient.PatronymicColumn] = global::System.Convert.DBNull;
  2788. }
  2789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2791. public RequestRow[] GetRequestRows() {
  2792. if ((this.Table.ChildRelations["FK_Request_Client"] == null)) {
  2793. return new RequestRow[0];
  2794. }
  2795. else {
  2796. return ((RequestRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Request_Client"])));
  2797. }
  2798. }
  2799. }
  2800. /// <summary>
  2801. ///Represents strongly named DataRow class.
  2802. ///</summary>
  2803. public partial class EmployeeRow : global::System.Data.DataRow {
  2804. private EmployeeDataTable tableEmployee;
  2805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2807. internal EmployeeRow(global::System.Data.DataRowBuilder rb) :
  2808. base(rb) {
  2809. this.tableEmployee = ((EmployeeDataTable)(this.Table));
  2810. }
  2811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2813. public int IdEmployee {
  2814. get {
  2815. return ((int)(this[this.tableEmployee.IdEmployeeColumn]));
  2816. }
  2817. set {
  2818. this[this.tableEmployee.IdEmployeeColumn] = value;
  2819. }
  2820. }
  2821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2823. public int IdRole {
  2824. get {
  2825. try {
  2826. return ((int)(this[this.tableEmployee.IdRoleColumn]));
  2827. }
  2828. catch (global::System.InvalidCastException e) {
  2829. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdRole\' в таблице \'Employee\' равно DBNull.", e);
  2830. }
  2831. }
  2832. set {
  2833. this[this.tableEmployee.IdRoleColumn] = value;
  2834. }
  2835. }
  2836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2838. public string Surname {
  2839. get {
  2840. try {
  2841. return ((string)(this[this.tableEmployee.SurnameColumn]));
  2842. }
  2843. catch (global::System.InvalidCastException e) {
  2844. throw new global::System.Data.StrongTypingException("Значение для столбца \'Surname\' в таблице \'Employee\' равно DBNull.", e);
  2845. }
  2846. }
  2847. set {
  2848. this[this.tableEmployee.SurnameColumn] = value;
  2849. }
  2850. }
  2851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2853. public string Name {
  2854. get {
  2855. try {
  2856. return ((string)(this[this.tableEmployee.NameColumn]));
  2857. }
  2858. catch (global::System.InvalidCastException e) {
  2859. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Employee\' равно DBNull.", e);
  2860. }
  2861. }
  2862. set {
  2863. this[this.tableEmployee.NameColumn] = value;
  2864. }
  2865. }
  2866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2868. public string Patronymic {
  2869. get {
  2870. try {
  2871. return ((string)(this[this.tableEmployee.PatronymicColumn]));
  2872. }
  2873. catch (global::System.InvalidCastException e) {
  2874. throw new global::System.Data.StrongTypingException("Значение для столбца \'Patronymic\' в таблице \'Employee\' равно DBNull.", e);
  2875. }
  2876. }
  2877. set {
  2878. this[this.tableEmployee.PatronymicColumn] = value;
  2879. }
  2880. }
  2881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2883. public string Login {
  2884. get {
  2885. try {
  2886. return ((string)(this[this.tableEmployee.LoginColumn]));
  2887. }
  2888. catch (global::System.InvalidCastException e) {
  2889. throw new global::System.Data.StrongTypingException("Значение для столбца \'Login\' в таблице \'Employee\' равно DBNull.", e);
  2890. }
  2891. }
  2892. set {
  2893. this[this.tableEmployee.LoginColumn] = value;
  2894. }
  2895. }
  2896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2898. public string Password {
  2899. get {
  2900. try {
  2901. return ((string)(this[this.tableEmployee.PasswordColumn]));
  2902. }
  2903. catch (global::System.InvalidCastException e) {
  2904. throw new global::System.Data.StrongTypingException("Значение для столбца \'Password\' в таблице \'Employee\' равно DBNull.", e);
  2905. }
  2906. }
  2907. set {
  2908. this[this.tableEmployee.PasswordColumn] = value;
  2909. }
  2910. }
  2911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2913. public string Photo {
  2914. get {
  2915. try {
  2916. return ((string)(this[this.tableEmployee.PhotoColumn]));
  2917. }
  2918. catch (global::System.InvalidCastException e) {
  2919. throw new global::System.Data.StrongTypingException("Значение для столбца \'Photo\' в таблице \'Employee\' равно DBNull.", e);
  2920. }
  2921. }
  2922. set {
  2923. this[this.tableEmployee.PhotoColumn] = value;
  2924. }
  2925. }
  2926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2928. public RoleRow RoleRow {
  2929. get {
  2930. return ((RoleRow)(this.GetParentRow(this.Table.ParentRelations["FK_Employee_Role"])));
  2931. }
  2932. set {
  2933. this.SetParentRow(value, this.Table.ParentRelations["FK_Employee_Role"]);
  2934. }
  2935. }
  2936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2938. public bool IsIdRoleNull() {
  2939. return this.IsNull(this.tableEmployee.IdRoleColumn);
  2940. }
  2941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2943. public void SetIdRoleNull() {
  2944. this[this.tableEmployee.IdRoleColumn] = global::System.Convert.DBNull;
  2945. }
  2946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2948. public bool IsSurnameNull() {
  2949. return this.IsNull(this.tableEmployee.SurnameColumn);
  2950. }
  2951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2953. public void SetSurnameNull() {
  2954. this[this.tableEmployee.SurnameColumn] = global::System.Convert.DBNull;
  2955. }
  2956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2958. public bool IsNameNull() {
  2959. return this.IsNull(this.tableEmployee.NameColumn);
  2960. }
  2961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2963. public void SetNameNull() {
  2964. this[this.tableEmployee.NameColumn] = global::System.Convert.DBNull;
  2965. }
  2966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2968. public bool IsPatronymicNull() {
  2969. return this.IsNull(this.tableEmployee.PatronymicColumn);
  2970. }
  2971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2973. public void SetPatronymicNull() {
  2974. this[this.tableEmployee.PatronymicColumn] = global::System.Convert.DBNull;
  2975. }
  2976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2978. public bool IsLoginNull() {
  2979. return this.IsNull(this.tableEmployee.LoginColumn);
  2980. }
  2981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2983. public void SetLoginNull() {
  2984. this[this.tableEmployee.LoginColumn] = global::System.Convert.DBNull;
  2985. }
  2986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2988. public bool IsPasswordNull() {
  2989. return this.IsNull(this.tableEmployee.PasswordColumn);
  2990. }
  2991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2993. public void SetPasswordNull() {
  2994. this[this.tableEmployee.PasswordColumn] = global::System.Convert.DBNull;
  2995. }
  2996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2998. public bool IsPhotoNull() {
  2999. return this.IsNull(this.tableEmployee.PhotoColumn);
  3000. }
  3001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3003. public void SetPhotoNull() {
  3004. this[this.tableEmployee.PhotoColumn] = global::System.Convert.DBNull;
  3005. }
  3006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3008. public ExecutionRequestRow[] GetExecutionRequestRows() {
  3009. if ((this.Table.ChildRelations["FK_ExecutionRequest_Employee"] == null)) {
  3010. return new ExecutionRequestRow[0];
  3011. }
  3012. else {
  3013. return ((ExecutionRequestRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ExecutionRequest_Employee"])));
  3014. }
  3015. }
  3016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3018. public RequestRow[] GetRequestRows() {
  3019. if ((this.Table.ChildRelations["FK_Request_Employee"] == null)) {
  3020. return new RequestRow[0];
  3021. }
  3022. else {
  3023. return ((RequestRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Request_Employee"])));
  3024. }
  3025. }
  3026. }
  3027. /// <summary>
  3028. ///Represents strongly named DataRow class.
  3029. ///</summary>
  3030. public partial class ExecutionRequestRow : global::System.Data.DataRow {
  3031. private ExecutionRequestDataTable tableExecutionRequest;
  3032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3034. internal ExecutionRequestRow(global::System.Data.DataRowBuilder rb) :
  3035. base(rb) {
  3036. this.tableExecutionRequest = ((ExecutionRequestDataTable)(this.Table));
  3037. }
  3038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3040. public int IdExecution {
  3041. get {
  3042. return ((int)(this[this.tableExecutionRequest.IdExecutionColumn]));
  3043. }
  3044. set {
  3045. this[this.tableExecutionRequest.IdExecutionColumn] = value;
  3046. }
  3047. }
  3048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3050. public int IdRequest {
  3051. get {
  3052. try {
  3053. return ((int)(this[this.tableExecutionRequest.IdRequestColumn]));
  3054. }
  3055. catch (global::System.InvalidCastException e) {
  3056. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdRequest\' в таблице \'ExecutionRequest\' равно DBNull.", e);
  3057. }
  3058. }
  3059. set {
  3060. this[this.tableExecutionRequest.IdRequestColumn] = value;
  3061. }
  3062. }
  3063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3065. public int IdMaster {
  3066. get {
  3067. try {
  3068. return ((int)(this[this.tableExecutionRequest.IdMasterColumn]));
  3069. }
  3070. catch (global::System.InvalidCastException e) {
  3071. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdMaster\' в таблице \'ExecutionRequest\' равно DBNull.", e);
  3072. }
  3073. }
  3074. set {
  3075. this[this.tableExecutionRequest.IdMasterColumn] = value;
  3076. }
  3077. }
  3078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3080. public EmployeeRow EmployeeRow {
  3081. get {
  3082. return ((EmployeeRow)(this.GetParentRow(this.Table.ParentRelations["FK_ExecutionRequest_Employee"])));
  3083. }
  3084. set {
  3085. this.SetParentRow(value, this.Table.ParentRelations["FK_ExecutionRequest_Employee"]);
  3086. }
  3087. }
  3088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3090. public RequestRow RequestRow {
  3091. get {
  3092. return ((RequestRow)(this.GetParentRow(this.Table.ParentRelations["FK_ExecutionRequest_Request"])));
  3093. }
  3094. set {
  3095. this.SetParentRow(value, this.Table.ParentRelations["FK_ExecutionRequest_Request"]);
  3096. }
  3097. }
  3098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3100. public bool IsIdRequestNull() {
  3101. return this.IsNull(this.tableExecutionRequest.IdRequestColumn);
  3102. }
  3103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3105. public void SetIdRequestNull() {
  3106. this[this.tableExecutionRequest.IdRequestColumn] = global::System.Convert.DBNull;
  3107. }
  3108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3110. public bool IsIdMasterNull() {
  3111. return this.IsNull(this.tableExecutionRequest.IdMasterColumn);
  3112. }
  3113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3115. public void SetIdMasterNull() {
  3116. this[this.tableExecutionRequest.IdMasterColumn] = global::System.Convert.DBNull;
  3117. }
  3118. }
  3119. /// <summary>
  3120. ///Represents strongly named DataRow class.
  3121. ///</summary>
  3122. public partial class RequestRow : global::System.Data.DataRow {
  3123. private RequestDataTable tableRequest;
  3124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3126. internal RequestRow(global::System.Data.DataRowBuilder rb) :
  3127. base(rb) {
  3128. this.tableRequest = ((RequestDataTable)(this.Table));
  3129. }
  3130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3132. public int IdRequest {
  3133. get {
  3134. return ((int)(this[this.tableRequest.IdRequestColumn]));
  3135. }
  3136. set {
  3137. this[this.tableRequest.IdRequestColumn] = value;
  3138. }
  3139. }
  3140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3142. public int IdStatus {
  3143. get {
  3144. try {
  3145. return ((int)(this[this.tableRequest.IdStatusColumn]));
  3146. }
  3147. catch (global::System.InvalidCastException e) {
  3148. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdStatus\' в таблице \'Request\' равно DBNull.", e);
  3149. }
  3150. }
  3151. set {
  3152. this[this.tableRequest.IdStatusColumn] = value;
  3153. }
  3154. }
  3155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3157. public int IdTypeDefect {
  3158. get {
  3159. try {
  3160. return ((int)(this[this.tableRequest.IdTypeDefectColumn]));
  3161. }
  3162. catch (global::System.InvalidCastException e) {
  3163. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdTypeDefect\' в таблице \'Request\' равно DBNull.", e);
  3164. }
  3165. }
  3166. set {
  3167. this[this.tableRequest.IdTypeDefectColumn] = value;
  3168. }
  3169. }
  3170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3172. public int IdClient {
  3173. get {
  3174. try {
  3175. return ((int)(this[this.tableRequest.IdClientColumn]));
  3176. }
  3177. catch (global::System.InvalidCastException e) {
  3178. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdClient\' в таблице \'Request\' равно DBNull.", e);
  3179. }
  3180. }
  3181. set {
  3182. this[this.tableRequest.IdClientColumn] = value;
  3183. }
  3184. }
  3185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3187. public int IdManager {
  3188. get {
  3189. try {
  3190. return ((int)(this[this.tableRequest.IdManagerColumn]));
  3191. }
  3192. catch (global::System.InvalidCastException e) {
  3193. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdManager\' в таблице \'Request\' равно DBNull.", e);
  3194. }
  3195. }
  3196. set {
  3197. this[this.tableRequest.IdManagerColumn] = value;
  3198. }
  3199. }
  3200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3202. public System.DateTime DateAccepting {
  3203. get {
  3204. try {
  3205. return ((global::System.DateTime)(this[this.tableRequest.DateAcceptingColumn]));
  3206. }
  3207. catch (global::System.InvalidCastException e) {
  3208. throw new global::System.Data.StrongTypingException("Значение для столбца \'DateAccepting\' в таблице \'Request\' равно DBNull.", e);
  3209. }
  3210. }
  3211. set {
  3212. this[this.tableRequest.DateAcceptingColumn] = value;
  3213. }
  3214. }
  3215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3217. public System.DateTime DateCompletion {
  3218. get {
  3219. try {
  3220. return ((global::System.DateTime)(this[this.tableRequest.DateCompletionColumn]));
  3221. }
  3222. catch (global::System.InvalidCastException e) {
  3223. throw new global::System.Data.StrongTypingException("Значение для столбца \'DateCompletion\' в таблице \'Request\' равно DBNull.", e);
  3224. }
  3225. }
  3226. set {
  3227. this[this.tableRequest.DateCompletionColumn] = value;
  3228. }
  3229. }
  3230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3232. public string EquipmentDefect {
  3233. get {
  3234. try {
  3235. return ((string)(this[this.tableRequest.EquipmentDefectColumn]));
  3236. }
  3237. catch (global::System.InvalidCastException e) {
  3238. throw new global::System.Data.StrongTypingException("Значение для столбца \'EquipmentDefect\' в таблице \'Request\' равно DBNull.", e);
  3239. }
  3240. }
  3241. set {
  3242. this[this.tableRequest.EquipmentDefectColumn] = value;
  3243. }
  3244. }
  3245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3247. public string Description {
  3248. get {
  3249. try {
  3250. return ((string)(this[this.tableRequest.DescriptionColumn]));
  3251. }
  3252. catch (global::System.InvalidCastException e) {
  3253. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Request\' равно DBNull.", e);
  3254. }
  3255. }
  3256. set {
  3257. this[this.tableRequest.DescriptionColumn] = value;
  3258. }
  3259. }
  3260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3262. public string Comment {
  3263. get {
  3264. try {
  3265. return ((string)(this[this.tableRequest.CommentColumn]));
  3266. }
  3267. catch (global::System.InvalidCastException e) {
  3268. throw new global::System.Data.StrongTypingException("Значение для столбца \'Comment\' в таблице \'Request\' равно DBNull.", e);
  3269. }
  3270. }
  3271. set {
  3272. this[this.tableRequest.CommentColumn] = value;
  3273. }
  3274. }
  3275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3277. public ClientRow ClientRow {
  3278. get {
  3279. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_Request_Client"])));
  3280. }
  3281. set {
  3282. this.SetParentRow(value, this.Table.ParentRelations["FK_Request_Client"]);
  3283. }
  3284. }
  3285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3287. public EmployeeRow EmployeeRow {
  3288. get {
  3289. return ((EmployeeRow)(this.GetParentRow(this.Table.ParentRelations["FK_Request_Employee"])));
  3290. }
  3291. set {
  3292. this.SetParentRow(value, this.Table.ParentRelations["FK_Request_Employee"]);
  3293. }
  3294. }
  3295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3297. public StatusRow StatusRow {
  3298. get {
  3299. return ((StatusRow)(this.GetParentRow(this.Table.ParentRelations["FK_Request_Status"])));
  3300. }
  3301. set {
  3302. this.SetParentRow(value, this.Table.ParentRelations["FK_Request_Status"]);
  3303. }
  3304. }
  3305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3307. public TypeDefectRow TypeDefectRow {
  3308. get {
  3309. return ((TypeDefectRow)(this.GetParentRow(this.Table.ParentRelations["FK_Request_TypeDefect"])));
  3310. }
  3311. set {
  3312. this.SetParentRow(value, this.Table.ParentRelations["FK_Request_TypeDefect"]);
  3313. }
  3314. }
  3315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3317. public bool IsIdStatusNull() {
  3318. return this.IsNull(this.tableRequest.IdStatusColumn);
  3319. }
  3320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3322. public void SetIdStatusNull() {
  3323. this[this.tableRequest.IdStatusColumn] = global::System.Convert.DBNull;
  3324. }
  3325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3327. public bool IsIdTypeDefectNull() {
  3328. return this.IsNull(this.tableRequest.IdTypeDefectColumn);
  3329. }
  3330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3332. public void SetIdTypeDefectNull() {
  3333. this[this.tableRequest.IdTypeDefectColumn] = global::System.Convert.DBNull;
  3334. }
  3335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3337. public bool IsIdClientNull() {
  3338. return this.IsNull(this.tableRequest.IdClientColumn);
  3339. }
  3340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3342. public void SetIdClientNull() {
  3343. this[this.tableRequest.IdClientColumn] = global::System.Convert.DBNull;
  3344. }
  3345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3347. public bool IsIdManagerNull() {
  3348. return this.IsNull(this.tableRequest.IdManagerColumn);
  3349. }
  3350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3352. public void SetIdManagerNull() {
  3353. this[this.tableRequest.IdManagerColumn] = global::System.Convert.DBNull;
  3354. }
  3355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3357. public bool IsDateAcceptingNull() {
  3358. return this.IsNull(this.tableRequest.DateAcceptingColumn);
  3359. }
  3360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3362. public void SetDateAcceptingNull() {
  3363. this[this.tableRequest.DateAcceptingColumn] = global::System.Convert.DBNull;
  3364. }
  3365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3367. public bool IsDateCompletionNull() {
  3368. return this.IsNull(this.tableRequest.DateCompletionColumn);
  3369. }
  3370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3372. public void SetDateCompletionNull() {
  3373. this[this.tableRequest.DateCompletionColumn] = global::System.Convert.DBNull;
  3374. }
  3375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3377. public bool IsEquipmentDefectNull() {
  3378. return this.IsNull(this.tableRequest.EquipmentDefectColumn);
  3379. }
  3380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3382. public void SetEquipmentDefectNull() {
  3383. this[this.tableRequest.EquipmentDefectColumn] = global::System.Convert.DBNull;
  3384. }
  3385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3387. public bool IsDescriptionNull() {
  3388. return this.IsNull(this.tableRequest.DescriptionColumn);
  3389. }
  3390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3392. public void SetDescriptionNull() {
  3393. this[this.tableRequest.DescriptionColumn] = global::System.Convert.DBNull;
  3394. }
  3395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3397. public bool IsCommentNull() {
  3398. return this.IsNull(this.tableRequest.CommentColumn);
  3399. }
  3400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3402. public void SetCommentNull() {
  3403. this[this.tableRequest.CommentColumn] = global::System.Convert.DBNull;
  3404. }
  3405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3407. public ExecutionRequestRow[] GetExecutionRequestRows() {
  3408. if ((this.Table.ChildRelations["FK_ExecutionRequest_Request"] == null)) {
  3409. return new ExecutionRequestRow[0];
  3410. }
  3411. else {
  3412. return ((ExecutionRequestRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ExecutionRequest_Request"])));
  3413. }
  3414. }
  3415. }
  3416. /// <summary>
  3417. ///Represents strongly named DataRow class.
  3418. ///</summary>
  3419. public partial class RoleRow : global::System.Data.DataRow {
  3420. private RoleDataTable tableRole;
  3421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3423. internal RoleRow(global::System.Data.DataRowBuilder rb) :
  3424. base(rb) {
  3425. this.tableRole = ((RoleDataTable)(this.Table));
  3426. }
  3427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3429. public int IdRole {
  3430. get {
  3431. return ((int)(this[this.tableRole.IdRoleColumn]));
  3432. }
  3433. set {
  3434. this[this.tableRole.IdRoleColumn] = value;
  3435. }
  3436. }
  3437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3439. public string Title {
  3440. get {
  3441. try {
  3442. return ((string)(this[this.tableRole.TitleColumn]));
  3443. }
  3444. catch (global::System.InvalidCastException e) {
  3445. throw new global::System.Data.StrongTypingException("Значение для столбца \'Title\' в таблице \'Role\' равно DBNull.", e);
  3446. }
  3447. }
  3448. set {
  3449. this[this.tableRole.TitleColumn] = value;
  3450. }
  3451. }
  3452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3454. public bool IsTitleNull() {
  3455. return this.IsNull(this.tableRole.TitleColumn);
  3456. }
  3457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3459. public void SetTitleNull() {
  3460. this[this.tableRole.TitleColumn] = global::System.Convert.DBNull;
  3461. }
  3462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3464. public EmployeeRow[] GetEmployeeRows() {
  3465. if ((this.Table.ChildRelations["FK_Employee_Role"] == null)) {
  3466. return new EmployeeRow[0];
  3467. }
  3468. else {
  3469. return ((EmployeeRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Employee_Role"])));
  3470. }
  3471. }
  3472. }
  3473. /// <summary>
  3474. ///Represents strongly named DataRow class.
  3475. ///</summary>
  3476. public partial class StatusRow : global::System.Data.DataRow {
  3477. private StatusDataTable tableStatus;
  3478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3480. internal StatusRow(global::System.Data.DataRowBuilder rb) :
  3481. base(rb) {
  3482. this.tableStatus = ((StatusDataTable)(this.Table));
  3483. }
  3484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3486. public int IdStatus {
  3487. get {
  3488. return ((int)(this[this.tableStatus.IdStatusColumn]));
  3489. }
  3490. set {
  3491. this[this.tableStatus.IdStatusColumn] = value;
  3492. }
  3493. }
  3494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3496. public string Title {
  3497. get {
  3498. try {
  3499. return ((string)(this[this.tableStatus.TitleColumn]));
  3500. }
  3501. catch (global::System.InvalidCastException e) {
  3502. throw new global::System.Data.StrongTypingException("Значение для столбца \'Title\' в таблице \'Status\' равно DBNull.", e);
  3503. }
  3504. }
  3505. set {
  3506. this[this.tableStatus.TitleColumn] = value;
  3507. }
  3508. }
  3509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3511. public bool IsTitleNull() {
  3512. return this.IsNull(this.tableStatus.TitleColumn);
  3513. }
  3514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3516. public void SetTitleNull() {
  3517. this[this.tableStatus.TitleColumn] = global::System.Convert.DBNull;
  3518. }
  3519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3521. public RequestRow[] GetRequestRows() {
  3522. if ((this.Table.ChildRelations["FK_Request_Status"] == null)) {
  3523. return new RequestRow[0];
  3524. }
  3525. else {
  3526. return ((RequestRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Request_Status"])));
  3527. }
  3528. }
  3529. }
  3530. /// <summary>
  3531. ///Represents strongly named DataRow class.
  3532. ///</summary>
  3533. public partial class TypeDefectRow : global::System.Data.DataRow {
  3534. private TypeDefectDataTable tableTypeDefect;
  3535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3537. internal TypeDefectRow(global::System.Data.DataRowBuilder rb) :
  3538. base(rb) {
  3539. this.tableTypeDefect = ((TypeDefectDataTable)(this.Table));
  3540. }
  3541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3543. public int IdTypeDefect {
  3544. get {
  3545. return ((int)(this[this.tableTypeDefect.IdTypeDefectColumn]));
  3546. }
  3547. set {
  3548. this[this.tableTypeDefect.IdTypeDefectColumn] = value;
  3549. }
  3550. }
  3551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3553. public string Title {
  3554. get {
  3555. try {
  3556. return ((string)(this[this.tableTypeDefect.TitleColumn]));
  3557. }
  3558. catch (global::System.InvalidCastException e) {
  3559. throw new global::System.Data.StrongTypingException("Значение для столбца \'Title\' в таблице \'TypeDefect\' равно DBNull.", e);
  3560. }
  3561. }
  3562. set {
  3563. this[this.tableTypeDefect.TitleColumn] = value;
  3564. }
  3565. }
  3566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3568. public bool IsTitleNull() {
  3569. return this.IsNull(this.tableTypeDefect.TitleColumn);
  3570. }
  3571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3573. public void SetTitleNull() {
  3574. this[this.tableTypeDefect.TitleColumn] = global::System.Convert.DBNull;
  3575. }
  3576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3578. public RequestRow[] GetRequestRows() {
  3579. if ((this.Table.ChildRelations["FK_Request_TypeDefect"] == null)) {
  3580. return new RequestRow[0];
  3581. }
  3582. else {
  3583. return ((RequestRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Request_TypeDefect"])));
  3584. }
  3585. }
  3586. }
  3587. /// <summary>
  3588. ///Represents strongly named DataRow class.
  3589. ///</summary>
  3590. public partial class AllTypeDefectRow : global::System.Data.DataRow {
  3591. private AllTypeDefectDataTable tableAllTypeDefect;
  3592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3594. internal AllTypeDefectRow(global::System.Data.DataRowBuilder rb) :
  3595. base(rb) {
  3596. this.tableAllTypeDefect = ((AllTypeDefectDataTable)(this.Table));
  3597. }
  3598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3600. public string TypeDefect {
  3601. get {
  3602. try {
  3603. return ((string)(this[this.tableAllTypeDefect.TypeDefectColumn]));
  3604. }
  3605. catch (global::System.InvalidCastException e) {
  3606. throw new global::System.Data.StrongTypingException("Значение для столбца \'TypeDefect\' в таблице \'AllTypeDefect\' равно DBNull.", e);
  3607. }
  3608. }
  3609. set {
  3610. this[this.tableAllTypeDefect.TypeDefectColumn] = value;
  3611. }
  3612. }
  3613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3615. public bool IsTypeDefectNull() {
  3616. return this.IsNull(this.tableAllTypeDefect.TypeDefectColumn);
  3617. }
  3618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3620. public void SetTypeDefectNull() {
  3621. this[this.tableAllTypeDefect.TypeDefectColumn] = global::System.Convert.DBNull;
  3622. }
  3623. }
  3624. /// <summary>
  3625. ///Row event argument class
  3626. ///</summary>
  3627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3628. public class ClientRowChangeEvent : global::System.EventArgs {
  3629. private ClientRow eventRow;
  3630. private global::System.Data.DataRowAction eventAction;
  3631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3633. public ClientRowChangeEvent(ClientRow row, global::System.Data.DataRowAction action) {
  3634. this.eventRow = row;
  3635. this.eventAction = action;
  3636. }
  3637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3639. public ClientRow Row {
  3640. get {
  3641. return this.eventRow;
  3642. }
  3643. }
  3644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3646. public global::System.Data.DataRowAction Action {
  3647. get {
  3648. return this.eventAction;
  3649. }
  3650. }
  3651. }
  3652. /// <summary>
  3653. ///Row event argument class
  3654. ///</summary>
  3655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3656. public class EmployeeRowChangeEvent : global::System.EventArgs {
  3657. private EmployeeRow eventRow;
  3658. private global::System.Data.DataRowAction eventAction;
  3659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3661. public EmployeeRowChangeEvent(EmployeeRow row, global::System.Data.DataRowAction action) {
  3662. this.eventRow = row;
  3663. this.eventAction = action;
  3664. }
  3665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3667. public EmployeeRow Row {
  3668. get {
  3669. return this.eventRow;
  3670. }
  3671. }
  3672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3674. public global::System.Data.DataRowAction Action {
  3675. get {
  3676. return this.eventAction;
  3677. }
  3678. }
  3679. }
  3680. /// <summary>
  3681. ///Row event argument class
  3682. ///</summary>
  3683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3684. public class ExecutionRequestRowChangeEvent : global::System.EventArgs {
  3685. private ExecutionRequestRow eventRow;
  3686. private global::System.Data.DataRowAction eventAction;
  3687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3689. public ExecutionRequestRowChangeEvent(ExecutionRequestRow row, global::System.Data.DataRowAction action) {
  3690. this.eventRow = row;
  3691. this.eventAction = action;
  3692. }
  3693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3695. public ExecutionRequestRow Row {
  3696. get {
  3697. return this.eventRow;
  3698. }
  3699. }
  3700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3702. public global::System.Data.DataRowAction Action {
  3703. get {
  3704. return this.eventAction;
  3705. }
  3706. }
  3707. }
  3708. /// <summary>
  3709. ///Row event argument class
  3710. ///</summary>
  3711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3712. public class RequestRowChangeEvent : global::System.EventArgs {
  3713. private RequestRow eventRow;
  3714. private global::System.Data.DataRowAction eventAction;
  3715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3717. public RequestRowChangeEvent(RequestRow row, global::System.Data.DataRowAction action) {
  3718. this.eventRow = row;
  3719. this.eventAction = action;
  3720. }
  3721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3723. public RequestRow Row {
  3724. get {
  3725. return this.eventRow;
  3726. }
  3727. }
  3728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3730. public global::System.Data.DataRowAction Action {
  3731. get {
  3732. return this.eventAction;
  3733. }
  3734. }
  3735. }
  3736. /// <summary>
  3737. ///Row event argument class
  3738. ///</summary>
  3739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3740. public class RoleRowChangeEvent : global::System.EventArgs {
  3741. private RoleRow eventRow;
  3742. private global::System.Data.DataRowAction eventAction;
  3743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3745. public RoleRowChangeEvent(RoleRow row, global::System.Data.DataRowAction action) {
  3746. this.eventRow = row;
  3747. this.eventAction = action;
  3748. }
  3749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3751. public RoleRow Row {
  3752. get {
  3753. return this.eventRow;
  3754. }
  3755. }
  3756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3758. public global::System.Data.DataRowAction Action {
  3759. get {
  3760. return this.eventAction;
  3761. }
  3762. }
  3763. }
  3764. /// <summary>
  3765. ///Row event argument class
  3766. ///</summary>
  3767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3768. public class StatusRowChangeEvent : global::System.EventArgs {
  3769. private StatusRow eventRow;
  3770. private global::System.Data.DataRowAction eventAction;
  3771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3773. public StatusRowChangeEvent(StatusRow row, global::System.Data.DataRowAction action) {
  3774. this.eventRow = row;
  3775. this.eventAction = action;
  3776. }
  3777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3779. public StatusRow Row {
  3780. get {
  3781. return this.eventRow;
  3782. }
  3783. }
  3784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3786. public global::System.Data.DataRowAction Action {
  3787. get {
  3788. return this.eventAction;
  3789. }
  3790. }
  3791. }
  3792. /// <summary>
  3793. ///Row event argument class
  3794. ///</summary>
  3795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3796. public class TypeDefectRowChangeEvent : global::System.EventArgs {
  3797. private TypeDefectRow eventRow;
  3798. private global::System.Data.DataRowAction eventAction;
  3799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3801. public TypeDefectRowChangeEvent(TypeDefectRow row, global::System.Data.DataRowAction action) {
  3802. this.eventRow = row;
  3803. this.eventAction = action;
  3804. }
  3805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3807. public TypeDefectRow Row {
  3808. get {
  3809. return this.eventRow;
  3810. }
  3811. }
  3812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3814. public global::System.Data.DataRowAction Action {
  3815. get {
  3816. return this.eventAction;
  3817. }
  3818. }
  3819. }
  3820. /// <summary>
  3821. ///Row event argument class
  3822. ///</summary>
  3823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3824. public class AllTypeDefectRowChangeEvent : global::System.EventArgs {
  3825. private AllTypeDefectRow eventRow;
  3826. private global::System.Data.DataRowAction eventAction;
  3827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3829. public AllTypeDefectRowChangeEvent(AllTypeDefectRow row, global::System.Data.DataRowAction action) {
  3830. this.eventRow = row;
  3831. this.eventAction = action;
  3832. }
  3833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3835. public AllTypeDefectRow Row {
  3836. get {
  3837. return this.eventRow;
  3838. }
  3839. }
  3840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3842. public global::System.Data.DataRowAction Action {
  3843. get {
  3844. return this.eventAction;
  3845. }
  3846. }
  3847. }
  3848. }
  3849. }
  3850. namespace СУБД_Техносервис.TechServiceBAUDataSetTableAdapters {
  3851. /// <summary>
  3852. ///Represents the connection and commands used to retrieve and save data.
  3853. ///</summary>
  3854. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3855. [global::System.ComponentModel.ToolboxItem(true)]
  3856. [global::System.ComponentModel.DataObjectAttribute(true)]
  3857. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3858. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3859. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3860. public partial class ClientTableAdapter : global::System.ComponentModel.Component {
  3861. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3862. private global::System.Data.SqlClient.SqlConnection _connection;
  3863. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3864. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3865. private bool _clearBeforeFill;
  3866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3868. public ClientTableAdapter() {
  3869. this.ClearBeforeFill = true;
  3870. }
  3871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3873. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3874. get {
  3875. if ((this._adapter == null)) {
  3876. this.InitAdapter();
  3877. }
  3878. return this._adapter;
  3879. }
  3880. }
  3881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3883. internal global::System.Data.SqlClient.SqlConnection Connection {
  3884. get {
  3885. if ((this._connection == null)) {
  3886. this.InitConnection();
  3887. }
  3888. return this._connection;
  3889. }
  3890. set {
  3891. this._connection = value;
  3892. if ((this.Adapter.InsertCommand != null)) {
  3893. this.Adapter.InsertCommand.Connection = value;
  3894. }
  3895. if ((this.Adapter.DeleteCommand != null)) {
  3896. this.Adapter.DeleteCommand.Connection = value;
  3897. }
  3898. if ((this.Adapter.UpdateCommand != null)) {
  3899. this.Adapter.UpdateCommand.Connection = value;
  3900. }
  3901. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3902. if ((this.CommandCollection[i] != null)) {
  3903. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3904. }
  3905. }
  3906. }
  3907. }
  3908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3910. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3911. get {
  3912. return this._transaction;
  3913. }
  3914. set {
  3915. this._transaction = value;
  3916. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3917. this.CommandCollection[i].Transaction = this._transaction;
  3918. }
  3919. if (((this.Adapter != null)
  3920. && (this.Adapter.DeleteCommand != null))) {
  3921. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3922. }
  3923. if (((this.Adapter != null)
  3924. && (this.Adapter.InsertCommand != null))) {
  3925. this.Adapter.InsertCommand.Transaction = this._transaction;
  3926. }
  3927. if (((this.Adapter != null)
  3928. && (this.Adapter.UpdateCommand != null))) {
  3929. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3930. }
  3931. }
  3932. }
  3933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3935. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3936. get {
  3937. if ((this._commandCollection == null)) {
  3938. this.InitCommandCollection();
  3939. }
  3940. return this._commandCollection;
  3941. }
  3942. }
  3943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3945. public bool ClearBeforeFill {
  3946. get {
  3947. return this._clearBeforeFill;
  3948. }
  3949. set {
  3950. this._clearBeforeFill = value;
  3951. }
  3952. }
  3953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3955. private void InitAdapter() {
  3956. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3957. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3958. tableMapping.SourceTable = "Table";
  3959. tableMapping.DataSetTable = "Client";
  3960. tableMapping.ColumnMappings.Add("IdClient", "IdClient");
  3961. tableMapping.ColumnMappings.Add("Surname", "Surname");
  3962. tableMapping.ColumnMappings.Add("Name", "Name");
  3963. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  3964. this._adapter.TableMappings.Add(tableMapping);
  3965. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3966. this._adapter.DeleteCommand.Connection = this.Connection;
  3967. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Client] WHERE (([IdClient] = @Original_IdClient) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)))";
  3968. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3969. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdClient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdClient", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3970. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Surname", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3971. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3972. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3973. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3974. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3975. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3976. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3977. this._adapter.InsertCommand.Connection = this.Connection;
  3978. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Client] ([Surname], [Name], [Patronymic]) VALUES (@Surname, @N" +
  3979. "ame, @Patronymic);\r\nSELECT IdClient, Surname, Name, Patronymic FROM Client WHERE" +
  3980. " (IdClient = SCOPE_IDENTITY())";
  3981. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3982. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3983. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3984. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3985. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3986. this._adapter.UpdateCommand.Connection = this.Connection;
  3987. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Client] SET [Surname] = @Surname, [Name] = @Name, [Patronymic] = @Patronymic WHERE (([IdClient] = @Original_IdClient) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)));
  3988. SELECT IdClient, Surname, Name, Patronymic FROM Client WHERE (IdClient = @IdClient)";
  3989. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3990. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3991. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3992. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3993. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdClient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdClient", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3994. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Surname", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3995. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3996. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3997. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3998. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3999. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4000. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdClient", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdClient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4001. }
  4002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4004. private void InitConnection() {
  4005. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4006. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  4007. }
  4008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4010. private void InitCommandCollection() {
  4011. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4012. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4013. this._commandCollection[0].Connection = this.Connection;
  4014. this._commandCollection[0].CommandText = "SELECT IdClient, Surname, Name, Patronymic FROM dbo.Client";
  4015. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4016. }
  4017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4019. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4020. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4021. public virtual int Fill(TechServiceBAUDataSet.ClientDataTable dataTable) {
  4022. this.Adapter.SelectCommand = this.CommandCollection[0];
  4023. if ((this.ClearBeforeFill == true)) {
  4024. dataTable.Clear();
  4025. }
  4026. int returnValue = this.Adapter.Fill(dataTable);
  4027. return returnValue;
  4028. }
  4029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4031. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4032. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4033. public virtual TechServiceBAUDataSet.ClientDataTable GetData() {
  4034. this.Adapter.SelectCommand = this.CommandCollection[0];
  4035. TechServiceBAUDataSet.ClientDataTable dataTable = new TechServiceBAUDataSet.ClientDataTable();
  4036. this.Adapter.Fill(dataTable);
  4037. return dataTable;
  4038. }
  4039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4041. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4042. public virtual int Update(TechServiceBAUDataSet.ClientDataTable dataTable) {
  4043. return this.Adapter.Update(dataTable);
  4044. }
  4045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4047. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4048. public virtual int Update(TechServiceBAUDataSet dataSet) {
  4049. return this.Adapter.Update(dataSet, "Client");
  4050. }
  4051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4053. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4054. public virtual int Update(global::System.Data.DataRow dataRow) {
  4055. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4056. dataRow});
  4057. }
  4058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4060. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4061. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4062. return this.Adapter.Update(dataRows);
  4063. }
  4064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4066. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4067. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4068. public virtual int Delete(int Original_IdClient, string Original_Surname, string Original_Name, string Original_Patronymic) {
  4069. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdClient));
  4070. if ((Original_Surname == null)) {
  4071. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4072. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4073. }
  4074. else {
  4075. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4076. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Surname));
  4077. }
  4078. if ((Original_Name == null)) {
  4079. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4080. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4081. }
  4082. else {
  4083. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4084. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Name));
  4085. }
  4086. if ((Original_Patronymic == null)) {
  4087. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4088. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4089. }
  4090. else {
  4091. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4092. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Patronymic));
  4093. }
  4094. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4095. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4096. != global::System.Data.ConnectionState.Open)) {
  4097. this.Adapter.DeleteCommand.Connection.Open();
  4098. }
  4099. try {
  4100. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4101. return returnValue;
  4102. }
  4103. finally {
  4104. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4105. this.Adapter.DeleteCommand.Connection.Close();
  4106. }
  4107. }
  4108. }
  4109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4111. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4112. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4113. public virtual int Insert(string Surname, string Name, string Patronymic) {
  4114. if ((Surname == null)) {
  4115. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4116. }
  4117. else {
  4118. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Surname));
  4119. }
  4120. if ((Name == null)) {
  4121. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4122. }
  4123. else {
  4124. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  4125. }
  4126. if ((Patronymic == null)) {
  4127. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4128. }
  4129. else {
  4130. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  4131. }
  4132. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4133. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4134. != global::System.Data.ConnectionState.Open)) {
  4135. this.Adapter.InsertCommand.Connection.Open();
  4136. }
  4137. try {
  4138. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4139. return returnValue;
  4140. }
  4141. finally {
  4142. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4143. this.Adapter.InsertCommand.Connection.Close();
  4144. }
  4145. }
  4146. }
  4147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4149. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4150. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4151. public virtual int Update(string Surname, string Name, string Patronymic, int Original_IdClient, string Original_Surname, string Original_Name, string Original_Patronymic, int IdClient) {
  4152. if ((Surname == null)) {
  4153. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4154. }
  4155. else {
  4156. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Surname));
  4157. }
  4158. if ((Name == null)) {
  4159. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4160. }
  4161. else {
  4162. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  4163. }
  4164. if ((Patronymic == null)) {
  4165. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4166. }
  4167. else {
  4168. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  4169. }
  4170. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_IdClient));
  4171. if ((Original_Surname == null)) {
  4172. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  4173. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  4174. }
  4175. else {
  4176. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  4177. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Surname));
  4178. }
  4179. if ((Original_Name == null)) {
  4180. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  4181. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  4182. }
  4183. else {
  4184. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  4185. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Name));
  4186. }
  4187. if ((Original_Patronymic == null)) {
  4188. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  4189. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  4190. }
  4191. else {
  4192. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  4193. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Patronymic));
  4194. }
  4195. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(IdClient));
  4196. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4197. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4198. != global::System.Data.ConnectionState.Open)) {
  4199. this.Adapter.UpdateCommand.Connection.Open();
  4200. }
  4201. try {
  4202. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4203. return returnValue;
  4204. }
  4205. finally {
  4206. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4207. this.Adapter.UpdateCommand.Connection.Close();
  4208. }
  4209. }
  4210. }
  4211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4213. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4214. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4215. public virtual int Update(string Surname, string Name, string Patronymic, int Original_IdClient, string Original_Surname, string Original_Name, string Original_Patronymic) {
  4216. return this.Update(Surname, Name, Patronymic, Original_IdClient, Original_Surname, Original_Name, Original_Patronymic, Original_IdClient);
  4217. }
  4218. }
  4219. /// <summary>
  4220. ///Represents the connection and commands used to retrieve and save data.
  4221. ///</summary>
  4222. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4223. [global::System.ComponentModel.ToolboxItem(true)]
  4224. [global::System.ComponentModel.DataObjectAttribute(true)]
  4225. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4226. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4227. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4228. public partial class EmployeeTableAdapter : global::System.ComponentModel.Component {
  4229. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4230. private global::System.Data.SqlClient.SqlConnection _connection;
  4231. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4232. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4233. private bool _clearBeforeFill;
  4234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4236. public EmployeeTableAdapter() {
  4237. this.ClearBeforeFill = true;
  4238. }
  4239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4241. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4242. get {
  4243. if ((this._adapter == null)) {
  4244. this.InitAdapter();
  4245. }
  4246. return this._adapter;
  4247. }
  4248. }
  4249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4251. internal global::System.Data.SqlClient.SqlConnection Connection {
  4252. get {
  4253. if ((this._connection == null)) {
  4254. this.InitConnection();
  4255. }
  4256. return this._connection;
  4257. }
  4258. set {
  4259. this._connection = value;
  4260. if ((this.Adapter.InsertCommand != null)) {
  4261. this.Adapter.InsertCommand.Connection = value;
  4262. }
  4263. if ((this.Adapter.DeleteCommand != null)) {
  4264. this.Adapter.DeleteCommand.Connection = value;
  4265. }
  4266. if ((this.Adapter.UpdateCommand != null)) {
  4267. this.Adapter.UpdateCommand.Connection = value;
  4268. }
  4269. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4270. if ((this.CommandCollection[i] != null)) {
  4271. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4272. }
  4273. }
  4274. }
  4275. }
  4276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4278. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4279. get {
  4280. return this._transaction;
  4281. }
  4282. set {
  4283. this._transaction = value;
  4284. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4285. this.CommandCollection[i].Transaction = this._transaction;
  4286. }
  4287. if (((this.Adapter != null)
  4288. && (this.Adapter.DeleteCommand != null))) {
  4289. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4290. }
  4291. if (((this.Adapter != null)
  4292. && (this.Adapter.InsertCommand != null))) {
  4293. this.Adapter.InsertCommand.Transaction = this._transaction;
  4294. }
  4295. if (((this.Adapter != null)
  4296. && (this.Adapter.UpdateCommand != null))) {
  4297. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4298. }
  4299. }
  4300. }
  4301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4303. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4304. get {
  4305. if ((this._commandCollection == null)) {
  4306. this.InitCommandCollection();
  4307. }
  4308. return this._commandCollection;
  4309. }
  4310. }
  4311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4313. public bool ClearBeforeFill {
  4314. get {
  4315. return this._clearBeforeFill;
  4316. }
  4317. set {
  4318. this._clearBeforeFill = value;
  4319. }
  4320. }
  4321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4323. private void InitAdapter() {
  4324. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4325. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4326. tableMapping.SourceTable = "Table";
  4327. tableMapping.DataSetTable = "Employee";
  4328. tableMapping.ColumnMappings.Add("IdEmployee", "IdEmployee");
  4329. tableMapping.ColumnMappings.Add("IdRole", "IdRole");
  4330. tableMapping.ColumnMappings.Add("Surname", "Surname");
  4331. tableMapping.ColumnMappings.Add("Name", "Name");
  4332. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  4333. tableMapping.ColumnMappings.Add("Login", "Login");
  4334. tableMapping.ColumnMappings.Add("Password", "Password");
  4335. tableMapping.ColumnMappings.Add("Photo", "Photo");
  4336. this._adapter.TableMappings.Add(tableMapping);
  4337. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4338. this._adapter.DeleteCommand.Connection = this.Connection;
  4339. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Employee] WHERE (([IdEmployee] = @Original_IdEmployee) AND ((@IsNull_IdRole = 1 AND [IdRole] IS NULL) OR ([IdRole] = @Original_IdRole)) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) AND ((@IsNull_Photo = 1 AND [Photo] IS NULL) OR ([Photo] = @Original_Photo)))";
  4340. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4341. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdEmployee", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdEmployee", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4342. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRole", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4343. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4344. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Surname", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4345. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4346. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4347. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4348. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4349. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4350. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Login", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4351. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4352. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4353. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4354. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Photo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4355. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4356. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4357. this._adapter.InsertCommand.Connection = this.Connection;
  4358. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Employee] ([IdRole], [Surname], [Name], [Patronymic], [Login], [Password], [Photo]) VALUES (@IdRole, @Surname, @Name, @Patronymic, @Login, @Password, @Photo);
  4359. SELECT IdEmployee, IdRole, Surname, Name, Patronymic, Login, Password, Photo FROM Employee WHERE (IdEmployee = SCOPE_IDENTITY())";
  4360. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4361. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4362. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4363. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4364. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4365. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4366. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4367. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4368. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4369. this._adapter.UpdateCommand.Connection = this.Connection;
  4370. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Employee] SET [IdRole] = @IdRole, [Surname] = @Surname, [Name] = @Name, [Patronymic] = @Patronymic, [Login] = @Login, [Password] = @Password, [Photo] = @Photo WHERE (([IdEmployee] = @Original_IdEmployee) AND ((@IsNull_IdRole = 1 AND [IdRole] IS NULL) OR ([IdRole] = @Original_IdRole)) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) AND ((@IsNull_Photo = 1 AND [Photo] IS NULL) OR ([Photo] = @Original_Photo)));
  4371. SELECT IdEmployee, IdRole, Surname, Name, Patronymic, Login, Password, Photo FROM Employee WHERE (IdEmployee = @IdEmployee)";
  4372. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4373. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4374. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4375. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4376. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4377. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4378. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4379. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4380. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdEmployee", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdEmployee", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4381. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRole", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4382. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4383. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Surname", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4384. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4385. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4386. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4387. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4388. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4389. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Login", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4390. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4391. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4392. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4393. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Photo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4394. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4395. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdEmployee", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdEmployee", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4396. }
  4397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4399. private void InitConnection() {
  4400. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4401. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  4402. }
  4403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4405. private void InitCommandCollection() {
  4406. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4407. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4408. this._commandCollection[0].Connection = this.Connection;
  4409. this._commandCollection[0].CommandText = "SELECT IdEmployee, IdRole, Surname, Name, Patronymic, Login, Password, Photo FROM" +
  4410. " dbo.Employee";
  4411. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4412. }
  4413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4415. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4416. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4417. public virtual int Fill(TechServiceBAUDataSet.EmployeeDataTable dataTable) {
  4418. this.Adapter.SelectCommand = this.CommandCollection[0];
  4419. if ((this.ClearBeforeFill == true)) {
  4420. dataTable.Clear();
  4421. }
  4422. int returnValue = this.Adapter.Fill(dataTable);
  4423. return returnValue;
  4424. }
  4425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4427. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4428. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4429. public virtual TechServiceBAUDataSet.EmployeeDataTable GetData() {
  4430. this.Adapter.SelectCommand = this.CommandCollection[0];
  4431. TechServiceBAUDataSet.EmployeeDataTable dataTable = new TechServiceBAUDataSet.EmployeeDataTable();
  4432. this.Adapter.Fill(dataTable);
  4433. return dataTable;
  4434. }
  4435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4437. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4438. public virtual int Update(TechServiceBAUDataSet.EmployeeDataTable dataTable) {
  4439. return this.Adapter.Update(dataTable);
  4440. }
  4441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4443. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4444. public virtual int Update(TechServiceBAUDataSet dataSet) {
  4445. return this.Adapter.Update(dataSet, "Employee");
  4446. }
  4447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4449. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4450. public virtual int Update(global::System.Data.DataRow dataRow) {
  4451. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4452. dataRow});
  4453. }
  4454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4456. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4457. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4458. return this.Adapter.Update(dataRows);
  4459. }
  4460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4462. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4463. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4464. public virtual int Delete(int Original_IdEmployee, global::System.Nullable<int> Original_IdRole, string Original_Surname, string Original_Name, string Original_Patronymic, string Original_Login, string Original_Password, string Original_Photo) {
  4465. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdEmployee));
  4466. if ((Original_IdRole.HasValue == true)) {
  4467. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4468. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IdRole.Value));
  4469. }
  4470. else {
  4471. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4472. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4473. }
  4474. if ((Original_Surname == null)) {
  4475. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4476. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4477. }
  4478. else {
  4479. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4480. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Surname));
  4481. }
  4482. if ((Original_Name == null)) {
  4483. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4484. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4485. }
  4486. else {
  4487. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4488. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Name));
  4489. }
  4490. if ((Original_Patronymic == null)) {
  4491. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  4492. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  4493. }
  4494. else {
  4495. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  4496. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Patronymic));
  4497. }
  4498. if ((Original_Login == null)) {
  4499. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  4500. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  4501. }
  4502. else {
  4503. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  4504. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Login));
  4505. }
  4506. if ((Original_Password == null)) {
  4507. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  4508. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  4509. }
  4510. else {
  4511. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  4512. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Password));
  4513. }
  4514. if ((Original_Photo == null)) {
  4515. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  4516. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  4517. }
  4518. else {
  4519. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  4520. this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_Photo));
  4521. }
  4522. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4523. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4524. != global::System.Data.ConnectionState.Open)) {
  4525. this.Adapter.DeleteCommand.Connection.Open();
  4526. }
  4527. try {
  4528. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4529. return returnValue;
  4530. }
  4531. finally {
  4532. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4533. this.Adapter.DeleteCommand.Connection.Close();
  4534. }
  4535. }
  4536. }
  4537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4539. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4540. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4541. public virtual int Insert(global::System.Nullable<int> IdRole, string Surname, string Name, string Patronymic, string Login, string Password, string Photo) {
  4542. if ((IdRole.HasValue == true)) {
  4543. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdRole.Value));
  4544. }
  4545. else {
  4546. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4547. }
  4548. if ((Surname == null)) {
  4549. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4550. }
  4551. else {
  4552. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Surname));
  4553. }
  4554. if ((Name == null)) {
  4555. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4556. }
  4557. else {
  4558. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Name));
  4559. }
  4560. if ((Patronymic == null)) {
  4561. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4562. }
  4563. else {
  4564. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Patronymic));
  4565. }
  4566. if ((Login == null)) {
  4567. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  4568. }
  4569. else {
  4570. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Login));
  4571. }
  4572. if ((Password == null)) {
  4573. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  4574. }
  4575. else {
  4576. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Password));
  4577. }
  4578. if ((Photo == null)) {
  4579. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  4580. }
  4581. else {
  4582. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Photo));
  4583. }
  4584. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4585. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4586. != global::System.Data.ConnectionState.Open)) {
  4587. this.Adapter.InsertCommand.Connection.Open();
  4588. }
  4589. try {
  4590. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4591. return returnValue;
  4592. }
  4593. finally {
  4594. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4595. this.Adapter.InsertCommand.Connection.Close();
  4596. }
  4597. }
  4598. }
  4599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4601. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4602. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4603. public virtual int Update(
  4604. global::System.Nullable<int> IdRole,
  4605. string Surname,
  4606. string Name,
  4607. string Patronymic,
  4608. string Login,
  4609. string Password,
  4610. string Photo,
  4611. int Original_IdEmployee,
  4612. global::System.Nullable<int> Original_IdRole,
  4613. string Original_Surname,
  4614. string Original_Name,
  4615. string Original_Patronymic,
  4616. string Original_Login,
  4617. string Original_Password,
  4618. string Original_Photo,
  4619. int IdEmployee) {
  4620. if ((IdRole.HasValue == true)) {
  4621. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdRole.Value));
  4622. }
  4623. else {
  4624. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4625. }
  4626. if ((Surname == null)) {
  4627. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4628. }
  4629. else {
  4630. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Surname));
  4631. }
  4632. if ((Name == null)) {
  4633. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4634. }
  4635. else {
  4636. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Name));
  4637. }
  4638. if ((Patronymic == null)) {
  4639. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4640. }
  4641. else {
  4642. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Patronymic));
  4643. }
  4644. if ((Login == null)) {
  4645. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4646. }
  4647. else {
  4648. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Login));
  4649. }
  4650. if ((Password == null)) {
  4651. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  4652. }
  4653. else {
  4654. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Password));
  4655. }
  4656. if ((Photo == null)) {
  4657. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  4658. }
  4659. else {
  4660. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Photo));
  4661. }
  4662. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_IdEmployee));
  4663. if ((Original_IdRole.HasValue == true)) {
  4664. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  4665. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_IdRole.Value));
  4666. }
  4667. else {
  4668. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  4669. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  4670. }
  4671. if ((Original_Surname == null)) {
  4672. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  4673. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  4674. }
  4675. else {
  4676. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  4677. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Surname));
  4678. }
  4679. if ((Original_Name == null)) {
  4680. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  4681. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  4682. }
  4683. else {
  4684. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  4685. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Name));
  4686. }
  4687. if ((Original_Patronymic == null)) {
  4688. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  4689. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  4690. }
  4691. else {
  4692. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  4693. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Patronymic));
  4694. }
  4695. if ((Original_Login == null)) {
  4696. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  4697. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  4698. }
  4699. else {
  4700. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  4701. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Login));
  4702. }
  4703. if ((Original_Password == null)) {
  4704. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  4705. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  4706. }
  4707. else {
  4708. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  4709. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Password));
  4710. }
  4711. if ((Original_Photo == null)) {
  4712. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  4713. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  4714. }
  4715. else {
  4716. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  4717. this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_Photo));
  4718. }
  4719. this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(IdEmployee));
  4720. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4721. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4722. != global::System.Data.ConnectionState.Open)) {
  4723. this.Adapter.UpdateCommand.Connection.Open();
  4724. }
  4725. try {
  4726. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4727. return returnValue;
  4728. }
  4729. finally {
  4730. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4731. this.Adapter.UpdateCommand.Connection.Close();
  4732. }
  4733. }
  4734. }
  4735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4737. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4738. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4739. public virtual int Update(global::System.Nullable<int> IdRole, string Surname, string Name, string Patronymic, string Login, string Password, string Photo, int Original_IdEmployee, global::System.Nullable<int> Original_IdRole, string Original_Surname, string Original_Name, string Original_Patronymic, string Original_Login, string Original_Password, string Original_Photo) {
  4740. return this.Update(IdRole, Surname, Name, Patronymic, Login, Password, Photo, Original_IdEmployee, Original_IdRole, Original_Surname, Original_Name, Original_Patronymic, Original_Login, Original_Password, Original_Photo, Original_IdEmployee);
  4741. }
  4742. }
  4743. /// <summary>
  4744. ///Represents the connection and commands used to retrieve and save data.
  4745. ///</summary>
  4746. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4747. [global::System.ComponentModel.ToolboxItem(true)]
  4748. [global::System.ComponentModel.DataObjectAttribute(true)]
  4749. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4750. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4751. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4752. public partial class ExecutionRequestTableAdapter : global::System.ComponentModel.Component {
  4753. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4754. private global::System.Data.SqlClient.SqlConnection _connection;
  4755. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4756. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4757. private bool _clearBeforeFill;
  4758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4760. public ExecutionRequestTableAdapter() {
  4761. this.ClearBeforeFill = true;
  4762. }
  4763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4765. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4766. get {
  4767. if ((this._adapter == null)) {
  4768. this.InitAdapter();
  4769. }
  4770. return this._adapter;
  4771. }
  4772. }
  4773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4775. internal global::System.Data.SqlClient.SqlConnection Connection {
  4776. get {
  4777. if ((this._connection == null)) {
  4778. this.InitConnection();
  4779. }
  4780. return this._connection;
  4781. }
  4782. set {
  4783. this._connection = value;
  4784. if ((this.Adapter.InsertCommand != null)) {
  4785. this.Adapter.InsertCommand.Connection = value;
  4786. }
  4787. if ((this.Adapter.DeleteCommand != null)) {
  4788. this.Adapter.DeleteCommand.Connection = value;
  4789. }
  4790. if ((this.Adapter.UpdateCommand != null)) {
  4791. this.Adapter.UpdateCommand.Connection = value;
  4792. }
  4793. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4794. if ((this.CommandCollection[i] != null)) {
  4795. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4796. }
  4797. }
  4798. }
  4799. }
  4800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4802. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4803. get {
  4804. return this._transaction;
  4805. }
  4806. set {
  4807. this._transaction = value;
  4808. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4809. this.CommandCollection[i].Transaction = this._transaction;
  4810. }
  4811. if (((this.Adapter != null)
  4812. && (this.Adapter.DeleteCommand != null))) {
  4813. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4814. }
  4815. if (((this.Adapter != null)
  4816. && (this.Adapter.InsertCommand != null))) {
  4817. this.Adapter.InsertCommand.Transaction = this._transaction;
  4818. }
  4819. if (((this.Adapter != null)
  4820. && (this.Adapter.UpdateCommand != null))) {
  4821. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4822. }
  4823. }
  4824. }
  4825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4827. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4828. get {
  4829. if ((this._commandCollection == null)) {
  4830. this.InitCommandCollection();
  4831. }
  4832. return this._commandCollection;
  4833. }
  4834. }
  4835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4837. public bool ClearBeforeFill {
  4838. get {
  4839. return this._clearBeforeFill;
  4840. }
  4841. set {
  4842. this._clearBeforeFill = value;
  4843. }
  4844. }
  4845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4847. private void InitAdapter() {
  4848. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4849. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4850. tableMapping.SourceTable = "Table";
  4851. tableMapping.DataSetTable = "ExecutionRequest";
  4852. tableMapping.ColumnMappings.Add("IdExecution", "IdExecution");
  4853. tableMapping.ColumnMappings.Add("IdRequest", "IdRequest");
  4854. tableMapping.ColumnMappings.Add("IdMaster", "IdMaster");
  4855. this._adapter.TableMappings.Add(tableMapping);
  4856. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4857. this._adapter.DeleteCommand.Connection = this.Connection;
  4858. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ExecutionRequest] WHERE (([IdExecution] = @Original_IdExecution) AND ((@IsNull_IdRequest = 1 AND [IdRequest] IS NULL) OR ([IdRequest] = @Original_IdRequest)) AND ((@IsNull_IdMaster = 1 AND [IdMaster] IS NULL) OR ([IdMaster] = @Original_IdMaster)))";
  4859. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4860. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdExecution", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdExecution", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4861. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdRequest", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRequest", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4862. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdRequest", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRequest", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4863. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdMaster", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdMaster", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4864. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdMaster", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdMaster", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4865. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4866. this._adapter.InsertCommand.Connection = this.Connection;
  4867. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ExecutionRequest] ([IdRequest], [IdMaster]) VALUES (@IdRequest" +
  4868. ", @IdMaster);\r\nSELECT IdExecution, IdRequest, IdMaster FROM ExecutionRequest WHE" +
  4869. "RE (IdExecution = SCOPE_IDENTITY())";
  4870. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4871. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdRequest", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRequest", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4872. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdMaster", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdMaster", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4873. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4874. this._adapter.UpdateCommand.Connection = this.Connection;
  4875. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ExecutionRequest] SET [IdRequest] = @IdRequest, [IdMaster] = @IdMaster WHERE (([IdExecution] = @Original_IdExecution) AND ((@IsNull_IdRequest = 1 AND [IdRequest] IS NULL) OR ([IdRequest] = @Original_IdRequest)) AND ((@IsNull_IdMaster = 1 AND [IdMaster] IS NULL) OR ([IdMaster] = @Original_IdMaster)));
  4876. SELECT IdExecution, IdRequest, IdMaster FROM ExecutionRequest WHERE (IdExecution = @IdExecution)";
  4877. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4878. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdRequest", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRequest", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4879. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdMaster", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdMaster", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4880. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdExecution", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdExecution", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4881. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdRequest", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRequest", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4882. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdRequest", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRequest", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4883. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdMaster", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdMaster", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4884. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdMaster", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdMaster", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4885. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdExecution", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdExecution", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4886. }
  4887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4889. private void InitConnection() {
  4890. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4891. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  4892. }
  4893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4895. private void InitCommandCollection() {
  4896. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4897. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4898. this._commandCollection[0].Connection = this.Connection;
  4899. this._commandCollection[0].CommandText = "SELECT IdExecution, IdRequest, IdMaster FROM dbo.ExecutionRequest";
  4900. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4901. }
  4902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4904. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4905. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4906. public virtual int Fill(TechServiceBAUDataSet.ExecutionRequestDataTable dataTable) {
  4907. this.Adapter.SelectCommand = this.CommandCollection[0];
  4908. if ((this.ClearBeforeFill == true)) {
  4909. dataTable.Clear();
  4910. }
  4911. int returnValue = this.Adapter.Fill(dataTable);
  4912. return returnValue;
  4913. }
  4914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4916. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4917. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4918. public virtual TechServiceBAUDataSet.ExecutionRequestDataTable GetData() {
  4919. this.Adapter.SelectCommand = this.CommandCollection[0];
  4920. TechServiceBAUDataSet.ExecutionRequestDataTable dataTable = new TechServiceBAUDataSet.ExecutionRequestDataTable();
  4921. this.Adapter.Fill(dataTable);
  4922. return dataTable;
  4923. }
  4924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4926. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4927. public virtual int Update(TechServiceBAUDataSet.ExecutionRequestDataTable dataTable) {
  4928. return this.Adapter.Update(dataTable);
  4929. }
  4930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4932. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4933. public virtual int Update(TechServiceBAUDataSet dataSet) {
  4934. return this.Adapter.Update(dataSet, "ExecutionRequest");
  4935. }
  4936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4938. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4939. public virtual int Update(global::System.Data.DataRow dataRow) {
  4940. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4941. dataRow});
  4942. }
  4943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4945. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4946. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4947. return this.Adapter.Update(dataRows);
  4948. }
  4949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4951. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4952. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4953. public virtual int Delete(int Original_IdExecution, global::System.Nullable<int> Original_IdRequest, global::System.Nullable<int> Original_IdMaster) {
  4954. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdExecution));
  4955. if ((Original_IdRequest.HasValue == true)) {
  4956. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4957. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IdRequest.Value));
  4958. }
  4959. else {
  4960. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4961. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4962. }
  4963. if ((Original_IdMaster.HasValue == true)) {
  4964. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4965. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IdMaster.Value));
  4966. }
  4967. else {
  4968. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4969. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4970. }
  4971. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4972. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4973. != global::System.Data.ConnectionState.Open)) {
  4974. this.Adapter.DeleteCommand.Connection.Open();
  4975. }
  4976. try {
  4977. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4978. return returnValue;
  4979. }
  4980. finally {
  4981. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4982. this.Adapter.DeleteCommand.Connection.Close();
  4983. }
  4984. }
  4985. }
  4986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4988. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4989. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4990. public virtual int Insert(global::System.Nullable<int> IdRequest, global::System.Nullable<int> IdMaster) {
  4991. if ((IdRequest.HasValue == true)) {
  4992. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdRequest.Value));
  4993. }
  4994. else {
  4995. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4996. }
  4997. if ((IdMaster.HasValue == true)) {
  4998. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdMaster.Value));
  4999. }
  5000. else {
  5001. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5002. }
  5003. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5004. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5005. != global::System.Data.ConnectionState.Open)) {
  5006. this.Adapter.InsertCommand.Connection.Open();
  5007. }
  5008. try {
  5009. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5010. return returnValue;
  5011. }
  5012. finally {
  5013. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5014. this.Adapter.InsertCommand.Connection.Close();
  5015. }
  5016. }
  5017. }
  5018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5020. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5021. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5022. public virtual int Update(global::System.Nullable<int> IdRequest, global::System.Nullable<int> IdMaster, int Original_IdExecution, global::System.Nullable<int> Original_IdRequest, global::System.Nullable<int> Original_IdMaster, int IdExecution) {
  5023. if ((IdRequest.HasValue == true)) {
  5024. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdRequest.Value));
  5025. }
  5026. else {
  5027. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5028. }
  5029. if ((IdMaster.HasValue == true)) {
  5030. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdMaster.Value));
  5031. }
  5032. else {
  5033. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5034. }
  5035. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_IdExecution));
  5036. if ((Original_IdRequest.HasValue == true)) {
  5037. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  5038. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IdRequest.Value));
  5039. }
  5040. else {
  5041. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  5042. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5043. }
  5044. if ((Original_IdMaster.HasValue == true)) {
  5045. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  5046. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IdMaster.Value));
  5047. }
  5048. else {
  5049. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  5050. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  5051. }
  5052. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(IdExecution));
  5053. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5054. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5055. != global::System.Data.ConnectionState.Open)) {
  5056. this.Adapter.UpdateCommand.Connection.Open();
  5057. }
  5058. try {
  5059. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5060. return returnValue;
  5061. }
  5062. finally {
  5063. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5064. this.Adapter.UpdateCommand.Connection.Close();
  5065. }
  5066. }
  5067. }
  5068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5070. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5071. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5072. public virtual int Update(global::System.Nullable<int> IdRequest, global::System.Nullable<int> IdMaster, int Original_IdExecution, global::System.Nullable<int> Original_IdRequest, global::System.Nullable<int> Original_IdMaster) {
  5073. return this.Update(IdRequest, IdMaster, Original_IdExecution, Original_IdRequest, Original_IdMaster, Original_IdExecution);
  5074. }
  5075. }
  5076. /// <summary>
  5077. ///Represents the connection and commands used to retrieve and save data.
  5078. ///</summary>
  5079. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5080. [global::System.ComponentModel.ToolboxItem(true)]
  5081. [global::System.ComponentModel.DataObjectAttribute(true)]
  5082. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5083. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5084. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5085. public partial class RequestTableAdapter : global::System.ComponentModel.Component {
  5086. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5087. private global::System.Data.SqlClient.SqlConnection _connection;
  5088. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5089. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5090. private bool _clearBeforeFill;
  5091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5093. public RequestTableAdapter() {
  5094. this.ClearBeforeFill = true;
  5095. }
  5096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5098. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5099. get {
  5100. if ((this._adapter == null)) {
  5101. this.InitAdapter();
  5102. }
  5103. return this._adapter;
  5104. }
  5105. }
  5106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5108. internal global::System.Data.SqlClient.SqlConnection Connection {
  5109. get {
  5110. if ((this._connection == null)) {
  5111. this.InitConnection();
  5112. }
  5113. return this._connection;
  5114. }
  5115. set {
  5116. this._connection = value;
  5117. if ((this.Adapter.InsertCommand != null)) {
  5118. this.Adapter.InsertCommand.Connection = value;
  5119. }
  5120. if ((this.Adapter.DeleteCommand != null)) {
  5121. this.Adapter.DeleteCommand.Connection = value;
  5122. }
  5123. if ((this.Adapter.UpdateCommand != null)) {
  5124. this.Adapter.UpdateCommand.Connection = value;
  5125. }
  5126. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5127. if ((this.CommandCollection[i] != null)) {
  5128. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5129. }
  5130. }
  5131. }
  5132. }
  5133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5135. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5136. get {
  5137. return this._transaction;
  5138. }
  5139. set {
  5140. this._transaction = value;
  5141. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5142. this.CommandCollection[i].Transaction = this._transaction;
  5143. }
  5144. if (((this.Adapter != null)
  5145. && (this.Adapter.DeleteCommand != null))) {
  5146. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5147. }
  5148. if (((this.Adapter != null)
  5149. && (this.Adapter.InsertCommand != null))) {
  5150. this.Adapter.InsertCommand.Transaction = this._transaction;
  5151. }
  5152. if (((this.Adapter != null)
  5153. && (this.Adapter.UpdateCommand != null))) {
  5154. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5155. }
  5156. }
  5157. }
  5158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5160. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5161. get {
  5162. if ((this._commandCollection == null)) {
  5163. this.InitCommandCollection();
  5164. }
  5165. return this._commandCollection;
  5166. }
  5167. }
  5168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5170. public bool ClearBeforeFill {
  5171. get {
  5172. return this._clearBeforeFill;
  5173. }
  5174. set {
  5175. this._clearBeforeFill = value;
  5176. }
  5177. }
  5178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5180. private void InitAdapter() {
  5181. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5182. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5183. tableMapping.SourceTable = "Table";
  5184. tableMapping.DataSetTable = "Request";
  5185. tableMapping.ColumnMappings.Add("IdRequest", "IdRequest");
  5186. tableMapping.ColumnMappings.Add("IdStatus", "IdStatus");
  5187. tableMapping.ColumnMappings.Add("IdTypeDefect", "IdTypeDefect");
  5188. tableMapping.ColumnMappings.Add("IdClient", "IdClient");
  5189. tableMapping.ColumnMappings.Add("IdManager", "IdManager");
  5190. tableMapping.ColumnMappings.Add("DateAccepting", "DateAccepting");
  5191. tableMapping.ColumnMappings.Add("DateCompletion", "DateCompletion");
  5192. tableMapping.ColumnMappings.Add("EquipmentDefect", "EquipmentDefect");
  5193. tableMapping.ColumnMappings.Add("Description", "Description");
  5194. tableMapping.ColumnMappings.Add("Comment", "Comment");
  5195. this._adapter.TableMappings.Add(tableMapping);
  5196. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5197. this._adapter.DeleteCommand.Connection = this.Connection;
  5198. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Request] WHERE (([IdRequest] = @Original_IdRequest) AND ((@IsNull_IdStatus = 1 AND [IdStatus] IS NULL) OR ([IdStatus] = @Original_IdStatus)) AND ((@IsNull_IdTypeDefect = 1 AND [IdTypeDefect] IS NULL) OR ([IdTypeDefect] = @Original_IdTypeDefect)) AND ((@IsNull_IdClient = 1 AND [IdClient] IS NULL) OR ([IdClient] = @Original_IdClient)) AND ((@IsNull_IdManager = 1 AND [IdManager] IS NULL) OR ([IdManager] = @Original_IdManager)) AND ((@IsNull_DateAccepting = 1 AND [DateAccepting] IS NULL) OR ([DateAccepting] = @Original_DateAccepting)) AND ((@IsNull_DateCompletion = 1 AND [DateCompletion] IS NULL) OR ([DateCompletion] = @Original_DateCompletion)) AND ((@IsNull_EquipmentDefect = 1 AND [EquipmentDefect] IS NULL) OR ([EquipmentDefect] = @Original_EquipmentDefect)))";
  5199. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5200. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdRequest", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRequest", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5201. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdStatus", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5202. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdStatus", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5203. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdTypeDefect", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdTypeDefect", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5204. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdTypeDefect", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdTypeDefect", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5205. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdClient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdClient", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5206. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdClient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdClient", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5207. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdManager", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5208. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdManager", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5209. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DateAccepting", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateAccepting", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5210. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DateAccepting", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateAccepting", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5211. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DateCompletion", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateCompletion", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5212. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DateCompletion", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateCompletion", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5213. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EquipmentDefect", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EquipmentDefect", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5214. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EquipmentDefect", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EquipmentDefect", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5215. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5216. this._adapter.InsertCommand.Connection = this.Connection;
  5217. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Request] ([IdStatus], [IdTypeDefect], [IdClient], [IdManager], [DateAccepting], [DateCompletion], [EquipmentDefect], [Description], [Comment]) VALUES (@IdStatus, @IdTypeDefect, @IdClient, @IdManager, @DateAccepting, @DateCompletion, @EquipmentDefect, @Description, @Comment);
  5218. SELECT IdRequest, IdStatus, IdTypeDefect, IdClient, IdManager, DateAccepting, DateCompletion, EquipmentDefect, Description, Comment FROM Request WHERE (IdRequest = SCOPE_IDENTITY())";
  5219. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5220. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5221. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdTypeDefect", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdTypeDefect", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5222. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdClient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdClient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5223. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdManager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5224. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DateAccepting", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateAccepting", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5225. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DateCompletion", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateCompletion", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5226. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EquipmentDefect", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EquipmentDefect", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5227. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5228. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Comment", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5229. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5230. this._adapter.UpdateCommand.Connection = this.Connection;
  5231. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Request] SET [IdStatus] = @IdStatus, [IdTypeDefect] = @IdTypeDefect, [IdClient] = @IdClient, [IdManager] = @IdManager, [DateAccepting] = @DateAccepting, [DateCompletion] = @DateCompletion, [EquipmentDefect] = @EquipmentDefect, [Description] = @Description, [Comment] = @Comment WHERE (([IdRequest] = @Original_IdRequest) AND ((@IsNull_IdStatus = 1 AND [IdStatus] IS NULL) OR ([IdStatus] = @Original_IdStatus)) AND ((@IsNull_IdTypeDefect = 1 AND [IdTypeDefect] IS NULL) OR ([IdTypeDefect] = @Original_IdTypeDefect)) AND ((@IsNull_IdClient = 1 AND [IdClient] IS NULL) OR ([IdClient] = @Original_IdClient)) AND ((@IsNull_IdManager = 1 AND [IdManager] IS NULL) OR ([IdManager] = @Original_IdManager)) AND ((@IsNull_DateAccepting = 1 AND [DateAccepting] IS NULL) OR ([DateAccepting] = @Original_DateAccepting)) AND ((@IsNull_DateCompletion = 1 AND [DateCompletion] IS NULL) OR ([DateCompletion] = @Original_DateCompletion)) AND ((@IsNull_EquipmentDefect = 1 AND [EquipmentDefect] IS NULL) OR ([EquipmentDefect] = @Original_EquipmentDefect)));
  5232. SELECT IdRequest, IdStatus, IdTypeDefect, IdClient, IdManager, DateAccepting, DateCompletion, EquipmentDefect, Description, Comment FROM Request WHERE (IdRequest = @IdRequest)";
  5233. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5234. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5235. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdTypeDefect", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdTypeDefect", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5236. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdClient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdClient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5237. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdManager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5238. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DateAccepting", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateAccepting", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5239. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DateCompletion", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateCompletion", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5240. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EquipmentDefect", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EquipmentDefect", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5241. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5242. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Comment", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5243. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdRequest", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRequest", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5244. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdStatus", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5245. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdStatus", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5246. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdTypeDefect", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdTypeDefect", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5247. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdTypeDefect", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdTypeDefect", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5248. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdClient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdClient", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5249. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdClient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdClient", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5250. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdManager", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5251. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdManager", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5252. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DateAccepting", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateAccepting", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5253. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DateAccepting", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateAccepting", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5254. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DateCompletion", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateCompletion", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5255. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DateCompletion", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateCompletion", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5256. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EquipmentDefect", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EquipmentDefect", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5257. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EquipmentDefect", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EquipmentDefect", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5258. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdRequest", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdRequest", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5259. }
  5260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5262. private void InitConnection() {
  5263. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5264. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  5265. }
  5266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5268. private void InitCommandCollection() {
  5269. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5270. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5271. this._commandCollection[0].Connection = this.Connection;
  5272. this._commandCollection[0].CommandText = "SELECT IdRequest, IdStatus, IdTypeDefect, IdClient, IdManager, DateAccepting, Dat" +
  5273. "eCompletion, EquipmentDefect, Description, Comment FROM dbo.Request";
  5274. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5275. }
  5276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5278. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5279. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5280. public virtual int Fill(TechServiceBAUDataSet.RequestDataTable dataTable) {
  5281. this.Adapter.SelectCommand = this.CommandCollection[0];
  5282. if ((this.ClearBeforeFill == true)) {
  5283. dataTable.Clear();
  5284. }
  5285. int returnValue = this.Adapter.Fill(dataTable);
  5286. return returnValue;
  5287. }
  5288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5290. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5291. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5292. public virtual TechServiceBAUDataSet.RequestDataTable GetData() {
  5293. this.Adapter.SelectCommand = this.CommandCollection[0];
  5294. TechServiceBAUDataSet.RequestDataTable dataTable = new TechServiceBAUDataSet.RequestDataTable();
  5295. this.Adapter.Fill(dataTable);
  5296. return dataTable;
  5297. }
  5298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5300. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5301. public virtual int Update(TechServiceBAUDataSet.RequestDataTable dataTable) {
  5302. return this.Adapter.Update(dataTable);
  5303. }
  5304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5306. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5307. public virtual int Update(TechServiceBAUDataSet dataSet) {
  5308. return this.Adapter.Update(dataSet, "Request");
  5309. }
  5310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5312. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5313. public virtual int Update(global::System.Data.DataRow dataRow) {
  5314. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5315. dataRow});
  5316. }
  5317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5319. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5320. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5321. return this.Adapter.Update(dataRows);
  5322. }
  5323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5325. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5326. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5327. public virtual int Delete(int Original_IdRequest, global::System.Nullable<int> Original_IdStatus, global::System.Nullable<int> Original_IdTypeDefect, global::System.Nullable<int> Original_IdClient, global::System.Nullable<int> Original_IdManager, global::System.Nullable<global::System.DateTime> Original_DateAccepting, global::System.Nullable<global::System.DateTime> Original_DateCompletion, string Original_EquipmentDefect) {
  5328. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdRequest));
  5329. if ((Original_IdStatus.HasValue == true)) {
  5330. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5331. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IdStatus.Value));
  5332. }
  5333. else {
  5334. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5335. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5336. }
  5337. if ((Original_IdTypeDefect.HasValue == true)) {
  5338. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5339. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IdTypeDefect.Value));
  5340. }
  5341. else {
  5342. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5343. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5344. }
  5345. if ((Original_IdClient.HasValue == true)) {
  5346. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5347. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_IdClient.Value));
  5348. }
  5349. else {
  5350. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5351. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5352. }
  5353. if ((Original_IdManager.HasValue == true)) {
  5354. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  5355. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_IdManager.Value));
  5356. }
  5357. else {
  5358. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  5359. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  5360. }
  5361. if ((Original_DateAccepting.HasValue == true)) {
  5362. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  5363. this.Adapter.DeleteCommand.Parameters[10].Value = ((System.DateTime)(Original_DateAccepting.Value));
  5364. }
  5365. else {
  5366. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  5367. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  5368. }
  5369. if ((Original_DateCompletion.HasValue == true)) {
  5370. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  5371. this.Adapter.DeleteCommand.Parameters[12].Value = ((System.DateTime)(Original_DateCompletion.Value));
  5372. }
  5373. else {
  5374. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  5375. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  5376. }
  5377. if ((Original_EquipmentDefect == null)) {
  5378. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  5379. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  5380. }
  5381. else {
  5382. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  5383. this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_EquipmentDefect));
  5384. }
  5385. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5386. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5387. != global::System.Data.ConnectionState.Open)) {
  5388. this.Adapter.DeleteCommand.Connection.Open();
  5389. }
  5390. try {
  5391. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5392. return returnValue;
  5393. }
  5394. finally {
  5395. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5396. this.Adapter.DeleteCommand.Connection.Close();
  5397. }
  5398. }
  5399. }
  5400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5402. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5403. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5404. public virtual int Insert(global::System.Nullable<int> IdStatus, global::System.Nullable<int> IdTypeDefect, global::System.Nullable<int> IdClient, global::System.Nullable<int> IdManager, global::System.Nullable<global::System.DateTime> DateAccepting, global::System.Nullable<global::System.DateTime> DateCompletion, string EquipmentDefect, string Description, string Comment) {
  5405. if ((IdStatus.HasValue == true)) {
  5406. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdStatus.Value));
  5407. }
  5408. else {
  5409. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5410. }
  5411. if ((IdTypeDefect.HasValue == true)) {
  5412. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdTypeDefect.Value));
  5413. }
  5414. else {
  5415. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5416. }
  5417. if ((IdClient.HasValue == true)) {
  5418. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(IdClient.Value));
  5419. }
  5420. else {
  5421. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5422. }
  5423. if ((IdManager.HasValue == true)) {
  5424. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(IdManager.Value));
  5425. }
  5426. else {
  5427. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5428. }
  5429. if ((DateAccepting.HasValue == true)) {
  5430. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(DateAccepting.Value));
  5431. }
  5432. else {
  5433. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5434. }
  5435. if ((DateCompletion.HasValue == true)) {
  5436. this.Adapter.InsertCommand.Parameters[5].Value = ((System.DateTime)(DateCompletion.Value));
  5437. }
  5438. else {
  5439. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  5440. }
  5441. if ((EquipmentDefect == null)) {
  5442. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  5443. }
  5444. else {
  5445. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(EquipmentDefect));
  5446. }
  5447. if ((Description == null)) {
  5448. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  5449. }
  5450. else {
  5451. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Description));
  5452. }
  5453. if ((Comment == null)) {
  5454. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  5455. }
  5456. else {
  5457. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(Comment));
  5458. }
  5459. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5460. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5461. != global::System.Data.ConnectionState.Open)) {
  5462. this.Adapter.InsertCommand.Connection.Open();
  5463. }
  5464. try {
  5465. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5466. return returnValue;
  5467. }
  5468. finally {
  5469. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5470. this.Adapter.InsertCommand.Connection.Close();
  5471. }
  5472. }
  5473. }
  5474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5476. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5477. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5478. public virtual int Update(
  5479. global::System.Nullable<int> IdStatus,
  5480. global::System.Nullable<int> IdTypeDefect,
  5481. global::System.Nullable<int> IdClient,
  5482. global::System.Nullable<int> IdManager,
  5483. global::System.Nullable<global::System.DateTime> DateAccepting,
  5484. global::System.Nullable<global::System.DateTime> DateCompletion,
  5485. string EquipmentDefect,
  5486. string Description,
  5487. string Comment,
  5488. int Original_IdRequest,
  5489. global::System.Nullable<int> Original_IdStatus,
  5490. global::System.Nullable<int> Original_IdTypeDefect,
  5491. global::System.Nullable<int> Original_IdClient,
  5492. global::System.Nullable<int> Original_IdManager,
  5493. global::System.Nullable<global::System.DateTime> Original_DateAccepting,
  5494. global::System.Nullable<global::System.DateTime> Original_DateCompletion,
  5495. string Original_EquipmentDefect,
  5496. int IdRequest) {
  5497. if ((IdStatus.HasValue == true)) {
  5498. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdStatus.Value));
  5499. }
  5500. else {
  5501. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5502. }
  5503. if ((IdTypeDefect.HasValue == true)) {
  5504. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdTypeDefect.Value));
  5505. }
  5506. else {
  5507. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5508. }
  5509. if ((IdClient.HasValue == true)) {
  5510. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(IdClient.Value));
  5511. }
  5512. else {
  5513. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5514. }
  5515. if ((IdManager.HasValue == true)) {
  5516. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(IdManager.Value));
  5517. }
  5518. else {
  5519. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5520. }
  5521. if ((DateAccepting.HasValue == true)) {
  5522. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(DateAccepting.Value));
  5523. }
  5524. else {
  5525. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5526. }
  5527. if ((DateCompletion.HasValue == true)) {
  5528. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(DateCompletion.Value));
  5529. }
  5530. else {
  5531. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5532. }
  5533. if ((EquipmentDefect == null)) {
  5534. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  5535. }
  5536. else {
  5537. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(EquipmentDefect));
  5538. }
  5539. if ((Description == null)) {
  5540. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  5541. }
  5542. else {
  5543. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Description));
  5544. }
  5545. if ((Comment == null)) {
  5546. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  5547. }
  5548. else {
  5549. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Comment));
  5550. }
  5551. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_IdRequest));
  5552. if ((Original_IdStatus.HasValue == true)) {
  5553. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  5554. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_IdStatus.Value));
  5555. }
  5556. else {
  5557. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  5558. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  5559. }
  5560. if ((Original_IdTypeDefect.HasValue == true)) {
  5561. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  5562. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_IdTypeDefect.Value));
  5563. }
  5564. else {
  5565. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  5566. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  5567. }
  5568. if ((Original_IdClient.HasValue == true)) {
  5569. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  5570. this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_IdClient.Value));
  5571. }
  5572. else {
  5573. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  5574. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  5575. }
  5576. if ((Original_IdManager.HasValue == true)) {
  5577. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  5578. this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_IdManager.Value));
  5579. }
  5580. else {
  5581. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  5582. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  5583. }
  5584. if ((Original_DateAccepting.HasValue == true)) {
  5585. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  5586. this.Adapter.UpdateCommand.Parameters[19].Value = ((System.DateTime)(Original_DateAccepting.Value));
  5587. }
  5588. else {
  5589. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  5590. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  5591. }
  5592. if ((Original_DateCompletion.HasValue == true)) {
  5593. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  5594. this.Adapter.UpdateCommand.Parameters[21].Value = ((System.DateTime)(Original_DateCompletion.Value));
  5595. }
  5596. else {
  5597. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  5598. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  5599. }
  5600. if ((Original_EquipmentDefect == null)) {
  5601. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
  5602. this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
  5603. }
  5604. else {
  5605. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
  5606. this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_EquipmentDefect));
  5607. }
  5608. this.Adapter.UpdateCommand.Parameters[24].Value = ((int)(IdRequest));
  5609. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5610. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5611. != global::System.Data.ConnectionState.Open)) {
  5612. this.Adapter.UpdateCommand.Connection.Open();
  5613. }
  5614. try {
  5615. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5616. return returnValue;
  5617. }
  5618. finally {
  5619. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5620. this.Adapter.UpdateCommand.Connection.Close();
  5621. }
  5622. }
  5623. }
  5624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5626. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5627. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5628. public virtual int Update(
  5629. global::System.Nullable<int> IdStatus,
  5630. global::System.Nullable<int> IdTypeDefect,
  5631. global::System.Nullable<int> IdClient,
  5632. global::System.Nullable<int> IdManager,
  5633. global::System.Nullable<global::System.DateTime> DateAccepting,
  5634. global::System.Nullable<global::System.DateTime> DateCompletion,
  5635. string EquipmentDefect,
  5636. string Description,
  5637. string Comment,
  5638. int Original_IdRequest,
  5639. global::System.Nullable<int> Original_IdStatus,
  5640. global::System.Nullable<int> Original_IdTypeDefect,
  5641. global::System.Nullable<int> Original_IdClient,
  5642. global::System.Nullable<int> Original_IdManager,
  5643. global::System.Nullable<global::System.DateTime> Original_DateAccepting,
  5644. global::System.Nullable<global::System.DateTime> Original_DateCompletion,
  5645. string Original_EquipmentDefect) {
  5646. return this.Update(IdStatus, IdTypeDefect, IdClient, IdManager, DateAccepting, DateCompletion, EquipmentDefect, Description, Comment, Original_IdRequest, Original_IdStatus, Original_IdTypeDefect, Original_IdClient, Original_IdManager, Original_DateAccepting, Original_DateCompletion, Original_EquipmentDefect, Original_IdRequest);
  5647. }
  5648. }
  5649. /// <summary>
  5650. ///Represents the connection and commands used to retrieve and save data.
  5651. ///</summary>
  5652. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5653. [global::System.ComponentModel.ToolboxItem(true)]
  5654. [global::System.ComponentModel.DataObjectAttribute(true)]
  5655. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5656. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5657. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5658. public partial class RoleTableAdapter : global::System.ComponentModel.Component {
  5659. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5660. private global::System.Data.SqlClient.SqlConnection _connection;
  5661. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5662. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5663. private bool _clearBeforeFill;
  5664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5666. public RoleTableAdapter() {
  5667. this.ClearBeforeFill = true;
  5668. }
  5669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5671. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5672. get {
  5673. if ((this._adapter == null)) {
  5674. this.InitAdapter();
  5675. }
  5676. return this._adapter;
  5677. }
  5678. }
  5679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5681. internal global::System.Data.SqlClient.SqlConnection Connection {
  5682. get {
  5683. if ((this._connection == null)) {
  5684. this.InitConnection();
  5685. }
  5686. return this._connection;
  5687. }
  5688. set {
  5689. this._connection = value;
  5690. if ((this.Adapter.InsertCommand != null)) {
  5691. this.Adapter.InsertCommand.Connection = value;
  5692. }
  5693. if ((this.Adapter.DeleteCommand != null)) {
  5694. this.Adapter.DeleteCommand.Connection = value;
  5695. }
  5696. if ((this.Adapter.UpdateCommand != null)) {
  5697. this.Adapter.UpdateCommand.Connection = value;
  5698. }
  5699. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5700. if ((this.CommandCollection[i] != null)) {
  5701. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5702. }
  5703. }
  5704. }
  5705. }
  5706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5708. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5709. get {
  5710. return this._transaction;
  5711. }
  5712. set {
  5713. this._transaction = value;
  5714. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5715. this.CommandCollection[i].Transaction = this._transaction;
  5716. }
  5717. if (((this.Adapter != null)
  5718. && (this.Adapter.DeleteCommand != null))) {
  5719. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5720. }
  5721. if (((this.Adapter != null)
  5722. && (this.Adapter.InsertCommand != null))) {
  5723. this.Adapter.InsertCommand.Transaction = this._transaction;
  5724. }
  5725. if (((this.Adapter != null)
  5726. && (this.Adapter.UpdateCommand != null))) {
  5727. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5728. }
  5729. }
  5730. }
  5731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5733. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5734. get {
  5735. if ((this._commandCollection == null)) {
  5736. this.InitCommandCollection();
  5737. }
  5738. return this._commandCollection;
  5739. }
  5740. }
  5741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5743. public bool ClearBeforeFill {
  5744. get {
  5745. return this._clearBeforeFill;
  5746. }
  5747. set {
  5748. this._clearBeforeFill = value;
  5749. }
  5750. }
  5751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5753. private void InitAdapter() {
  5754. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5755. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5756. tableMapping.SourceTable = "Table";
  5757. tableMapping.DataSetTable = "Role";
  5758. tableMapping.ColumnMappings.Add("IdRole", "IdRole");
  5759. tableMapping.ColumnMappings.Add("Title", "Title");
  5760. this._adapter.TableMappings.Add(tableMapping);
  5761. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5762. this._adapter.DeleteCommand.Connection = this.Connection;
  5763. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Role] WHERE (([IdRole] = @Original_IdRole) AND ((@IsNull_Title" +
  5764. " = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))";
  5765. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5766. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5767. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5768. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5769. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5770. this._adapter.InsertCommand.Connection = this.Connection;
  5771. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Role] ([Title]) VALUES (@Title);\r\nSELECT IdRole, Title FROM Ro" +
  5772. "le WHERE (IdRole = SCOPE_IDENTITY())";
  5773. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5774. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5775. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5776. this._adapter.UpdateCommand.Connection = this.Connection;
  5777. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Role] SET [Title] = @Title WHERE (([IdRole] = @Original_IdRole) AND" +
  5778. " ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)));\r\nSEL" +
  5779. "ECT IdRole, Title FROM Role WHERE (IdRole = @IdRole)";
  5780. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5781. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5782. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5783. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5784. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5785. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdRole", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdRole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5786. }
  5787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5789. private void InitConnection() {
  5790. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5791. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  5792. }
  5793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5795. private void InitCommandCollection() {
  5796. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5797. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5798. this._commandCollection[0].Connection = this.Connection;
  5799. this._commandCollection[0].CommandText = "SELECT IdRole, Title FROM dbo.Role";
  5800. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5801. }
  5802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5804. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5805. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5806. public virtual int Fill(TechServiceBAUDataSet.RoleDataTable dataTable) {
  5807. this.Adapter.SelectCommand = this.CommandCollection[0];
  5808. if ((this.ClearBeforeFill == true)) {
  5809. dataTable.Clear();
  5810. }
  5811. int returnValue = this.Adapter.Fill(dataTable);
  5812. return returnValue;
  5813. }
  5814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5816. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5817. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5818. public virtual TechServiceBAUDataSet.RoleDataTable GetData() {
  5819. this.Adapter.SelectCommand = this.CommandCollection[0];
  5820. TechServiceBAUDataSet.RoleDataTable dataTable = new TechServiceBAUDataSet.RoleDataTable();
  5821. this.Adapter.Fill(dataTable);
  5822. return dataTable;
  5823. }
  5824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5826. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5827. public virtual int Update(TechServiceBAUDataSet.RoleDataTable dataTable) {
  5828. return this.Adapter.Update(dataTable);
  5829. }
  5830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5832. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5833. public virtual int Update(TechServiceBAUDataSet dataSet) {
  5834. return this.Adapter.Update(dataSet, "Role");
  5835. }
  5836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5838. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5839. public virtual int Update(global::System.Data.DataRow dataRow) {
  5840. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5841. dataRow});
  5842. }
  5843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5845. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5846. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5847. return this.Adapter.Update(dataRows);
  5848. }
  5849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5851. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5852. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5853. public virtual int Delete(int Original_IdRole, string Original_Title) {
  5854. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdRole));
  5855. if ((Original_Title == null)) {
  5856. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5857. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5858. }
  5859. else {
  5860. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5861. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Title));
  5862. }
  5863. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5864. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5865. != global::System.Data.ConnectionState.Open)) {
  5866. this.Adapter.DeleteCommand.Connection.Open();
  5867. }
  5868. try {
  5869. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5870. return returnValue;
  5871. }
  5872. finally {
  5873. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5874. this.Adapter.DeleteCommand.Connection.Close();
  5875. }
  5876. }
  5877. }
  5878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5880. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5881. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5882. public virtual int Insert(string Title) {
  5883. if ((Title == null)) {
  5884. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5885. }
  5886. else {
  5887. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  5888. }
  5889. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5890. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5891. != global::System.Data.ConnectionState.Open)) {
  5892. this.Adapter.InsertCommand.Connection.Open();
  5893. }
  5894. try {
  5895. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5896. return returnValue;
  5897. }
  5898. finally {
  5899. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5900. this.Adapter.InsertCommand.Connection.Close();
  5901. }
  5902. }
  5903. }
  5904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5906. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5907. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5908. public virtual int Update(string Title, int Original_IdRole, string Original_Title, int IdRole) {
  5909. if ((Title == null)) {
  5910. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5911. }
  5912. else {
  5913. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  5914. }
  5915. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IdRole));
  5916. if ((Original_Title == null)) {
  5917. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  5918. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5919. }
  5920. else {
  5921. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  5922. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  5923. }
  5924. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IdRole));
  5925. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5926. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5927. != global::System.Data.ConnectionState.Open)) {
  5928. this.Adapter.UpdateCommand.Connection.Open();
  5929. }
  5930. try {
  5931. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5932. return returnValue;
  5933. }
  5934. finally {
  5935. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5936. this.Adapter.UpdateCommand.Connection.Close();
  5937. }
  5938. }
  5939. }
  5940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5942. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5943. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5944. public virtual int Update(string Title, int Original_IdRole, string Original_Title) {
  5945. return this.Update(Title, Original_IdRole, Original_Title, Original_IdRole);
  5946. }
  5947. }
  5948. /// <summary>
  5949. ///Represents the connection and commands used to retrieve and save data.
  5950. ///</summary>
  5951. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5952. [global::System.ComponentModel.ToolboxItem(true)]
  5953. [global::System.ComponentModel.DataObjectAttribute(true)]
  5954. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5955. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5956. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5957. public partial class StatusTableAdapter : global::System.ComponentModel.Component {
  5958. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5959. private global::System.Data.SqlClient.SqlConnection _connection;
  5960. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5961. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5962. private bool _clearBeforeFill;
  5963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5965. public StatusTableAdapter() {
  5966. this.ClearBeforeFill = true;
  5967. }
  5968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5970. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5971. get {
  5972. if ((this._adapter == null)) {
  5973. this.InitAdapter();
  5974. }
  5975. return this._adapter;
  5976. }
  5977. }
  5978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5980. internal global::System.Data.SqlClient.SqlConnection Connection {
  5981. get {
  5982. if ((this._connection == null)) {
  5983. this.InitConnection();
  5984. }
  5985. return this._connection;
  5986. }
  5987. set {
  5988. this._connection = value;
  5989. if ((this.Adapter.InsertCommand != null)) {
  5990. this.Adapter.InsertCommand.Connection = value;
  5991. }
  5992. if ((this.Adapter.DeleteCommand != null)) {
  5993. this.Adapter.DeleteCommand.Connection = value;
  5994. }
  5995. if ((this.Adapter.UpdateCommand != null)) {
  5996. this.Adapter.UpdateCommand.Connection = value;
  5997. }
  5998. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5999. if ((this.CommandCollection[i] != null)) {
  6000. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6001. }
  6002. }
  6003. }
  6004. }
  6005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6007. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6008. get {
  6009. return this._transaction;
  6010. }
  6011. set {
  6012. this._transaction = value;
  6013. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6014. this.CommandCollection[i].Transaction = this._transaction;
  6015. }
  6016. if (((this.Adapter != null)
  6017. && (this.Adapter.DeleteCommand != null))) {
  6018. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6019. }
  6020. if (((this.Adapter != null)
  6021. && (this.Adapter.InsertCommand != null))) {
  6022. this.Adapter.InsertCommand.Transaction = this._transaction;
  6023. }
  6024. if (((this.Adapter != null)
  6025. && (this.Adapter.UpdateCommand != null))) {
  6026. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6027. }
  6028. }
  6029. }
  6030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6032. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6033. get {
  6034. if ((this._commandCollection == null)) {
  6035. this.InitCommandCollection();
  6036. }
  6037. return this._commandCollection;
  6038. }
  6039. }
  6040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6042. public bool ClearBeforeFill {
  6043. get {
  6044. return this._clearBeforeFill;
  6045. }
  6046. set {
  6047. this._clearBeforeFill = value;
  6048. }
  6049. }
  6050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6052. private void InitAdapter() {
  6053. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6054. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6055. tableMapping.SourceTable = "Table";
  6056. tableMapping.DataSetTable = "Status";
  6057. tableMapping.ColumnMappings.Add("IdStatus", "IdStatus");
  6058. tableMapping.ColumnMappings.Add("Title", "Title");
  6059. this._adapter.TableMappings.Add(tableMapping);
  6060. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6061. this._adapter.DeleteCommand.Connection = this.Connection;
  6062. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Status] WHERE (([IdStatus] = @Original_IdStatus) AND ((@IsNull" +
  6063. "_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))";
  6064. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6065. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdStatus", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6066. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6067. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6068. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6069. this._adapter.InsertCommand.Connection = this.Connection;
  6070. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Status] ([Title]) VALUES (@Title);\r\nSELECT IdStatus, Title FRO" +
  6071. "M Status WHERE (IdStatus = SCOPE_IDENTITY())";
  6072. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6073. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6074. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6075. this._adapter.UpdateCommand.Connection = this.Connection;
  6076. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Status] SET [Title] = @Title WHERE (([IdStatus] = @Original_IdStatu" +
  6077. "s) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))" +
  6078. ";\r\nSELECT IdStatus, Title FROM Status WHERE (IdStatus = @IdStatus)";
  6079. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6080. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6081. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdStatus", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6082. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6083. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6084. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdStatus", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6085. }
  6086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6088. private void InitConnection() {
  6089. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6090. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  6091. }
  6092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6094. private void InitCommandCollection() {
  6095. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6096. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6097. this._commandCollection[0].Connection = this.Connection;
  6098. this._commandCollection[0].CommandText = "SELECT IdStatus, Title FROM dbo.Status";
  6099. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6100. }
  6101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6103. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6104. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6105. public virtual int Fill(TechServiceBAUDataSet.StatusDataTable dataTable) {
  6106. this.Adapter.SelectCommand = this.CommandCollection[0];
  6107. if ((this.ClearBeforeFill == true)) {
  6108. dataTable.Clear();
  6109. }
  6110. int returnValue = this.Adapter.Fill(dataTable);
  6111. return returnValue;
  6112. }
  6113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6115. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6116. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6117. public virtual TechServiceBAUDataSet.StatusDataTable GetData() {
  6118. this.Adapter.SelectCommand = this.CommandCollection[0];
  6119. TechServiceBAUDataSet.StatusDataTable dataTable = new TechServiceBAUDataSet.StatusDataTable();
  6120. this.Adapter.Fill(dataTable);
  6121. return dataTable;
  6122. }
  6123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6125. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6126. public virtual int Update(TechServiceBAUDataSet.StatusDataTable dataTable) {
  6127. return this.Adapter.Update(dataTable);
  6128. }
  6129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6131. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6132. public virtual int Update(TechServiceBAUDataSet dataSet) {
  6133. return this.Adapter.Update(dataSet, "Status");
  6134. }
  6135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6137. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6138. public virtual int Update(global::System.Data.DataRow dataRow) {
  6139. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6140. dataRow});
  6141. }
  6142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6144. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6145. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6146. return this.Adapter.Update(dataRows);
  6147. }
  6148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6150. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6151. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6152. public virtual int Delete(int Original_IdStatus, string Original_Title) {
  6153. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdStatus));
  6154. if ((Original_Title == null)) {
  6155. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6156. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6157. }
  6158. else {
  6159. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6160. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Title));
  6161. }
  6162. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6163. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6164. != global::System.Data.ConnectionState.Open)) {
  6165. this.Adapter.DeleteCommand.Connection.Open();
  6166. }
  6167. try {
  6168. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6169. return returnValue;
  6170. }
  6171. finally {
  6172. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6173. this.Adapter.DeleteCommand.Connection.Close();
  6174. }
  6175. }
  6176. }
  6177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6179. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6180. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6181. public virtual int Insert(string Title) {
  6182. if ((Title == null)) {
  6183. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6184. }
  6185. else {
  6186. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  6187. }
  6188. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6189. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6190. != global::System.Data.ConnectionState.Open)) {
  6191. this.Adapter.InsertCommand.Connection.Open();
  6192. }
  6193. try {
  6194. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6195. return returnValue;
  6196. }
  6197. finally {
  6198. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6199. this.Adapter.InsertCommand.Connection.Close();
  6200. }
  6201. }
  6202. }
  6203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6205. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6206. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6207. public virtual int Update(string Title, int Original_IdStatus, string Original_Title, int IdStatus) {
  6208. if ((Title == null)) {
  6209. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6210. }
  6211. else {
  6212. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  6213. }
  6214. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IdStatus));
  6215. if ((Original_Title == null)) {
  6216. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  6217. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6218. }
  6219. else {
  6220. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  6221. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  6222. }
  6223. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IdStatus));
  6224. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6225. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6226. != global::System.Data.ConnectionState.Open)) {
  6227. this.Adapter.UpdateCommand.Connection.Open();
  6228. }
  6229. try {
  6230. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6231. return returnValue;
  6232. }
  6233. finally {
  6234. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6235. this.Adapter.UpdateCommand.Connection.Close();
  6236. }
  6237. }
  6238. }
  6239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6241. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6242. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6243. public virtual int Update(string Title, int Original_IdStatus, string Original_Title) {
  6244. return this.Update(Title, Original_IdStatus, Original_Title, Original_IdStatus);
  6245. }
  6246. }
  6247. /// <summary>
  6248. ///Represents the connection and commands used to retrieve and save data.
  6249. ///</summary>
  6250. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6251. [global::System.ComponentModel.ToolboxItem(true)]
  6252. [global::System.ComponentModel.DataObjectAttribute(true)]
  6253. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6254. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6255. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6256. public partial class TypeDefectTableAdapter : global::System.ComponentModel.Component {
  6257. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6258. private global::System.Data.SqlClient.SqlConnection _connection;
  6259. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6260. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6261. private bool _clearBeforeFill;
  6262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6264. public TypeDefectTableAdapter() {
  6265. this.ClearBeforeFill = true;
  6266. }
  6267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6269. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6270. get {
  6271. if ((this._adapter == null)) {
  6272. this.InitAdapter();
  6273. }
  6274. return this._adapter;
  6275. }
  6276. }
  6277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6279. internal global::System.Data.SqlClient.SqlConnection Connection {
  6280. get {
  6281. if ((this._connection == null)) {
  6282. this.InitConnection();
  6283. }
  6284. return this._connection;
  6285. }
  6286. set {
  6287. this._connection = value;
  6288. if ((this.Adapter.InsertCommand != null)) {
  6289. this.Adapter.InsertCommand.Connection = value;
  6290. }
  6291. if ((this.Adapter.DeleteCommand != null)) {
  6292. this.Adapter.DeleteCommand.Connection = value;
  6293. }
  6294. if ((this.Adapter.UpdateCommand != null)) {
  6295. this.Adapter.UpdateCommand.Connection = value;
  6296. }
  6297. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6298. if ((this.CommandCollection[i] != null)) {
  6299. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6300. }
  6301. }
  6302. }
  6303. }
  6304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6306. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6307. get {
  6308. return this._transaction;
  6309. }
  6310. set {
  6311. this._transaction = value;
  6312. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6313. this.CommandCollection[i].Transaction = this._transaction;
  6314. }
  6315. if (((this.Adapter != null)
  6316. && (this.Adapter.DeleteCommand != null))) {
  6317. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6318. }
  6319. if (((this.Adapter != null)
  6320. && (this.Adapter.InsertCommand != null))) {
  6321. this.Adapter.InsertCommand.Transaction = this._transaction;
  6322. }
  6323. if (((this.Adapter != null)
  6324. && (this.Adapter.UpdateCommand != null))) {
  6325. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6326. }
  6327. }
  6328. }
  6329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6331. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6332. get {
  6333. if ((this._commandCollection == null)) {
  6334. this.InitCommandCollection();
  6335. }
  6336. return this._commandCollection;
  6337. }
  6338. }
  6339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6341. public bool ClearBeforeFill {
  6342. get {
  6343. return this._clearBeforeFill;
  6344. }
  6345. set {
  6346. this._clearBeforeFill = value;
  6347. }
  6348. }
  6349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6351. private void InitAdapter() {
  6352. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6353. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6354. tableMapping.SourceTable = "Table";
  6355. tableMapping.DataSetTable = "TypeDefect";
  6356. tableMapping.ColumnMappings.Add("IdTypeDefect", "IdTypeDefect");
  6357. tableMapping.ColumnMappings.Add("Title", "Title");
  6358. this._adapter.TableMappings.Add(tableMapping);
  6359. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6360. this._adapter.DeleteCommand.Connection = this.Connection;
  6361. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TypeDefect] WHERE (([IdTypeDefect] = @Original_IdTypeDefect) A" +
  6362. "ND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))";
  6363. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6364. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdTypeDefect", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdTypeDefect", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6365. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6366. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6367. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6368. this._adapter.InsertCommand.Connection = this.Connection;
  6369. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TypeDefect] ([Title]) VALUES (@Title);\r\nSELECT IdTypeDefect, T" +
  6370. "itle FROM TypeDefect WHERE (IdTypeDefect = SCOPE_IDENTITY())";
  6371. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6372. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6373. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6374. this._adapter.UpdateCommand.Connection = this.Connection;
  6375. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TypeDefect] SET [Title] = @Title WHERE (([IdTypeDefect] = @Original" +
  6376. "_IdTypeDefect) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Origi" +
  6377. "nal_Title)));\r\nSELECT IdTypeDefect, Title FROM TypeDefect WHERE (IdTypeDefect = " +
  6378. "@IdTypeDefect)";
  6379. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6380. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6381. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdTypeDefect", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdTypeDefect", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6382. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6383. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6384. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdTypeDefect", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdTypeDefect", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6385. }
  6386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6388. private void InitConnection() {
  6389. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6390. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  6391. }
  6392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6394. private void InitCommandCollection() {
  6395. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6396. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6397. this._commandCollection[0].Connection = this.Connection;
  6398. this._commandCollection[0].CommandText = "SELECT IdTypeDefect, Title FROM dbo.TypeDefect";
  6399. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6400. }
  6401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6403. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6404. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6405. public virtual int Fill(TechServiceBAUDataSet.TypeDefectDataTable dataTable) {
  6406. this.Adapter.SelectCommand = this.CommandCollection[0];
  6407. if ((this.ClearBeforeFill == true)) {
  6408. dataTable.Clear();
  6409. }
  6410. int returnValue = this.Adapter.Fill(dataTable);
  6411. return returnValue;
  6412. }
  6413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6415. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6416. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6417. public virtual TechServiceBAUDataSet.TypeDefectDataTable GetData() {
  6418. this.Adapter.SelectCommand = this.CommandCollection[0];
  6419. TechServiceBAUDataSet.TypeDefectDataTable dataTable = new TechServiceBAUDataSet.TypeDefectDataTable();
  6420. this.Adapter.Fill(dataTable);
  6421. return dataTable;
  6422. }
  6423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6425. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6426. public virtual int Update(TechServiceBAUDataSet.TypeDefectDataTable dataTable) {
  6427. return this.Adapter.Update(dataTable);
  6428. }
  6429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6431. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6432. public virtual int Update(TechServiceBAUDataSet dataSet) {
  6433. return this.Adapter.Update(dataSet, "TypeDefect");
  6434. }
  6435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6437. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6438. public virtual int Update(global::System.Data.DataRow dataRow) {
  6439. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6440. dataRow});
  6441. }
  6442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6444. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6445. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6446. return this.Adapter.Update(dataRows);
  6447. }
  6448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6450. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6451. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6452. public virtual int Delete(int Original_IdTypeDefect, string Original_Title) {
  6453. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdTypeDefect));
  6454. if ((Original_Title == null)) {
  6455. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6456. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6457. }
  6458. else {
  6459. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6460. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Title));
  6461. }
  6462. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6463. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6464. != global::System.Data.ConnectionState.Open)) {
  6465. this.Adapter.DeleteCommand.Connection.Open();
  6466. }
  6467. try {
  6468. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6469. return returnValue;
  6470. }
  6471. finally {
  6472. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6473. this.Adapter.DeleteCommand.Connection.Close();
  6474. }
  6475. }
  6476. }
  6477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6479. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6480. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6481. public virtual int Insert(string Title) {
  6482. if ((Title == null)) {
  6483. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6484. }
  6485. else {
  6486. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  6487. }
  6488. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6489. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6490. != global::System.Data.ConnectionState.Open)) {
  6491. this.Adapter.InsertCommand.Connection.Open();
  6492. }
  6493. try {
  6494. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6495. return returnValue;
  6496. }
  6497. finally {
  6498. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6499. this.Adapter.InsertCommand.Connection.Close();
  6500. }
  6501. }
  6502. }
  6503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6505. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6506. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6507. public virtual int Update(string Title, int Original_IdTypeDefect, string Original_Title, int IdTypeDefect) {
  6508. if ((Title == null)) {
  6509. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6510. }
  6511. else {
  6512. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  6513. }
  6514. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IdTypeDefect));
  6515. if ((Original_Title == null)) {
  6516. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  6517. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6518. }
  6519. else {
  6520. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  6521. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  6522. }
  6523. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IdTypeDefect));
  6524. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6525. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6526. != global::System.Data.ConnectionState.Open)) {
  6527. this.Adapter.UpdateCommand.Connection.Open();
  6528. }
  6529. try {
  6530. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6531. return returnValue;
  6532. }
  6533. finally {
  6534. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6535. this.Adapter.UpdateCommand.Connection.Close();
  6536. }
  6537. }
  6538. }
  6539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6541. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6542. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6543. public virtual int Update(string Title, int Original_IdTypeDefect, string Original_Title) {
  6544. return this.Update(Title, Original_IdTypeDefect, Original_Title, Original_IdTypeDefect);
  6545. }
  6546. }
  6547. /// <summary>
  6548. ///Represents the connection and commands used to retrieve and save data.
  6549. ///</summary>
  6550. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6551. [global::System.ComponentModel.ToolboxItem(true)]
  6552. [global::System.ComponentModel.DataObjectAttribute(true)]
  6553. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6554. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6555. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6556. public partial class AllTypeDefectTableAdapter : global::System.ComponentModel.Component {
  6557. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6558. private global::System.Data.SqlClient.SqlConnection _connection;
  6559. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6560. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6561. private bool _clearBeforeFill;
  6562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6564. public AllTypeDefectTableAdapter() {
  6565. this.ClearBeforeFill = true;
  6566. }
  6567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6569. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6570. get {
  6571. if ((this._adapter == null)) {
  6572. this.InitAdapter();
  6573. }
  6574. return this._adapter;
  6575. }
  6576. }
  6577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6579. internal global::System.Data.SqlClient.SqlConnection Connection {
  6580. get {
  6581. if ((this._connection == null)) {
  6582. this.InitConnection();
  6583. }
  6584. return this._connection;
  6585. }
  6586. set {
  6587. this._connection = value;
  6588. if ((this.Adapter.InsertCommand != null)) {
  6589. this.Adapter.InsertCommand.Connection = value;
  6590. }
  6591. if ((this.Adapter.DeleteCommand != null)) {
  6592. this.Adapter.DeleteCommand.Connection = value;
  6593. }
  6594. if ((this.Adapter.UpdateCommand != null)) {
  6595. this.Adapter.UpdateCommand.Connection = value;
  6596. }
  6597. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6598. if ((this.CommandCollection[i] != null)) {
  6599. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6600. }
  6601. }
  6602. }
  6603. }
  6604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6606. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6607. get {
  6608. return this._transaction;
  6609. }
  6610. set {
  6611. this._transaction = value;
  6612. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6613. this.CommandCollection[i].Transaction = this._transaction;
  6614. }
  6615. if (((this.Adapter != null)
  6616. && (this.Adapter.DeleteCommand != null))) {
  6617. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6618. }
  6619. if (((this.Adapter != null)
  6620. && (this.Adapter.InsertCommand != null))) {
  6621. this.Adapter.InsertCommand.Transaction = this._transaction;
  6622. }
  6623. if (((this.Adapter != null)
  6624. && (this.Adapter.UpdateCommand != null))) {
  6625. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6626. }
  6627. }
  6628. }
  6629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6631. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6632. get {
  6633. if ((this._commandCollection == null)) {
  6634. this.InitCommandCollection();
  6635. }
  6636. return this._commandCollection;
  6637. }
  6638. }
  6639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6641. public bool ClearBeforeFill {
  6642. get {
  6643. return this._clearBeforeFill;
  6644. }
  6645. set {
  6646. this._clearBeforeFill = value;
  6647. }
  6648. }
  6649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6651. private void InitAdapter() {
  6652. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6653. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6654. tableMapping.SourceTable = "Table";
  6655. tableMapping.DataSetTable = "AllTypeDefect";
  6656. tableMapping.ColumnMappings.Add("Column1", "TypeDefect");
  6657. this._adapter.TableMappings.Add(tableMapping);
  6658. }
  6659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6661. private void InitConnection() {
  6662. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6663. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  6664. }
  6665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6667. private void InitCommandCollection() {
  6668. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6669. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6670. this._commandCollection[0].Connection = this.Connection;
  6671. this._commandCollection[0].CommandText = "Select \'Все заявки\'\r\nunion all\r\nSelect Title\r\nFrom TypeDefect";
  6672. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6673. }
  6674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6676. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6677. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6678. public virtual int Fill(TechServiceBAUDataSet.AllTypeDefectDataTable dataTable) {
  6679. this.Adapter.SelectCommand = this.CommandCollection[0];
  6680. if ((this.ClearBeforeFill == true)) {
  6681. dataTable.Clear();
  6682. }
  6683. int returnValue = this.Adapter.Fill(dataTable);
  6684. return returnValue;
  6685. }
  6686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6688. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6689. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6690. public virtual TechServiceBAUDataSet.AllTypeDefectDataTable GetData() {
  6691. this.Adapter.SelectCommand = this.CommandCollection[0];
  6692. TechServiceBAUDataSet.AllTypeDefectDataTable dataTable = new TechServiceBAUDataSet.AllTypeDefectDataTable();
  6693. this.Adapter.Fill(dataTable);
  6694. return dataTable;
  6695. }
  6696. }
  6697. /// <summary>
  6698. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  6699. ///</summary>
  6700. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6701. [global::System.ComponentModel.ToolboxItem(true)]
  6702. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  6703. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6704. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  6705. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  6706. private UpdateOrderOption _updateOrder;
  6707. private ClientTableAdapter _clientTableAdapter;
  6708. private EmployeeTableAdapter _employeeTableAdapter;
  6709. private ExecutionRequestTableAdapter _executionRequestTableAdapter;
  6710. private RequestTableAdapter _requestTableAdapter;
  6711. private RoleTableAdapter _roleTableAdapter;
  6712. private StatusTableAdapter _statusTableAdapter;
  6713. private TypeDefectTableAdapter _typeDefectTableAdapter;
  6714. private bool _backupDataSetBeforeUpdate;
  6715. private global::System.Data.IDbConnection _connection;
  6716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6718. public UpdateOrderOption UpdateOrder {
  6719. get {
  6720. return this._updateOrder;
  6721. }
  6722. set {
  6723. this._updateOrder = value;
  6724. }
  6725. }
  6726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6728. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6729. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6730. "a", "System.Drawing.Design.UITypeEditor")]
  6731. public ClientTableAdapter ClientTableAdapter {
  6732. get {
  6733. return this._clientTableAdapter;
  6734. }
  6735. set {
  6736. this._clientTableAdapter = value;
  6737. }
  6738. }
  6739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6741. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6742. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6743. "a", "System.Drawing.Design.UITypeEditor")]
  6744. public EmployeeTableAdapter EmployeeTableAdapter {
  6745. get {
  6746. return this._employeeTableAdapter;
  6747. }
  6748. set {
  6749. this._employeeTableAdapter = value;
  6750. }
  6751. }
  6752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6754. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6755. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6756. "a", "System.Drawing.Design.UITypeEditor")]
  6757. public ExecutionRequestTableAdapter ExecutionRequestTableAdapter {
  6758. get {
  6759. return this._executionRequestTableAdapter;
  6760. }
  6761. set {
  6762. this._executionRequestTableAdapter = value;
  6763. }
  6764. }
  6765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6767. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6768. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6769. "a", "System.Drawing.Design.UITypeEditor")]
  6770. public RequestTableAdapter RequestTableAdapter {
  6771. get {
  6772. return this._requestTableAdapter;
  6773. }
  6774. set {
  6775. this._requestTableAdapter = value;
  6776. }
  6777. }
  6778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6780. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6781. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6782. "a", "System.Drawing.Design.UITypeEditor")]
  6783. public RoleTableAdapter RoleTableAdapter {
  6784. get {
  6785. return this._roleTableAdapter;
  6786. }
  6787. set {
  6788. this._roleTableAdapter = value;
  6789. }
  6790. }
  6791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6793. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6794. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6795. "a", "System.Drawing.Design.UITypeEditor")]
  6796. public StatusTableAdapter StatusTableAdapter {
  6797. get {
  6798. return this._statusTableAdapter;
  6799. }
  6800. set {
  6801. this._statusTableAdapter = value;
  6802. }
  6803. }
  6804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6806. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6807. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6808. "a", "System.Drawing.Design.UITypeEditor")]
  6809. public TypeDefectTableAdapter TypeDefectTableAdapter {
  6810. get {
  6811. return this._typeDefectTableAdapter;
  6812. }
  6813. set {
  6814. this._typeDefectTableAdapter = value;
  6815. }
  6816. }
  6817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6819. public bool BackupDataSetBeforeUpdate {
  6820. get {
  6821. return this._backupDataSetBeforeUpdate;
  6822. }
  6823. set {
  6824. this._backupDataSetBeforeUpdate = value;
  6825. }
  6826. }
  6827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6829. [global::System.ComponentModel.Browsable(false)]
  6830. public global::System.Data.IDbConnection Connection {
  6831. get {
  6832. if ((this._connection != null)) {
  6833. return this._connection;
  6834. }
  6835. if (((this._clientTableAdapter != null)
  6836. && (this._clientTableAdapter.Connection != null))) {
  6837. return this._clientTableAdapter.Connection;
  6838. }
  6839. if (((this._employeeTableAdapter != null)
  6840. && (this._employeeTableAdapter.Connection != null))) {
  6841. return this._employeeTableAdapter.Connection;
  6842. }
  6843. if (((this._executionRequestTableAdapter != null)
  6844. && (this._executionRequestTableAdapter.Connection != null))) {
  6845. return this._executionRequestTableAdapter.Connection;
  6846. }
  6847. if (((this._requestTableAdapter != null)
  6848. && (this._requestTableAdapter.Connection != null))) {
  6849. return this._requestTableAdapter.Connection;
  6850. }
  6851. if (((this._roleTableAdapter != null)
  6852. && (this._roleTableAdapter.Connection != null))) {
  6853. return this._roleTableAdapter.Connection;
  6854. }
  6855. if (((this._statusTableAdapter != null)
  6856. && (this._statusTableAdapter.Connection != null))) {
  6857. return this._statusTableAdapter.Connection;
  6858. }
  6859. if (((this._typeDefectTableAdapter != null)
  6860. && (this._typeDefectTableAdapter.Connection != null))) {
  6861. return this._typeDefectTableAdapter.Connection;
  6862. }
  6863. return null;
  6864. }
  6865. set {
  6866. this._connection = value;
  6867. }
  6868. }
  6869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6871. [global::System.ComponentModel.Browsable(false)]
  6872. public int TableAdapterInstanceCount {
  6873. get {
  6874. int count = 0;
  6875. if ((this._clientTableAdapter != null)) {
  6876. count = (count + 1);
  6877. }
  6878. if ((this._employeeTableAdapter != null)) {
  6879. count = (count + 1);
  6880. }
  6881. if ((this._executionRequestTableAdapter != null)) {
  6882. count = (count + 1);
  6883. }
  6884. if ((this._requestTableAdapter != null)) {
  6885. count = (count + 1);
  6886. }
  6887. if ((this._roleTableAdapter != null)) {
  6888. count = (count + 1);
  6889. }
  6890. if ((this._statusTableAdapter != null)) {
  6891. count = (count + 1);
  6892. }
  6893. if ((this._typeDefectTableAdapter != null)) {
  6894. count = (count + 1);
  6895. }
  6896. return count;
  6897. }
  6898. }
  6899. /// <summary>
  6900. ///Update rows in top-down order.
  6901. ///</summary>
  6902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6904. private int UpdateUpdatedRows(TechServiceBAUDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6905. int result = 0;
  6906. if ((this._roleTableAdapter != null)) {
  6907. global::System.Data.DataRow[] updatedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6908. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6909. if (((updatedRows != null)
  6910. && (0 < updatedRows.Length))) {
  6911. result = (result + this._roleTableAdapter.Update(updatedRows));
  6912. allChangedRows.AddRange(updatedRows);
  6913. }
  6914. }
  6915. if ((this._clientTableAdapter != null)) {
  6916. global::System.Data.DataRow[] updatedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6917. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6918. if (((updatedRows != null)
  6919. && (0 < updatedRows.Length))) {
  6920. result = (result + this._clientTableAdapter.Update(updatedRows));
  6921. allChangedRows.AddRange(updatedRows);
  6922. }
  6923. }
  6924. if ((this._employeeTableAdapter != null)) {
  6925. global::System.Data.DataRow[] updatedRows = dataSet.Employee.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6926. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6927. if (((updatedRows != null)
  6928. && (0 < updatedRows.Length))) {
  6929. result = (result + this._employeeTableAdapter.Update(updatedRows));
  6930. allChangedRows.AddRange(updatedRows);
  6931. }
  6932. }
  6933. if ((this._statusTableAdapter != null)) {
  6934. global::System.Data.DataRow[] updatedRows = dataSet.Status.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6935. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6936. if (((updatedRows != null)
  6937. && (0 < updatedRows.Length))) {
  6938. result = (result + this._statusTableAdapter.Update(updatedRows));
  6939. allChangedRows.AddRange(updatedRows);
  6940. }
  6941. }
  6942. if ((this._typeDefectTableAdapter != null)) {
  6943. global::System.Data.DataRow[] updatedRows = dataSet.TypeDefect.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6944. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6945. if (((updatedRows != null)
  6946. && (0 < updatedRows.Length))) {
  6947. result = (result + this._typeDefectTableAdapter.Update(updatedRows));
  6948. allChangedRows.AddRange(updatedRows);
  6949. }
  6950. }
  6951. if ((this._requestTableAdapter != null)) {
  6952. global::System.Data.DataRow[] updatedRows = dataSet.Request.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6953. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6954. if (((updatedRows != null)
  6955. && (0 < updatedRows.Length))) {
  6956. result = (result + this._requestTableAdapter.Update(updatedRows));
  6957. allChangedRows.AddRange(updatedRows);
  6958. }
  6959. }
  6960. if ((this._executionRequestTableAdapter != null)) {
  6961. global::System.Data.DataRow[] updatedRows = dataSet.ExecutionRequest.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6962. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6963. if (((updatedRows != null)
  6964. && (0 < updatedRows.Length))) {
  6965. result = (result + this._executionRequestTableAdapter.Update(updatedRows));
  6966. allChangedRows.AddRange(updatedRows);
  6967. }
  6968. }
  6969. return result;
  6970. }
  6971. /// <summary>
  6972. ///Insert rows in top-down order.
  6973. ///</summary>
  6974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6976. private int UpdateInsertedRows(TechServiceBAUDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6977. int result = 0;
  6978. if ((this._roleTableAdapter != null)) {
  6979. global::System.Data.DataRow[] addedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Added);
  6980. if (((addedRows != null)
  6981. && (0 < addedRows.Length))) {
  6982. result = (result + this._roleTableAdapter.Update(addedRows));
  6983. allAddedRows.AddRange(addedRows);
  6984. }
  6985. }
  6986. if ((this._clientTableAdapter != null)) {
  6987. global::System.Data.DataRow[] addedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Added);
  6988. if (((addedRows != null)
  6989. && (0 < addedRows.Length))) {
  6990. result = (result + this._clientTableAdapter.Update(addedRows));
  6991. allAddedRows.AddRange(addedRows);
  6992. }
  6993. }
  6994. if ((this._employeeTableAdapter != null)) {
  6995. global::System.Data.DataRow[] addedRows = dataSet.Employee.Select(null, null, global::System.Data.DataViewRowState.Added);
  6996. if (((addedRows != null)
  6997. && (0 < addedRows.Length))) {
  6998. result = (result + this._employeeTableAdapter.Update(addedRows));
  6999. allAddedRows.AddRange(addedRows);
  7000. }
  7001. }
  7002. if ((this._statusTableAdapter != null)) {
  7003. global::System.Data.DataRow[] addedRows = dataSet.Status.Select(null, null, global::System.Data.DataViewRowState.Added);
  7004. if (((addedRows != null)
  7005. && (0 < addedRows.Length))) {
  7006. result = (result + this._statusTableAdapter.Update(addedRows));
  7007. allAddedRows.AddRange(addedRows);
  7008. }
  7009. }
  7010. if ((this._typeDefectTableAdapter != null)) {
  7011. global::System.Data.DataRow[] addedRows = dataSet.TypeDefect.Select(null, null, global::System.Data.DataViewRowState.Added);
  7012. if (((addedRows != null)
  7013. && (0 < addedRows.Length))) {
  7014. result = (result + this._typeDefectTableAdapter.Update(addedRows));
  7015. allAddedRows.AddRange(addedRows);
  7016. }
  7017. }
  7018. if ((this._requestTableAdapter != null)) {
  7019. global::System.Data.DataRow[] addedRows = dataSet.Request.Select(null, null, global::System.Data.DataViewRowState.Added);
  7020. if (((addedRows != null)
  7021. && (0 < addedRows.Length))) {
  7022. result = (result + this._requestTableAdapter.Update(addedRows));
  7023. allAddedRows.AddRange(addedRows);
  7024. }
  7025. }
  7026. if ((this._executionRequestTableAdapter != null)) {
  7027. global::System.Data.DataRow[] addedRows = dataSet.ExecutionRequest.Select(null, null, global::System.Data.DataViewRowState.Added);
  7028. if (((addedRows != null)
  7029. && (0 < addedRows.Length))) {
  7030. result = (result + this._executionRequestTableAdapter.Update(addedRows));
  7031. allAddedRows.AddRange(addedRows);
  7032. }
  7033. }
  7034. return result;
  7035. }
  7036. /// <summary>
  7037. ///Delete rows in bottom-up order.
  7038. ///</summary>
  7039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7041. private int UpdateDeletedRows(TechServiceBAUDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  7042. int result = 0;
  7043. if ((this._executionRequestTableAdapter != null)) {
  7044. global::System.Data.DataRow[] deletedRows = dataSet.ExecutionRequest.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7045. if (((deletedRows != null)
  7046. && (0 < deletedRows.Length))) {
  7047. result = (result + this._executionRequestTableAdapter.Update(deletedRows));
  7048. allChangedRows.AddRange(deletedRows);
  7049. }
  7050. }
  7051. if ((this._requestTableAdapter != null)) {
  7052. global::System.Data.DataRow[] deletedRows = dataSet.Request.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7053. if (((deletedRows != null)
  7054. && (0 < deletedRows.Length))) {
  7055. result = (result + this._requestTableAdapter.Update(deletedRows));
  7056. allChangedRows.AddRange(deletedRows);
  7057. }
  7058. }
  7059. if ((this._typeDefectTableAdapter != null)) {
  7060. global::System.Data.DataRow[] deletedRows = dataSet.TypeDefect.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7061. if (((deletedRows != null)
  7062. && (0 < deletedRows.Length))) {
  7063. result = (result + this._typeDefectTableAdapter.Update(deletedRows));
  7064. allChangedRows.AddRange(deletedRows);
  7065. }
  7066. }
  7067. if ((this._statusTableAdapter != null)) {
  7068. global::System.Data.DataRow[] deletedRows = dataSet.Status.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7069. if (((deletedRows != null)
  7070. && (0 < deletedRows.Length))) {
  7071. result = (result + this._statusTableAdapter.Update(deletedRows));
  7072. allChangedRows.AddRange(deletedRows);
  7073. }
  7074. }
  7075. if ((this._employeeTableAdapter != null)) {
  7076. global::System.Data.DataRow[] deletedRows = dataSet.Employee.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7077. if (((deletedRows != null)
  7078. && (0 < deletedRows.Length))) {
  7079. result = (result + this._employeeTableAdapter.Update(deletedRows));
  7080. allChangedRows.AddRange(deletedRows);
  7081. }
  7082. }
  7083. if ((this._clientTableAdapter != null)) {
  7084. global::System.Data.DataRow[] deletedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7085. if (((deletedRows != null)
  7086. && (0 < deletedRows.Length))) {
  7087. result = (result + this._clientTableAdapter.Update(deletedRows));
  7088. allChangedRows.AddRange(deletedRows);
  7089. }
  7090. }
  7091. if ((this._roleTableAdapter != null)) {
  7092. global::System.Data.DataRow[] deletedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7093. if (((deletedRows != null)
  7094. && (0 < deletedRows.Length))) {
  7095. result = (result + this._roleTableAdapter.Update(deletedRows));
  7096. allChangedRows.AddRange(deletedRows);
  7097. }
  7098. }
  7099. return result;
  7100. }
  7101. /// <summary>
  7102. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  7103. ///</summary>
  7104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7106. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  7107. if (((updatedRows == null)
  7108. || (updatedRows.Length < 1))) {
  7109. return updatedRows;
  7110. }
  7111. if (((allAddedRows == null)
  7112. || (allAddedRows.Count < 1))) {
  7113. return updatedRows;
  7114. }
  7115. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7116. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  7117. global::System.Data.DataRow row = updatedRows[i];
  7118. if ((allAddedRows.Contains(row) == false)) {
  7119. realUpdatedRows.Add(row);
  7120. }
  7121. }
  7122. return realUpdatedRows.ToArray();
  7123. }
  7124. /// <summary>
  7125. ///Update all changes to the dataset.
  7126. ///</summary>
  7127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7129. public virtual int UpdateAll(TechServiceBAUDataSet dataSet) {
  7130. if ((dataSet == null)) {
  7131. throw new global::System.ArgumentNullException("dataSet");
  7132. }
  7133. if ((dataSet.HasChanges() == false)) {
  7134. return 0;
  7135. }
  7136. if (((this._clientTableAdapter != null)
  7137. && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
  7138. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7139. "r, должны использовать одинаковую строку подключения.");
  7140. }
  7141. if (((this._employeeTableAdapter != null)
  7142. && (this.MatchTableAdapterConnection(this._employeeTableAdapter.Connection) == false))) {
  7143. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7144. "r, должны использовать одинаковую строку подключения.");
  7145. }
  7146. if (((this._executionRequestTableAdapter != null)
  7147. && (this.MatchTableAdapterConnection(this._executionRequestTableAdapter.Connection) == false))) {
  7148. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7149. "r, должны использовать одинаковую строку подключения.");
  7150. }
  7151. if (((this._requestTableAdapter != null)
  7152. && (this.MatchTableAdapterConnection(this._requestTableAdapter.Connection) == false))) {
  7153. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7154. "r, должны использовать одинаковую строку подключения.");
  7155. }
  7156. if (((this._roleTableAdapter != null)
  7157. && (this.MatchTableAdapterConnection(this._roleTableAdapter.Connection) == false))) {
  7158. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7159. "r, должны использовать одинаковую строку подключения.");
  7160. }
  7161. if (((this._statusTableAdapter != null)
  7162. && (this.MatchTableAdapterConnection(this._statusTableAdapter.Connection) == false))) {
  7163. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7164. "r, должны использовать одинаковую строку подключения.");
  7165. }
  7166. if (((this._typeDefectTableAdapter != null)
  7167. && (this.MatchTableAdapterConnection(this._typeDefectTableAdapter.Connection) == false))) {
  7168. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7169. "r, должны использовать одинаковую строку подключения.");
  7170. }
  7171. global::System.Data.IDbConnection workConnection = this.Connection;
  7172. if ((workConnection == null)) {
  7173. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  7174. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  7175. }
  7176. bool workConnOpened = false;
  7177. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  7178. == global::System.Data.ConnectionState.Broken)) {
  7179. workConnection.Close();
  7180. }
  7181. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  7182. workConnection.Open();
  7183. workConnOpened = true;
  7184. }
  7185. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  7186. if ((workTransaction == null)) {
  7187. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  7188. "и или текущее состояние не позволяет начать транзакцию.");
  7189. }
  7190. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7191. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7192. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  7193. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  7194. int result = 0;
  7195. global::System.Data.DataSet backupDataSet = null;
  7196. if (this.BackupDataSetBeforeUpdate) {
  7197. backupDataSet = new global::System.Data.DataSet();
  7198. backupDataSet.Merge(dataSet);
  7199. }
  7200. try {
  7201. // ---- Prepare for update -----------
  7202. //
  7203. if ((this._clientTableAdapter != null)) {
  7204. revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection);
  7205. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7206. this._clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7207. if (this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7208. this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7209. adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableAdapter.Adapter);
  7210. }
  7211. }
  7212. if ((this._employeeTableAdapter != null)) {
  7213. revertConnections.Add(this._employeeTableAdapter, this._employeeTableAdapter.Connection);
  7214. this._employeeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7215. this._employeeTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7216. if (this._employeeTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7217. this._employeeTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7218. adaptersWithAcceptChangesDuringUpdate.Add(this._employeeTableAdapter.Adapter);
  7219. }
  7220. }
  7221. if ((this._executionRequestTableAdapter != null)) {
  7222. revertConnections.Add(this._executionRequestTableAdapter, this._executionRequestTableAdapter.Connection);
  7223. this._executionRequestTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7224. this._executionRequestTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7225. if (this._executionRequestTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7226. this._executionRequestTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7227. adaptersWithAcceptChangesDuringUpdate.Add(this._executionRequestTableAdapter.Adapter);
  7228. }
  7229. }
  7230. if ((this._requestTableAdapter != null)) {
  7231. revertConnections.Add(this._requestTableAdapter, this._requestTableAdapter.Connection);
  7232. this._requestTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7233. this._requestTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7234. if (this._requestTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7235. this._requestTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7236. adaptersWithAcceptChangesDuringUpdate.Add(this._requestTableAdapter.Adapter);
  7237. }
  7238. }
  7239. if ((this._roleTableAdapter != null)) {
  7240. revertConnections.Add(this._roleTableAdapter, this._roleTableAdapter.Connection);
  7241. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7242. this._roleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7243. if (this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7244. this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7245. adaptersWithAcceptChangesDuringUpdate.Add(this._roleTableAdapter.Adapter);
  7246. }
  7247. }
  7248. if ((this._statusTableAdapter != null)) {
  7249. revertConnections.Add(this._statusTableAdapter, this._statusTableAdapter.Connection);
  7250. this._statusTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7251. this._statusTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7252. if (this._statusTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7253. this._statusTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7254. adaptersWithAcceptChangesDuringUpdate.Add(this._statusTableAdapter.Adapter);
  7255. }
  7256. }
  7257. if ((this._typeDefectTableAdapter != null)) {
  7258. revertConnections.Add(this._typeDefectTableAdapter, this._typeDefectTableAdapter.Connection);
  7259. this._typeDefectTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7260. this._typeDefectTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7261. if (this._typeDefectTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7262. this._typeDefectTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7263. adaptersWithAcceptChangesDuringUpdate.Add(this._typeDefectTableAdapter.Adapter);
  7264. }
  7265. }
  7266. //
  7267. //---- Perform updates -----------
  7268. //
  7269. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  7270. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  7271. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  7272. }
  7273. else {
  7274. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  7275. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  7276. }
  7277. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  7278. //
  7279. //---- Commit updates -----------
  7280. //
  7281. workTransaction.Commit();
  7282. if ((0 < allAddedRows.Count)) {
  7283. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  7284. allAddedRows.CopyTo(rows);
  7285. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  7286. global::System.Data.DataRow row = rows[i];
  7287. row.AcceptChanges();
  7288. }
  7289. }
  7290. if ((0 < allChangedRows.Count)) {
  7291. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  7292. allChangedRows.CopyTo(rows);
  7293. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  7294. global::System.Data.DataRow row = rows[i];
  7295. row.AcceptChanges();
  7296. }
  7297. }
  7298. }
  7299. catch (global::System.Exception ex) {
  7300. workTransaction.Rollback();
  7301. // ---- Restore the dataset -----------
  7302. if (this.BackupDataSetBeforeUpdate) {
  7303. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  7304. dataSet.Clear();
  7305. dataSet.Merge(backupDataSet);
  7306. }
  7307. else {
  7308. if ((0 < allAddedRows.Count)) {
  7309. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  7310. allAddedRows.CopyTo(rows);
  7311. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  7312. global::System.Data.DataRow row = rows[i];
  7313. row.AcceptChanges();
  7314. row.SetAdded();
  7315. }
  7316. }
  7317. }
  7318. throw ex;
  7319. }
  7320. finally {
  7321. if (workConnOpened) {
  7322. workConnection.Close();
  7323. }
  7324. if ((this._clientTableAdapter != null)) {
  7325. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter]));
  7326. this._clientTableAdapter.Transaction = null;
  7327. }
  7328. if ((this._employeeTableAdapter != null)) {
  7329. this._employeeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._employeeTableAdapter]));
  7330. this._employeeTableAdapter.Transaction = null;
  7331. }
  7332. if ((this._executionRequestTableAdapter != null)) {
  7333. this._executionRequestTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._executionRequestTableAdapter]));
  7334. this._executionRequestTableAdapter.Transaction = null;
  7335. }
  7336. if ((this._requestTableAdapter != null)) {
  7337. this._requestTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._requestTableAdapter]));
  7338. this._requestTableAdapter.Transaction = null;
  7339. }
  7340. if ((this._roleTableAdapter != null)) {
  7341. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._roleTableAdapter]));
  7342. this._roleTableAdapter.Transaction = null;
  7343. }
  7344. if ((this._statusTableAdapter != null)) {
  7345. this._statusTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._statusTableAdapter]));
  7346. this._statusTableAdapter.Transaction = null;
  7347. }
  7348. if ((this._typeDefectTableAdapter != null)) {
  7349. this._typeDefectTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._typeDefectTableAdapter]));
  7350. this._typeDefectTableAdapter.Transaction = null;
  7351. }
  7352. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  7353. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  7354. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  7355. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  7356. global::System.Data.Common.DataAdapter adapter = adapters[i];
  7357. adapter.AcceptChangesDuringUpdate = true;
  7358. }
  7359. }
  7360. }
  7361. return result;
  7362. }
  7363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7365. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  7366. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  7367. }
  7368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7370. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  7371. if ((this._connection != null)) {
  7372. return true;
  7373. }
  7374. if (((this.Connection == null)
  7375. || (inputConnection == null))) {
  7376. return true;
  7377. }
  7378. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  7379. return true;
  7380. }
  7381. return false;
  7382. }
  7383. /// <summary>
  7384. ///Update Order Option
  7385. ///</summary>
  7386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7387. public enum UpdateOrderOption {
  7388. InsertUpdateDelete = 0,
  7389. UpdateInsertDelete = 1,
  7390. }
  7391. /// <summary>
  7392. ///Used to sort self-referenced table's rows
  7393. ///</summary>
  7394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7395. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  7396. private global::System.Data.DataRelation _relation;
  7397. private int _childFirst;
  7398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7400. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  7401. this._relation = relation;
  7402. if (childFirst) {
  7403. this._childFirst = -1;
  7404. }
  7405. else {
  7406. this._childFirst = 1;
  7407. }
  7408. }
  7409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7411. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  7412. global::System.Diagnostics.Debug.Assert((row != null));
  7413. global::System.Data.DataRow root = row;
  7414. distance = 0;
  7415. 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>();
  7416. traversedRows[row] = row;
  7417. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  7418. for (
  7419. ; ((parent != null)
  7420. && (traversedRows.ContainsKey(parent) == false));
  7421. ) {
  7422. distance = (distance + 1);
  7423. root = parent;
  7424. traversedRows[parent] = parent;
  7425. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  7426. }
  7427. if ((distance == 0)) {
  7428. traversedRows.Clear();
  7429. traversedRows[row] = row;
  7430. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  7431. for (
  7432. ; ((parent != null)
  7433. && (traversedRows.ContainsKey(parent) == false));
  7434. ) {
  7435. distance = (distance + 1);
  7436. root = parent;
  7437. traversedRows[parent] = parent;
  7438. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  7439. }
  7440. }
  7441. return root;
  7442. }
  7443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7445. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  7446. if (object.ReferenceEquals(row1, row2)) {
  7447. return 0;
  7448. }
  7449. if ((row1 == null)) {
  7450. return -1;
  7451. }
  7452. if ((row2 == null)) {
  7453. return 1;
  7454. }
  7455. int distance1 = 0;
  7456. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  7457. int distance2 = 0;
  7458. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  7459. if (object.ReferenceEquals(root1, root2)) {
  7460. return (this._childFirst * distance1.CompareTo(distance2));
  7461. }
  7462. else {
  7463. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  7464. && (root2.Table != null)));
  7465. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  7466. return -1;
  7467. }
  7468. else {
  7469. return 1;
  7470. }
  7471. }
  7472. }
  7473. }
  7474. }
  7475. }
  7476. #pragma warning restore 1591