TechServiceBAUDataSet.Designer.cs 463 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685
  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 global::System.Data.DataRelation relationFK_Employee_Role;
  30. private global::System.Data.DataRelation relationFK_ExecutionRequest_Employee;
  31. private global::System.Data.DataRelation relationFK_ExecutionRequest_Request;
  32. private global::System.Data.DataRelation relationFK_Request_Client;
  33. private global::System.Data.DataRelation relationFK_Request_Employee;
  34. private global::System.Data.DataRelation relationFK_Request_Status;
  35. private global::System.Data.DataRelation relationFK_Request_TypeDefect;
  36. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  37. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  38. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  39. public TechServiceBAUDataSet() {
  40. this.BeginInit();
  41. this.InitClass();
  42. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  43. base.Tables.CollectionChanged += schemaChangedHandler;
  44. base.Relations.CollectionChanged += schemaChangedHandler;
  45. this.EndInit();
  46. }
  47. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  48. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  49. protected TechServiceBAUDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  50. base(info, context, false) {
  51. if ((this.IsBinarySerialized(info, context) == true)) {
  52. this.InitVars(false);
  53. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  54. this.Tables.CollectionChanged += schemaChangedHandler1;
  55. this.Relations.CollectionChanged += schemaChangedHandler1;
  56. return;
  57. }
  58. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  59. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  60. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  61. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  62. if ((ds.Tables["Client"] != null)) {
  63. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  64. }
  65. if ((ds.Tables["Employee"] != null)) {
  66. base.Tables.Add(new EmployeeDataTable(ds.Tables["Employee"]));
  67. }
  68. if ((ds.Tables["ExecutionRequest"] != null)) {
  69. base.Tables.Add(new ExecutionRequestDataTable(ds.Tables["ExecutionRequest"]));
  70. }
  71. if ((ds.Tables["Request"] != null)) {
  72. base.Tables.Add(new RequestDataTable(ds.Tables["Request"]));
  73. }
  74. if ((ds.Tables["Role"] != null)) {
  75. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  76. }
  77. if ((ds.Tables["Status"] != null)) {
  78. base.Tables.Add(new StatusDataTable(ds.Tables["Status"]));
  79. }
  80. if ((ds.Tables["TypeDefect"] != null)) {
  81. base.Tables.Add(new TypeDefectDataTable(ds.Tables["TypeDefect"]));
  82. }
  83. this.DataSetName = ds.DataSetName;
  84. this.Prefix = ds.Prefix;
  85. this.Namespace = ds.Namespace;
  86. this.Locale = ds.Locale;
  87. this.CaseSensitive = ds.CaseSensitive;
  88. this.EnforceConstraints = ds.EnforceConstraints;
  89. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  90. this.InitVars();
  91. }
  92. else {
  93. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  94. }
  95. this.GetSerializationData(info, context);
  96. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  97. base.Tables.CollectionChanged += schemaChangedHandler;
  98. this.Relations.CollectionChanged += schemaChangedHandler;
  99. }
  100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  102. [global::System.ComponentModel.Browsable(false)]
  103. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  104. public ClientDataTable Client {
  105. get {
  106. return this.tableClient;
  107. }
  108. }
  109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  111. [global::System.ComponentModel.Browsable(false)]
  112. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  113. public EmployeeDataTable Employee {
  114. get {
  115. return this.tableEmployee;
  116. }
  117. }
  118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  120. [global::System.ComponentModel.Browsable(false)]
  121. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  122. public ExecutionRequestDataTable ExecutionRequest {
  123. get {
  124. return this.tableExecutionRequest;
  125. }
  126. }
  127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  129. [global::System.ComponentModel.Browsable(false)]
  130. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  131. public RequestDataTable Request {
  132. get {
  133. return this.tableRequest;
  134. }
  135. }
  136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  138. [global::System.ComponentModel.Browsable(false)]
  139. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  140. public RoleDataTable Role {
  141. get {
  142. return this.tableRole;
  143. }
  144. }
  145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  147. [global::System.ComponentModel.Browsable(false)]
  148. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  149. public StatusDataTable Status {
  150. get {
  151. return this.tableStatus;
  152. }
  153. }
  154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  156. [global::System.ComponentModel.Browsable(false)]
  157. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  158. public TypeDefectDataTable TypeDefect {
  159. get {
  160. return this.tableTypeDefect;
  161. }
  162. }
  163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  165. [global::System.ComponentModel.BrowsableAttribute(true)]
  166. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  167. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  168. get {
  169. return this._schemaSerializationMode;
  170. }
  171. set {
  172. this._schemaSerializationMode = value;
  173. }
  174. }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  177. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  178. public new global::System.Data.DataTableCollection Tables {
  179. get {
  180. return base.Tables;
  181. }
  182. }
  183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  185. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  186. public new global::System.Data.DataRelationCollection Relations {
  187. get {
  188. return base.Relations;
  189. }
  190. }
  191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  193. protected override void InitializeDerivedDataSet() {
  194. this.BeginInit();
  195. this.InitClass();
  196. this.EndInit();
  197. }
  198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  200. public override global::System.Data.DataSet Clone() {
  201. TechServiceBAUDataSet cln = ((TechServiceBAUDataSet)(base.Clone()));
  202. cln.InitVars();
  203. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  204. return cln;
  205. }
  206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  208. protected override bool ShouldSerializeTables() {
  209. return false;
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  213. protected override bool ShouldSerializeRelations() {
  214. return false;
  215. }
  216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  218. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  219. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  220. this.Reset();
  221. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  222. ds.ReadXml(reader);
  223. if ((ds.Tables["Client"] != null)) {
  224. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  225. }
  226. if ((ds.Tables["Employee"] != null)) {
  227. base.Tables.Add(new EmployeeDataTable(ds.Tables["Employee"]));
  228. }
  229. if ((ds.Tables["ExecutionRequest"] != null)) {
  230. base.Tables.Add(new ExecutionRequestDataTable(ds.Tables["ExecutionRequest"]));
  231. }
  232. if ((ds.Tables["Request"] != null)) {
  233. base.Tables.Add(new RequestDataTable(ds.Tables["Request"]));
  234. }
  235. if ((ds.Tables["Role"] != null)) {
  236. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  237. }
  238. if ((ds.Tables["Status"] != null)) {
  239. base.Tables.Add(new StatusDataTable(ds.Tables["Status"]));
  240. }
  241. if ((ds.Tables["TypeDefect"] != null)) {
  242. base.Tables.Add(new TypeDefectDataTable(ds.Tables["TypeDefect"]));
  243. }
  244. this.DataSetName = ds.DataSetName;
  245. this.Prefix = ds.Prefix;
  246. this.Namespace = ds.Namespace;
  247. this.Locale = ds.Locale;
  248. this.CaseSensitive = ds.CaseSensitive;
  249. this.EnforceConstraints = ds.EnforceConstraints;
  250. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  251. this.InitVars();
  252. }
  253. else {
  254. this.ReadXml(reader);
  255. this.InitVars();
  256. }
  257. }
  258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  260. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  261. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  262. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  263. stream.Position = 0;
  264. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  265. }
  266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  268. internal void InitVars() {
  269. this.InitVars(true);
  270. }
  271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  273. internal void InitVars(bool initTable) {
  274. this.tableClient = ((ClientDataTable)(base.Tables["Client"]));
  275. if ((initTable == true)) {
  276. if ((this.tableClient != null)) {
  277. this.tableClient.InitVars();
  278. }
  279. }
  280. this.tableEmployee = ((EmployeeDataTable)(base.Tables["Employee"]));
  281. if ((initTable == true)) {
  282. if ((this.tableEmployee != null)) {
  283. this.tableEmployee.InitVars();
  284. }
  285. }
  286. this.tableExecutionRequest = ((ExecutionRequestDataTable)(base.Tables["ExecutionRequest"]));
  287. if ((initTable == true)) {
  288. if ((this.tableExecutionRequest != null)) {
  289. this.tableExecutionRequest.InitVars();
  290. }
  291. }
  292. this.tableRequest = ((RequestDataTable)(base.Tables["Request"]));
  293. if ((initTable == true)) {
  294. if ((this.tableRequest != null)) {
  295. this.tableRequest.InitVars();
  296. }
  297. }
  298. this.tableRole = ((RoleDataTable)(base.Tables["Role"]));
  299. if ((initTable == true)) {
  300. if ((this.tableRole != null)) {
  301. this.tableRole.InitVars();
  302. }
  303. }
  304. this.tableStatus = ((StatusDataTable)(base.Tables["Status"]));
  305. if ((initTable == true)) {
  306. if ((this.tableStatus != null)) {
  307. this.tableStatus.InitVars();
  308. }
  309. }
  310. this.tableTypeDefect = ((TypeDefectDataTable)(base.Tables["TypeDefect"]));
  311. if ((initTable == true)) {
  312. if ((this.tableTypeDefect != null)) {
  313. this.tableTypeDefect.InitVars();
  314. }
  315. }
  316. this.relationFK_Employee_Role = this.Relations["FK_Employee_Role"];
  317. this.relationFK_ExecutionRequest_Employee = this.Relations["FK_ExecutionRequest_Employee"];
  318. this.relationFK_ExecutionRequest_Request = this.Relations["FK_ExecutionRequest_Request"];
  319. this.relationFK_Request_Client = this.Relations["FK_Request_Client"];
  320. this.relationFK_Request_Employee = this.Relations["FK_Request_Employee"];
  321. this.relationFK_Request_Status = this.Relations["FK_Request_Status"];
  322. this.relationFK_Request_TypeDefect = this.Relations["FK_Request_TypeDefect"];
  323. }
  324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  326. private void InitClass() {
  327. this.DataSetName = "TechServiceBAUDataSet";
  328. this.Prefix = "";
  329. this.Namespace = "http://tempuri.org/TechServiceBAUDataSet.xsd";
  330. this.EnforceConstraints = true;
  331. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  332. this.tableClient = new ClientDataTable();
  333. base.Tables.Add(this.tableClient);
  334. this.tableEmployee = new EmployeeDataTable();
  335. base.Tables.Add(this.tableEmployee);
  336. this.tableExecutionRequest = new ExecutionRequestDataTable();
  337. base.Tables.Add(this.tableExecutionRequest);
  338. this.tableRequest = new RequestDataTable();
  339. base.Tables.Add(this.tableRequest);
  340. this.tableRole = new RoleDataTable();
  341. base.Tables.Add(this.tableRole);
  342. this.tableStatus = new StatusDataTable();
  343. base.Tables.Add(this.tableStatus);
  344. this.tableTypeDefect = new TypeDefectDataTable();
  345. base.Tables.Add(this.tableTypeDefect);
  346. this.relationFK_Employee_Role = new global::System.Data.DataRelation("FK_Employee_Role", new global::System.Data.DataColumn[] {
  347. this.tableRole.IdRoleColumn}, new global::System.Data.DataColumn[] {
  348. this.tableEmployee.IdRoleColumn}, false);
  349. this.Relations.Add(this.relationFK_Employee_Role);
  350. this.relationFK_ExecutionRequest_Employee = new global::System.Data.DataRelation("FK_ExecutionRequest_Employee", new global::System.Data.DataColumn[] {
  351. this.tableEmployee.IdEmployeeColumn}, new global::System.Data.DataColumn[] {
  352. this.tableExecutionRequest.IdMasterColumn}, false);
  353. this.Relations.Add(this.relationFK_ExecutionRequest_Employee);
  354. this.relationFK_ExecutionRequest_Request = new global::System.Data.DataRelation("FK_ExecutionRequest_Request", new global::System.Data.DataColumn[] {
  355. this.tableRequest.IdRequestColumn}, new global::System.Data.DataColumn[] {
  356. this.tableExecutionRequest.IdRequestColumn}, false);
  357. this.Relations.Add(this.relationFK_ExecutionRequest_Request);
  358. this.relationFK_Request_Client = new global::System.Data.DataRelation("FK_Request_Client", new global::System.Data.DataColumn[] {
  359. this.tableClient.IdClientColumn}, new global::System.Data.DataColumn[] {
  360. this.tableRequest.IdClientColumn}, false);
  361. this.Relations.Add(this.relationFK_Request_Client);
  362. this.relationFK_Request_Employee = new global::System.Data.DataRelation("FK_Request_Employee", new global::System.Data.DataColumn[] {
  363. this.tableEmployee.IdEmployeeColumn}, new global::System.Data.DataColumn[] {
  364. this.tableRequest.IdManagerColumn}, false);
  365. this.Relations.Add(this.relationFK_Request_Employee);
  366. this.relationFK_Request_Status = new global::System.Data.DataRelation("FK_Request_Status", new global::System.Data.DataColumn[] {
  367. this.tableStatus.IdStatusColumn}, new global::System.Data.DataColumn[] {
  368. this.tableRequest.IdStatusColumn}, false);
  369. this.Relations.Add(this.relationFK_Request_Status);
  370. this.relationFK_Request_TypeDefect = new global::System.Data.DataRelation("FK_Request_TypeDefect", new global::System.Data.DataColumn[] {
  371. this.tableTypeDefect.IdTypeDefectColumn}, new global::System.Data.DataColumn[] {
  372. this.tableRequest.IdTypeDefectColumn}, false);
  373. this.Relations.Add(this.relationFK_Request_TypeDefect);
  374. }
  375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  377. private bool ShouldSerializeClient() {
  378. return false;
  379. }
  380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  382. private bool ShouldSerializeEmployee() {
  383. return false;
  384. }
  385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  387. private bool ShouldSerializeExecutionRequest() {
  388. return false;
  389. }
  390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  392. private bool ShouldSerializeRequest() {
  393. return false;
  394. }
  395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  397. private bool ShouldSerializeRole() {
  398. return false;
  399. }
  400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  402. private bool ShouldSerializeStatus() {
  403. return false;
  404. }
  405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  407. private bool ShouldSerializeTypeDefect() {
  408. return false;
  409. }
  410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  412. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  413. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  414. this.InitVars();
  415. }
  416. }
  417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  419. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  420. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  421. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  422. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  423. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  424. any.Namespace = ds.Namespace;
  425. sequence.Items.Add(any);
  426. type.Particle = sequence;
  427. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  428. if (xs.Contains(dsSchema.TargetNamespace)) {
  429. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  430. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  431. try {
  432. global::System.Xml.Schema.XmlSchema schema = null;
  433. dsSchema.Write(s1);
  434. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  435. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  436. s2.SetLength(0);
  437. schema.Write(s2);
  438. if ((s1.Length == s2.Length)) {
  439. s1.Position = 0;
  440. s2.Position = 0;
  441. for (; ((s1.Position != s1.Length)
  442. && (s1.ReadByte() == s2.ReadByte())); ) {
  443. ;
  444. }
  445. if ((s1.Position == s1.Length)) {
  446. return type;
  447. }
  448. }
  449. }
  450. }
  451. finally {
  452. if ((s1 != null)) {
  453. s1.Close();
  454. }
  455. if ((s2 != null)) {
  456. s2.Close();
  457. }
  458. }
  459. }
  460. xs.Add(dsSchema);
  461. return type;
  462. }
  463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  464. public delegate void ClientRowChangeEventHandler(object sender, ClientRowChangeEvent e);
  465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  466. public delegate void EmployeeRowChangeEventHandler(object sender, EmployeeRowChangeEvent e);
  467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  468. public delegate void ExecutionRequestRowChangeEventHandler(object sender, ExecutionRequestRowChangeEvent e);
  469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  470. public delegate void RequestRowChangeEventHandler(object sender, RequestRowChangeEvent e);
  471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  472. public delegate void RoleRowChangeEventHandler(object sender, RoleRowChangeEvent e);
  473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  474. public delegate void StatusRowChangeEventHandler(object sender, StatusRowChangeEvent e);
  475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  476. public delegate void TypeDefectRowChangeEventHandler(object sender, TypeDefectRowChangeEvent e);
  477. /// <summary>
  478. ///Represents the strongly named DataTable class.
  479. ///</summary>
  480. [global::System.Serializable()]
  481. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  482. public partial class ClientDataTable : global::System.Data.TypedTableBase<ClientRow> {
  483. private global::System.Data.DataColumn columnIdClient;
  484. private global::System.Data.DataColumn columnSurname;
  485. private global::System.Data.DataColumn columnName;
  486. private global::System.Data.DataColumn columnPatronymic;
  487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  489. public ClientDataTable() {
  490. this.TableName = "Client";
  491. this.BeginInit();
  492. this.InitClass();
  493. this.EndInit();
  494. }
  495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  497. internal ClientDataTable(global::System.Data.DataTable table) {
  498. this.TableName = table.TableName;
  499. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  500. this.CaseSensitive = table.CaseSensitive;
  501. }
  502. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  503. this.Locale = table.Locale;
  504. }
  505. if ((table.Namespace != table.DataSet.Namespace)) {
  506. this.Namespace = table.Namespace;
  507. }
  508. this.Prefix = table.Prefix;
  509. this.MinimumCapacity = table.MinimumCapacity;
  510. }
  511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  513. protected ClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  514. base(info, context) {
  515. this.InitVars();
  516. }
  517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  519. public global::System.Data.DataColumn IdClientColumn {
  520. get {
  521. return this.columnIdClient;
  522. }
  523. }
  524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  526. public global::System.Data.DataColumn SurnameColumn {
  527. get {
  528. return this.columnSurname;
  529. }
  530. }
  531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  533. public global::System.Data.DataColumn NameColumn {
  534. get {
  535. return this.columnName;
  536. }
  537. }
  538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  540. public global::System.Data.DataColumn PatronymicColumn {
  541. get {
  542. return this.columnPatronymic;
  543. }
  544. }
  545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  547. [global::System.ComponentModel.Browsable(false)]
  548. public int Count {
  549. get {
  550. return this.Rows.Count;
  551. }
  552. }
  553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  555. public ClientRow this[int index] {
  556. get {
  557. return ((ClientRow)(this.Rows[index]));
  558. }
  559. }
  560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  561. public event ClientRowChangeEventHandler ClientRowChanging;
  562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  563. public event ClientRowChangeEventHandler ClientRowChanged;
  564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  565. public event ClientRowChangeEventHandler ClientRowDeleting;
  566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  567. public event ClientRowChangeEventHandler ClientRowDeleted;
  568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  570. public void AddClientRow(ClientRow row) {
  571. this.Rows.Add(row);
  572. }
  573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  575. public ClientRow AddClientRow(string Surname, string Name, string Patronymic) {
  576. ClientRow rowClientRow = ((ClientRow)(this.NewRow()));
  577. object[] columnValuesArray = new object[] {
  578. null,
  579. Surname,
  580. Name,
  581. Patronymic};
  582. rowClientRow.ItemArray = columnValuesArray;
  583. this.Rows.Add(rowClientRow);
  584. return rowClientRow;
  585. }
  586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  588. public ClientRow FindByIdClient(int IdClient) {
  589. return ((ClientRow)(this.Rows.Find(new object[] {
  590. IdClient})));
  591. }
  592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  594. public override global::System.Data.DataTable Clone() {
  595. ClientDataTable cln = ((ClientDataTable)(base.Clone()));
  596. cln.InitVars();
  597. return cln;
  598. }
  599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  601. protected override global::System.Data.DataTable CreateInstance() {
  602. return new ClientDataTable();
  603. }
  604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  606. internal void InitVars() {
  607. this.columnIdClient = base.Columns["IdClient"];
  608. this.columnSurname = base.Columns["Surname"];
  609. this.columnName = base.Columns["Name"];
  610. this.columnPatronymic = base.Columns["Patronymic"];
  611. }
  612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  614. private void InitClass() {
  615. this.columnIdClient = new global::System.Data.DataColumn("IdClient", typeof(int), null, global::System.Data.MappingType.Element);
  616. base.Columns.Add(this.columnIdClient);
  617. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  618. base.Columns.Add(this.columnSurname);
  619. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  620. base.Columns.Add(this.columnName);
  621. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  622. base.Columns.Add(this.columnPatronymic);
  623. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  624. this.columnIdClient}, true));
  625. this.columnIdClient.AutoIncrement = true;
  626. this.columnIdClient.AutoIncrementSeed = -1;
  627. this.columnIdClient.AutoIncrementStep = -1;
  628. this.columnIdClient.AllowDBNull = false;
  629. this.columnIdClient.ReadOnly = true;
  630. this.columnIdClient.Unique = true;
  631. this.columnSurname.MaxLength = 50;
  632. this.columnName.MaxLength = 50;
  633. this.columnPatronymic.MaxLength = 50;
  634. }
  635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  637. public ClientRow NewClientRow() {
  638. return ((ClientRow)(this.NewRow()));
  639. }
  640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  642. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  643. return new ClientRow(builder);
  644. }
  645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  647. protected override global::System.Type GetRowType() {
  648. return typeof(ClientRow);
  649. }
  650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  652. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  653. base.OnRowChanged(e);
  654. if ((this.ClientRowChanged != null)) {
  655. this.ClientRowChanged(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  656. }
  657. }
  658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  660. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  661. base.OnRowChanging(e);
  662. if ((this.ClientRowChanging != null)) {
  663. this.ClientRowChanging(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  664. }
  665. }
  666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  668. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  669. base.OnRowDeleted(e);
  670. if ((this.ClientRowDeleted != null)) {
  671. this.ClientRowDeleted(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  672. }
  673. }
  674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  676. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  677. base.OnRowDeleting(e);
  678. if ((this.ClientRowDeleting != null)) {
  679. this.ClientRowDeleting(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  680. }
  681. }
  682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  684. public void RemoveClientRow(ClientRow row) {
  685. this.Rows.Remove(row);
  686. }
  687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  689. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  690. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  691. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  692. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  693. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  694. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  695. any1.MinOccurs = new decimal(0);
  696. any1.MaxOccurs = decimal.MaxValue;
  697. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  698. sequence.Items.Add(any1);
  699. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  700. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  701. any2.MinOccurs = new decimal(1);
  702. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  703. sequence.Items.Add(any2);
  704. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  705. attribute1.Name = "namespace";
  706. attribute1.FixedValue = ds.Namespace;
  707. type.Attributes.Add(attribute1);
  708. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  709. attribute2.Name = "tableTypeName";
  710. attribute2.FixedValue = "ClientDataTable";
  711. type.Attributes.Add(attribute2);
  712. type.Particle = sequence;
  713. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  714. if (xs.Contains(dsSchema.TargetNamespace)) {
  715. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  716. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  717. try {
  718. global::System.Xml.Schema.XmlSchema schema = null;
  719. dsSchema.Write(s1);
  720. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  721. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  722. s2.SetLength(0);
  723. schema.Write(s2);
  724. if ((s1.Length == s2.Length)) {
  725. s1.Position = 0;
  726. s2.Position = 0;
  727. for (; ((s1.Position != s1.Length)
  728. && (s1.ReadByte() == s2.ReadByte())); ) {
  729. ;
  730. }
  731. if ((s1.Position == s1.Length)) {
  732. return type;
  733. }
  734. }
  735. }
  736. }
  737. finally {
  738. if ((s1 != null)) {
  739. s1.Close();
  740. }
  741. if ((s2 != null)) {
  742. s2.Close();
  743. }
  744. }
  745. }
  746. xs.Add(dsSchema);
  747. return type;
  748. }
  749. }
  750. /// <summary>
  751. ///Represents the strongly named DataTable class.
  752. ///</summary>
  753. [global::System.Serializable()]
  754. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  755. public partial class EmployeeDataTable : global::System.Data.TypedTableBase<EmployeeRow> {
  756. private global::System.Data.DataColumn columnIdEmployee;
  757. private global::System.Data.DataColumn columnIdRole;
  758. private global::System.Data.DataColumn columnSurname;
  759. private global::System.Data.DataColumn columnName;
  760. private global::System.Data.DataColumn columnPatronymic;
  761. private global::System.Data.DataColumn columnLogin;
  762. private global::System.Data.DataColumn columnPassword;
  763. private global::System.Data.DataColumn columnPhoto;
  764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  766. public EmployeeDataTable() {
  767. this.TableName = "Employee";
  768. this.BeginInit();
  769. this.InitClass();
  770. this.EndInit();
  771. }
  772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  774. internal EmployeeDataTable(global::System.Data.DataTable table) {
  775. this.TableName = table.TableName;
  776. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  777. this.CaseSensitive = table.CaseSensitive;
  778. }
  779. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  780. this.Locale = table.Locale;
  781. }
  782. if ((table.Namespace != table.DataSet.Namespace)) {
  783. this.Namespace = table.Namespace;
  784. }
  785. this.Prefix = table.Prefix;
  786. this.MinimumCapacity = table.MinimumCapacity;
  787. }
  788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  790. protected EmployeeDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  791. base(info, context) {
  792. this.InitVars();
  793. }
  794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  796. public global::System.Data.DataColumn IdEmployeeColumn {
  797. get {
  798. return this.columnIdEmployee;
  799. }
  800. }
  801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  803. public global::System.Data.DataColumn IdRoleColumn {
  804. get {
  805. return this.columnIdRole;
  806. }
  807. }
  808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  810. public global::System.Data.DataColumn SurnameColumn {
  811. get {
  812. return this.columnSurname;
  813. }
  814. }
  815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  817. public global::System.Data.DataColumn NameColumn {
  818. get {
  819. return this.columnName;
  820. }
  821. }
  822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  824. public global::System.Data.DataColumn PatronymicColumn {
  825. get {
  826. return this.columnPatronymic;
  827. }
  828. }
  829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  831. public global::System.Data.DataColumn LoginColumn {
  832. get {
  833. return this.columnLogin;
  834. }
  835. }
  836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  838. public global::System.Data.DataColumn PasswordColumn {
  839. get {
  840. return this.columnPassword;
  841. }
  842. }
  843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  845. public global::System.Data.DataColumn PhotoColumn {
  846. get {
  847. return this.columnPhoto;
  848. }
  849. }
  850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  852. [global::System.ComponentModel.Browsable(false)]
  853. public int Count {
  854. get {
  855. return this.Rows.Count;
  856. }
  857. }
  858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  860. public EmployeeRow this[int index] {
  861. get {
  862. return ((EmployeeRow)(this.Rows[index]));
  863. }
  864. }
  865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  866. public event EmployeeRowChangeEventHandler EmployeeRowChanging;
  867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  868. public event EmployeeRowChangeEventHandler EmployeeRowChanged;
  869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  870. public event EmployeeRowChangeEventHandler EmployeeRowDeleting;
  871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  872. public event EmployeeRowChangeEventHandler EmployeeRowDeleted;
  873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  875. public void AddEmployeeRow(EmployeeRow row) {
  876. this.Rows.Add(row);
  877. }
  878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  880. public EmployeeRow AddEmployeeRow(RoleRow parentRoleRowByFK_Employee_Role, string Surname, string Name, string Patronymic, string Login, string Password, string Photo) {
  881. EmployeeRow rowEmployeeRow = ((EmployeeRow)(this.NewRow()));
  882. object[] columnValuesArray = new object[] {
  883. null,
  884. null,
  885. Surname,
  886. Name,
  887. Patronymic,
  888. Login,
  889. Password,
  890. Photo};
  891. if ((parentRoleRowByFK_Employee_Role != null)) {
  892. columnValuesArray[1] = parentRoleRowByFK_Employee_Role[0];
  893. }
  894. rowEmployeeRow.ItemArray = columnValuesArray;
  895. this.Rows.Add(rowEmployeeRow);
  896. return rowEmployeeRow;
  897. }
  898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  900. public EmployeeRow FindByIdEmployee(int IdEmployee) {
  901. return ((EmployeeRow)(this.Rows.Find(new object[] {
  902. IdEmployee})));
  903. }
  904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  906. public override global::System.Data.DataTable Clone() {
  907. EmployeeDataTable cln = ((EmployeeDataTable)(base.Clone()));
  908. cln.InitVars();
  909. return cln;
  910. }
  911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  913. protected override global::System.Data.DataTable CreateInstance() {
  914. return new EmployeeDataTable();
  915. }
  916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  918. internal void InitVars() {
  919. this.columnIdEmployee = base.Columns["IdEmployee"];
  920. this.columnIdRole = base.Columns["IdRole"];
  921. this.columnSurname = base.Columns["Surname"];
  922. this.columnName = base.Columns["Name"];
  923. this.columnPatronymic = base.Columns["Patronymic"];
  924. this.columnLogin = base.Columns["Login"];
  925. this.columnPassword = base.Columns["Password"];
  926. this.columnPhoto = base.Columns["Photo"];
  927. }
  928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  930. private void InitClass() {
  931. this.columnIdEmployee = new global::System.Data.DataColumn("IdEmployee", typeof(int), null, global::System.Data.MappingType.Element);
  932. base.Columns.Add(this.columnIdEmployee);
  933. this.columnIdRole = new global::System.Data.DataColumn("IdRole", typeof(int), null, global::System.Data.MappingType.Element);
  934. base.Columns.Add(this.columnIdRole);
  935. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  936. base.Columns.Add(this.columnSurname);
  937. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  938. base.Columns.Add(this.columnName);
  939. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  940. base.Columns.Add(this.columnPatronymic);
  941. this.columnLogin = new global::System.Data.DataColumn("Login", typeof(string), null, global::System.Data.MappingType.Element);
  942. base.Columns.Add(this.columnLogin);
  943. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  944. base.Columns.Add(this.columnPassword);
  945. this.columnPhoto = new global::System.Data.DataColumn("Photo", typeof(string), null, global::System.Data.MappingType.Element);
  946. base.Columns.Add(this.columnPhoto);
  947. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  948. this.columnIdEmployee}, true));
  949. this.columnIdEmployee.AutoIncrement = true;
  950. this.columnIdEmployee.AutoIncrementSeed = -1;
  951. this.columnIdEmployee.AutoIncrementStep = -1;
  952. this.columnIdEmployee.AllowDBNull = false;
  953. this.columnIdEmployee.ReadOnly = true;
  954. this.columnIdEmployee.Unique = true;
  955. this.columnSurname.MaxLength = 50;
  956. this.columnName.MaxLength = 50;
  957. this.columnPatronymic.MaxLength = 50;
  958. this.columnLogin.MaxLength = 50;
  959. this.columnPassword.MaxLength = 50;
  960. this.columnPhoto.MaxLength = 50;
  961. }
  962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  964. public EmployeeRow NewEmployeeRow() {
  965. return ((EmployeeRow)(this.NewRow()));
  966. }
  967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  969. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  970. return new EmployeeRow(builder);
  971. }
  972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  974. protected override global::System.Type GetRowType() {
  975. return typeof(EmployeeRow);
  976. }
  977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  979. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  980. base.OnRowChanged(e);
  981. if ((this.EmployeeRowChanged != null)) {
  982. this.EmployeeRowChanged(this, new EmployeeRowChangeEvent(((EmployeeRow)(e.Row)), e.Action));
  983. }
  984. }
  985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  987. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  988. base.OnRowChanging(e);
  989. if ((this.EmployeeRowChanging != null)) {
  990. this.EmployeeRowChanging(this, new EmployeeRowChangeEvent(((EmployeeRow)(e.Row)), e.Action));
  991. }
  992. }
  993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  995. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  996. base.OnRowDeleted(e);
  997. if ((this.EmployeeRowDeleted != null)) {
  998. this.EmployeeRowDeleted(this, new EmployeeRowChangeEvent(((EmployeeRow)(e.Row)), e.Action));
  999. }
  1000. }
  1001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1003. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1004. base.OnRowDeleting(e);
  1005. if ((this.EmployeeRowDeleting != null)) {
  1006. this.EmployeeRowDeleting(this, new EmployeeRowChangeEvent(((EmployeeRow)(e.Row)), e.Action));
  1007. }
  1008. }
  1009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1011. public void RemoveEmployeeRow(EmployeeRow row) {
  1012. this.Rows.Remove(row);
  1013. }
  1014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1016. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1017. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1018. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1019. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  1020. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1021. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1022. any1.MinOccurs = new decimal(0);
  1023. any1.MaxOccurs = decimal.MaxValue;
  1024. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1025. sequence.Items.Add(any1);
  1026. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1027. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1028. any2.MinOccurs = new decimal(1);
  1029. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1030. sequence.Items.Add(any2);
  1031. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1032. attribute1.Name = "namespace";
  1033. attribute1.FixedValue = ds.Namespace;
  1034. type.Attributes.Add(attribute1);
  1035. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1036. attribute2.Name = "tableTypeName";
  1037. attribute2.FixedValue = "EmployeeDataTable";
  1038. type.Attributes.Add(attribute2);
  1039. type.Particle = sequence;
  1040. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1041. if (xs.Contains(dsSchema.TargetNamespace)) {
  1042. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1043. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1044. try {
  1045. global::System.Xml.Schema.XmlSchema schema = null;
  1046. dsSchema.Write(s1);
  1047. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1048. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1049. s2.SetLength(0);
  1050. schema.Write(s2);
  1051. if ((s1.Length == s2.Length)) {
  1052. s1.Position = 0;
  1053. s2.Position = 0;
  1054. for (; ((s1.Position != s1.Length)
  1055. && (s1.ReadByte() == s2.ReadByte())); ) {
  1056. ;
  1057. }
  1058. if ((s1.Position == s1.Length)) {
  1059. return type;
  1060. }
  1061. }
  1062. }
  1063. }
  1064. finally {
  1065. if ((s1 != null)) {
  1066. s1.Close();
  1067. }
  1068. if ((s2 != null)) {
  1069. s2.Close();
  1070. }
  1071. }
  1072. }
  1073. xs.Add(dsSchema);
  1074. return type;
  1075. }
  1076. }
  1077. /// <summary>
  1078. ///Represents the strongly named DataTable class.
  1079. ///</summary>
  1080. [global::System.Serializable()]
  1081. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1082. public partial class ExecutionRequestDataTable : global::System.Data.TypedTableBase<ExecutionRequestRow> {
  1083. private global::System.Data.DataColumn columnIdExecution;
  1084. private global::System.Data.DataColumn columnIdRequest;
  1085. private global::System.Data.DataColumn columnIdMaster;
  1086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1088. public ExecutionRequestDataTable() {
  1089. this.TableName = "ExecutionRequest";
  1090. this.BeginInit();
  1091. this.InitClass();
  1092. this.EndInit();
  1093. }
  1094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1096. internal ExecutionRequestDataTable(global::System.Data.DataTable table) {
  1097. this.TableName = table.TableName;
  1098. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1099. this.CaseSensitive = table.CaseSensitive;
  1100. }
  1101. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1102. this.Locale = table.Locale;
  1103. }
  1104. if ((table.Namespace != table.DataSet.Namespace)) {
  1105. this.Namespace = table.Namespace;
  1106. }
  1107. this.Prefix = table.Prefix;
  1108. this.MinimumCapacity = table.MinimumCapacity;
  1109. }
  1110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1112. protected ExecutionRequestDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1113. base(info, context) {
  1114. this.InitVars();
  1115. }
  1116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1118. public global::System.Data.DataColumn IdExecutionColumn {
  1119. get {
  1120. return this.columnIdExecution;
  1121. }
  1122. }
  1123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1125. public global::System.Data.DataColumn IdRequestColumn {
  1126. get {
  1127. return this.columnIdRequest;
  1128. }
  1129. }
  1130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1132. public global::System.Data.DataColumn IdMasterColumn {
  1133. get {
  1134. return this.columnIdMaster;
  1135. }
  1136. }
  1137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1139. [global::System.ComponentModel.Browsable(false)]
  1140. public int Count {
  1141. get {
  1142. return this.Rows.Count;
  1143. }
  1144. }
  1145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1147. public ExecutionRequestRow this[int index] {
  1148. get {
  1149. return ((ExecutionRequestRow)(this.Rows[index]));
  1150. }
  1151. }
  1152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1153. public event ExecutionRequestRowChangeEventHandler ExecutionRequestRowChanging;
  1154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1155. public event ExecutionRequestRowChangeEventHandler ExecutionRequestRowChanged;
  1156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1157. public event ExecutionRequestRowChangeEventHandler ExecutionRequestRowDeleting;
  1158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1159. public event ExecutionRequestRowChangeEventHandler ExecutionRequestRowDeleted;
  1160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1162. public void AddExecutionRequestRow(ExecutionRequestRow row) {
  1163. this.Rows.Add(row);
  1164. }
  1165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1167. public ExecutionRequestRow AddExecutionRequestRow(RequestRow parentRequestRowByFK_ExecutionRequest_Request, EmployeeRow parentEmployeeRowByFK_ExecutionRequest_Employee) {
  1168. ExecutionRequestRow rowExecutionRequestRow = ((ExecutionRequestRow)(this.NewRow()));
  1169. object[] columnValuesArray = new object[] {
  1170. null,
  1171. null,
  1172. null};
  1173. if ((parentRequestRowByFK_ExecutionRequest_Request != null)) {
  1174. columnValuesArray[1] = parentRequestRowByFK_ExecutionRequest_Request[0];
  1175. }
  1176. if ((parentEmployeeRowByFK_ExecutionRequest_Employee != null)) {
  1177. columnValuesArray[2] = parentEmployeeRowByFK_ExecutionRequest_Employee[0];
  1178. }
  1179. rowExecutionRequestRow.ItemArray = columnValuesArray;
  1180. this.Rows.Add(rowExecutionRequestRow);
  1181. return rowExecutionRequestRow;
  1182. }
  1183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1185. public ExecutionRequestRow FindByIdExecution(int IdExecution) {
  1186. return ((ExecutionRequestRow)(this.Rows.Find(new object[] {
  1187. IdExecution})));
  1188. }
  1189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1191. public override global::System.Data.DataTable Clone() {
  1192. ExecutionRequestDataTable cln = ((ExecutionRequestDataTable)(base.Clone()));
  1193. cln.InitVars();
  1194. return cln;
  1195. }
  1196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1198. protected override global::System.Data.DataTable CreateInstance() {
  1199. return new ExecutionRequestDataTable();
  1200. }
  1201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1203. internal void InitVars() {
  1204. this.columnIdExecution = base.Columns["IdExecution"];
  1205. this.columnIdRequest = base.Columns["IdRequest"];
  1206. this.columnIdMaster = base.Columns["IdMaster"];
  1207. }
  1208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1210. private void InitClass() {
  1211. this.columnIdExecution = new global::System.Data.DataColumn("IdExecution", typeof(int), null, global::System.Data.MappingType.Element);
  1212. base.Columns.Add(this.columnIdExecution);
  1213. this.columnIdRequest = new global::System.Data.DataColumn("IdRequest", typeof(int), null, global::System.Data.MappingType.Element);
  1214. base.Columns.Add(this.columnIdRequest);
  1215. this.columnIdMaster = new global::System.Data.DataColumn("IdMaster", typeof(int), null, global::System.Data.MappingType.Element);
  1216. base.Columns.Add(this.columnIdMaster);
  1217. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1218. this.columnIdExecution}, true));
  1219. this.columnIdExecution.AutoIncrement = true;
  1220. this.columnIdExecution.AutoIncrementSeed = -1;
  1221. this.columnIdExecution.AutoIncrementStep = -1;
  1222. this.columnIdExecution.AllowDBNull = false;
  1223. this.columnIdExecution.ReadOnly = true;
  1224. this.columnIdExecution.Unique = true;
  1225. }
  1226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1228. public ExecutionRequestRow NewExecutionRequestRow() {
  1229. return ((ExecutionRequestRow)(this.NewRow()));
  1230. }
  1231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1233. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1234. return new ExecutionRequestRow(builder);
  1235. }
  1236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1238. protected override global::System.Type GetRowType() {
  1239. return typeof(ExecutionRequestRow);
  1240. }
  1241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1243. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1244. base.OnRowChanged(e);
  1245. if ((this.ExecutionRequestRowChanged != null)) {
  1246. this.ExecutionRequestRowChanged(this, new ExecutionRequestRowChangeEvent(((ExecutionRequestRow)(e.Row)), e.Action));
  1247. }
  1248. }
  1249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1251. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1252. base.OnRowChanging(e);
  1253. if ((this.ExecutionRequestRowChanging != null)) {
  1254. this.ExecutionRequestRowChanging(this, new ExecutionRequestRowChangeEvent(((ExecutionRequestRow)(e.Row)), e.Action));
  1255. }
  1256. }
  1257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1259. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1260. base.OnRowDeleted(e);
  1261. if ((this.ExecutionRequestRowDeleted != null)) {
  1262. this.ExecutionRequestRowDeleted(this, new ExecutionRequestRowChangeEvent(((ExecutionRequestRow)(e.Row)), e.Action));
  1263. }
  1264. }
  1265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1267. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1268. base.OnRowDeleting(e);
  1269. if ((this.ExecutionRequestRowDeleting != null)) {
  1270. this.ExecutionRequestRowDeleting(this, new ExecutionRequestRowChangeEvent(((ExecutionRequestRow)(e.Row)), e.Action));
  1271. }
  1272. }
  1273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1275. public void RemoveExecutionRequestRow(ExecutionRequestRow row) {
  1276. this.Rows.Remove(row);
  1277. }
  1278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1280. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1281. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1282. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1283. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  1284. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1285. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1286. any1.MinOccurs = new decimal(0);
  1287. any1.MaxOccurs = decimal.MaxValue;
  1288. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1289. sequence.Items.Add(any1);
  1290. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1291. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1292. any2.MinOccurs = new decimal(1);
  1293. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1294. sequence.Items.Add(any2);
  1295. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1296. attribute1.Name = "namespace";
  1297. attribute1.FixedValue = ds.Namespace;
  1298. type.Attributes.Add(attribute1);
  1299. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1300. attribute2.Name = "tableTypeName";
  1301. attribute2.FixedValue = "ExecutionRequestDataTable";
  1302. type.Attributes.Add(attribute2);
  1303. type.Particle = sequence;
  1304. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1305. if (xs.Contains(dsSchema.TargetNamespace)) {
  1306. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1307. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1308. try {
  1309. global::System.Xml.Schema.XmlSchema schema = null;
  1310. dsSchema.Write(s1);
  1311. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1312. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1313. s2.SetLength(0);
  1314. schema.Write(s2);
  1315. if ((s1.Length == s2.Length)) {
  1316. s1.Position = 0;
  1317. s2.Position = 0;
  1318. for (; ((s1.Position != s1.Length)
  1319. && (s1.ReadByte() == s2.ReadByte())); ) {
  1320. ;
  1321. }
  1322. if ((s1.Position == s1.Length)) {
  1323. return type;
  1324. }
  1325. }
  1326. }
  1327. }
  1328. finally {
  1329. if ((s1 != null)) {
  1330. s1.Close();
  1331. }
  1332. if ((s2 != null)) {
  1333. s2.Close();
  1334. }
  1335. }
  1336. }
  1337. xs.Add(dsSchema);
  1338. return type;
  1339. }
  1340. }
  1341. /// <summary>
  1342. ///Represents the strongly named DataTable class.
  1343. ///</summary>
  1344. [global::System.Serializable()]
  1345. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1346. public partial class RequestDataTable : global::System.Data.TypedTableBase<RequestRow> {
  1347. private global::System.Data.DataColumn columnIdRequest;
  1348. private global::System.Data.DataColumn columnIdStatus;
  1349. private global::System.Data.DataColumn columnIdTypeDefect;
  1350. private global::System.Data.DataColumn columnIdClient;
  1351. private global::System.Data.DataColumn columnIdManager;
  1352. private global::System.Data.DataColumn columnDateAccepting;
  1353. private global::System.Data.DataColumn columnDateCompletion;
  1354. private global::System.Data.DataColumn columnEquipmentDefect;
  1355. private global::System.Data.DataColumn columnDescription;
  1356. private global::System.Data.DataColumn columnComment;
  1357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1359. public RequestDataTable() {
  1360. this.TableName = "Request";
  1361. this.BeginInit();
  1362. this.InitClass();
  1363. this.EndInit();
  1364. }
  1365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1367. internal RequestDataTable(global::System.Data.DataTable table) {
  1368. this.TableName = table.TableName;
  1369. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1370. this.CaseSensitive = table.CaseSensitive;
  1371. }
  1372. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1373. this.Locale = table.Locale;
  1374. }
  1375. if ((table.Namespace != table.DataSet.Namespace)) {
  1376. this.Namespace = table.Namespace;
  1377. }
  1378. this.Prefix = table.Prefix;
  1379. this.MinimumCapacity = table.MinimumCapacity;
  1380. }
  1381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1383. protected RequestDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1384. base(info, context) {
  1385. this.InitVars();
  1386. }
  1387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1389. public global::System.Data.DataColumn IdRequestColumn {
  1390. get {
  1391. return this.columnIdRequest;
  1392. }
  1393. }
  1394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1396. public global::System.Data.DataColumn IdStatusColumn {
  1397. get {
  1398. return this.columnIdStatus;
  1399. }
  1400. }
  1401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1403. public global::System.Data.DataColumn IdTypeDefectColumn {
  1404. get {
  1405. return this.columnIdTypeDefect;
  1406. }
  1407. }
  1408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1410. public global::System.Data.DataColumn IdClientColumn {
  1411. get {
  1412. return this.columnIdClient;
  1413. }
  1414. }
  1415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1417. public global::System.Data.DataColumn IdManagerColumn {
  1418. get {
  1419. return this.columnIdManager;
  1420. }
  1421. }
  1422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1424. public global::System.Data.DataColumn DateAcceptingColumn {
  1425. get {
  1426. return this.columnDateAccepting;
  1427. }
  1428. }
  1429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1431. public global::System.Data.DataColumn DateCompletionColumn {
  1432. get {
  1433. return this.columnDateCompletion;
  1434. }
  1435. }
  1436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1438. public global::System.Data.DataColumn EquipmentDefectColumn {
  1439. get {
  1440. return this.columnEquipmentDefect;
  1441. }
  1442. }
  1443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1445. public global::System.Data.DataColumn DescriptionColumn {
  1446. get {
  1447. return this.columnDescription;
  1448. }
  1449. }
  1450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1452. public global::System.Data.DataColumn CommentColumn {
  1453. get {
  1454. return this.columnComment;
  1455. }
  1456. }
  1457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1459. [global::System.ComponentModel.Browsable(false)]
  1460. public int Count {
  1461. get {
  1462. return this.Rows.Count;
  1463. }
  1464. }
  1465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1467. public RequestRow this[int index] {
  1468. get {
  1469. return ((RequestRow)(this.Rows[index]));
  1470. }
  1471. }
  1472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1473. public event RequestRowChangeEventHandler RequestRowChanging;
  1474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1475. public event RequestRowChangeEventHandler RequestRowChanged;
  1476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1477. public event RequestRowChangeEventHandler RequestRowDeleting;
  1478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1479. public event RequestRowChangeEventHandler RequestRowDeleted;
  1480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1482. public void AddRequestRow(RequestRow row) {
  1483. this.Rows.Add(row);
  1484. }
  1485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1487. 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) {
  1488. RequestRow rowRequestRow = ((RequestRow)(this.NewRow()));
  1489. object[] columnValuesArray = new object[] {
  1490. null,
  1491. null,
  1492. null,
  1493. null,
  1494. null,
  1495. DateAccepting,
  1496. DateCompletion,
  1497. EquipmentDefect,
  1498. Description,
  1499. Comment};
  1500. if ((parentStatusRowByFK_Request_Status != null)) {
  1501. columnValuesArray[1] = parentStatusRowByFK_Request_Status[0];
  1502. }
  1503. if ((parentTypeDefectRowByFK_Request_TypeDefect != null)) {
  1504. columnValuesArray[2] = parentTypeDefectRowByFK_Request_TypeDefect[0];
  1505. }
  1506. if ((parentClientRowByFK_Request_Client != null)) {
  1507. columnValuesArray[3] = parentClientRowByFK_Request_Client[0];
  1508. }
  1509. if ((parentEmployeeRowByFK_Request_Employee != null)) {
  1510. columnValuesArray[4] = parentEmployeeRowByFK_Request_Employee[0];
  1511. }
  1512. rowRequestRow.ItemArray = columnValuesArray;
  1513. this.Rows.Add(rowRequestRow);
  1514. return rowRequestRow;
  1515. }
  1516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1518. public RequestRow FindByIdRequest(int IdRequest) {
  1519. return ((RequestRow)(this.Rows.Find(new object[] {
  1520. IdRequest})));
  1521. }
  1522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1524. public override global::System.Data.DataTable Clone() {
  1525. RequestDataTable cln = ((RequestDataTable)(base.Clone()));
  1526. cln.InitVars();
  1527. return cln;
  1528. }
  1529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1531. protected override global::System.Data.DataTable CreateInstance() {
  1532. return new RequestDataTable();
  1533. }
  1534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1536. internal void InitVars() {
  1537. this.columnIdRequest = base.Columns["IdRequest"];
  1538. this.columnIdStatus = base.Columns["IdStatus"];
  1539. this.columnIdTypeDefect = base.Columns["IdTypeDefect"];
  1540. this.columnIdClient = base.Columns["IdClient"];
  1541. this.columnIdManager = base.Columns["IdManager"];
  1542. this.columnDateAccepting = base.Columns["DateAccepting"];
  1543. this.columnDateCompletion = base.Columns["DateCompletion"];
  1544. this.columnEquipmentDefect = base.Columns["EquipmentDefect"];
  1545. this.columnDescription = base.Columns["Description"];
  1546. this.columnComment = base.Columns["Comment"];
  1547. }
  1548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1550. private void InitClass() {
  1551. this.columnIdRequest = new global::System.Data.DataColumn("IdRequest", typeof(int), null, global::System.Data.MappingType.Element);
  1552. base.Columns.Add(this.columnIdRequest);
  1553. this.columnIdStatus = new global::System.Data.DataColumn("IdStatus", typeof(int), null, global::System.Data.MappingType.Element);
  1554. base.Columns.Add(this.columnIdStatus);
  1555. this.columnIdTypeDefect = new global::System.Data.DataColumn("IdTypeDefect", typeof(int), null, global::System.Data.MappingType.Element);
  1556. base.Columns.Add(this.columnIdTypeDefect);
  1557. this.columnIdClient = new global::System.Data.DataColumn("IdClient", typeof(int), null, global::System.Data.MappingType.Element);
  1558. base.Columns.Add(this.columnIdClient);
  1559. this.columnIdManager = new global::System.Data.DataColumn("IdManager", typeof(int), null, global::System.Data.MappingType.Element);
  1560. base.Columns.Add(this.columnIdManager);
  1561. this.columnDateAccepting = new global::System.Data.DataColumn("DateAccepting", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1562. base.Columns.Add(this.columnDateAccepting);
  1563. this.columnDateCompletion = new global::System.Data.DataColumn("DateCompletion", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1564. base.Columns.Add(this.columnDateCompletion);
  1565. this.columnEquipmentDefect = new global::System.Data.DataColumn("EquipmentDefect", typeof(string), null, global::System.Data.MappingType.Element);
  1566. base.Columns.Add(this.columnEquipmentDefect);
  1567. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  1568. base.Columns.Add(this.columnDescription);
  1569. this.columnComment = new global::System.Data.DataColumn("Comment", typeof(string), null, global::System.Data.MappingType.Element);
  1570. base.Columns.Add(this.columnComment);
  1571. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1572. this.columnIdRequest}, true));
  1573. this.columnIdRequest.AutoIncrement = true;
  1574. this.columnIdRequest.AutoIncrementSeed = -1;
  1575. this.columnIdRequest.AutoIncrementStep = -1;
  1576. this.columnIdRequest.AllowDBNull = false;
  1577. this.columnIdRequest.ReadOnly = true;
  1578. this.columnIdRequest.Unique = true;
  1579. this.columnEquipmentDefect.MaxLength = 100;
  1580. this.columnDescription.MaxLength = 2147483647;
  1581. this.columnComment.MaxLength = 2147483647;
  1582. }
  1583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1585. public RequestRow NewRequestRow() {
  1586. return ((RequestRow)(this.NewRow()));
  1587. }
  1588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1590. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1591. return new RequestRow(builder);
  1592. }
  1593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1595. protected override global::System.Type GetRowType() {
  1596. return typeof(RequestRow);
  1597. }
  1598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1600. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1601. base.OnRowChanged(e);
  1602. if ((this.RequestRowChanged != null)) {
  1603. this.RequestRowChanged(this, new RequestRowChangeEvent(((RequestRow)(e.Row)), e.Action));
  1604. }
  1605. }
  1606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1608. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1609. base.OnRowChanging(e);
  1610. if ((this.RequestRowChanging != null)) {
  1611. this.RequestRowChanging(this, new RequestRowChangeEvent(((RequestRow)(e.Row)), e.Action));
  1612. }
  1613. }
  1614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1616. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1617. base.OnRowDeleted(e);
  1618. if ((this.RequestRowDeleted != null)) {
  1619. this.RequestRowDeleted(this, new RequestRowChangeEvent(((RequestRow)(e.Row)), e.Action));
  1620. }
  1621. }
  1622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1624. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1625. base.OnRowDeleting(e);
  1626. if ((this.RequestRowDeleting != null)) {
  1627. this.RequestRowDeleting(this, new RequestRowChangeEvent(((RequestRow)(e.Row)), e.Action));
  1628. }
  1629. }
  1630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1632. public void RemoveRequestRow(RequestRow row) {
  1633. this.Rows.Remove(row);
  1634. }
  1635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1637. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1638. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1639. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1640. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  1641. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1642. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1643. any1.MinOccurs = new decimal(0);
  1644. any1.MaxOccurs = decimal.MaxValue;
  1645. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1646. sequence.Items.Add(any1);
  1647. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1648. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1649. any2.MinOccurs = new decimal(1);
  1650. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1651. sequence.Items.Add(any2);
  1652. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1653. attribute1.Name = "namespace";
  1654. attribute1.FixedValue = ds.Namespace;
  1655. type.Attributes.Add(attribute1);
  1656. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1657. attribute2.Name = "tableTypeName";
  1658. attribute2.FixedValue = "RequestDataTable";
  1659. type.Attributes.Add(attribute2);
  1660. type.Particle = sequence;
  1661. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1662. if (xs.Contains(dsSchema.TargetNamespace)) {
  1663. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1664. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1665. try {
  1666. global::System.Xml.Schema.XmlSchema schema = null;
  1667. dsSchema.Write(s1);
  1668. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1669. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1670. s2.SetLength(0);
  1671. schema.Write(s2);
  1672. if ((s1.Length == s2.Length)) {
  1673. s1.Position = 0;
  1674. s2.Position = 0;
  1675. for (; ((s1.Position != s1.Length)
  1676. && (s1.ReadByte() == s2.ReadByte())); ) {
  1677. ;
  1678. }
  1679. if ((s1.Position == s1.Length)) {
  1680. return type;
  1681. }
  1682. }
  1683. }
  1684. }
  1685. finally {
  1686. if ((s1 != null)) {
  1687. s1.Close();
  1688. }
  1689. if ((s2 != null)) {
  1690. s2.Close();
  1691. }
  1692. }
  1693. }
  1694. xs.Add(dsSchema);
  1695. return type;
  1696. }
  1697. }
  1698. /// <summary>
  1699. ///Represents the strongly named DataTable class.
  1700. ///</summary>
  1701. [global::System.Serializable()]
  1702. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1703. public partial class RoleDataTable : global::System.Data.TypedTableBase<RoleRow> {
  1704. private global::System.Data.DataColumn columnIdRole;
  1705. private global::System.Data.DataColumn columnTitle;
  1706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1708. public RoleDataTable() {
  1709. this.TableName = "Role";
  1710. this.BeginInit();
  1711. this.InitClass();
  1712. this.EndInit();
  1713. }
  1714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1716. internal RoleDataTable(global::System.Data.DataTable table) {
  1717. this.TableName = table.TableName;
  1718. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1719. this.CaseSensitive = table.CaseSensitive;
  1720. }
  1721. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1722. this.Locale = table.Locale;
  1723. }
  1724. if ((table.Namespace != table.DataSet.Namespace)) {
  1725. this.Namespace = table.Namespace;
  1726. }
  1727. this.Prefix = table.Prefix;
  1728. this.MinimumCapacity = table.MinimumCapacity;
  1729. }
  1730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1732. protected RoleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1733. base(info, context) {
  1734. this.InitVars();
  1735. }
  1736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1738. public global::System.Data.DataColumn IdRoleColumn {
  1739. get {
  1740. return this.columnIdRole;
  1741. }
  1742. }
  1743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1745. public global::System.Data.DataColumn TitleColumn {
  1746. get {
  1747. return this.columnTitle;
  1748. }
  1749. }
  1750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1752. [global::System.ComponentModel.Browsable(false)]
  1753. public int Count {
  1754. get {
  1755. return this.Rows.Count;
  1756. }
  1757. }
  1758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1760. public RoleRow this[int index] {
  1761. get {
  1762. return ((RoleRow)(this.Rows[index]));
  1763. }
  1764. }
  1765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1766. public event RoleRowChangeEventHandler RoleRowChanging;
  1767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1768. public event RoleRowChangeEventHandler RoleRowChanged;
  1769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1770. public event RoleRowChangeEventHandler RoleRowDeleting;
  1771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1772. public event RoleRowChangeEventHandler RoleRowDeleted;
  1773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1775. public void AddRoleRow(RoleRow row) {
  1776. this.Rows.Add(row);
  1777. }
  1778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1780. public RoleRow AddRoleRow(string Title) {
  1781. RoleRow rowRoleRow = ((RoleRow)(this.NewRow()));
  1782. object[] columnValuesArray = new object[] {
  1783. null,
  1784. Title};
  1785. rowRoleRow.ItemArray = columnValuesArray;
  1786. this.Rows.Add(rowRoleRow);
  1787. return rowRoleRow;
  1788. }
  1789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1791. public RoleRow FindByIdRole(int IdRole) {
  1792. return ((RoleRow)(this.Rows.Find(new object[] {
  1793. IdRole})));
  1794. }
  1795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1797. public override global::System.Data.DataTable Clone() {
  1798. RoleDataTable cln = ((RoleDataTable)(base.Clone()));
  1799. cln.InitVars();
  1800. return cln;
  1801. }
  1802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1804. protected override global::System.Data.DataTable CreateInstance() {
  1805. return new RoleDataTable();
  1806. }
  1807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1809. internal void InitVars() {
  1810. this.columnIdRole = base.Columns["IdRole"];
  1811. this.columnTitle = base.Columns["Title"];
  1812. }
  1813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1815. private void InitClass() {
  1816. this.columnIdRole = new global::System.Data.DataColumn("IdRole", typeof(int), null, global::System.Data.MappingType.Element);
  1817. base.Columns.Add(this.columnIdRole);
  1818. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  1819. base.Columns.Add(this.columnTitle);
  1820. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1821. this.columnIdRole}, true));
  1822. this.columnIdRole.AutoIncrement = true;
  1823. this.columnIdRole.AutoIncrementSeed = -1;
  1824. this.columnIdRole.AutoIncrementStep = -1;
  1825. this.columnIdRole.AllowDBNull = false;
  1826. this.columnIdRole.ReadOnly = true;
  1827. this.columnIdRole.Unique = true;
  1828. this.columnTitle.MaxLength = 50;
  1829. }
  1830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1832. public RoleRow NewRoleRow() {
  1833. return ((RoleRow)(this.NewRow()));
  1834. }
  1835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1837. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1838. return new RoleRow(builder);
  1839. }
  1840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1842. protected override global::System.Type GetRowType() {
  1843. return typeof(RoleRow);
  1844. }
  1845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1847. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1848. base.OnRowChanged(e);
  1849. if ((this.RoleRowChanged != null)) {
  1850. this.RoleRowChanged(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1851. }
  1852. }
  1853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1855. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1856. base.OnRowChanging(e);
  1857. if ((this.RoleRowChanging != null)) {
  1858. this.RoleRowChanging(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1859. }
  1860. }
  1861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1863. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1864. base.OnRowDeleted(e);
  1865. if ((this.RoleRowDeleted != null)) {
  1866. this.RoleRowDeleted(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1867. }
  1868. }
  1869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1871. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1872. base.OnRowDeleting(e);
  1873. if ((this.RoleRowDeleting != null)) {
  1874. this.RoleRowDeleting(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1875. }
  1876. }
  1877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1879. public void RemoveRoleRow(RoleRow row) {
  1880. this.Rows.Remove(row);
  1881. }
  1882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1884. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1885. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1886. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1887. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  1888. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1889. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1890. any1.MinOccurs = new decimal(0);
  1891. any1.MaxOccurs = decimal.MaxValue;
  1892. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1893. sequence.Items.Add(any1);
  1894. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1895. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1896. any2.MinOccurs = new decimal(1);
  1897. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1898. sequence.Items.Add(any2);
  1899. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1900. attribute1.Name = "namespace";
  1901. attribute1.FixedValue = ds.Namespace;
  1902. type.Attributes.Add(attribute1);
  1903. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1904. attribute2.Name = "tableTypeName";
  1905. attribute2.FixedValue = "RoleDataTable";
  1906. type.Attributes.Add(attribute2);
  1907. type.Particle = sequence;
  1908. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1909. if (xs.Contains(dsSchema.TargetNamespace)) {
  1910. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1911. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1912. try {
  1913. global::System.Xml.Schema.XmlSchema schema = null;
  1914. dsSchema.Write(s1);
  1915. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1916. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1917. s2.SetLength(0);
  1918. schema.Write(s2);
  1919. if ((s1.Length == s2.Length)) {
  1920. s1.Position = 0;
  1921. s2.Position = 0;
  1922. for (; ((s1.Position != s1.Length)
  1923. && (s1.ReadByte() == s2.ReadByte())); ) {
  1924. ;
  1925. }
  1926. if ((s1.Position == s1.Length)) {
  1927. return type;
  1928. }
  1929. }
  1930. }
  1931. }
  1932. finally {
  1933. if ((s1 != null)) {
  1934. s1.Close();
  1935. }
  1936. if ((s2 != null)) {
  1937. s2.Close();
  1938. }
  1939. }
  1940. }
  1941. xs.Add(dsSchema);
  1942. return type;
  1943. }
  1944. }
  1945. /// <summary>
  1946. ///Represents the strongly named DataTable class.
  1947. ///</summary>
  1948. [global::System.Serializable()]
  1949. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1950. public partial class StatusDataTable : global::System.Data.TypedTableBase<StatusRow> {
  1951. private global::System.Data.DataColumn columnIdStatus;
  1952. private global::System.Data.DataColumn columnTitle;
  1953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1955. public StatusDataTable() {
  1956. this.TableName = "Status";
  1957. this.BeginInit();
  1958. this.InitClass();
  1959. this.EndInit();
  1960. }
  1961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1963. internal StatusDataTable(global::System.Data.DataTable table) {
  1964. this.TableName = table.TableName;
  1965. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1966. this.CaseSensitive = table.CaseSensitive;
  1967. }
  1968. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1969. this.Locale = table.Locale;
  1970. }
  1971. if ((table.Namespace != table.DataSet.Namespace)) {
  1972. this.Namespace = table.Namespace;
  1973. }
  1974. this.Prefix = table.Prefix;
  1975. this.MinimumCapacity = table.MinimumCapacity;
  1976. }
  1977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1979. protected StatusDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1980. base(info, context) {
  1981. this.InitVars();
  1982. }
  1983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1985. public global::System.Data.DataColumn IdStatusColumn {
  1986. get {
  1987. return this.columnIdStatus;
  1988. }
  1989. }
  1990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1992. public global::System.Data.DataColumn TitleColumn {
  1993. get {
  1994. return this.columnTitle;
  1995. }
  1996. }
  1997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1999. [global::System.ComponentModel.Browsable(false)]
  2000. public int Count {
  2001. get {
  2002. return this.Rows.Count;
  2003. }
  2004. }
  2005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2007. public StatusRow this[int index] {
  2008. get {
  2009. return ((StatusRow)(this.Rows[index]));
  2010. }
  2011. }
  2012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2013. public event StatusRowChangeEventHandler StatusRowChanging;
  2014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2015. public event StatusRowChangeEventHandler StatusRowChanged;
  2016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2017. public event StatusRowChangeEventHandler StatusRowDeleting;
  2018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2019. public event StatusRowChangeEventHandler StatusRowDeleted;
  2020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2022. public void AddStatusRow(StatusRow row) {
  2023. this.Rows.Add(row);
  2024. }
  2025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2027. public StatusRow AddStatusRow(string Title) {
  2028. StatusRow rowStatusRow = ((StatusRow)(this.NewRow()));
  2029. object[] columnValuesArray = new object[] {
  2030. null,
  2031. Title};
  2032. rowStatusRow.ItemArray = columnValuesArray;
  2033. this.Rows.Add(rowStatusRow);
  2034. return rowStatusRow;
  2035. }
  2036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2038. public StatusRow FindByIdStatus(int IdStatus) {
  2039. return ((StatusRow)(this.Rows.Find(new object[] {
  2040. IdStatus})));
  2041. }
  2042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2044. public override global::System.Data.DataTable Clone() {
  2045. StatusDataTable cln = ((StatusDataTable)(base.Clone()));
  2046. cln.InitVars();
  2047. return cln;
  2048. }
  2049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2051. protected override global::System.Data.DataTable CreateInstance() {
  2052. return new StatusDataTable();
  2053. }
  2054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2056. internal void InitVars() {
  2057. this.columnIdStatus = base.Columns["IdStatus"];
  2058. this.columnTitle = base.Columns["Title"];
  2059. }
  2060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2062. private void InitClass() {
  2063. this.columnIdStatus = new global::System.Data.DataColumn("IdStatus", typeof(int), null, global::System.Data.MappingType.Element);
  2064. base.Columns.Add(this.columnIdStatus);
  2065. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2066. base.Columns.Add(this.columnTitle);
  2067. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2068. this.columnIdStatus}, true));
  2069. this.columnIdStatus.AutoIncrement = true;
  2070. this.columnIdStatus.AutoIncrementSeed = -1;
  2071. this.columnIdStatus.AutoIncrementStep = -1;
  2072. this.columnIdStatus.AllowDBNull = false;
  2073. this.columnIdStatus.ReadOnly = true;
  2074. this.columnIdStatus.Unique = true;
  2075. this.columnTitle.MaxLength = 50;
  2076. }
  2077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2079. public StatusRow NewStatusRow() {
  2080. return ((StatusRow)(this.NewRow()));
  2081. }
  2082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2084. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2085. return new StatusRow(builder);
  2086. }
  2087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2089. protected override global::System.Type GetRowType() {
  2090. return typeof(StatusRow);
  2091. }
  2092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2094. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2095. base.OnRowChanged(e);
  2096. if ((this.StatusRowChanged != null)) {
  2097. this.StatusRowChanged(this, new StatusRowChangeEvent(((StatusRow)(e.Row)), e.Action));
  2098. }
  2099. }
  2100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2102. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2103. base.OnRowChanging(e);
  2104. if ((this.StatusRowChanging != null)) {
  2105. this.StatusRowChanging(this, new StatusRowChangeEvent(((StatusRow)(e.Row)), e.Action));
  2106. }
  2107. }
  2108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2110. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2111. base.OnRowDeleted(e);
  2112. if ((this.StatusRowDeleted != null)) {
  2113. this.StatusRowDeleted(this, new StatusRowChangeEvent(((StatusRow)(e.Row)), e.Action));
  2114. }
  2115. }
  2116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2118. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2119. base.OnRowDeleting(e);
  2120. if ((this.StatusRowDeleting != null)) {
  2121. this.StatusRowDeleting(this, new StatusRowChangeEvent(((StatusRow)(e.Row)), e.Action));
  2122. }
  2123. }
  2124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2126. public void RemoveStatusRow(StatusRow row) {
  2127. this.Rows.Remove(row);
  2128. }
  2129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2131. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2132. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2133. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2134. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  2135. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2136. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2137. any1.MinOccurs = new decimal(0);
  2138. any1.MaxOccurs = decimal.MaxValue;
  2139. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2140. sequence.Items.Add(any1);
  2141. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2142. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2143. any2.MinOccurs = new decimal(1);
  2144. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2145. sequence.Items.Add(any2);
  2146. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2147. attribute1.Name = "namespace";
  2148. attribute1.FixedValue = ds.Namespace;
  2149. type.Attributes.Add(attribute1);
  2150. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2151. attribute2.Name = "tableTypeName";
  2152. attribute2.FixedValue = "StatusDataTable";
  2153. type.Attributes.Add(attribute2);
  2154. type.Particle = sequence;
  2155. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2156. if (xs.Contains(dsSchema.TargetNamespace)) {
  2157. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2158. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2159. try {
  2160. global::System.Xml.Schema.XmlSchema schema = null;
  2161. dsSchema.Write(s1);
  2162. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2163. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2164. s2.SetLength(0);
  2165. schema.Write(s2);
  2166. if ((s1.Length == s2.Length)) {
  2167. s1.Position = 0;
  2168. s2.Position = 0;
  2169. for (; ((s1.Position != s1.Length)
  2170. && (s1.ReadByte() == s2.ReadByte())); ) {
  2171. ;
  2172. }
  2173. if ((s1.Position == s1.Length)) {
  2174. return type;
  2175. }
  2176. }
  2177. }
  2178. }
  2179. finally {
  2180. if ((s1 != null)) {
  2181. s1.Close();
  2182. }
  2183. if ((s2 != null)) {
  2184. s2.Close();
  2185. }
  2186. }
  2187. }
  2188. xs.Add(dsSchema);
  2189. return type;
  2190. }
  2191. }
  2192. /// <summary>
  2193. ///Represents the strongly named DataTable class.
  2194. ///</summary>
  2195. [global::System.Serializable()]
  2196. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2197. public partial class TypeDefectDataTable : global::System.Data.TypedTableBase<TypeDefectRow> {
  2198. private global::System.Data.DataColumn columnIdTypeDefect;
  2199. private global::System.Data.DataColumn columnTitle;
  2200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2202. public TypeDefectDataTable() {
  2203. this.TableName = "TypeDefect";
  2204. this.BeginInit();
  2205. this.InitClass();
  2206. this.EndInit();
  2207. }
  2208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2210. internal TypeDefectDataTable(global::System.Data.DataTable table) {
  2211. this.TableName = table.TableName;
  2212. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2213. this.CaseSensitive = table.CaseSensitive;
  2214. }
  2215. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2216. this.Locale = table.Locale;
  2217. }
  2218. if ((table.Namespace != table.DataSet.Namespace)) {
  2219. this.Namespace = table.Namespace;
  2220. }
  2221. this.Prefix = table.Prefix;
  2222. this.MinimumCapacity = table.MinimumCapacity;
  2223. }
  2224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2226. protected TypeDefectDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2227. base(info, context) {
  2228. this.InitVars();
  2229. }
  2230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2232. public global::System.Data.DataColumn IdTypeDefectColumn {
  2233. get {
  2234. return this.columnIdTypeDefect;
  2235. }
  2236. }
  2237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2239. public global::System.Data.DataColumn TitleColumn {
  2240. get {
  2241. return this.columnTitle;
  2242. }
  2243. }
  2244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2246. [global::System.ComponentModel.Browsable(false)]
  2247. public int Count {
  2248. get {
  2249. return this.Rows.Count;
  2250. }
  2251. }
  2252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2254. public TypeDefectRow this[int index] {
  2255. get {
  2256. return ((TypeDefectRow)(this.Rows[index]));
  2257. }
  2258. }
  2259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2260. public event TypeDefectRowChangeEventHandler TypeDefectRowChanging;
  2261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2262. public event TypeDefectRowChangeEventHandler TypeDefectRowChanged;
  2263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2264. public event TypeDefectRowChangeEventHandler TypeDefectRowDeleting;
  2265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2266. public event TypeDefectRowChangeEventHandler TypeDefectRowDeleted;
  2267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2269. public void AddTypeDefectRow(TypeDefectRow row) {
  2270. this.Rows.Add(row);
  2271. }
  2272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2274. public TypeDefectRow AddTypeDefectRow(string Title) {
  2275. TypeDefectRow rowTypeDefectRow = ((TypeDefectRow)(this.NewRow()));
  2276. object[] columnValuesArray = new object[] {
  2277. null,
  2278. Title};
  2279. rowTypeDefectRow.ItemArray = columnValuesArray;
  2280. this.Rows.Add(rowTypeDefectRow);
  2281. return rowTypeDefectRow;
  2282. }
  2283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2285. public TypeDefectRow FindByIdTypeDefect(int IdTypeDefect) {
  2286. return ((TypeDefectRow)(this.Rows.Find(new object[] {
  2287. IdTypeDefect})));
  2288. }
  2289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2291. public override global::System.Data.DataTable Clone() {
  2292. TypeDefectDataTable cln = ((TypeDefectDataTable)(base.Clone()));
  2293. cln.InitVars();
  2294. return cln;
  2295. }
  2296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2298. protected override global::System.Data.DataTable CreateInstance() {
  2299. return new TypeDefectDataTable();
  2300. }
  2301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2303. internal void InitVars() {
  2304. this.columnIdTypeDefect = base.Columns["IdTypeDefect"];
  2305. this.columnTitle = base.Columns["Title"];
  2306. }
  2307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2309. private void InitClass() {
  2310. this.columnIdTypeDefect = new global::System.Data.DataColumn("IdTypeDefect", typeof(int), null, global::System.Data.MappingType.Element);
  2311. base.Columns.Add(this.columnIdTypeDefect);
  2312. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2313. base.Columns.Add(this.columnTitle);
  2314. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2315. this.columnIdTypeDefect}, true));
  2316. this.columnIdTypeDefect.AutoIncrement = true;
  2317. this.columnIdTypeDefect.AutoIncrementSeed = -1;
  2318. this.columnIdTypeDefect.AutoIncrementStep = -1;
  2319. this.columnIdTypeDefect.AllowDBNull = false;
  2320. this.columnIdTypeDefect.ReadOnly = true;
  2321. this.columnIdTypeDefect.Unique = true;
  2322. this.columnTitle.MaxLength = 50;
  2323. }
  2324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2326. public TypeDefectRow NewTypeDefectRow() {
  2327. return ((TypeDefectRow)(this.NewRow()));
  2328. }
  2329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2331. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2332. return new TypeDefectRow(builder);
  2333. }
  2334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2336. protected override global::System.Type GetRowType() {
  2337. return typeof(TypeDefectRow);
  2338. }
  2339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2341. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2342. base.OnRowChanged(e);
  2343. if ((this.TypeDefectRowChanged != null)) {
  2344. this.TypeDefectRowChanged(this, new TypeDefectRowChangeEvent(((TypeDefectRow)(e.Row)), e.Action));
  2345. }
  2346. }
  2347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2349. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2350. base.OnRowChanging(e);
  2351. if ((this.TypeDefectRowChanging != null)) {
  2352. this.TypeDefectRowChanging(this, new TypeDefectRowChangeEvent(((TypeDefectRow)(e.Row)), e.Action));
  2353. }
  2354. }
  2355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2357. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2358. base.OnRowDeleted(e);
  2359. if ((this.TypeDefectRowDeleted != null)) {
  2360. this.TypeDefectRowDeleted(this, new TypeDefectRowChangeEvent(((TypeDefectRow)(e.Row)), e.Action));
  2361. }
  2362. }
  2363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2365. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2366. base.OnRowDeleting(e);
  2367. if ((this.TypeDefectRowDeleting != null)) {
  2368. this.TypeDefectRowDeleting(this, new TypeDefectRowChangeEvent(((TypeDefectRow)(e.Row)), e.Action));
  2369. }
  2370. }
  2371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2373. public void RemoveTypeDefectRow(TypeDefectRow row) {
  2374. this.Rows.Remove(row);
  2375. }
  2376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2378. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2379. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2380. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2381. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  2382. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2383. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2384. any1.MinOccurs = new decimal(0);
  2385. any1.MaxOccurs = decimal.MaxValue;
  2386. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2387. sequence.Items.Add(any1);
  2388. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2389. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2390. any2.MinOccurs = new decimal(1);
  2391. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2392. sequence.Items.Add(any2);
  2393. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2394. attribute1.Name = "namespace";
  2395. attribute1.FixedValue = ds.Namespace;
  2396. type.Attributes.Add(attribute1);
  2397. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2398. attribute2.Name = "tableTypeName";
  2399. attribute2.FixedValue = "TypeDefectDataTable";
  2400. type.Attributes.Add(attribute2);
  2401. type.Particle = sequence;
  2402. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2403. if (xs.Contains(dsSchema.TargetNamespace)) {
  2404. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2405. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2406. try {
  2407. global::System.Xml.Schema.XmlSchema schema = null;
  2408. dsSchema.Write(s1);
  2409. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2410. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2411. s2.SetLength(0);
  2412. schema.Write(s2);
  2413. if ((s1.Length == s2.Length)) {
  2414. s1.Position = 0;
  2415. s2.Position = 0;
  2416. for (; ((s1.Position != s1.Length)
  2417. && (s1.ReadByte() == s2.ReadByte())); ) {
  2418. ;
  2419. }
  2420. if ((s1.Position == s1.Length)) {
  2421. return type;
  2422. }
  2423. }
  2424. }
  2425. }
  2426. finally {
  2427. if ((s1 != null)) {
  2428. s1.Close();
  2429. }
  2430. if ((s2 != null)) {
  2431. s2.Close();
  2432. }
  2433. }
  2434. }
  2435. xs.Add(dsSchema);
  2436. return type;
  2437. }
  2438. }
  2439. /// <summary>
  2440. ///Represents strongly named DataRow class.
  2441. ///</summary>
  2442. public partial class ClientRow : global::System.Data.DataRow {
  2443. private ClientDataTable tableClient;
  2444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2446. internal ClientRow(global::System.Data.DataRowBuilder rb) :
  2447. base(rb) {
  2448. this.tableClient = ((ClientDataTable)(this.Table));
  2449. }
  2450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2452. public int IdClient {
  2453. get {
  2454. return ((int)(this[this.tableClient.IdClientColumn]));
  2455. }
  2456. set {
  2457. this[this.tableClient.IdClientColumn] = value;
  2458. }
  2459. }
  2460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2462. public string Surname {
  2463. get {
  2464. try {
  2465. return ((string)(this[this.tableClient.SurnameColumn]));
  2466. }
  2467. catch (global::System.InvalidCastException e) {
  2468. throw new global::System.Data.StrongTypingException("Значение для столбца \'Surname\' в таблице \'Client\' равно DBNull.", e);
  2469. }
  2470. }
  2471. set {
  2472. this[this.tableClient.SurnameColumn] = value;
  2473. }
  2474. }
  2475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2477. public string Name {
  2478. get {
  2479. try {
  2480. return ((string)(this[this.tableClient.NameColumn]));
  2481. }
  2482. catch (global::System.InvalidCastException e) {
  2483. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Client\' равно DBNull.", e);
  2484. }
  2485. }
  2486. set {
  2487. this[this.tableClient.NameColumn] = value;
  2488. }
  2489. }
  2490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2492. public string Patronymic {
  2493. get {
  2494. try {
  2495. return ((string)(this[this.tableClient.PatronymicColumn]));
  2496. }
  2497. catch (global::System.InvalidCastException e) {
  2498. throw new global::System.Data.StrongTypingException("Значение для столбца \'Patronymic\' в таблице \'Client\' равно DBNull.", e);
  2499. }
  2500. }
  2501. set {
  2502. this[this.tableClient.PatronymicColumn] = value;
  2503. }
  2504. }
  2505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2507. public bool IsSurnameNull() {
  2508. return this.IsNull(this.tableClient.SurnameColumn);
  2509. }
  2510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2512. public void SetSurnameNull() {
  2513. this[this.tableClient.SurnameColumn] = global::System.Convert.DBNull;
  2514. }
  2515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2517. public bool IsNameNull() {
  2518. return this.IsNull(this.tableClient.NameColumn);
  2519. }
  2520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2522. public void SetNameNull() {
  2523. this[this.tableClient.NameColumn] = global::System.Convert.DBNull;
  2524. }
  2525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2527. public bool IsPatronymicNull() {
  2528. return this.IsNull(this.tableClient.PatronymicColumn);
  2529. }
  2530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2532. public void SetPatronymicNull() {
  2533. this[this.tableClient.PatronymicColumn] = global::System.Convert.DBNull;
  2534. }
  2535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2537. public RequestRow[] GetRequestRows() {
  2538. if ((this.Table.ChildRelations["FK_Request_Client"] == null)) {
  2539. return new RequestRow[0];
  2540. }
  2541. else {
  2542. return ((RequestRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Request_Client"])));
  2543. }
  2544. }
  2545. }
  2546. /// <summary>
  2547. ///Represents strongly named DataRow class.
  2548. ///</summary>
  2549. public partial class EmployeeRow : global::System.Data.DataRow {
  2550. private EmployeeDataTable tableEmployee;
  2551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2553. internal EmployeeRow(global::System.Data.DataRowBuilder rb) :
  2554. base(rb) {
  2555. this.tableEmployee = ((EmployeeDataTable)(this.Table));
  2556. }
  2557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2559. public int IdEmployee {
  2560. get {
  2561. return ((int)(this[this.tableEmployee.IdEmployeeColumn]));
  2562. }
  2563. set {
  2564. this[this.tableEmployee.IdEmployeeColumn] = value;
  2565. }
  2566. }
  2567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2569. public int IdRole {
  2570. get {
  2571. try {
  2572. return ((int)(this[this.tableEmployee.IdRoleColumn]));
  2573. }
  2574. catch (global::System.InvalidCastException e) {
  2575. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdRole\' в таблице \'Employee\' равно DBNull.", e);
  2576. }
  2577. }
  2578. set {
  2579. this[this.tableEmployee.IdRoleColumn] = value;
  2580. }
  2581. }
  2582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2584. public string Surname {
  2585. get {
  2586. try {
  2587. return ((string)(this[this.tableEmployee.SurnameColumn]));
  2588. }
  2589. catch (global::System.InvalidCastException e) {
  2590. throw new global::System.Data.StrongTypingException("Значение для столбца \'Surname\' в таблице \'Employee\' равно DBNull.", e);
  2591. }
  2592. }
  2593. set {
  2594. this[this.tableEmployee.SurnameColumn] = value;
  2595. }
  2596. }
  2597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2599. public string Name {
  2600. get {
  2601. try {
  2602. return ((string)(this[this.tableEmployee.NameColumn]));
  2603. }
  2604. catch (global::System.InvalidCastException e) {
  2605. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Employee\' равно DBNull.", e);
  2606. }
  2607. }
  2608. set {
  2609. this[this.tableEmployee.NameColumn] = value;
  2610. }
  2611. }
  2612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2614. public string Patronymic {
  2615. get {
  2616. try {
  2617. return ((string)(this[this.tableEmployee.PatronymicColumn]));
  2618. }
  2619. catch (global::System.InvalidCastException e) {
  2620. throw new global::System.Data.StrongTypingException("Значение для столбца \'Patronymic\' в таблице \'Employee\' равно DBNull.", e);
  2621. }
  2622. }
  2623. set {
  2624. this[this.tableEmployee.PatronymicColumn] = value;
  2625. }
  2626. }
  2627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2629. public string Login {
  2630. get {
  2631. try {
  2632. return ((string)(this[this.tableEmployee.LoginColumn]));
  2633. }
  2634. catch (global::System.InvalidCastException e) {
  2635. throw new global::System.Data.StrongTypingException("Значение для столбца \'Login\' в таблице \'Employee\' равно DBNull.", e);
  2636. }
  2637. }
  2638. set {
  2639. this[this.tableEmployee.LoginColumn] = value;
  2640. }
  2641. }
  2642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2644. public string Password {
  2645. get {
  2646. try {
  2647. return ((string)(this[this.tableEmployee.PasswordColumn]));
  2648. }
  2649. catch (global::System.InvalidCastException e) {
  2650. throw new global::System.Data.StrongTypingException("Значение для столбца \'Password\' в таблице \'Employee\' равно DBNull.", e);
  2651. }
  2652. }
  2653. set {
  2654. this[this.tableEmployee.PasswordColumn] = value;
  2655. }
  2656. }
  2657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2659. public string Photo {
  2660. get {
  2661. try {
  2662. return ((string)(this[this.tableEmployee.PhotoColumn]));
  2663. }
  2664. catch (global::System.InvalidCastException e) {
  2665. throw new global::System.Data.StrongTypingException("Значение для столбца \'Photo\' в таблице \'Employee\' равно DBNull.", e);
  2666. }
  2667. }
  2668. set {
  2669. this[this.tableEmployee.PhotoColumn] = value;
  2670. }
  2671. }
  2672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2674. public RoleRow RoleRow {
  2675. get {
  2676. return ((RoleRow)(this.GetParentRow(this.Table.ParentRelations["FK_Employee_Role"])));
  2677. }
  2678. set {
  2679. this.SetParentRow(value, this.Table.ParentRelations["FK_Employee_Role"]);
  2680. }
  2681. }
  2682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2684. public bool IsIdRoleNull() {
  2685. return this.IsNull(this.tableEmployee.IdRoleColumn);
  2686. }
  2687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2689. public void SetIdRoleNull() {
  2690. this[this.tableEmployee.IdRoleColumn] = global::System.Convert.DBNull;
  2691. }
  2692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2694. public bool IsSurnameNull() {
  2695. return this.IsNull(this.tableEmployee.SurnameColumn);
  2696. }
  2697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2699. public void SetSurnameNull() {
  2700. this[this.tableEmployee.SurnameColumn] = global::System.Convert.DBNull;
  2701. }
  2702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2704. public bool IsNameNull() {
  2705. return this.IsNull(this.tableEmployee.NameColumn);
  2706. }
  2707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2709. public void SetNameNull() {
  2710. this[this.tableEmployee.NameColumn] = global::System.Convert.DBNull;
  2711. }
  2712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2714. public bool IsPatronymicNull() {
  2715. return this.IsNull(this.tableEmployee.PatronymicColumn);
  2716. }
  2717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2719. public void SetPatronymicNull() {
  2720. this[this.tableEmployee.PatronymicColumn] = global::System.Convert.DBNull;
  2721. }
  2722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2724. public bool IsLoginNull() {
  2725. return this.IsNull(this.tableEmployee.LoginColumn);
  2726. }
  2727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2729. public void SetLoginNull() {
  2730. this[this.tableEmployee.LoginColumn] = global::System.Convert.DBNull;
  2731. }
  2732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2734. public bool IsPasswordNull() {
  2735. return this.IsNull(this.tableEmployee.PasswordColumn);
  2736. }
  2737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2739. public void SetPasswordNull() {
  2740. this[this.tableEmployee.PasswordColumn] = global::System.Convert.DBNull;
  2741. }
  2742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2744. public bool IsPhotoNull() {
  2745. return this.IsNull(this.tableEmployee.PhotoColumn);
  2746. }
  2747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2749. public void SetPhotoNull() {
  2750. this[this.tableEmployee.PhotoColumn] = global::System.Convert.DBNull;
  2751. }
  2752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2754. public ExecutionRequestRow[] GetExecutionRequestRows() {
  2755. if ((this.Table.ChildRelations["FK_ExecutionRequest_Employee"] == null)) {
  2756. return new ExecutionRequestRow[0];
  2757. }
  2758. else {
  2759. return ((ExecutionRequestRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ExecutionRequest_Employee"])));
  2760. }
  2761. }
  2762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2764. public RequestRow[] GetRequestRows() {
  2765. if ((this.Table.ChildRelations["FK_Request_Employee"] == null)) {
  2766. return new RequestRow[0];
  2767. }
  2768. else {
  2769. return ((RequestRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Request_Employee"])));
  2770. }
  2771. }
  2772. }
  2773. /// <summary>
  2774. ///Represents strongly named DataRow class.
  2775. ///</summary>
  2776. public partial class ExecutionRequestRow : global::System.Data.DataRow {
  2777. private ExecutionRequestDataTable tableExecutionRequest;
  2778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2780. internal ExecutionRequestRow(global::System.Data.DataRowBuilder rb) :
  2781. base(rb) {
  2782. this.tableExecutionRequest = ((ExecutionRequestDataTable)(this.Table));
  2783. }
  2784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2786. public int IdExecution {
  2787. get {
  2788. return ((int)(this[this.tableExecutionRequest.IdExecutionColumn]));
  2789. }
  2790. set {
  2791. this[this.tableExecutionRequest.IdExecutionColumn] = value;
  2792. }
  2793. }
  2794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2796. public int IdRequest {
  2797. get {
  2798. try {
  2799. return ((int)(this[this.tableExecutionRequest.IdRequestColumn]));
  2800. }
  2801. catch (global::System.InvalidCastException e) {
  2802. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdRequest\' в таблице \'ExecutionRequest\' равно DBNull.", e);
  2803. }
  2804. }
  2805. set {
  2806. this[this.tableExecutionRequest.IdRequestColumn] = value;
  2807. }
  2808. }
  2809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2811. public int IdMaster {
  2812. get {
  2813. try {
  2814. return ((int)(this[this.tableExecutionRequest.IdMasterColumn]));
  2815. }
  2816. catch (global::System.InvalidCastException e) {
  2817. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdMaster\' в таблице \'ExecutionRequest\' равно DBNull.", e);
  2818. }
  2819. }
  2820. set {
  2821. this[this.tableExecutionRequest.IdMasterColumn] = value;
  2822. }
  2823. }
  2824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2826. public EmployeeRow EmployeeRow {
  2827. get {
  2828. return ((EmployeeRow)(this.GetParentRow(this.Table.ParentRelations["FK_ExecutionRequest_Employee"])));
  2829. }
  2830. set {
  2831. this.SetParentRow(value, this.Table.ParentRelations["FK_ExecutionRequest_Employee"]);
  2832. }
  2833. }
  2834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2836. public RequestRow RequestRow {
  2837. get {
  2838. return ((RequestRow)(this.GetParentRow(this.Table.ParentRelations["FK_ExecutionRequest_Request"])));
  2839. }
  2840. set {
  2841. this.SetParentRow(value, this.Table.ParentRelations["FK_ExecutionRequest_Request"]);
  2842. }
  2843. }
  2844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2846. public bool IsIdRequestNull() {
  2847. return this.IsNull(this.tableExecutionRequest.IdRequestColumn);
  2848. }
  2849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2851. public void SetIdRequestNull() {
  2852. this[this.tableExecutionRequest.IdRequestColumn] = global::System.Convert.DBNull;
  2853. }
  2854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2856. public bool IsIdMasterNull() {
  2857. return this.IsNull(this.tableExecutionRequest.IdMasterColumn);
  2858. }
  2859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2861. public void SetIdMasterNull() {
  2862. this[this.tableExecutionRequest.IdMasterColumn] = global::System.Convert.DBNull;
  2863. }
  2864. }
  2865. /// <summary>
  2866. ///Represents strongly named DataRow class.
  2867. ///</summary>
  2868. public partial class RequestRow : global::System.Data.DataRow {
  2869. private RequestDataTable tableRequest;
  2870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2872. internal RequestRow(global::System.Data.DataRowBuilder rb) :
  2873. base(rb) {
  2874. this.tableRequest = ((RequestDataTable)(this.Table));
  2875. }
  2876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2878. public int IdRequest {
  2879. get {
  2880. return ((int)(this[this.tableRequest.IdRequestColumn]));
  2881. }
  2882. set {
  2883. this[this.tableRequest.IdRequestColumn] = value;
  2884. }
  2885. }
  2886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2888. public int IdStatus {
  2889. get {
  2890. try {
  2891. return ((int)(this[this.tableRequest.IdStatusColumn]));
  2892. }
  2893. catch (global::System.InvalidCastException e) {
  2894. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdStatus\' в таблице \'Request\' равно DBNull.", e);
  2895. }
  2896. }
  2897. set {
  2898. this[this.tableRequest.IdStatusColumn] = value;
  2899. }
  2900. }
  2901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2903. public int IdTypeDefect {
  2904. get {
  2905. try {
  2906. return ((int)(this[this.tableRequest.IdTypeDefectColumn]));
  2907. }
  2908. catch (global::System.InvalidCastException e) {
  2909. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdTypeDefect\' в таблице \'Request\' равно DBNull.", e);
  2910. }
  2911. }
  2912. set {
  2913. this[this.tableRequest.IdTypeDefectColumn] = value;
  2914. }
  2915. }
  2916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2918. public int IdClient {
  2919. get {
  2920. try {
  2921. return ((int)(this[this.tableRequest.IdClientColumn]));
  2922. }
  2923. catch (global::System.InvalidCastException e) {
  2924. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdClient\' в таблице \'Request\' равно DBNull.", e);
  2925. }
  2926. }
  2927. set {
  2928. this[this.tableRequest.IdClientColumn] = value;
  2929. }
  2930. }
  2931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2933. public int IdManager {
  2934. get {
  2935. try {
  2936. return ((int)(this[this.tableRequest.IdManagerColumn]));
  2937. }
  2938. catch (global::System.InvalidCastException e) {
  2939. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdManager\' в таблице \'Request\' равно DBNull.", e);
  2940. }
  2941. }
  2942. set {
  2943. this[this.tableRequest.IdManagerColumn] = value;
  2944. }
  2945. }
  2946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2948. public System.DateTime DateAccepting {
  2949. get {
  2950. try {
  2951. return ((global::System.DateTime)(this[this.tableRequest.DateAcceptingColumn]));
  2952. }
  2953. catch (global::System.InvalidCastException e) {
  2954. throw new global::System.Data.StrongTypingException("Значение для столбца \'DateAccepting\' в таблице \'Request\' равно DBNull.", e);
  2955. }
  2956. }
  2957. set {
  2958. this[this.tableRequest.DateAcceptingColumn] = value;
  2959. }
  2960. }
  2961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2963. public System.DateTime DateCompletion {
  2964. get {
  2965. try {
  2966. return ((global::System.DateTime)(this[this.tableRequest.DateCompletionColumn]));
  2967. }
  2968. catch (global::System.InvalidCastException e) {
  2969. throw new global::System.Data.StrongTypingException("Значение для столбца \'DateCompletion\' в таблице \'Request\' равно DBNull.", e);
  2970. }
  2971. }
  2972. set {
  2973. this[this.tableRequest.DateCompletionColumn] = value;
  2974. }
  2975. }
  2976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2978. public string EquipmentDefect {
  2979. get {
  2980. try {
  2981. return ((string)(this[this.tableRequest.EquipmentDefectColumn]));
  2982. }
  2983. catch (global::System.InvalidCastException e) {
  2984. throw new global::System.Data.StrongTypingException("Значение для столбца \'EquipmentDefect\' в таблице \'Request\' равно DBNull.", e);
  2985. }
  2986. }
  2987. set {
  2988. this[this.tableRequest.EquipmentDefectColumn] = value;
  2989. }
  2990. }
  2991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2993. public string Description {
  2994. get {
  2995. try {
  2996. return ((string)(this[this.tableRequest.DescriptionColumn]));
  2997. }
  2998. catch (global::System.InvalidCastException e) {
  2999. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Request\' равно DBNull.", e);
  3000. }
  3001. }
  3002. set {
  3003. this[this.tableRequest.DescriptionColumn] = value;
  3004. }
  3005. }
  3006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3008. public string Comment {
  3009. get {
  3010. try {
  3011. return ((string)(this[this.tableRequest.CommentColumn]));
  3012. }
  3013. catch (global::System.InvalidCastException e) {
  3014. throw new global::System.Data.StrongTypingException("Значение для столбца \'Comment\' в таблице \'Request\' равно DBNull.", e);
  3015. }
  3016. }
  3017. set {
  3018. this[this.tableRequest.CommentColumn] = value;
  3019. }
  3020. }
  3021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3023. public ClientRow ClientRow {
  3024. get {
  3025. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_Request_Client"])));
  3026. }
  3027. set {
  3028. this.SetParentRow(value, this.Table.ParentRelations["FK_Request_Client"]);
  3029. }
  3030. }
  3031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3033. public EmployeeRow EmployeeRow {
  3034. get {
  3035. return ((EmployeeRow)(this.GetParentRow(this.Table.ParentRelations["FK_Request_Employee"])));
  3036. }
  3037. set {
  3038. this.SetParentRow(value, this.Table.ParentRelations["FK_Request_Employee"]);
  3039. }
  3040. }
  3041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3043. public StatusRow StatusRow {
  3044. get {
  3045. return ((StatusRow)(this.GetParentRow(this.Table.ParentRelations["FK_Request_Status"])));
  3046. }
  3047. set {
  3048. this.SetParentRow(value, this.Table.ParentRelations["FK_Request_Status"]);
  3049. }
  3050. }
  3051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3053. public TypeDefectRow TypeDefectRow {
  3054. get {
  3055. return ((TypeDefectRow)(this.GetParentRow(this.Table.ParentRelations["FK_Request_TypeDefect"])));
  3056. }
  3057. set {
  3058. this.SetParentRow(value, this.Table.ParentRelations["FK_Request_TypeDefect"]);
  3059. }
  3060. }
  3061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3063. public bool IsIdStatusNull() {
  3064. return this.IsNull(this.tableRequest.IdStatusColumn);
  3065. }
  3066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3068. public void SetIdStatusNull() {
  3069. this[this.tableRequest.IdStatusColumn] = global::System.Convert.DBNull;
  3070. }
  3071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3073. public bool IsIdTypeDefectNull() {
  3074. return this.IsNull(this.tableRequest.IdTypeDefectColumn);
  3075. }
  3076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3078. public void SetIdTypeDefectNull() {
  3079. this[this.tableRequest.IdTypeDefectColumn] = global::System.Convert.DBNull;
  3080. }
  3081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3083. public bool IsIdClientNull() {
  3084. return this.IsNull(this.tableRequest.IdClientColumn);
  3085. }
  3086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3088. public void SetIdClientNull() {
  3089. this[this.tableRequest.IdClientColumn] = global::System.Convert.DBNull;
  3090. }
  3091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3093. public bool IsIdManagerNull() {
  3094. return this.IsNull(this.tableRequest.IdManagerColumn);
  3095. }
  3096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3098. public void SetIdManagerNull() {
  3099. this[this.tableRequest.IdManagerColumn] = global::System.Convert.DBNull;
  3100. }
  3101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3103. public bool IsDateAcceptingNull() {
  3104. return this.IsNull(this.tableRequest.DateAcceptingColumn);
  3105. }
  3106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3108. public void SetDateAcceptingNull() {
  3109. this[this.tableRequest.DateAcceptingColumn] = global::System.Convert.DBNull;
  3110. }
  3111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3113. public bool IsDateCompletionNull() {
  3114. return this.IsNull(this.tableRequest.DateCompletionColumn);
  3115. }
  3116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3118. public void SetDateCompletionNull() {
  3119. this[this.tableRequest.DateCompletionColumn] = global::System.Convert.DBNull;
  3120. }
  3121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3123. public bool IsEquipmentDefectNull() {
  3124. return this.IsNull(this.tableRequest.EquipmentDefectColumn);
  3125. }
  3126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3128. public void SetEquipmentDefectNull() {
  3129. this[this.tableRequest.EquipmentDefectColumn] = global::System.Convert.DBNull;
  3130. }
  3131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3133. public bool IsDescriptionNull() {
  3134. return this.IsNull(this.tableRequest.DescriptionColumn);
  3135. }
  3136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3138. public void SetDescriptionNull() {
  3139. this[this.tableRequest.DescriptionColumn] = global::System.Convert.DBNull;
  3140. }
  3141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3143. public bool IsCommentNull() {
  3144. return this.IsNull(this.tableRequest.CommentColumn);
  3145. }
  3146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3148. public void SetCommentNull() {
  3149. this[this.tableRequest.CommentColumn] = global::System.Convert.DBNull;
  3150. }
  3151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3153. public ExecutionRequestRow[] GetExecutionRequestRows() {
  3154. if ((this.Table.ChildRelations["FK_ExecutionRequest_Request"] == null)) {
  3155. return new ExecutionRequestRow[0];
  3156. }
  3157. else {
  3158. return ((ExecutionRequestRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ExecutionRequest_Request"])));
  3159. }
  3160. }
  3161. }
  3162. /// <summary>
  3163. ///Represents strongly named DataRow class.
  3164. ///</summary>
  3165. public partial class RoleRow : global::System.Data.DataRow {
  3166. private RoleDataTable tableRole;
  3167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3169. internal RoleRow(global::System.Data.DataRowBuilder rb) :
  3170. base(rb) {
  3171. this.tableRole = ((RoleDataTable)(this.Table));
  3172. }
  3173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3175. public int IdRole {
  3176. get {
  3177. return ((int)(this[this.tableRole.IdRoleColumn]));
  3178. }
  3179. set {
  3180. this[this.tableRole.IdRoleColumn] = value;
  3181. }
  3182. }
  3183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3185. public string Title {
  3186. get {
  3187. try {
  3188. return ((string)(this[this.tableRole.TitleColumn]));
  3189. }
  3190. catch (global::System.InvalidCastException e) {
  3191. throw new global::System.Data.StrongTypingException("Значение для столбца \'Title\' в таблице \'Role\' равно DBNull.", e);
  3192. }
  3193. }
  3194. set {
  3195. this[this.tableRole.TitleColumn] = value;
  3196. }
  3197. }
  3198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3200. public bool IsTitleNull() {
  3201. return this.IsNull(this.tableRole.TitleColumn);
  3202. }
  3203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3205. public void SetTitleNull() {
  3206. this[this.tableRole.TitleColumn] = global::System.Convert.DBNull;
  3207. }
  3208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3210. public EmployeeRow[] GetEmployeeRows() {
  3211. if ((this.Table.ChildRelations["FK_Employee_Role"] == null)) {
  3212. return new EmployeeRow[0];
  3213. }
  3214. else {
  3215. return ((EmployeeRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Employee_Role"])));
  3216. }
  3217. }
  3218. }
  3219. /// <summary>
  3220. ///Represents strongly named DataRow class.
  3221. ///</summary>
  3222. public partial class StatusRow : global::System.Data.DataRow {
  3223. private StatusDataTable tableStatus;
  3224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3226. internal StatusRow(global::System.Data.DataRowBuilder rb) :
  3227. base(rb) {
  3228. this.tableStatus = ((StatusDataTable)(this.Table));
  3229. }
  3230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3232. public int IdStatus {
  3233. get {
  3234. return ((int)(this[this.tableStatus.IdStatusColumn]));
  3235. }
  3236. set {
  3237. this[this.tableStatus.IdStatusColumn] = value;
  3238. }
  3239. }
  3240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3242. public string Title {
  3243. get {
  3244. try {
  3245. return ((string)(this[this.tableStatus.TitleColumn]));
  3246. }
  3247. catch (global::System.InvalidCastException e) {
  3248. throw new global::System.Data.StrongTypingException("Значение для столбца \'Title\' в таблице \'Status\' равно DBNull.", e);
  3249. }
  3250. }
  3251. set {
  3252. this[this.tableStatus.TitleColumn] = value;
  3253. }
  3254. }
  3255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3257. public bool IsTitleNull() {
  3258. return this.IsNull(this.tableStatus.TitleColumn);
  3259. }
  3260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3262. public void SetTitleNull() {
  3263. this[this.tableStatus.TitleColumn] = global::System.Convert.DBNull;
  3264. }
  3265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3267. public RequestRow[] GetRequestRows() {
  3268. if ((this.Table.ChildRelations["FK_Request_Status"] == null)) {
  3269. return new RequestRow[0];
  3270. }
  3271. else {
  3272. return ((RequestRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Request_Status"])));
  3273. }
  3274. }
  3275. }
  3276. /// <summary>
  3277. ///Represents strongly named DataRow class.
  3278. ///</summary>
  3279. public partial class TypeDefectRow : global::System.Data.DataRow {
  3280. private TypeDefectDataTable tableTypeDefect;
  3281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3283. internal TypeDefectRow(global::System.Data.DataRowBuilder rb) :
  3284. base(rb) {
  3285. this.tableTypeDefect = ((TypeDefectDataTable)(this.Table));
  3286. }
  3287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3289. public int IdTypeDefect {
  3290. get {
  3291. return ((int)(this[this.tableTypeDefect.IdTypeDefectColumn]));
  3292. }
  3293. set {
  3294. this[this.tableTypeDefect.IdTypeDefectColumn] = value;
  3295. }
  3296. }
  3297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3299. public string Title {
  3300. get {
  3301. try {
  3302. return ((string)(this[this.tableTypeDefect.TitleColumn]));
  3303. }
  3304. catch (global::System.InvalidCastException e) {
  3305. throw new global::System.Data.StrongTypingException("Значение для столбца \'Title\' в таблице \'TypeDefect\' равно DBNull.", e);
  3306. }
  3307. }
  3308. set {
  3309. this[this.tableTypeDefect.TitleColumn] = value;
  3310. }
  3311. }
  3312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3314. public bool IsTitleNull() {
  3315. return this.IsNull(this.tableTypeDefect.TitleColumn);
  3316. }
  3317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3319. public void SetTitleNull() {
  3320. this[this.tableTypeDefect.TitleColumn] = global::System.Convert.DBNull;
  3321. }
  3322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3324. public RequestRow[] GetRequestRows() {
  3325. if ((this.Table.ChildRelations["FK_Request_TypeDefect"] == null)) {
  3326. return new RequestRow[0];
  3327. }
  3328. else {
  3329. return ((RequestRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Request_TypeDefect"])));
  3330. }
  3331. }
  3332. }
  3333. /// <summary>
  3334. ///Row event argument class
  3335. ///</summary>
  3336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3337. public class ClientRowChangeEvent : global::System.EventArgs {
  3338. private ClientRow eventRow;
  3339. private global::System.Data.DataRowAction eventAction;
  3340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3342. public ClientRowChangeEvent(ClientRow row, global::System.Data.DataRowAction action) {
  3343. this.eventRow = row;
  3344. this.eventAction = action;
  3345. }
  3346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3348. public ClientRow Row {
  3349. get {
  3350. return this.eventRow;
  3351. }
  3352. }
  3353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3355. public global::System.Data.DataRowAction Action {
  3356. get {
  3357. return this.eventAction;
  3358. }
  3359. }
  3360. }
  3361. /// <summary>
  3362. ///Row event argument class
  3363. ///</summary>
  3364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3365. public class EmployeeRowChangeEvent : global::System.EventArgs {
  3366. private EmployeeRow eventRow;
  3367. private global::System.Data.DataRowAction eventAction;
  3368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3370. public EmployeeRowChangeEvent(EmployeeRow row, global::System.Data.DataRowAction action) {
  3371. this.eventRow = row;
  3372. this.eventAction = action;
  3373. }
  3374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3376. public EmployeeRow Row {
  3377. get {
  3378. return this.eventRow;
  3379. }
  3380. }
  3381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3383. public global::System.Data.DataRowAction Action {
  3384. get {
  3385. return this.eventAction;
  3386. }
  3387. }
  3388. }
  3389. /// <summary>
  3390. ///Row event argument class
  3391. ///</summary>
  3392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3393. public class ExecutionRequestRowChangeEvent : global::System.EventArgs {
  3394. private ExecutionRequestRow eventRow;
  3395. private global::System.Data.DataRowAction eventAction;
  3396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3398. public ExecutionRequestRowChangeEvent(ExecutionRequestRow row, global::System.Data.DataRowAction action) {
  3399. this.eventRow = row;
  3400. this.eventAction = action;
  3401. }
  3402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3404. public ExecutionRequestRow Row {
  3405. get {
  3406. return this.eventRow;
  3407. }
  3408. }
  3409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3411. public global::System.Data.DataRowAction Action {
  3412. get {
  3413. return this.eventAction;
  3414. }
  3415. }
  3416. }
  3417. /// <summary>
  3418. ///Row event argument class
  3419. ///</summary>
  3420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3421. public class RequestRowChangeEvent : global::System.EventArgs {
  3422. private RequestRow eventRow;
  3423. private global::System.Data.DataRowAction eventAction;
  3424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3426. public RequestRowChangeEvent(RequestRow row, global::System.Data.DataRowAction action) {
  3427. this.eventRow = row;
  3428. this.eventAction = action;
  3429. }
  3430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3432. public RequestRow Row {
  3433. get {
  3434. return this.eventRow;
  3435. }
  3436. }
  3437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3439. public global::System.Data.DataRowAction Action {
  3440. get {
  3441. return this.eventAction;
  3442. }
  3443. }
  3444. }
  3445. /// <summary>
  3446. ///Row event argument class
  3447. ///</summary>
  3448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3449. public class RoleRowChangeEvent : global::System.EventArgs {
  3450. private RoleRow eventRow;
  3451. private global::System.Data.DataRowAction eventAction;
  3452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3454. public RoleRowChangeEvent(RoleRow row, global::System.Data.DataRowAction action) {
  3455. this.eventRow = row;
  3456. this.eventAction = action;
  3457. }
  3458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3460. public RoleRow Row {
  3461. get {
  3462. return this.eventRow;
  3463. }
  3464. }
  3465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3467. public global::System.Data.DataRowAction Action {
  3468. get {
  3469. return this.eventAction;
  3470. }
  3471. }
  3472. }
  3473. /// <summary>
  3474. ///Row event argument class
  3475. ///</summary>
  3476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3477. public class StatusRowChangeEvent : global::System.EventArgs {
  3478. private StatusRow eventRow;
  3479. private global::System.Data.DataRowAction eventAction;
  3480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3482. public StatusRowChangeEvent(StatusRow row, global::System.Data.DataRowAction action) {
  3483. this.eventRow = row;
  3484. this.eventAction = action;
  3485. }
  3486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3488. public StatusRow Row {
  3489. get {
  3490. return this.eventRow;
  3491. }
  3492. }
  3493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3495. public global::System.Data.DataRowAction Action {
  3496. get {
  3497. return this.eventAction;
  3498. }
  3499. }
  3500. }
  3501. /// <summary>
  3502. ///Row event argument class
  3503. ///</summary>
  3504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3505. public class TypeDefectRowChangeEvent : global::System.EventArgs {
  3506. private TypeDefectRow eventRow;
  3507. private global::System.Data.DataRowAction eventAction;
  3508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3510. public TypeDefectRowChangeEvent(TypeDefectRow row, global::System.Data.DataRowAction action) {
  3511. this.eventRow = row;
  3512. this.eventAction = action;
  3513. }
  3514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3516. public TypeDefectRow Row {
  3517. get {
  3518. return this.eventRow;
  3519. }
  3520. }
  3521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3523. public global::System.Data.DataRowAction Action {
  3524. get {
  3525. return this.eventAction;
  3526. }
  3527. }
  3528. }
  3529. }
  3530. }
  3531. namespace СУБД_Техносервис.TechServiceBAUDataSetTableAdapters {
  3532. /// <summary>
  3533. ///Represents the connection and commands used to retrieve and save data.
  3534. ///</summary>
  3535. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3536. [global::System.ComponentModel.ToolboxItem(true)]
  3537. [global::System.ComponentModel.DataObjectAttribute(true)]
  3538. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3539. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3540. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3541. public partial class ClientTableAdapter : global::System.ComponentModel.Component {
  3542. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3543. private global::System.Data.SqlClient.SqlConnection _connection;
  3544. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3545. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3546. private bool _clearBeforeFill;
  3547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3549. public ClientTableAdapter() {
  3550. this.ClearBeforeFill = true;
  3551. }
  3552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3554. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3555. get {
  3556. if ((this._adapter == null)) {
  3557. this.InitAdapter();
  3558. }
  3559. return this._adapter;
  3560. }
  3561. }
  3562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3564. internal global::System.Data.SqlClient.SqlConnection Connection {
  3565. get {
  3566. if ((this._connection == null)) {
  3567. this.InitConnection();
  3568. }
  3569. return this._connection;
  3570. }
  3571. set {
  3572. this._connection = value;
  3573. if ((this.Adapter.InsertCommand != null)) {
  3574. this.Adapter.InsertCommand.Connection = value;
  3575. }
  3576. if ((this.Adapter.DeleteCommand != null)) {
  3577. this.Adapter.DeleteCommand.Connection = value;
  3578. }
  3579. if ((this.Adapter.UpdateCommand != null)) {
  3580. this.Adapter.UpdateCommand.Connection = value;
  3581. }
  3582. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3583. if ((this.CommandCollection[i] != null)) {
  3584. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3585. }
  3586. }
  3587. }
  3588. }
  3589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3591. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3592. get {
  3593. return this._transaction;
  3594. }
  3595. set {
  3596. this._transaction = value;
  3597. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3598. this.CommandCollection[i].Transaction = this._transaction;
  3599. }
  3600. if (((this.Adapter != null)
  3601. && (this.Adapter.DeleteCommand != null))) {
  3602. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3603. }
  3604. if (((this.Adapter != null)
  3605. && (this.Adapter.InsertCommand != null))) {
  3606. this.Adapter.InsertCommand.Transaction = this._transaction;
  3607. }
  3608. if (((this.Adapter != null)
  3609. && (this.Adapter.UpdateCommand != null))) {
  3610. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3611. }
  3612. }
  3613. }
  3614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3616. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3617. get {
  3618. if ((this._commandCollection == null)) {
  3619. this.InitCommandCollection();
  3620. }
  3621. return this._commandCollection;
  3622. }
  3623. }
  3624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3626. public bool ClearBeforeFill {
  3627. get {
  3628. return this._clearBeforeFill;
  3629. }
  3630. set {
  3631. this._clearBeforeFill = value;
  3632. }
  3633. }
  3634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3636. private void InitAdapter() {
  3637. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3638. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3639. tableMapping.SourceTable = "Table";
  3640. tableMapping.DataSetTable = "Client";
  3641. tableMapping.ColumnMappings.Add("IdClient", "IdClient");
  3642. tableMapping.ColumnMappings.Add("Surname", "Surname");
  3643. tableMapping.ColumnMappings.Add("Name", "Name");
  3644. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  3645. this._adapter.TableMappings.Add(tableMapping);
  3646. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3647. this._adapter.DeleteCommand.Connection = this.Connection;
  3648. 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)))";
  3649. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3650. 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, "", "", ""));
  3651. 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, "", "", ""));
  3652. 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, "", "", ""));
  3653. 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, "", "", ""));
  3654. 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, "", "", ""));
  3655. 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, "", "", ""));
  3656. 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, "", "", ""));
  3657. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3658. this._adapter.InsertCommand.Connection = this.Connection;
  3659. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Client] ([Surname], [Name], [Patronymic]) VALUES (@Surname, @N" +
  3660. "ame, @Patronymic);\r\nSELECT IdClient, Surname, Name, Patronymic FROM Client WHERE" +
  3661. " (IdClient = SCOPE_IDENTITY())";
  3662. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3663. 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, "", "", ""));
  3664. 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, "", "", ""));
  3665. 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, "", "", ""));
  3666. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3667. this._adapter.UpdateCommand.Connection = this.Connection;
  3668. 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)));
  3669. SELECT IdClient, Surname, Name, Patronymic FROM Client WHERE (IdClient = @IdClient)";
  3670. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3671. 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, "", "", ""));
  3672. 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, "", "", ""));
  3673. 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, "", "", ""));
  3674. 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, "", "", ""));
  3675. 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, "", "", ""));
  3676. 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, "", "", ""));
  3677. 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, "", "", ""));
  3678. 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, "", "", ""));
  3679. 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, "", "", ""));
  3680. 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, "", "", ""));
  3681. 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, "", "", ""));
  3682. }
  3683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3685. private void InitConnection() {
  3686. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3687. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  3688. }
  3689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3691. private void InitCommandCollection() {
  3692. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3693. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3694. this._commandCollection[0].Connection = this.Connection;
  3695. this._commandCollection[0].CommandText = "SELECT IdClient, Surname, Name, Patronymic FROM dbo.Client";
  3696. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3697. }
  3698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3700. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3701. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3702. public virtual int Fill(TechServiceBAUDataSet.ClientDataTable dataTable) {
  3703. this.Adapter.SelectCommand = this.CommandCollection[0];
  3704. if ((this.ClearBeforeFill == true)) {
  3705. dataTable.Clear();
  3706. }
  3707. int returnValue = this.Adapter.Fill(dataTable);
  3708. return returnValue;
  3709. }
  3710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3712. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3713. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3714. public virtual TechServiceBAUDataSet.ClientDataTable GetData() {
  3715. this.Adapter.SelectCommand = this.CommandCollection[0];
  3716. TechServiceBAUDataSet.ClientDataTable dataTable = new TechServiceBAUDataSet.ClientDataTable();
  3717. this.Adapter.Fill(dataTable);
  3718. return dataTable;
  3719. }
  3720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3722. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3723. public virtual int Update(TechServiceBAUDataSet.ClientDataTable dataTable) {
  3724. return this.Adapter.Update(dataTable);
  3725. }
  3726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3728. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3729. public virtual int Update(TechServiceBAUDataSet dataSet) {
  3730. return this.Adapter.Update(dataSet, "Client");
  3731. }
  3732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3734. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3735. public virtual int Update(global::System.Data.DataRow dataRow) {
  3736. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3737. dataRow});
  3738. }
  3739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3741. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3742. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3743. return this.Adapter.Update(dataRows);
  3744. }
  3745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3747. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3748. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3749. public virtual int Delete(int Original_IdClient, string Original_Surname, string Original_Name, string Original_Patronymic) {
  3750. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdClient));
  3751. if ((Original_Surname == null)) {
  3752. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3753. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3754. }
  3755. else {
  3756. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3757. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Surname));
  3758. }
  3759. if ((Original_Name == null)) {
  3760. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  3761. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  3762. }
  3763. else {
  3764. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  3765. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Name));
  3766. }
  3767. if ((Original_Patronymic == null)) {
  3768. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  3769. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  3770. }
  3771. else {
  3772. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  3773. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Patronymic));
  3774. }
  3775. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3776. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3777. != global::System.Data.ConnectionState.Open)) {
  3778. this.Adapter.DeleteCommand.Connection.Open();
  3779. }
  3780. try {
  3781. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3782. return returnValue;
  3783. }
  3784. finally {
  3785. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3786. this.Adapter.DeleteCommand.Connection.Close();
  3787. }
  3788. }
  3789. }
  3790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3792. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3793. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3794. public virtual int Insert(string Surname, string Name, string Patronymic) {
  3795. if ((Surname == null)) {
  3796. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  3797. }
  3798. else {
  3799. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Surname));
  3800. }
  3801. if ((Name == null)) {
  3802. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3803. }
  3804. else {
  3805. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  3806. }
  3807. if ((Patronymic == null)) {
  3808. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3809. }
  3810. else {
  3811. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  3812. }
  3813. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3814. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3815. != global::System.Data.ConnectionState.Open)) {
  3816. this.Adapter.InsertCommand.Connection.Open();
  3817. }
  3818. try {
  3819. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3820. return returnValue;
  3821. }
  3822. finally {
  3823. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3824. this.Adapter.InsertCommand.Connection.Close();
  3825. }
  3826. }
  3827. }
  3828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3830. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3831. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3832. public virtual int Update(string Surname, string Name, string Patronymic, int Original_IdClient, string Original_Surname, string Original_Name, string Original_Patronymic, int IdClient) {
  3833. if ((Surname == null)) {
  3834. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  3835. }
  3836. else {
  3837. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Surname));
  3838. }
  3839. if ((Name == null)) {
  3840. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3841. }
  3842. else {
  3843. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  3844. }
  3845. if ((Patronymic == null)) {
  3846. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  3847. }
  3848. else {
  3849. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  3850. }
  3851. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_IdClient));
  3852. if ((Original_Surname == null)) {
  3853. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  3854. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  3855. }
  3856. else {
  3857. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  3858. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Surname));
  3859. }
  3860. if ((Original_Name == null)) {
  3861. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  3862. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  3863. }
  3864. else {
  3865. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  3866. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Name));
  3867. }
  3868. if ((Original_Patronymic == null)) {
  3869. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  3870. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  3871. }
  3872. else {
  3873. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  3874. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Patronymic));
  3875. }
  3876. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(IdClient));
  3877. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3878. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3879. != global::System.Data.ConnectionState.Open)) {
  3880. this.Adapter.UpdateCommand.Connection.Open();
  3881. }
  3882. try {
  3883. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3884. return returnValue;
  3885. }
  3886. finally {
  3887. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3888. this.Adapter.UpdateCommand.Connection.Close();
  3889. }
  3890. }
  3891. }
  3892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3894. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3895. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3896. public virtual int Update(string Surname, string Name, string Patronymic, int Original_IdClient, string Original_Surname, string Original_Name, string Original_Patronymic) {
  3897. return this.Update(Surname, Name, Patronymic, Original_IdClient, Original_Surname, Original_Name, Original_Patronymic, Original_IdClient);
  3898. }
  3899. }
  3900. /// <summary>
  3901. ///Represents the connection and commands used to retrieve and save data.
  3902. ///</summary>
  3903. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3904. [global::System.ComponentModel.ToolboxItem(true)]
  3905. [global::System.ComponentModel.DataObjectAttribute(true)]
  3906. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3907. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3908. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3909. public partial class EmployeeTableAdapter : global::System.ComponentModel.Component {
  3910. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3911. private global::System.Data.SqlClient.SqlConnection _connection;
  3912. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3913. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3914. private bool _clearBeforeFill;
  3915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3917. public EmployeeTableAdapter() {
  3918. this.ClearBeforeFill = true;
  3919. }
  3920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3922. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3923. get {
  3924. if ((this._adapter == null)) {
  3925. this.InitAdapter();
  3926. }
  3927. return this._adapter;
  3928. }
  3929. }
  3930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3932. internal global::System.Data.SqlClient.SqlConnection Connection {
  3933. get {
  3934. if ((this._connection == null)) {
  3935. this.InitConnection();
  3936. }
  3937. return this._connection;
  3938. }
  3939. set {
  3940. this._connection = value;
  3941. if ((this.Adapter.InsertCommand != null)) {
  3942. this.Adapter.InsertCommand.Connection = value;
  3943. }
  3944. if ((this.Adapter.DeleteCommand != null)) {
  3945. this.Adapter.DeleteCommand.Connection = value;
  3946. }
  3947. if ((this.Adapter.UpdateCommand != null)) {
  3948. this.Adapter.UpdateCommand.Connection = value;
  3949. }
  3950. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3951. if ((this.CommandCollection[i] != null)) {
  3952. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3953. }
  3954. }
  3955. }
  3956. }
  3957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3959. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3960. get {
  3961. return this._transaction;
  3962. }
  3963. set {
  3964. this._transaction = value;
  3965. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3966. this.CommandCollection[i].Transaction = this._transaction;
  3967. }
  3968. if (((this.Adapter != null)
  3969. && (this.Adapter.DeleteCommand != null))) {
  3970. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3971. }
  3972. if (((this.Adapter != null)
  3973. && (this.Adapter.InsertCommand != null))) {
  3974. this.Adapter.InsertCommand.Transaction = this._transaction;
  3975. }
  3976. if (((this.Adapter != null)
  3977. && (this.Adapter.UpdateCommand != null))) {
  3978. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3979. }
  3980. }
  3981. }
  3982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3984. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3985. get {
  3986. if ((this._commandCollection == null)) {
  3987. this.InitCommandCollection();
  3988. }
  3989. return this._commandCollection;
  3990. }
  3991. }
  3992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3994. public bool ClearBeforeFill {
  3995. get {
  3996. return this._clearBeforeFill;
  3997. }
  3998. set {
  3999. this._clearBeforeFill = value;
  4000. }
  4001. }
  4002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4004. private void InitAdapter() {
  4005. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4006. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4007. tableMapping.SourceTable = "Table";
  4008. tableMapping.DataSetTable = "Employee";
  4009. tableMapping.ColumnMappings.Add("IdEmployee", "IdEmployee");
  4010. tableMapping.ColumnMappings.Add("IdRole", "IdRole");
  4011. tableMapping.ColumnMappings.Add("Surname", "Surname");
  4012. tableMapping.ColumnMappings.Add("Name", "Name");
  4013. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  4014. tableMapping.ColumnMappings.Add("Login", "Login");
  4015. tableMapping.ColumnMappings.Add("Password", "Password");
  4016. tableMapping.ColumnMappings.Add("Photo", "Photo");
  4017. this._adapter.TableMappings.Add(tableMapping);
  4018. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4019. this._adapter.DeleteCommand.Connection = this.Connection;
  4020. 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)))";
  4021. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4022. 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, "", "", ""));
  4023. 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, "", "", ""));
  4024. 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, "", "", ""));
  4025. 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, "", "", ""));
  4026. 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, "", "", ""));
  4027. 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, "", "", ""));
  4028. 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, "", "", ""));
  4029. 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, "", "", ""));
  4030. 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, "", "", ""));
  4031. 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, "", "", ""));
  4032. 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, "", "", ""));
  4033. 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, "", "", ""));
  4034. 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, "", "", ""));
  4035. 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, "", "", ""));
  4036. 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, "", "", ""));
  4037. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4038. this._adapter.InsertCommand.Connection = this.Connection;
  4039. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Employee] ([IdRole], [Surname], [Name], [Patronymic], [Login], [Password], [Photo]) VALUES (@IdRole, @Surname, @Name, @Patronymic, @Login, @Password, @Photo);
  4040. SELECT IdEmployee, IdRole, Surname, Name, Patronymic, Login, Password, Photo FROM Employee WHERE (IdEmployee = SCOPE_IDENTITY())";
  4041. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4042. 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, "", "", ""));
  4043. 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, "", "", ""));
  4044. 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, "", "", ""));
  4045. 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, "", "", ""));
  4046. 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, "", "", ""));
  4047. 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, "", "", ""));
  4048. 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, "", "", ""));
  4049. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4050. this._adapter.UpdateCommand.Connection = this.Connection;
  4051. 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)));
  4052. SELECT IdEmployee, IdRole, Surname, Name, Patronymic, Login, Password, Photo FROM Employee WHERE (IdEmployee = @IdEmployee)";
  4053. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4054. 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, "", "", ""));
  4055. 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, "", "", ""));
  4056. 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, "", "", ""));
  4057. 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, "", "", ""));
  4058. 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, "", "", ""));
  4059. 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, "", "", ""));
  4060. 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, "", "", ""));
  4061. 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, "", "", ""));
  4062. 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, "", "", ""));
  4063. 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, "", "", ""));
  4064. 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, "", "", ""));
  4065. 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, "", "", ""));
  4066. 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, "", "", ""));
  4067. 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, "", "", ""));
  4068. 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, "", "", ""));
  4069. 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, "", "", ""));
  4070. 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, "", "", ""));
  4071. 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, "", "", ""));
  4072. 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, "", "", ""));
  4073. 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, "", "", ""));
  4074. 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, "", "", ""));
  4075. 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, "", "", ""));
  4076. 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, "", "", ""));
  4077. }
  4078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4080. private void InitConnection() {
  4081. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4082. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  4083. }
  4084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4086. private void InitCommandCollection() {
  4087. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4088. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4089. this._commandCollection[0].Connection = this.Connection;
  4090. this._commandCollection[0].CommandText = "SELECT IdEmployee, IdRole, Surname, Name, Patronymic, Login, Password, Photo FROM" +
  4091. " dbo.Employee";
  4092. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4093. }
  4094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4096. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4097. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4098. public virtual int Fill(TechServiceBAUDataSet.EmployeeDataTable dataTable) {
  4099. this.Adapter.SelectCommand = this.CommandCollection[0];
  4100. if ((this.ClearBeforeFill == true)) {
  4101. dataTable.Clear();
  4102. }
  4103. int returnValue = this.Adapter.Fill(dataTable);
  4104. return returnValue;
  4105. }
  4106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4108. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4109. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4110. public virtual TechServiceBAUDataSet.EmployeeDataTable GetData() {
  4111. this.Adapter.SelectCommand = this.CommandCollection[0];
  4112. TechServiceBAUDataSet.EmployeeDataTable dataTable = new TechServiceBAUDataSet.EmployeeDataTable();
  4113. this.Adapter.Fill(dataTable);
  4114. return dataTable;
  4115. }
  4116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4118. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4119. public virtual int Update(TechServiceBAUDataSet.EmployeeDataTable dataTable) {
  4120. return this.Adapter.Update(dataTable);
  4121. }
  4122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4124. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4125. public virtual int Update(TechServiceBAUDataSet dataSet) {
  4126. return this.Adapter.Update(dataSet, "Employee");
  4127. }
  4128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4130. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4131. public virtual int Update(global::System.Data.DataRow dataRow) {
  4132. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4133. dataRow});
  4134. }
  4135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4137. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4138. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4139. return this.Adapter.Update(dataRows);
  4140. }
  4141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4143. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4144. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4145. 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) {
  4146. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdEmployee));
  4147. if ((Original_IdRole.HasValue == true)) {
  4148. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4149. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IdRole.Value));
  4150. }
  4151. else {
  4152. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4153. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4154. }
  4155. if ((Original_Surname == null)) {
  4156. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4157. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4158. }
  4159. else {
  4160. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4161. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Surname));
  4162. }
  4163. if ((Original_Name == null)) {
  4164. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4165. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4166. }
  4167. else {
  4168. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4169. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Name));
  4170. }
  4171. if ((Original_Patronymic == null)) {
  4172. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  4173. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  4174. }
  4175. else {
  4176. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  4177. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Patronymic));
  4178. }
  4179. if ((Original_Login == null)) {
  4180. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  4181. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  4182. }
  4183. else {
  4184. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  4185. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Login));
  4186. }
  4187. if ((Original_Password == null)) {
  4188. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  4189. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  4190. }
  4191. else {
  4192. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  4193. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Password));
  4194. }
  4195. if ((Original_Photo == null)) {
  4196. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  4197. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  4198. }
  4199. else {
  4200. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  4201. this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_Photo));
  4202. }
  4203. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4204. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4205. != global::System.Data.ConnectionState.Open)) {
  4206. this.Adapter.DeleteCommand.Connection.Open();
  4207. }
  4208. try {
  4209. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4210. return returnValue;
  4211. }
  4212. finally {
  4213. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4214. this.Adapter.DeleteCommand.Connection.Close();
  4215. }
  4216. }
  4217. }
  4218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4220. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4221. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4222. public virtual int Insert(global::System.Nullable<int> IdRole, string Surname, string Name, string Patronymic, string Login, string Password, string Photo) {
  4223. if ((IdRole.HasValue == true)) {
  4224. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdRole.Value));
  4225. }
  4226. else {
  4227. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4228. }
  4229. if ((Surname == null)) {
  4230. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4231. }
  4232. else {
  4233. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Surname));
  4234. }
  4235. if ((Name == null)) {
  4236. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4237. }
  4238. else {
  4239. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Name));
  4240. }
  4241. if ((Patronymic == null)) {
  4242. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4243. }
  4244. else {
  4245. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Patronymic));
  4246. }
  4247. if ((Login == null)) {
  4248. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  4249. }
  4250. else {
  4251. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Login));
  4252. }
  4253. if ((Password == null)) {
  4254. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  4255. }
  4256. else {
  4257. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Password));
  4258. }
  4259. if ((Photo == null)) {
  4260. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  4261. }
  4262. else {
  4263. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Photo));
  4264. }
  4265. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4266. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4267. != global::System.Data.ConnectionState.Open)) {
  4268. this.Adapter.InsertCommand.Connection.Open();
  4269. }
  4270. try {
  4271. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4272. return returnValue;
  4273. }
  4274. finally {
  4275. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4276. this.Adapter.InsertCommand.Connection.Close();
  4277. }
  4278. }
  4279. }
  4280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4282. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4283. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4284. public virtual int Update(
  4285. global::System.Nullable<int> IdRole,
  4286. string Surname,
  4287. string Name,
  4288. string Patronymic,
  4289. string Login,
  4290. string Password,
  4291. string Photo,
  4292. int Original_IdEmployee,
  4293. global::System.Nullable<int> Original_IdRole,
  4294. string Original_Surname,
  4295. string Original_Name,
  4296. string Original_Patronymic,
  4297. string Original_Login,
  4298. string Original_Password,
  4299. string Original_Photo,
  4300. int IdEmployee) {
  4301. if ((IdRole.HasValue == true)) {
  4302. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdRole.Value));
  4303. }
  4304. else {
  4305. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4306. }
  4307. if ((Surname == null)) {
  4308. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4309. }
  4310. else {
  4311. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Surname));
  4312. }
  4313. if ((Name == null)) {
  4314. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4315. }
  4316. else {
  4317. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Name));
  4318. }
  4319. if ((Patronymic == null)) {
  4320. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4321. }
  4322. else {
  4323. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Patronymic));
  4324. }
  4325. if ((Login == null)) {
  4326. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4327. }
  4328. else {
  4329. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Login));
  4330. }
  4331. if ((Password == null)) {
  4332. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  4333. }
  4334. else {
  4335. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Password));
  4336. }
  4337. if ((Photo == null)) {
  4338. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  4339. }
  4340. else {
  4341. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Photo));
  4342. }
  4343. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_IdEmployee));
  4344. if ((Original_IdRole.HasValue == true)) {
  4345. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  4346. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_IdRole.Value));
  4347. }
  4348. else {
  4349. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  4350. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  4351. }
  4352. if ((Original_Surname == null)) {
  4353. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  4354. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  4355. }
  4356. else {
  4357. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  4358. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Surname));
  4359. }
  4360. if ((Original_Name == null)) {
  4361. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  4362. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  4363. }
  4364. else {
  4365. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  4366. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Name));
  4367. }
  4368. if ((Original_Patronymic == null)) {
  4369. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  4370. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  4371. }
  4372. else {
  4373. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  4374. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Patronymic));
  4375. }
  4376. if ((Original_Login == null)) {
  4377. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  4378. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  4379. }
  4380. else {
  4381. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  4382. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Login));
  4383. }
  4384. if ((Original_Password == null)) {
  4385. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  4386. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  4387. }
  4388. else {
  4389. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  4390. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Password));
  4391. }
  4392. if ((Original_Photo == null)) {
  4393. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  4394. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  4395. }
  4396. else {
  4397. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  4398. this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_Photo));
  4399. }
  4400. this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(IdEmployee));
  4401. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4402. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4403. != global::System.Data.ConnectionState.Open)) {
  4404. this.Adapter.UpdateCommand.Connection.Open();
  4405. }
  4406. try {
  4407. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4408. return returnValue;
  4409. }
  4410. finally {
  4411. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4412. this.Adapter.UpdateCommand.Connection.Close();
  4413. }
  4414. }
  4415. }
  4416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4418. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4419. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4420. 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) {
  4421. 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);
  4422. }
  4423. }
  4424. /// <summary>
  4425. ///Represents the connection and commands used to retrieve and save data.
  4426. ///</summary>
  4427. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4428. [global::System.ComponentModel.ToolboxItem(true)]
  4429. [global::System.ComponentModel.DataObjectAttribute(true)]
  4430. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4431. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4432. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4433. public partial class ExecutionRequestTableAdapter : global::System.ComponentModel.Component {
  4434. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4435. private global::System.Data.SqlClient.SqlConnection _connection;
  4436. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4437. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4438. private bool _clearBeforeFill;
  4439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4441. public ExecutionRequestTableAdapter() {
  4442. this.ClearBeforeFill = true;
  4443. }
  4444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4446. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4447. get {
  4448. if ((this._adapter == null)) {
  4449. this.InitAdapter();
  4450. }
  4451. return this._adapter;
  4452. }
  4453. }
  4454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4456. internal global::System.Data.SqlClient.SqlConnection Connection {
  4457. get {
  4458. if ((this._connection == null)) {
  4459. this.InitConnection();
  4460. }
  4461. return this._connection;
  4462. }
  4463. set {
  4464. this._connection = value;
  4465. if ((this.Adapter.InsertCommand != null)) {
  4466. this.Adapter.InsertCommand.Connection = value;
  4467. }
  4468. if ((this.Adapter.DeleteCommand != null)) {
  4469. this.Adapter.DeleteCommand.Connection = value;
  4470. }
  4471. if ((this.Adapter.UpdateCommand != null)) {
  4472. this.Adapter.UpdateCommand.Connection = value;
  4473. }
  4474. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4475. if ((this.CommandCollection[i] != null)) {
  4476. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4477. }
  4478. }
  4479. }
  4480. }
  4481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4483. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4484. get {
  4485. return this._transaction;
  4486. }
  4487. set {
  4488. this._transaction = value;
  4489. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4490. this.CommandCollection[i].Transaction = this._transaction;
  4491. }
  4492. if (((this.Adapter != null)
  4493. && (this.Adapter.DeleteCommand != null))) {
  4494. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4495. }
  4496. if (((this.Adapter != null)
  4497. && (this.Adapter.InsertCommand != null))) {
  4498. this.Adapter.InsertCommand.Transaction = this._transaction;
  4499. }
  4500. if (((this.Adapter != null)
  4501. && (this.Adapter.UpdateCommand != null))) {
  4502. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4503. }
  4504. }
  4505. }
  4506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4508. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4509. get {
  4510. if ((this._commandCollection == null)) {
  4511. this.InitCommandCollection();
  4512. }
  4513. return this._commandCollection;
  4514. }
  4515. }
  4516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4518. public bool ClearBeforeFill {
  4519. get {
  4520. return this._clearBeforeFill;
  4521. }
  4522. set {
  4523. this._clearBeforeFill = value;
  4524. }
  4525. }
  4526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4528. private void InitAdapter() {
  4529. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4530. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4531. tableMapping.SourceTable = "Table";
  4532. tableMapping.DataSetTable = "ExecutionRequest";
  4533. tableMapping.ColumnMappings.Add("IdExecution", "IdExecution");
  4534. tableMapping.ColumnMappings.Add("IdRequest", "IdRequest");
  4535. tableMapping.ColumnMappings.Add("IdMaster", "IdMaster");
  4536. this._adapter.TableMappings.Add(tableMapping);
  4537. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4538. this._adapter.DeleteCommand.Connection = this.Connection;
  4539. 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)))";
  4540. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4541. 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, "", "", ""));
  4542. 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, "", "", ""));
  4543. 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, "", "", ""));
  4544. 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, "", "", ""));
  4545. 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, "", "", ""));
  4546. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4547. this._adapter.InsertCommand.Connection = this.Connection;
  4548. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ExecutionRequest] ([IdRequest], [IdMaster]) VALUES (@IdRequest" +
  4549. ", @IdMaster);\r\nSELECT IdExecution, IdRequest, IdMaster FROM ExecutionRequest WHE" +
  4550. "RE (IdExecution = SCOPE_IDENTITY())";
  4551. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4552. 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, "", "", ""));
  4553. 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, "", "", ""));
  4554. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4555. this._adapter.UpdateCommand.Connection = this.Connection;
  4556. 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)));
  4557. SELECT IdExecution, IdRequest, IdMaster FROM ExecutionRequest WHERE (IdExecution = @IdExecution)";
  4558. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4559. 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, "", "", ""));
  4560. 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, "", "", ""));
  4561. 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, "", "", ""));
  4562. 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, "", "", ""));
  4563. 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, "", "", ""));
  4564. 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, "", "", ""));
  4565. 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, "", "", ""));
  4566. 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, "", "", ""));
  4567. }
  4568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4570. private void InitConnection() {
  4571. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4572. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  4573. }
  4574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4576. private void InitCommandCollection() {
  4577. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4578. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4579. this._commandCollection[0].Connection = this.Connection;
  4580. this._commandCollection[0].CommandText = "SELECT IdExecution, IdRequest, IdMaster FROM dbo.ExecutionRequest";
  4581. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4582. }
  4583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4585. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4586. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4587. public virtual int Fill(TechServiceBAUDataSet.ExecutionRequestDataTable dataTable) {
  4588. this.Adapter.SelectCommand = this.CommandCollection[0];
  4589. if ((this.ClearBeforeFill == true)) {
  4590. dataTable.Clear();
  4591. }
  4592. int returnValue = this.Adapter.Fill(dataTable);
  4593. return returnValue;
  4594. }
  4595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4597. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4598. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4599. public virtual TechServiceBAUDataSet.ExecutionRequestDataTable GetData() {
  4600. this.Adapter.SelectCommand = this.CommandCollection[0];
  4601. TechServiceBAUDataSet.ExecutionRequestDataTable dataTable = new TechServiceBAUDataSet.ExecutionRequestDataTable();
  4602. this.Adapter.Fill(dataTable);
  4603. return dataTable;
  4604. }
  4605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4607. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4608. public virtual int Update(TechServiceBAUDataSet.ExecutionRequestDataTable dataTable) {
  4609. return this.Adapter.Update(dataTable);
  4610. }
  4611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4613. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4614. public virtual int Update(TechServiceBAUDataSet dataSet) {
  4615. return this.Adapter.Update(dataSet, "ExecutionRequest");
  4616. }
  4617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4619. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4620. public virtual int Update(global::System.Data.DataRow dataRow) {
  4621. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4622. dataRow});
  4623. }
  4624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4626. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4627. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4628. return this.Adapter.Update(dataRows);
  4629. }
  4630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4632. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4633. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4634. public virtual int Delete(int Original_IdExecution, global::System.Nullable<int> Original_IdRequest, global::System.Nullable<int> Original_IdMaster) {
  4635. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdExecution));
  4636. if ((Original_IdRequest.HasValue == true)) {
  4637. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4638. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IdRequest.Value));
  4639. }
  4640. else {
  4641. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4642. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4643. }
  4644. if ((Original_IdMaster.HasValue == true)) {
  4645. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4646. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IdMaster.Value));
  4647. }
  4648. else {
  4649. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4650. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4651. }
  4652. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4653. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4654. != global::System.Data.ConnectionState.Open)) {
  4655. this.Adapter.DeleteCommand.Connection.Open();
  4656. }
  4657. try {
  4658. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4659. return returnValue;
  4660. }
  4661. finally {
  4662. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4663. this.Adapter.DeleteCommand.Connection.Close();
  4664. }
  4665. }
  4666. }
  4667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4669. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4670. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4671. public virtual int Insert(global::System.Nullable<int> IdRequest, global::System.Nullable<int> IdMaster) {
  4672. if ((IdRequest.HasValue == true)) {
  4673. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdRequest.Value));
  4674. }
  4675. else {
  4676. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4677. }
  4678. if ((IdMaster.HasValue == true)) {
  4679. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdMaster.Value));
  4680. }
  4681. else {
  4682. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4683. }
  4684. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4685. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4686. != global::System.Data.ConnectionState.Open)) {
  4687. this.Adapter.InsertCommand.Connection.Open();
  4688. }
  4689. try {
  4690. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4691. return returnValue;
  4692. }
  4693. finally {
  4694. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4695. this.Adapter.InsertCommand.Connection.Close();
  4696. }
  4697. }
  4698. }
  4699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4701. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4702. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4703. 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) {
  4704. if ((IdRequest.HasValue == true)) {
  4705. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdRequest.Value));
  4706. }
  4707. else {
  4708. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4709. }
  4710. if ((IdMaster.HasValue == true)) {
  4711. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdMaster.Value));
  4712. }
  4713. else {
  4714. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4715. }
  4716. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_IdExecution));
  4717. if ((Original_IdRequest.HasValue == true)) {
  4718. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  4719. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IdRequest.Value));
  4720. }
  4721. else {
  4722. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  4723. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4724. }
  4725. if ((Original_IdMaster.HasValue == true)) {
  4726. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  4727. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IdMaster.Value));
  4728. }
  4729. else {
  4730. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  4731. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  4732. }
  4733. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(IdExecution));
  4734. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4735. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4736. != global::System.Data.ConnectionState.Open)) {
  4737. this.Adapter.UpdateCommand.Connection.Open();
  4738. }
  4739. try {
  4740. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4741. return returnValue;
  4742. }
  4743. finally {
  4744. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4745. this.Adapter.UpdateCommand.Connection.Close();
  4746. }
  4747. }
  4748. }
  4749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4751. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4752. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4753. 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) {
  4754. return this.Update(IdRequest, IdMaster, Original_IdExecution, Original_IdRequest, Original_IdMaster, Original_IdExecution);
  4755. }
  4756. }
  4757. /// <summary>
  4758. ///Represents the connection and commands used to retrieve and save data.
  4759. ///</summary>
  4760. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4761. [global::System.ComponentModel.ToolboxItem(true)]
  4762. [global::System.ComponentModel.DataObjectAttribute(true)]
  4763. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4764. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4765. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4766. public partial class RequestTableAdapter : global::System.ComponentModel.Component {
  4767. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4768. private global::System.Data.SqlClient.SqlConnection _connection;
  4769. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4770. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4771. private bool _clearBeforeFill;
  4772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4774. public RequestTableAdapter() {
  4775. this.ClearBeforeFill = true;
  4776. }
  4777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4779. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4780. get {
  4781. if ((this._adapter == null)) {
  4782. this.InitAdapter();
  4783. }
  4784. return this._adapter;
  4785. }
  4786. }
  4787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4789. internal global::System.Data.SqlClient.SqlConnection Connection {
  4790. get {
  4791. if ((this._connection == null)) {
  4792. this.InitConnection();
  4793. }
  4794. return this._connection;
  4795. }
  4796. set {
  4797. this._connection = value;
  4798. if ((this.Adapter.InsertCommand != null)) {
  4799. this.Adapter.InsertCommand.Connection = value;
  4800. }
  4801. if ((this.Adapter.DeleteCommand != null)) {
  4802. this.Adapter.DeleteCommand.Connection = value;
  4803. }
  4804. if ((this.Adapter.UpdateCommand != null)) {
  4805. this.Adapter.UpdateCommand.Connection = value;
  4806. }
  4807. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4808. if ((this.CommandCollection[i] != null)) {
  4809. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4810. }
  4811. }
  4812. }
  4813. }
  4814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4816. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4817. get {
  4818. return this._transaction;
  4819. }
  4820. set {
  4821. this._transaction = value;
  4822. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4823. this.CommandCollection[i].Transaction = this._transaction;
  4824. }
  4825. if (((this.Adapter != null)
  4826. && (this.Adapter.DeleteCommand != null))) {
  4827. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4828. }
  4829. if (((this.Adapter != null)
  4830. && (this.Adapter.InsertCommand != null))) {
  4831. this.Adapter.InsertCommand.Transaction = this._transaction;
  4832. }
  4833. if (((this.Adapter != null)
  4834. && (this.Adapter.UpdateCommand != null))) {
  4835. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4836. }
  4837. }
  4838. }
  4839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4841. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4842. get {
  4843. if ((this._commandCollection == null)) {
  4844. this.InitCommandCollection();
  4845. }
  4846. return this._commandCollection;
  4847. }
  4848. }
  4849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4851. public bool ClearBeforeFill {
  4852. get {
  4853. return this._clearBeforeFill;
  4854. }
  4855. set {
  4856. this._clearBeforeFill = value;
  4857. }
  4858. }
  4859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4861. private void InitAdapter() {
  4862. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4863. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4864. tableMapping.SourceTable = "Table";
  4865. tableMapping.DataSetTable = "Request";
  4866. tableMapping.ColumnMappings.Add("IdRequest", "IdRequest");
  4867. tableMapping.ColumnMappings.Add("IdStatus", "IdStatus");
  4868. tableMapping.ColumnMappings.Add("IdTypeDefect", "IdTypeDefect");
  4869. tableMapping.ColumnMappings.Add("IdClient", "IdClient");
  4870. tableMapping.ColumnMappings.Add("IdManager", "IdManager");
  4871. tableMapping.ColumnMappings.Add("DateAccepting", "DateAccepting");
  4872. tableMapping.ColumnMappings.Add("DateCompletion", "DateCompletion");
  4873. tableMapping.ColumnMappings.Add("EquipmentDefect", "EquipmentDefect");
  4874. tableMapping.ColumnMappings.Add("Description", "Description");
  4875. tableMapping.ColumnMappings.Add("Comment", "Comment");
  4876. this._adapter.TableMappings.Add(tableMapping);
  4877. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4878. this._adapter.DeleteCommand.Connection = this.Connection;
  4879. 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)))";
  4880. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4881. 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, "", "", ""));
  4882. 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, "", "", ""));
  4883. 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, "", "", ""));
  4884. 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, "", "", ""));
  4885. 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, "", "", ""));
  4886. 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, "", "", ""));
  4887. 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, "", "", ""));
  4888. 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, "", "", ""));
  4889. 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, "", "", ""));
  4890. 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, "", "", ""));
  4891. 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, "", "", ""));
  4892. 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, "", "", ""));
  4893. 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, "", "", ""));
  4894. 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, "", "", ""));
  4895. 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, "", "", ""));
  4896. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4897. this._adapter.InsertCommand.Connection = this.Connection;
  4898. 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);
  4899. SELECT IdRequest, IdStatus, IdTypeDefect, IdClient, IdManager, DateAccepting, DateCompletion, EquipmentDefect, Description, Comment FROM Request WHERE (IdRequest = SCOPE_IDENTITY())";
  4900. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4901. 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, "", "", ""));
  4902. 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, "", "", ""));
  4903. 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, "", "", ""));
  4904. 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, "", "", ""));
  4905. 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, "", "", ""));
  4906. 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, "", "", ""));
  4907. 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, "", "", ""));
  4908. 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, "", "", ""));
  4909. 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, "", "", ""));
  4910. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4911. this._adapter.UpdateCommand.Connection = this.Connection;
  4912. 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)));
  4913. SELECT IdRequest, IdStatus, IdTypeDefect, IdClient, IdManager, DateAccepting, DateCompletion, EquipmentDefect, Description, Comment FROM Request WHERE (IdRequest = @IdRequest)";
  4914. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4915. 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, "", "", ""));
  4916. 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, "", "", ""));
  4917. 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, "", "", ""));
  4918. 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, "", "", ""));
  4919. 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, "", "", ""));
  4920. 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, "", "", ""));
  4921. 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, "", "", ""));
  4922. 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, "", "", ""));
  4923. 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, "", "", ""));
  4924. 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, "", "", ""));
  4925. 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, "", "", ""));
  4926. 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, "", "", ""));
  4927. 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, "", "", ""));
  4928. 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, "", "", ""));
  4929. 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, "", "", ""));
  4930. 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, "", "", ""));
  4931. 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, "", "", ""));
  4932. 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, "", "", ""));
  4933. 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, "", "", ""));
  4934. 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, "", "", ""));
  4935. 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, "", "", ""));
  4936. 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, "", "", ""));
  4937. 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, "", "", ""));
  4938. 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, "", "", ""));
  4939. 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, "", "", ""));
  4940. }
  4941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4943. private void InitConnection() {
  4944. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4945. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  4946. }
  4947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4949. private void InitCommandCollection() {
  4950. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4951. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4952. this._commandCollection[0].Connection = this.Connection;
  4953. this._commandCollection[0].CommandText = "SELECT IdRequest, IdStatus, IdTypeDefect, IdClient, IdManager, DateAccepting, Dat" +
  4954. "eCompletion, EquipmentDefect, Description, Comment FROM dbo.Request";
  4955. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4956. }
  4957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4959. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4960. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4961. public virtual int Fill(TechServiceBAUDataSet.RequestDataTable dataTable) {
  4962. this.Adapter.SelectCommand = this.CommandCollection[0];
  4963. if ((this.ClearBeforeFill == true)) {
  4964. dataTable.Clear();
  4965. }
  4966. int returnValue = this.Adapter.Fill(dataTable);
  4967. return returnValue;
  4968. }
  4969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4971. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4972. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4973. public virtual TechServiceBAUDataSet.RequestDataTable GetData() {
  4974. this.Adapter.SelectCommand = this.CommandCollection[0];
  4975. TechServiceBAUDataSet.RequestDataTable dataTable = new TechServiceBAUDataSet.RequestDataTable();
  4976. this.Adapter.Fill(dataTable);
  4977. return dataTable;
  4978. }
  4979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4981. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4982. public virtual int Update(TechServiceBAUDataSet.RequestDataTable dataTable) {
  4983. return this.Adapter.Update(dataTable);
  4984. }
  4985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4987. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4988. public virtual int Update(TechServiceBAUDataSet dataSet) {
  4989. return this.Adapter.Update(dataSet, "Request");
  4990. }
  4991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4993. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4994. public virtual int Update(global::System.Data.DataRow dataRow) {
  4995. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4996. dataRow});
  4997. }
  4998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5000. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5001. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5002. return this.Adapter.Update(dataRows);
  5003. }
  5004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5006. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5007. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5008. 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) {
  5009. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdRequest));
  5010. if ((Original_IdStatus.HasValue == true)) {
  5011. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5012. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IdStatus.Value));
  5013. }
  5014. else {
  5015. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5016. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5017. }
  5018. if ((Original_IdTypeDefect.HasValue == true)) {
  5019. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5020. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IdTypeDefect.Value));
  5021. }
  5022. else {
  5023. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5024. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5025. }
  5026. if ((Original_IdClient.HasValue == true)) {
  5027. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5028. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_IdClient.Value));
  5029. }
  5030. else {
  5031. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5032. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5033. }
  5034. if ((Original_IdManager.HasValue == true)) {
  5035. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  5036. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_IdManager.Value));
  5037. }
  5038. else {
  5039. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  5040. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  5041. }
  5042. if ((Original_DateAccepting.HasValue == true)) {
  5043. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  5044. this.Adapter.DeleteCommand.Parameters[10].Value = ((System.DateTime)(Original_DateAccepting.Value));
  5045. }
  5046. else {
  5047. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  5048. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  5049. }
  5050. if ((Original_DateCompletion.HasValue == true)) {
  5051. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  5052. this.Adapter.DeleteCommand.Parameters[12].Value = ((System.DateTime)(Original_DateCompletion.Value));
  5053. }
  5054. else {
  5055. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  5056. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  5057. }
  5058. if ((Original_EquipmentDefect == null)) {
  5059. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  5060. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  5061. }
  5062. else {
  5063. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  5064. this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_EquipmentDefect));
  5065. }
  5066. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5067. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5068. != global::System.Data.ConnectionState.Open)) {
  5069. this.Adapter.DeleteCommand.Connection.Open();
  5070. }
  5071. try {
  5072. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5073. return returnValue;
  5074. }
  5075. finally {
  5076. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5077. this.Adapter.DeleteCommand.Connection.Close();
  5078. }
  5079. }
  5080. }
  5081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5083. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5084. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5085. 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) {
  5086. if ((IdStatus.HasValue == true)) {
  5087. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdStatus.Value));
  5088. }
  5089. else {
  5090. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5091. }
  5092. if ((IdTypeDefect.HasValue == true)) {
  5093. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdTypeDefect.Value));
  5094. }
  5095. else {
  5096. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5097. }
  5098. if ((IdClient.HasValue == true)) {
  5099. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(IdClient.Value));
  5100. }
  5101. else {
  5102. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5103. }
  5104. if ((IdManager.HasValue == true)) {
  5105. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(IdManager.Value));
  5106. }
  5107. else {
  5108. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5109. }
  5110. if ((DateAccepting.HasValue == true)) {
  5111. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(DateAccepting.Value));
  5112. }
  5113. else {
  5114. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5115. }
  5116. if ((DateCompletion.HasValue == true)) {
  5117. this.Adapter.InsertCommand.Parameters[5].Value = ((System.DateTime)(DateCompletion.Value));
  5118. }
  5119. else {
  5120. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  5121. }
  5122. if ((EquipmentDefect == null)) {
  5123. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  5124. }
  5125. else {
  5126. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(EquipmentDefect));
  5127. }
  5128. if ((Description == null)) {
  5129. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  5130. }
  5131. else {
  5132. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Description));
  5133. }
  5134. if ((Comment == null)) {
  5135. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  5136. }
  5137. else {
  5138. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(Comment));
  5139. }
  5140. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5141. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5142. != global::System.Data.ConnectionState.Open)) {
  5143. this.Adapter.InsertCommand.Connection.Open();
  5144. }
  5145. try {
  5146. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5147. return returnValue;
  5148. }
  5149. finally {
  5150. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5151. this.Adapter.InsertCommand.Connection.Close();
  5152. }
  5153. }
  5154. }
  5155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5157. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5158. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5159. public virtual int Update(
  5160. global::System.Nullable<int> IdStatus,
  5161. global::System.Nullable<int> IdTypeDefect,
  5162. global::System.Nullable<int> IdClient,
  5163. global::System.Nullable<int> IdManager,
  5164. global::System.Nullable<global::System.DateTime> DateAccepting,
  5165. global::System.Nullable<global::System.DateTime> DateCompletion,
  5166. string EquipmentDefect,
  5167. string Description,
  5168. string Comment,
  5169. int Original_IdRequest,
  5170. global::System.Nullable<int> Original_IdStatus,
  5171. global::System.Nullable<int> Original_IdTypeDefect,
  5172. global::System.Nullable<int> Original_IdClient,
  5173. global::System.Nullable<int> Original_IdManager,
  5174. global::System.Nullable<global::System.DateTime> Original_DateAccepting,
  5175. global::System.Nullable<global::System.DateTime> Original_DateCompletion,
  5176. string Original_EquipmentDefect,
  5177. int IdRequest) {
  5178. if ((IdStatus.HasValue == true)) {
  5179. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdStatus.Value));
  5180. }
  5181. else {
  5182. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5183. }
  5184. if ((IdTypeDefect.HasValue == true)) {
  5185. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdTypeDefect.Value));
  5186. }
  5187. else {
  5188. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5189. }
  5190. if ((IdClient.HasValue == true)) {
  5191. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(IdClient.Value));
  5192. }
  5193. else {
  5194. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5195. }
  5196. if ((IdManager.HasValue == true)) {
  5197. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(IdManager.Value));
  5198. }
  5199. else {
  5200. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5201. }
  5202. if ((DateAccepting.HasValue == true)) {
  5203. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(DateAccepting.Value));
  5204. }
  5205. else {
  5206. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5207. }
  5208. if ((DateCompletion.HasValue == true)) {
  5209. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(DateCompletion.Value));
  5210. }
  5211. else {
  5212. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5213. }
  5214. if ((EquipmentDefect == null)) {
  5215. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  5216. }
  5217. else {
  5218. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(EquipmentDefect));
  5219. }
  5220. if ((Description == null)) {
  5221. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  5222. }
  5223. else {
  5224. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Description));
  5225. }
  5226. if ((Comment == null)) {
  5227. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  5228. }
  5229. else {
  5230. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Comment));
  5231. }
  5232. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_IdRequest));
  5233. if ((Original_IdStatus.HasValue == true)) {
  5234. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  5235. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_IdStatus.Value));
  5236. }
  5237. else {
  5238. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  5239. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  5240. }
  5241. if ((Original_IdTypeDefect.HasValue == true)) {
  5242. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  5243. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_IdTypeDefect.Value));
  5244. }
  5245. else {
  5246. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  5247. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  5248. }
  5249. if ((Original_IdClient.HasValue == true)) {
  5250. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  5251. this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_IdClient.Value));
  5252. }
  5253. else {
  5254. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  5255. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  5256. }
  5257. if ((Original_IdManager.HasValue == true)) {
  5258. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  5259. this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_IdManager.Value));
  5260. }
  5261. else {
  5262. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  5263. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  5264. }
  5265. if ((Original_DateAccepting.HasValue == true)) {
  5266. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  5267. this.Adapter.UpdateCommand.Parameters[19].Value = ((System.DateTime)(Original_DateAccepting.Value));
  5268. }
  5269. else {
  5270. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  5271. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  5272. }
  5273. if ((Original_DateCompletion.HasValue == true)) {
  5274. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  5275. this.Adapter.UpdateCommand.Parameters[21].Value = ((System.DateTime)(Original_DateCompletion.Value));
  5276. }
  5277. else {
  5278. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  5279. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  5280. }
  5281. if ((Original_EquipmentDefect == null)) {
  5282. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
  5283. this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
  5284. }
  5285. else {
  5286. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
  5287. this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_EquipmentDefect));
  5288. }
  5289. this.Adapter.UpdateCommand.Parameters[24].Value = ((int)(IdRequest));
  5290. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5291. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5292. != global::System.Data.ConnectionState.Open)) {
  5293. this.Adapter.UpdateCommand.Connection.Open();
  5294. }
  5295. try {
  5296. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5297. return returnValue;
  5298. }
  5299. finally {
  5300. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5301. this.Adapter.UpdateCommand.Connection.Close();
  5302. }
  5303. }
  5304. }
  5305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5307. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5308. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5309. public virtual int Update(
  5310. global::System.Nullable<int> IdStatus,
  5311. global::System.Nullable<int> IdTypeDefect,
  5312. global::System.Nullable<int> IdClient,
  5313. global::System.Nullable<int> IdManager,
  5314. global::System.Nullable<global::System.DateTime> DateAccepting,
  5315. global::System.Nullable<global::System.DateTime> DateCompletion,
  5316. string EquipmentDefect,
  5317. string Description,
  5318. string Comment,
  5319. int Original_IdRequest,
  5320. global::System.Nullable<int> Original_IdStatus,
  5321. global::System.Nullable<int> Original_IdTypeDefect,
  5322. global::System.Nullable<int> Original_IdClient,
  5323. global::System.Nullable<int> Original_IdManager,
  5324. global::System.Nullable<global::System.DateTime> Original_DateAccepting,
  5325. global::System.Nullable<global::System.DateTime> Original_DateCompletion,
  5326. string Original_EquipmentDefect) {
  5327. 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);
  5328. }
  5329. }
  5330. /// <summary>
  5331. ///Represents the connection and commands used to retrieve and save data.
  5332. ///</summary>
  5333. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5334. [global::System.ComponentModel.ToolboxItem(true)]
  5335. [global::System.ComponentModel.DataObjectAttribute(true)]
  5336. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5337. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5338. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5339. public partial class RoleTableAdapter : global::System.ComponentModel.Component {
  5340. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5341. private global::System.Data.SqlClient.SqlConnection _connection;
  5342. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5343. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5344. private bool _clearBeforeFill;
  5345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5347. public RoleTableAdapter() {
  5348. this.ClearBeforeFill = true;
  5349. }
  5350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5352. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5353. get {
  5354. if ((this._adapter == null)) {
  5355. this.InitAdapter();
  5356. }
  5357. return this._adapter;
  5358. }
  5359. }
  5360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5362. internal global::System.Data.SqlClient.SqlConnection Connection {
  5363. get {
  5364. if ((this._connection == null)) {
  5365. this.InitConnection();
  5366. }
  5367. return this._connection;
  5368. }
  5369. set {
  5370. this._connection = value;
  5371. if ((this.Adapter.InsertCommand != null)) {
  5372. this.Adapter.InsertCommand.Connection = value;
  5373. }
  5374. if ((this.Adapter.DeleteCommand != null)) {
  5375. this.Adapter.DeleteCommand.Connection = value;
  5376. }
  5377. if ((this.Adapter.UpdateCommand != null)) {
  5378. this.Adapter.UpdateCommand.Connection = value;
  5379. }
  5380. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5381. if ((this.CommandCollection[i] != null)) {
  5382. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5383. }
  5384. }
  5385. }
  5386. }
  5387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5389. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5390. get {
  5391. return this._transaction;
  5392. }
  5393. set {
  5394. this._transaction = value;
  5395. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5396. this.CommandCollection[i].Transaction = this._transaction;
  5397. }
  5398. if (((this.Adapter != null)
  5399. && (this.Adapter.DeleteCommand != null))) {
  5400. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5401. }
  5402. if (((this.Adapter != null)
  5403. && (this.Adapter.InsertCommand != null))) {
  5404. this.Adapter.InsertCommand.Transaction = this._transaction;
  5405. }
  5406. if (((this.Adapter != null)
  5407. && (this.Adapter.UpdateCommand != null))) {
  5408. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5409. }
  5410. }
  5411. }
  5412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5414. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5415. get {
  5416. if ((this._commandCollection == null)) {
  5417. this.InitCommandCollection();
  5418. }
  5419. return this._commandCollection;
  5420. }
  5421. }
  5422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5424. public bool ClearBeforeFill {
  5425. get {
  5426. return this._clearBeforeFill;
  5427. }
  5428. set {
  5429. this._clearBeforeFill = value;
  5430. }
  5431. }
  5432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5434. private void InitAdapter() {
  5435. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5436. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5437. tableMapping.SourceTable = "Table";
  5438. tableMapping.DataSetTable = "Role";
  5439. tableMapping.ColumnMappings.Add("IdRole", "IdRole");
  5440. tableMapping.ColumnMappings.Add("Title", "Title");
  5441. this._adapter.TableMappings.Add(tableMapping);
  5442. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5443. this._adapter.DeleteCommand.Connection = this.Connection;
  5444. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Role] WHERE (([IdRole] = @Original_IdRole) AND ((@IsNull_Title" +
  5445. " = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))";
  5446. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5447. 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, "", "", ""));
  5448. 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, "", "", ""));
  5449. 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, "", "", ""));
  5450. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5451. this._adapter.InsertCommand.Connection = this.Connection;
  5452. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Role] ([Title]) VALUES (@Title);\r\nSELECT IdRole, Title FROM Ro" +
  5453. "le WHERE (IdRole = SCOPE_IDENTITY())";
  5454. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5455. 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, "", "", ""));
  5456. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5457. this._adapter.UpdateCommand.Connection = this.Connection;
  5458. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Role] SET [Title] = @Title WHERE (([IdRole] = @Original_IdRole) AND" +
  5459. " ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)));\r\nSEL" +
  5460. "ECT IdRole, Title FROM Role WHERE (IdRole = @IdRole)";
  5461. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5462. 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, "", "", ""));
  5463. 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, "", "", ""));
  5464. 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, "", "", ""));
  5465. 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, "", "", ""));
  5466. 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, "", "", ""));
  5467. }
  5468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5470. private void InitConnection() {
  5471. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5472. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  5473. }
  5474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5476. private void InitCommandCollection() {
  5477. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5478. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5479. this._commandCollection[0].Connection = this.Connection;
  5480. this._commandCollection[0].CommandText = "SELECT IdRole, Title FROM dbo.Role";
  5481. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5482. }
  5483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5485. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5486. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5487. public virtual int Fill(TechServiceBAUDataSet.RoleDataTable dataTable) {
  5488. this.Adapter.SelectCommand = this.CommandCollection[0];
  5489. if ((this.ClearBeforeFill == true)) {
  5490. dataTable.Clear();
  5491. }
  5492. int returnValue = this.Adapter.Fill(dataTable);
  5493. return returnValue;
  5494. }
  5495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5497. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5498. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5499. public virtual TechServiceBAUDataSet.RoleDataTable GetData() {
  5500. this.Adapter.SelectCommand = this.CommandCollection[0];
  5501. TechServiceBAUDataSet.RoleDataTable dataTable = new TechServiceBAUDataSet.RoleDataTable();
  5502. this.Adapter.Fill(dataTable);
  5503. return dataTable;
  5504. }
  5505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5507. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5508. public virtual int Update(TechServiceBAUDataSet.RoleDataTable dataTable) {
  5509. return this.Adapter.Update(dataTable);
  5510. }
  5511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5513. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5514. public virtual int Update(TechServiceBAUDataSet dataSet) {
  5515. return this.Adapter.Update(dataSet, "Role");
  5516. }
  5517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5519. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5520. public virtual int Update(global::System.Data.DataRow dataRow) {
  5521. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5522. dataRow});
  5523. }
  5524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5526. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5527. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5528. return this.Adapter.Update(dataRows);
  5529. }
  5530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5532. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5533. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5534. public virtual int Delete(int Original_IdRole, string Original_Title) {
  5535. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdRole));
  5536. if ((Original_Title == null)) {
  5537. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5538. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5539. }
  5540. else {
  5541. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5542. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Title));
  5543. }
  5544. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5545. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5546. != global::System.Data.ConnectionState.Open)) {
  5547. this.Adapter.DeleteCommand.Connection.Open();
  5548. }
  5549. try {
  5550. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5551. return returnValue;
  5552. }
  5553. finally {
  5554. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5555. this.Adapter.DeleteCommand.Connection.Close();
  5556. }
  5557. }
  5558. }
  5559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5561. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5562. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5563. public virtual int Insert(string Title) {
  5564. if ((Title == null)) {
  5565. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5566. }
  5567. else {
  5568. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  5569. }
  5570. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5571. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5572. != global::System.Data.ConnectionState.Open)) {
  5573. this.Adapter.InsertCommand.Connection.Open();
  5574. }
  5575. try {
  5576. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5577. return returnValue;
  5578. }
  5579. finally {
  5580. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5581. this.Adapter.InsertCommand.Connection.Close();
  5582. }
  5583. }
  5584. }
  5585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5587. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5588. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5589. public virtual int Update(string Title, int Original_IdRole, string Original_Title, int IdRole) {
  5590. if ((Title == null)) {
  5591. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5592. }
  5593. else {
  5594. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  5595. }
  5596. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IdRole));
  5597. if ((Original_Title == null)) {
  5598. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  5599. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5600. }
  5601. else {
  5602. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  5603. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  5604. }
  5605. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IdRole));
  5606. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5607. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5608. != global::System.Data.ConnectionState.Open)) {
  5609. this.Adapter.UpdateCommand.Connection.Open();
  5610. }
  5611. try {
  5612. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5613. return returnValue;
  5614. }
  5615. finally {
  5616. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5617. this.Adapter.UpdateCommand.Connection.Close();
  5618. }
  5619. }
  5620. }
  5621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5623. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5624. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5625. public virtual int Update(string Title, int Original_IdRole, string Original_Title) {
  5626. return this.Update(Title, Original_IdRole, Original_Title, Original_IdRole);
  5627. }
  5628. }
  5629. /// <summary>
  5630. ///Represents the connection and commands used to retrieve and save data.
  5631. ///</summary>
  5632. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5633. [global::System.ComponentModel.ToolboxItem(true)]
  5634. [global::System.ComponentModel.DataObjectAttribute(true)]
  5635. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5636. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5637. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5638. public partial class StatusTableAdapter : global::System.ComponentModel.Component {
  5639. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5640. private global::System.Data.SqlClient.SqlConnection _connection;
  5641. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5642. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5643. private bool _clearBeforeFill;
  5644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5646. public StatusTableAdapter() {
  5647. this.ClearBeforeFill = true;
  5648. }
  5649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5651. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5652. get {
  5653. if ((this._adapter == null)) {
  5654. this.InitAdapter();
  5655. }
  5656. return this._adapter;
  5657. }
  5658. }
  5659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5661. internal global::System.Data.SqlClient.SqlConnection Connection {
  5662. get {
  5663. if ((this._connection == null)) {
  5664. this.InitConnection();
  5665. }
  5666. return this._connection;
  5667. }
  5668. set {
  5669. this._connection = value;
  5670. if ((this.Adapter.InsertCommand != null)) {
  5671. this.Adapter.InsertCommand.Connection = value;
  5672. }
  5673. if ((this.Adapter.DeleteCommand != null)) {
  5674. this.Adapter.DeleteCommand.Connection = value;
  5675. }
  5676. if ((this.Adapter.UpdateCommand != null)) {
  5677. this.Adapter.UpdateCommand.Connection = value;
  5678. }
  5679. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5680. if ((this.CommandCollection[i] != null)) {
  5681. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5682. }
  5683. }
  5684. }
  5685. }
  5686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5688. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5689. get {
  5690. return this._transaction;
  5691. }
  5692. set {
  5693. this._transaction = value;
  5694. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5695. this.CommandCollection[i].Transaction = this._transaction;
  5696. }
  5697. if (((this.Adapter != null)
  5698. && (this.Adapter.DeleteCommand != null))) {
  5699. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5700. }
  5701. if (((this.Adapter != null)
  5702. && (this.Adapter.InsertCommand != null))) {
  5703. this.Adapter.InsertCommand.Transaction = this._transaction;
  5704. }
  5705. if (((this.Adapter != null)
  5706. && (this.Adapter.UpdateCommand != null))) {
  5707. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5708. }
  5709. }
  5710. }
  5711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5713. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5714. get {
  5715. if ((this._commandCollection == null)) {
  5716. this.InitCommandCollection();
  5717. }
  5718. return this._commandCollection;
  5719. }
  5720. }
  5721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5723. public bool ClearBeforeFill {
  5724. get {
  5725. return this._clearBeforeFill;
  5726. }
  5727. set {
  5728. this._clearBeforeFill = value;
  5729. }
  5730. }
  5731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5733. private void InitAdapter() {
  5734. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5735. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5736. tableMapping.SourceTable = "Table";
  5737. tableMapping.DataSetTable = "Status";
  5738. tableMapping.ColumnMappings.Add("IdStatus", "IdStatus");
  5739. tableMapping.ColumnMappings.Add("Title", "Title");
  5740. this._adapter.TableMappings.Add(tableMapping);
  5741. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5742. this._adapter.DeleteCommand.Connection = this.Connection;
  5743. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Status] WHERE (([IdStatus] = @Original_IdStatus) AND ((@IsNull" +
  5744. "_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))";
  5745. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5746. 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, "", "", ""));
  5747. 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, "", "", ""));
  5748. 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, "", "", ""));
  5749. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5750. this._adapter.InsertCommand.Connection = this.Connection;
  5751. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Status] ([Title]) VALUES (@Title);\r\nSELECT IdStatus, Title FRO" +
  5752. "M Status WHERE (IdStatus = SCOPE_IDENTITY())";
  5753. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5754. 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, "", "", ""));
  5755. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5756. this._adapter.UpdateCommand.Connection = this.Connection;
  5757. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Status] SET [Title] = @Title WHERE (([IdStatus] = @Original_IdStatu" +
  5758. "s) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))" +
  5759. ";\r\nSELECT IdStatus, Title FROM Status WHERE (IdStatus = @IdStatus)";
  5760. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5761. 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, "", "", ""));
  5762. 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, "", "", ""));
  5763. 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, "", "", ""));
  5764. 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, "", "", ""));
  5765. 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, "", "", ""));
  5766. }
  5767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5769. private void InitConnection() {
  5770. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5771. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  5772. }
  5773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5775. private void InitCommandCollection() {
  5776. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5777. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5778. this._commandCollection[0].Connection = this.Connection;
  5779. this._commandCollection[0].CommandText = "SELECT IdStatus, Title FROM dbo.Status";
  5780. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5781. }
  5782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5784. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5785. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5786. public virtual int Fill(TechServiceBAUDataSet.StatusDataTable dataTable) {
  5787. this.Adapter.SelectCommand = this.CommandCollection[0];
  5788. if ((this.ClearBeforeFill == true)) {
  5789. dataTable.Clear();
  5790. }
  5791. int returnValue = this.Adapter.Fill(dataTable);
  5792. return returnValue;
  5793. }
  5794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5796. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5797. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5798. public virtual TechServiceBAUDataSet.StatusDataTable GetData() {
  5799. this.Adapter.SelectCommand = this.CommandCollection[0];
  5800. TechServiceBAUDataSet.StatusDataTable dataTable = new TechServiceBAUDataSet.StatusDataTable();
  5801. this.Adapter.Fill(dataTable);
  5802. return dataTable;
  5803. }
  5804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5806. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5807. public virtual int Update(TechServiceBAUDataSet.StatusDataTable dataTable) {
  5808. return this.Adapter.Update(dataTable);
  5809. }
  5810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5812. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5813. public virtual int Update(TechServiceBAUDataSet dataSet) {
  5814. return this.Adapter.Update(dataSet, "Status");
  5815. }
  5816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5818. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5819. public virtual int Update(global::System.Data.DataRow dataRow) {
  5820. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5821. dataRow});
  5822. }
  5823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5825. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5826. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5827. return this.Adapter.Update(dataRows);
  5828. }
  5829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5831. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5832. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5833. public virtual int Delete(int Original_IdStatus, string Original_Title) {
  5834. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdStatus));
  5835. if ((Original_Title == null)) {
  5836. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5837. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5838. }
  5839. else {
  5840. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5841. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Title));
  5842. }
  5843. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5844. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5845. != global::System.Data.ConnectionState.Open)) {
  5846. this.Adapter.DeleteCommand.Connection.Open();
  5847. }
  5848. try {
  5849. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5850. return returnValue;
  5851. }
  5852. finally {
  5853. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5854. this.Adapter.DeleteCommand.Connection.Close();
  5855. }
  5856. }
  5857. }
  5858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5860. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5861. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5862. public virtual int Insert(string Title) {
  5863. if ((Title == null)) {
  5864. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5865. }
  5866. else {
  5867. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  5868. }
  5869. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5870. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5871. != global::System.Data.ConnectionState.Open)) {
  5872. this.Adapter.InsertCommand.Connection.Open();
  5873. }
  5874. try {
  5875. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5876. return returnValue;
  5877. }
  5878. finally {
  5879. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5880. this.Adapter.InsertCommand.Connection.Close();
  5881. }
  5882. }
  5883. }
  5884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5886. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5887. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5888. public virtual int Update(string Title, int Original_IdStatus, string Original_Title, int IdStatus) {
  5889. if ((Title == null)) {
  5890. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5891. }
  5892. else {
  5893. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  5894. }
  5895. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IdStatus));
  5896. if ((Original_Title == null)) {
  5897. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  5898. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5899. }
  5900. else {
  5901. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  5902. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  5903. }
  5904. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IdStatus));
  5905. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5906. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5907. != global::System.Data.ConnectionState.Open)) {
  5908. this.Adapter.UpdateCommand.Connection.Open();
  5909. }
  5910. try {
  5911. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5912. return returnValue;
  5913. }
  5914. finally {
  5915. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5916. this.Adapter.UpdateCommand.Connection.Close();
  5917. }
  5918. }
  5919. }
  5920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5922. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5923. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5924. public virtual int Update(string Title, int Original_IdStatus, string Original_Title) {
  5925. return this.Update(Title, Original_IdStatus, Original_Title, Original_IdStatus);
  5926. }
  5927. }
  5928. /// <summary>
  5929. ///Represents the connection and commands used to retrieve and save data.
  5930. ///</summary>
  5931. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5932. [global::System.ComponentModel.ToolboxItem(true)]
  5933. [global::System.ComponentModel.DataObjectAttribute(true)]
  5934. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5935. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5936. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5937. public partial class TypeDefectTableAdapter : global::System.ComponentModel.Component {
  5938. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5939. private global::System.Data.SqlClient.SqlConnection _connection;
  5940. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5941. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5942. private bool _clearBeforeFill;
  5943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5945. public TypeDefectTableAdapter() {
  5946. this.ClearBeforeFill = true;
  5947. }
  5948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5950. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5951. get {
  5952. if ((this._adapter == null)) {
  5953. this.InitAdapter();
  5954. }
  5955. return this._adapter;
  5956. }
  5957. }
  5958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5960. internal global::System.Data.SqlClient.SqlConnection Connection {
  5961. get {
  5962. if ((this._connection == null)) {
  5963. this.InitConnection();
  5964. }
  5965. return this._connection;
  5966. }
  5967. set {
  5968. this._connection = value;
  5969. if ((this.Adapter.InsertCommand != null)) {
  5970. this.Adapter.InsertCommand.Connection = value;
  5971. }
  5972. if ((this.Adapter.DeleteCommand != null)) {
  5973. this.Adapter.DeleteCommand.Connection = value;
  5974. }
  5975. if ((this.Adapter.UpdateCommand != null)) {
  5976. this.Adapter.UpdateCommand.Connection = value;
  5977. }
  5978. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5979. if ((this.CommandCollection[i] != null)) {
  5980. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5981. }
  5982. }
  5983. }
  5984. }
  5985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5987. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5988. get {
  5989. return this._transaction;
  5990. }
  5991. set {
  5992. this._transaction = value;
  5993. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5994. this.CommandCollection[i].Transaction = this._transaction;
  5995. }
  5996. if (((this.Adapter != null)
  5997. && (this.Adapter.DeleteCommand != null))) {
  5998. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5999. }
  6000. if (((this.Adapter != null)
  6001. && (this.Adapter.InsertCommand != null))) {
  6002. this.Adapter.InsertCommand.Transaction = this._transaction;
  6003. }
  6004. if (((this.Adapter != null)
  6005. && (this.Adapter.UpdateCommand != null))) {
  6006. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6007. }
  6008. }
  6009. }
  6010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6012. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6013. get {
  6014. if ((this._commandCollection == null)) {
  6015. this.InitCommandCollection();
  6016. }
  6017. return this._commandCollection;
  6018. }
  6019. }
  6020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6022. public bool ClearBeforeFill {
  6023. get {
  6024. return this._clearBeforeFill;
  6025. }
  6026. set {
  6027. this._clearBeforeFill = value;
  6028. }
  6029. }
  6030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6032. private void InitAdapter() {
  6033. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6034. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6035. tableMapping.SourceTable = "Table";
  6036. tableMapping.DataSetTable = "TypeDefect";
  6037. tableMapping.ColumnMappings.Add("IdTypeDefect", "IdTypeDefect");
  6038. tableMapping.ColumnMappings.Add("Title", "Title");
  6039. this._adapter.TableMappings.Add(tableMapping);
  6040. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6041. this._adapter.DeleteCommand.Connection = this.Connection;
  6042. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TypeDefect] WHERE (([IdTypeDefect] = @Original_IdTypeDefect) A" +
  6043. "ND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))";
  6044. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6045. 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, "", "", ""));
  6046. 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, "", "", ""));
  6047. 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, "", "", ""));
  6048. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6049. this._adapter.InsertCommand.Connection = this.Connection;
  6050. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TypeDefect] ([Title]) VALUES (@Title);\r\nSELECT IdTypeDefect, T" +
  6051. "itle FROM TypeDefect WHERE (IdTypeDefect = SCOPE_IDENTITY())";
  6052. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6053. 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, "", "", ""));
  6054. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6055. this._adapter.UpdateCommand.Connection = this.Connection;
  6056. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TypeDefect] SET [Title] = @Title WHERE (([IdTypeDefect] = @Original" +
  6057. "_IdTypeDefect) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Origi" +
  6058. "nal_Title)));\r\nSELECT IdTypeDefect, Title FROM TypeDefect WHERE (IdTypeDefect = " +
  6059. "@IdTypeDefect)";
  6060. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6061. 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, "", "", ""));
  6062. 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, "", "", ""));
  6063. 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, "", "", ""));
  6064. 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, "", "", ""));
  6065. 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, "", "", ""));
  6066. }
  6067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6069. private void InitConnection() {
  6070. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6071. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  6072. }
  6073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6075. private void InitCommandCollection() {
  6076. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6077. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6078. this._commandCollection[0].Connection = this.Connection;
  6079. this._commandCollection[0].CommandText = "SELECT IdTypeDefect, Title FROM dbo.TypeDefect";
  6080. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6081. }
  6082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6084. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6085. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6086. public virtual int Fill(TechServiceBAUDataSet.TypeDefectDataTable dataTable) {
  6087. this.Adapter.SelectCommand = this.CommandCollection[0];
  6088. if ((this.ClearBeforeFill == true)) {
  6089. dataTable.Clear();
  6090. }
  6091. int returnValue = this.Adapter.Fill(dataTable);
  6092. return returnValue;
  6093. }
  6094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6096. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6097. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6098. public virtual TechServiceBAUDataSet.TypeDefectDataTable GetData() {
  6099. this.Adapter.SelectCommand = this.CommandCollection[0];
  6100. TechServiceBAUDataSet.TypeDefectDataTable dataTable = new TechServiceBAUDataSet.TypeDefectDataTable();
  6101. this.Adapter.Fill(dataTable);
  6102. return dataTable;
  6103. }
  6104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6106. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6107. public virtual int Update(TechServiceBAUDataSet.TypeDefectDataTable dataTable) {
  6108. return this.Adapter.Update(dataTable);
  6109. }
  6110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6112. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6113. public virtual int Update(TechServiceBAUDataSet dataSet) {
  6114. return this.Adapter.Update(dataSet, "TypeDefect");
  6115. }
  6116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6118. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6119. public virtual int Update(global::System.Data.DataRow dataRow) {
  6120. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6121. dataRow});
  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(global::System.Data.DataRow[] dataRows) {
  6127. return this.Adapter.Update(dataRows);
  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. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6133. public virtual int Delete(int Original_IdTypeDefect, string Original_Title) {
  6134. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdTypeDefect));
  6135. if ((Original_Title == null)) {
  6136. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6137. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6138. }
  6139. else {
  6140. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6141. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Title));
  6142. }
  6143. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6144. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6145. != global::System.Data.ConnectionState.Open)) {
  6146. this.Adapter.DeleteCommand.Connection.Open();
  6147. }
  6148. try {
  6149. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6150. return returnValue;
  6151. }
  6152. finally {
  6153. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6154. this.Adapter.DeleteCommand.Connection.Close();
  6155. }
  6156. }
  6157. }
  6158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6160. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6161. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6162. public virtual int Insert(string Title) {
  6163. if ((Title == null)) {
  6164. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6165. }
  6166. else {
  6167. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  6168. }
  6169. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6170. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6171. != global::System.Data.ConnectionState.Open)) {
  6172. this.Adapter.InsertCommand.Connection.Open();
  6173. }
  6174. try {
  6175. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6176. return returnValue;
  6177. }
  6178. finally {
  6179. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6180. this.Adapter.InsertCommand.Connection.Close();
  6181. }
  6182. }
  6183. }
  6184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6186. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6187. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6188. public virtual int Update(string Title, int Original_IdTypeDefect, string Original_Title, int IdTypeDefect) {
  6189. if ((Title == null)) {
  6190. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6191. }
  6192. else {
  6193. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  6194. }
  6195. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IdTypeDefect));
  6196. if ((Original_Title == null)) {
  6197. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  6198. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6199. }
  6200. else {
  6201. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  6202. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  6203. }
  6204. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IdTypeDefect));
  6205. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6206. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6207. != global::System.Data.ConnectionState.Open)) {
  6208. this.Adapter.UpdateCommand.Connection.Open();
  6209. }
  6210. try {
  6211. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6212. return returnValue;
  6213. }
  6214. finally {
  6215. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6216. this.Adapter.UpdateCommand.Connection.Close();
  6217. }
  6218. }
  6219. }
  6220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6222. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6223. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6224. public virtual int Update(string Title, int Original_IdTypeDefect, string Original_Title) {
  6225. return this.Update(Title, Original_IdTypeDefect, Original_Title, Original_IdTypeDefect);
  6226. }
  6227. }
  6228. /// <summary>
  6229. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  6230. ///</summary>
  6231. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6232. [global::System.ComponentModel.ToolboxItem(true)]
  6233. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  6234. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6235. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  6236. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  6237. private UpdateOrderOption _updateOrder;
  6238. private ClientTableAdapter _clientTableAdapter;
  6239. private EmployeeTableAdapter _employeeTableAdapter;
  6240. private ExecutionRequestTableAdapter _executionRequestTableAdapter;
  6241. private RequestTableAdapter _requestTableAdapter;
  6242. private RoleTableAdapter _roleTableAdapter;
  6243. private StatusTableAdapter _statusTableAdapter;
  6244. private TypeDefectTableAdapter _typeDefectTableAdapter;
  6245. private bool _backupDataSetBeforeUpdate;
  6246. private global::System.Data.IDbConnection _connection;
  6247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6249. public UpdateOrderOption UpdateOrder {
  6250. get {
  6251. return this._updateOrder;
  6252. }
  6253. set {
  6254. this._updateOrder = value;
  6255. }
  6256. }
  6257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6259. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6260. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6261. "a", "System.Drawing.Design.UITypeEditor")]
  6262. public ClientTableAdapter ClientTableAdapter {
  6263. get {
  6264. return this._clientTableAdapter;
  6265. }
  6266. set {
  6267. this._clientTableAdapter = value;
  6268. }
  6269. }
  6270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6272. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6273. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6274. "a", "System.Drawing.Design.UITypeEditor")]
  6275. public EmployeeTableAdapter EmployeeTableAdapter {
  6276. get {
  6277. return this._employeeTableAdapter;
  6278. }
  6279. set {
  6280. this._employeeTableAdapter = value;
  6281. }
  6282. }
  6283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6285. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6286. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6287. "a", "System.Drawing.Design.UITypeEditor")]
  6288. public ExecutionRequestTableAdapter ExecutionRequestTableAdapter {
  6289. get {
  6290. return this._executionRequestTableAdapter;
  6291. }
  6292. set {
  6293. this._executionRequestTableAdapter = value;
  6294. }
  6295. }
  6296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6298. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6299. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6300. "a", "System.Drawing.Design.UITypeEditor")]
  6301. public RequestTableAdapter RequestTableAdapter {
  6302. get {
  6303. return this._requestTableAdapter;
  6304. }
  6305. set {
  6306. this._requestTableAdapter = value;
  6307. }
  6308. }
  6309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6311. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6312. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6313. "a", "System.Drawing.Design.UITypeEditor")]
  6314. public RoleTableAdapter RoleTableAdapter {
  6315. get {
  6316. return this._roleTableAdapter;
  6317. }
  6318. set {
  6319. this._roleTableAdapter = value;
  6320. }
  6321. }
  6322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6324. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6325. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6326. "a", "System.Drawing.Design.UITypeEditor")]
  6327. public StatusTableAdapter StatusTableAdapter {
  6328. get {
  6329. return this._statusTableAdapter;
  6330. }
  6331. set {
  6332. this._statusTableAdapter = value;
  6333. }
  6334. }
  6335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6337. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6338. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6339. "a", "System.Drawing.Design.UITypeEditor")]
  6340. public TypeDefectTableAdapter TypeDefectTableAdapter {
  6341. get {
  6342. return this._typeDefectTableAdapter;
  6343. }
  6344. set {
  6345. this._typeDefectTableAdapter = value;
  6346. }
  6347. }
  6348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6350. public bool BackupDataSetBeforeUpdate {
  6351. get {
  6352. return this._backupDataSetBeforeUpdate;
  6353. }
  6354. set {
  6355. this._backupDataSetBeforeUpdate = value;
  6356. }
  6357. }
  6358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6360. [global::System.ComponentModel.Browsable(false)]
  6361. public global::System.Data.IDbConnection Connection {
  6362. get {
  6363. if ((this._connection != null)) {
  6364. return this._connection;
  6365. }
  6366. if (((this._clientTableAdapter != null)
  6367. && (this._clientTableAdapter.Connection != null))) {
  6368. return this._clientTableAdapter.Connection;
  6369. }
  6370. if (((this._employeeTableAdapter != null)
  6371. && (this._employeeTableAdapter.Connection != null))) {
  6372. return this._employeeTableAdapter.Connection;
  6373. }
  6374. if (((this._executionRequestTableAdapter != null)
  6375. && (this._executionRequestTableAdapter.Connection != null))) {
  6376. return this._executionRequestTableAdapter.Connection;
  6377. }
  6378. if (((this._requestTableAdapter != null)
  6379. && (this._requestTableAdapter.Connection != null))) {
  6380. return this._requestTableAdapter.Connection;
  6381. }
  6382. if (((this._roleTableAdapter != null)
  6383. && (this._roleTableAdapter.Connection != null))) {
  6384. return this._roleTableAdapter.Connection;
  6385. }
  6386. if (((this._statusTableAdapter != null)
  6387. && (this._statusTableAdapter.Connection != null))) {
  6388. return this._statusTableAdapter.Connection;
  6389. }
  6390. if (((this._typeDefectTableAdapter != null)
  6391. && (this._typeDefectTableAdapter.Connection != null))) {
  6392. return this._typeDefectTableAdapter.Connection;
  6393. }
  6394. return null;
  6395. }
  6396. set {
  6397. this._connection = value;
  6398. }
  6399. }
  6400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6402. [global::System.ComponentModel.Browsable(false)]
  6403. public int TableAdapterInstanceCount {
  6404. get {
  6405. int count = 0;
  6406. if ((this._clientTableAdapter != null)) {
  6407. count = (count + 1);
  6408. }
  6409. if ((this._employeeTableAdapter != null)) {
  6410. count = (count + 1);
  6411. }
  6412. if ((this._executionRequestTableAdapter != null)) {
  6413. count = (count + 1);
  6414. }
  6415. if ((this._requestTableAdapter != null)) {
  6416. count = (count + 1);
  6417. }
  6418. if ((this._roleTableAdapter != null)) {
  6419. count = (count + 1);
  6420. }
  6421. if ((this._statusTableAdapter != null)) {
  6422. count = (count + 1);
  6423. }
  6424. if ((this._typeDefectTableAdapter != null)) {
  6425. count = (count + 1);
  6426. }
  6427. return count;
  6428. }
  6429. }
  6430. /// <summary>
  6431. ///Update rows in top-down order.
  6432. ///</summary>
  6433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6435. 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) {
  6436. int result = 0;
  6437. if ((this._roleTableAdapter != null)) {
  6438. global::System.Data.DataRow[] updatedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6439. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6440. if (((updatedRows != null)
  6441. && (0 < updatedRows.Length))) {
  6442. result = (result + this._roleTableAdapter.Update(updatedRows));
  6443. allChangedRows.AddRange(updatedRows);
  6444. }
  6445. }
  6446. if ((this._clientTableAdapter != null)) {
  6447. global::System.Data.DataRow[] updatedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6448. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6449. if (((updatedRows != null)
  6450. && (0 < updatedRows.Length))) {
  6451. result = (result + this._clientTableAdapter.Update(updatedRows));
  6452. allChangedRows.AddRange(updatedRows);
  6453. }
  6454. }
  6455. if ((this._employeeTableAdapter != null)) {
  6456. global::System.Data.DataRow[] updatedRows = dataSet.Employee.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6457. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6458. if (((updatedRows != null)
  6459. && (0 < updatedRows.Length))) {
  6460. result = (result + this._employeeTableAdapter.Update(updatedRows));
  6461. allChangedRows.AddRange(updatedRows);
  6462. }
  6463. }
  6464. if ((this._statusTableAdapter != null)) {
  6465. global::System.Data.DataRow[] updatedRows = dataSet.Status.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6466. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6467. if (((updatedRows != null)
  6468. && (0 < updatedRows.Length))) {
  6469. result = (result + this._statusTableAdapter.Update(updatedRows));
  6470. allChangedRows.AddRange(updatedRows);
  6471. }
  6472. }
  6473. if ((this._typeDefectTableAdapter != null)) {
  6474. global::System.Data.DataRow[] updatedRows = dataSet.TypeDefect.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6475. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6476. if (((updatedRows != null)
  6477. && (0 < updatedRows.Length))) {
  6478. result = (result + this._typeDefectTableAdapter.Update(updatedRows));
  6479. allChangedRows.AddRange(updatedRows);
  6480. }
  6481. }
  6482. if ((this._requestTableAdapter != null)) {
  6483. global::System.Data.DataRow[] updatedRows = dataSet.Request.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6484. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6485. if (((updatedRows != null)
  6486. && (0 < updatedRows.Length))) {
  6487. result = (result + this._requestTableAdapter.Update(updatedRows));
  6488. allChangedRows.AddRange(updatedRows);
  6489. }
  6490. }
  6491. if ((this._executionRequestTableAdapter != null)) {
  6492. global::System.Data.DataRow[] updatedRows = dataSet.ExecutionRequest.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6493. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6494. if (((updatedRows != null)
  6495. && (0 < updatedRows.Length))) {
  6496. result = (result + this._executionRequestTableAdapter.Update(updatedRows));
  6497. allChangedRows.AddRange(updatedRows);
  6498. }
  6499. }
  6500. return result;
  6501. }
  6502. /// <summary>
  6503. ///Insert rows in top-down order.
  6504. ///</summary>
  6505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6507. private int UpdateInsertedRows(TechServiceBAUDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6508. int result = 0;
  6509. if ((this._roleTableAdapter != null)) {
  6510. global::System.Data.DataRow[] addedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Added);
  6511. if (((addedRows != null)
  6512. && (0 < addedRows.Length))) {
  6513. result = (result + this._roleTableAdapter.Update(addedRows));
  6514. allAddedRows.AddRange(addedRows);
  6515. }
  6516. }
  6517. if ((this._clientTableAdapter != null)) {
  6518. global::System.Data.DataRow[] addedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Added);
  6519. if (((addedRows != null)
  6520. && (0 < addedRows.Length))) {
  6521. result = (result + this._clientTableAdapter.Update(addedRows));
  6522. allAddedRows.AddRange(addedRows);
  6523. }
  6524. }
  6525. if ((this._employeeTableAdapter != null)) {
  6526. global::System.Data.DataRow[] addedRows = dataSet.Employee.Select(null, null, global::System.Data.DataViewRowState.Added);
  6527. if (((addedRows != null)
  6528. && (0 < addedRows.Length))) {
  6529. result = (result + this._employeeTableAdapter.Update(addedRows));
  6530. allAddedRows.AddRange(addedRows);
  6531. }
  6532. }
  6533. if ((this._statusTableAdapter != null)) {
  6534. global::System.Data.DataRow[] addedRows = dataSet.Status.Select(null, null, global::System.Data.DataViewRowState.Added);
  6535. if (((addedRows != null)
  6536. && (0 < addedRows.Length))) {
  6537. result = (result + this._statusTableAdapter.Update(addedRows));
  6538. allAddedRows.AddRange(addedRows);
  6539. }
  6540. }
  6541. if ((this._typeDefectTableAdapter != null)) {
  6542. global::System.Data.DataRow[] addedRows = dataSet.TypeDefect.Select(null, null, global::System.Data.DataViewRowState.Added);
  6543. if (((addedRows != null)
  6544. && (0 < addedRows.Length))) {
  6545. result = (result + this._typeDefectTableAdapter.Update(addedRows));
  6546. allAddedRows.AddRange(addedRows);
  6547. }
  6548. }
  6549. if ((this._requestTableAdapter != null)) {
  6550. global::System.Data.DataRow[] addedRows = dataSet.Request.Select(null, null, global::System.Data.DataViewRowState.Added);
  6551. if (((addedRows != null)
  6552. && (0 < addedRows.Length))) {
  6553. result = (result + this._requestTableAdapter.Update(addedRows));
  6554. allAddedRows.AddRange(addedRows);
  6555. }
  6556. }
  6557. if ((this._executionRequestTableAdapter != null)) {
  6558. global::System.Data.DataRow[] addedRows = dataSet.ExecutionRequest.Select(null, null, global::System.Data.DataViewRowState.Added);
  6559. if (((addedRows != null)
  6560. && (0 < addedRows.Length))) {
  6561. result = (result + this._executionRequestTableAdapter.Update(addedRows));
  6562. allAddedRows.AddRange(addedRows);
  6563. }
  6564. }
  6565. return result;
  6566. }
  6567. /// <summary>
  6568. ///Delete rows in bottom-up order.
  6569. ///</summary>
  6570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6572. private int UpdateDeletedRows(TechServiceBAUDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  6573. int result = 0;
  6574. if ((this._executionRequestTableAdapter != null)) {
  6575. global::System.Data.DataRow[] deletedRows = dataSet.ExecutionRequest.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6576. if (((deletedRows != null)
  6577. && (0 < deletedRows.Length))) {
  6578. result = (result + this._executionRequestTableAdapter.Update(deletedRows));
  6579. allChangedRows.AddRange(deletedRows);
  6580. }
  6581. }
  6582. if ((this._requestTableAdapter != null)) {
  6583. global::System.Data.DataRow[] deletedRows = dataSet.Request.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6584. if (((deletedRows != null)
  6585. && (0 < deletedRows.Length))) {
  6586. result = (result + this._requestTableAdapter.Update(deletedRows));
  6587. allChangedRows.AddRange(deletedRows);
  6588. }
  6589. }
  6590. if ((this._typeDefectTableAdapter != null)) {
  6591. global::System.Data.DataRow[] deletedRows = dataSet.TypeDefect.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6592. if (((deletedRows != null)
  6593. && (0 < deletedRows.Length))) {
  6594. result = (result + this._typeDefectTableAdapter.Update(deletedRows));
  6595. allChangedRows.AddRange(deletedRows);
  6596. }
  6597. }
  6598. if ((this._statusTableAdapter != null)) {
  6599. global::System.Data.DataRow[] deletedRows = dataSet.Status.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6600. if (((deletedRows != null)
  6601. && (0 < deletedRows.Length))) {
  6602. result = (result + this._statusTableAdapter.Update(deletedRows));
  6603. allChangedRows.AddRange(deletedRows);
  6604. }
  6605. }
  6606. if ((this._employeeTableAdapter != null)) {
  6607. global::System.Data.DataRow[] deletedRows = dataSet.Employee.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6608. if (((deletedRows != null)
  6609. && (0 < deletedRows.Length))) {
  6610. result = (result + this._employeeTableAdapter.Update(deletedRows));
  6611. allChangedRows.AddRange(deletedRows);
  6612. }
  6613. }
  6614. if ((this._clientTableAdapter != null)) {
  6615. global::System.Data.DataRow[] deletedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6616. if (((deletedRows != null)
  6617. && (0 < deletedRows.Length))) {
  6618. result = (result + this._clientTableAdapter.Update(deletedRows));
  6619. allChangedRows.AddRange(deletedRows);
  6620. }
  6621. }
  6622. if ((this._roleTableAdapter != null)) {
  6623. global::System.Data.DataRow[] deletedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6624. if (((deletedRows != null)
  6625. && (0 < deletedRows.Length))) {
  6626. result = (result + this._roleTableAdapter.Update(deletedRows));
  6627. allChangedRows.AddRange(deletedRows);
  6628. }
  6629. }
  6630. return result;
  6631. }
  6632. /// <summary>
  6633. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  6634. ///</summary>
  6635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6637. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6638. if (((updatedRows == null)
  6639. || (updatedRows.Length < 1))) {
  6640. return updatedRows;
  6641. }
  6642. if (((allAddedRows == null)
  6643. || (allAddedRows.Count < 1))) {
  6644. return updatedRows;
  6645. }
  6646. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6647. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  6648. global::System.Data.DataRow row = updatedRows[i];
  6649. if ((allAddedRows.Contains(row) == false)) {
  6650. realUpdatedRows.Add(row);
  6651. }
  6652. }
  6653. return realUpdatedRows.ToArray();
  6654. }
  6655. /// <summary>
  6656. ///Update all changes to the dataset.
  6657. ///</summary>
  6658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6660. public virtual int UpdateAll(TechServiceBAUDataSet dataSet) {
  6661. if ((dataSet == null)) {
  6662. throw new global::System.ArgumentNullException("dataSet");
  6663. }
  6664. if ((dataSet.HasChanges() == false)) {
  6665. return 0;
  6666. }
  6667. if (((this._clientTableAdapter != null)
  6668. && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
  6669. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6670. "r, должны использовать одинаковую строку подключения.");
  6671. }
  6672. if (((this._employeeTableAdapter != null)
  6673. && (this.MatchTableAdapterConnection(this._employeeTableAdapter.Connection) == false))) {
  6674. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6675. "r, должны использовать одинаковую строку подключения.");
  6676. }
  6677. if (((this._executionRequestTableAdapter != null)
  6678. && (this.MatchTableAdapterConnection(this._executionRequestTableAdapter.Connection) == false))) {
  6679. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6680. "r, должны использовать одинаковую строку подключения.");
  6681. }
  6682. if (((this._requestTableAdapter != null)
  6683. && (this.MatchTableAdapterConnection(this._requestTableAdapter.Connection) == false))) {
  6684. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6685. "r, должны использовать одинаковую строку подключения.");
  6686. }
  6687. if (((this._roleTableAdapter != null)
  6688. && (this.MatchTableAdapterConnection(this._roleTableAdapter.Connection) == false))) {
  6689. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6690. "r, должны использовать одинаковую строку подключения.");
  6691. }
  6692. if (((this._statusTableAdapter != null)
  6693. && (this.MatchTableAdapterConnection(this._statusTableAdapter.Connection) == false))) {
  6694. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6695. "r, должны использовать одинаковую строку подключения.");
  6696. }
  6697. if (((this._typeDefectTableAdapter != null)
  6698. && (this.MatchTableAdapterConnection(this._typeDefectTableAdapter.Connection) == false))) {
  6699. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6700. "r, должны использовать одинаковую строку подключения.");
  6701. }
  6702. global::System.Data.IDbConnection workConnection = this.Connection;
  6703. if ((workConnection == null)) {
  6704. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  6705. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  6706. }
  6707. bool workConnOpened = false;
  6708. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  6709. == global::System.Data.ConnectionState.Broken)) {
  6710. workConnection.Close();
  6711. }
  6712. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  6713. workConnection.Open();
  6714. workConnOpened = true;
  6715. }
  6716. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  6717. if ((workTransaction == null)) {
  6718. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  6719. "и или текущее состояние не позволяет начать транзакцию.");
  6720. }
  6721. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6722. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6723. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  6724. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  6725. int result = 0;
  6726. global::System.Data.DataSet backupDataSet = null;
  6727. if (this.BackupDataSetBeforeUpdate) {
  6728. backupDataSet = new global::System.Data.DataSet();
  6729. backupDataSet.Merge(dataSet);
  6730. }
  6731. try {
  6732. // ---- Prepare for update -----------
  6733. //
  6734. if ((this._clientTableAdapter != null)) {
  6735. revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection);
  6736. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6737. this._clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6738. if (this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6739. this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6740. adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableAdapter.Adapter);
  6741. }
  6742. }
  6743. if ((this._employeeTableAdapter != null)) {
  6744. revertConnections.Add(this._employeeTableAdapter, this._employeeTableAdapter.Connection);
  6745. this._employeeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6746. this._employeeTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6747. if (this._employeeTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6748. this._employeeTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6749. adaptersWithAcceptChangesDuringUpdate.Add(this._employeeTableAdapter.Adapter);
  6750. }
  6751. }
  6752. if ((this._executionRequestTableAdapter != null)) {
  6753. revertConnections.Add(this._executionRequestTableAdapter, this._executionRequestTableAdapter.Connection);
  6754. this._executionRequestTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6755. this._executionRequestTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6756. if (this._executionRequestTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6757. this._executionRequestTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6758. adaptersWithAcceptChangesDuringUpdate.Add(this._executionRequestTableAdapter.Adapter);
  6759. }
  6760. }
  6761. if ((this._requestTableAdapter != null)) {
  6762. revertConnections.Add(this._requestTableAdapter, this._requestTableAdapter.Connection);
  6763. this._requestTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6764. this._requestTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6765. if (this._requestTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6766. this._requestTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6767. adaptersWithAcceptChangesDuringUpdate.Add(this._requestTableAdapter.Adapter);
  6768. }
  6769. }
  6770. if ((this._roleTableAdapter != null)) {
  6771. revertConnections.Add(this._roleTableAdapter, this._roleTableAdapter.Connection);
  6772. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6773. this._roleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6774. if (this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6775. this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6776. adaptersWithAcceptChangesDuringUpdate.Add(this._roleTableAdapter.Adapter);
  6777. }
  6778. }
  6779. if ((this._statusTableAdapter != null)) {
  6780. revertConnections.Add(this._statusTableAdapter, this._statusTableAdapter.Connection);
  6781. this._statusTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6782. this._statusTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6783. if (this._statusTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6784. this._statusTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6785. adaptersWithAcceptChangesDuringUpdate.Add(this._statusTableAdapter.Adapter);
  6786. }
  6787. }
  6788. if ((this._typeDefectTableAdapter != null)) {
  6789. revertConnections.Add(this._typeDefectTableAdapter, this._typeDefectTableAdapter.Connection);
  6790. this._typeDefectTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6791. this._typeDefectTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6792. if (this._typeDefectTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6793. this._typeDefectTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6794. adaptersWithAcceptChangesDuringUpdate.Add(this._typeDefectTableAdapter.Adapter);
  6795. }
  6796. }
  6797. //
  6798. //---- Perform updates -----------
  6799. //
  6800. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  6801. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  6802. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  6803. }
  6804. else {
  6805. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  6806. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  6807. }
  6808. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  6809. //
  6810. //---- Commit updates -----------
  6811. //
  6812. workTransaction.Commit();
  6813. if ((0 < allAddedRows.Count)) {
  6814. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  6815. allAddedRows.CopyTo(rows);
  6816. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6817. global::System.Data.DataRow row = rows[i];
  6818. row.AcceptChanges();
  6819. }
  6820. }
  6821. if ((0 < allChangedRows.Count)) {
  6822. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  6823. allChangedRows.CopyTo(rows);
  6824. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6825. global::System.Data.DataRow row = rows[i];
  6826. row.AcceptChanges();
  6827. }
  6828. }
  6829. }
  6830. catch (global::System.Exception ex) {
  6831. workTransaction.Rollback();
  6832. // ---- Restore the dataset -----------
  6833. if (this.BackupDataSetBeforeUpdate) {
  6834. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  6835. dataSet.Clear();
  6836. dataSet.Merge(backupDataSet);
  6837. }
  6838. else {
  6839. if ((0 < allAddedRows.Count)) {
  6840. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  6841. allAddedRows.CopyTo(rows);
  6842. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6843. global::System.Data.DataRow row = rows[i];
  6844. row.AcceptChanges();
  6845. row.SetAdded();
  6846. }
  6847. }
  6848. }
  6849. throw ex;
  6850. }
  6851. finally {
  6852. if (workConnOpened) {
  6853. workConnection.Close();
  6854. }
  6855. if ((this._clientTableAdapter != null)) {
  6856. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter]));
  6857. this._clientTableAdapter.Transaction = null;
  6858. }
  6859. if ((this._employeeTableAdapter != null)) {
  6860. this._employeeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._employeeTableAdapter]));
  6861. this._employeeTableAdapter.Transaction = null;
  6862. }
  6863. if ((this._executionRequestTableAdapter != null)) {
  6864. this._executionRequestTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._executionRequestTableAdapter]));
  6865. this._executionRequestTableAdapter.Transaction = null;
  6866. }
  6867. if ((this._requestTableAdapter != null)) {
  6868. this._requestTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._requestTableAdapter]));
  6869. this._requestTableAdapter.Transaction = null;
  6870. }
  6871. if ((this._roleTableAdapter != null)) {
  6872. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._roleTableAdapter]));
  6873. this._roleTableAdapter.Transaction = null;
  6874. }
  6875. if ((this._statusTableAdapter != null)) {
  6876. this._statusTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._statusTableAdapter]));
  6877. this._statusTableAdapter.Transaction = null;
  6878. }
  6879. if ((this._typeDefectTableAdapter != null)) {
  6880. this._typeDefectTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._typeDefectTableAdapter]));
  6881. this._typeDefectTableAdapter.Transaction = null;
  6882. }
  6883. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  6884. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  6885. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  6886. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  6887. global::System.Data.Common.DataAdapter adapter = adapters[i];
  6888. adapter.AcceptChangesDuringUpdate = true;
  6889. }
  6890. }
  6891. }
  6892. return result;
  6893. }
  6894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6896. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  6897. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  6898. }
  6899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6901. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  6902. if ((this._connection != null)) {
  6903. return true;
  6904. }
  6905. if (((this.Connection == null)
  6906. || (inputConnection == null))) {
  6907. return true;
  6908. }
  6909. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  6910. return true;
  6911. }
  6912. return false;
  6913. }
  6914. /// <summary>
  6915. ///Update Order Option
  6916. ///</summary>
  6917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6918. public enum UpdateOrderOption {
  6919. InsertUpdateDelete = 0,
  6920. UpdateInsertDelete = 1,
  6921. }
  6922. /// <summary>
  6923. ///Used to sort self-referenced table's rows
  6924. ///</summary>
  6925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6926. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  6927. private global::System.Data.DataRelation _relation;
  6928. private int _childFirst;
  6929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6931. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  6932. this._relation = relation;
  6933. if (childFirst) {
  6934. this._childFirst = -1;
  6935. }
  6936. else {
  6937. this._childFirst = 1;
  6938. }
  6939. }
  6940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6942. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  6943. global::System.Diagnostics.Debug.Assert((row != null));
  6944. global::System.Data.DataRow root = row;
  6945. distance = 0;
  6946. 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>();
  6947. traversedRows[row] = row;
  6948. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  6949. for (
  6950. ; ((parent != null)
  6951. && (traversedRows.ContainsKey(parent) == false));
  6952. ) {
  6953. distance = (distance + 1);
  6954. root = parent;
  6955. traversedRows[parent] = parent;
  6956. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  6957. }
  6958. if ((distance == 0)) {
  6959. traversedRows.Clear();
  6960. traversedRows[row] = row;
  6961. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  6962. for (
  6963. ; ((parent != null)
  6964. && (traversedRows.ContainsKey(parent) == false));
  6965. ) {
  6966. distance = (distance + 1);
  6967. root = parent;
  6968. traversedRows[parent] = parent;
  6969. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  6970. }
  6971. }
  6972. return root;
  6973. }
  6974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6976. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  6977. if (object.ReferenceEquals(row1, row2)) {
  6978. return 0;
  6979. }
  6980. if ((row1 == null)) {
  6981. return -1;
  6982. }
  6983. if ((row2 == null)) {
  6984. return 1;
  6985. }
  6986. int distance1 = 0;
  6987. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  6988. int distance2 = 0;
  6989. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  6990. if (object.ReferenceEquals(root1, root2)) {
  6991. return (this._childFirst * distance1.CompareTo(distance2));
  6992. }
  6993. else {
  6994. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  6995. && (root2.Table != null)));
  6996. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  6997. return -1;
  6998. }
  6999. else {
  7000. return 1;
  7001. }
  7002. }
  7003. }
  7004. }
  7005. }
  7006. }
  7007. #pragma warning restore 1591