TechServiceBAUDataSet.Designer.cs 532 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace СУБД_Техносервис {
  12. /// <summary>
  13. ///Represents a strongly typed in-memory cache of data.
  14. ///</summary>
  15. [global::System.Serializable()]
  16. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  17. [global::System.ComponentModel.ToolboxItem(true)]
  18. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
  19. [global::System.Xml.Serialization.XmlRootAttribute("TechServiceBAUDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class TechServiceBAUDataSet : global::System.Data.DataSet {
  22. private ClientDataTable tableClient;
  23. private EmployeeDataTable tableEmployee;
  24. private ExecutionRequestDataTable tableExecutionRequest;
  25. private RequestDataTable tableRequest;
  26. private RoleDataTable tableRole;
  27. private StatusDataTable tableStatus;
  28. private TypeDefectDataTable tableTypeDefect;
  29. private AllTypeDefectDataTable tableAllTypeDefect;
  30. private ClientFIODataTable tableClientFIO;
  31. private global::System.Data.DataRelation relationFK_Employee_Role;
  32. private global::System.Data.DataRelation relationFK_ExecutionRequest_Employee;
  33. private global::System.Data.DataRelation relationFK_ExecutionRequest_Request;
  34. private global::System.Data.DataRelation relationFK_Request_Client;
  35. private global::System.Data.DataRelation relationFK_Request_Employee;
  36. private global::System.Data.DataRelation relationFK_Request_Status;
  37. private global::System.Data.DataRelation relationFK_Request_TypeDefect;
  38. private global::System.Data.DataRelation relationFK_Request_Client1;
  39. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  40. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  41. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  42. public TechServiceBAUDataSet() {
  43. this.BeginInit();
  44. this.InitClass();
  45. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  46. base.Tables.CollectionChanged += schemaChangedHandler;
  47. base.Relations.CollectionChanged += schemaChangedHandler;
  48. this.EndInit();
  49. }
  50. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  51. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  52. protected TechServiceBAUDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  53. base(info, context, false) {
  54. if ((this.IsBinarySerialized(info, context) == true)) {
  55. this.InitVars(false);
  56. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  57. this.Tables.CollectionChanged += schemaChangedHandler1;
  58. this.Relations.CollectionChanged += schemaChangedHandler1;
  59. return;
  60. }
  61. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  62. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  63. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  64. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  65. if ((ds.Tables["Client"] != null)) {
  66. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  67. }
  68. if ((ds.Tables["Employee"] != null)) {
  69. base.Tables.Add(new EmployeeDataTable(ds.Tables["Employee"]));
  70. }
  71. if ((ds.Tables["ExecutionRequest"] != null)) {
  72. base.Tables.Add(new ExecutionRequestDataTable(ds.Tables["ExecutionRequest"]));
  73. }
  74. if ((ds.Tables["Request"] != null)) {
  75. base.Tables.Add(new RequestDataTable(ds.Tables["Request"]));
  76. }
  77. if ((ds.Tables["Role"] != null)) {
  78. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  79. }
  80. if ((ds.Tables["Status"] != null)) {
  81. base.Tables.Add(new StatusDataTable(ds.Tables["Status"]));
  82. }
  83. if ((ds.Tables["TypeDefect"] != null)) {
  84. base.Tables.Add(new TypeDefectDataTable(ds.Tables["TypeDefect"]));
  85. }
  86. if ((ds.Tables["AllTypeDefect"] != null)) {
  87. base.Tables.Add(new AllTypeDefectDataTable(ds.Tables["AllTypeDefect"]));
  88. }
  89. if ((ds.Tables["ClientFIO"] != null)) {
  90. base.Tables.Add(new ClientFIODataTable(ds.Tables["ClientFIO"]));
  91. }
  92. this.DataSetName = ds.DataSetName;
  93. this.Prefix = ds.Prefix;
  94. this.Namespace = ds.Namespace;
  95. this.Locale = ds.Locale;
  96. this.CaseSensitive = ds.CaseSensitive;
  97. this.EnforceConstraints = ds.EnforceConstraints;
  98. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  99. this.InitVars();
  100. }
  101. else {
  102. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  103. }
  104. this.GetSerializationData(info, context);
  105. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  106. base.Tables.CollectionChanged += schemaChangedHandler;
  107. this.Relations.CollectionChanged += schemaChangedHandler;
  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 ClientDataTable Client {
  114. get {
  115. return this.tableClient;
  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 EmployeeDataTable Employee {
  123. get {
  124. return this.tableEmployee;
  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 ExecutionRequestDataTable ExecutionRequest {
  132. get {
  133. return this.tableExecutionRequest;
  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 RequestDataTable Request {
  141. get {
  142. return this.tableRequest;
  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 RoleDataTable Role {
  150. get {
  151. return this.tableRole;
  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 StatusDataTable Status {
  159. get {
  160. return this.tableStatus;
  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.Browsable(false)]
  166. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  167. public TypeDefectDataTable TypeDefect {
  168. get {
  169. return this.tableTypeDefect;
  170. }
  171. }
  172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  174. [global::System.ComponentModel.Browsable(false)]
  175. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  176. public AllTypeDefectDataTable AllTypeDefect {
  177. get {
  178. return this.tableAllTypeDefect;
  179. }
  180. }
  181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  183. [global::System.ComponentModel.Browsable(false)]
  184. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  185. public ClientFIODataTable ClientFIO {
  186. get {
  187. return this.tableClientFIO;
  188. }
  189. }
  190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  192. [global::System.ComponentModel.BrowsableAttribute(true)]
  193. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  194. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  195. get {
  196. return this._schemaSerializationMode;
  197. }
  198. set {
  199. this._schemaSerializationMode = value;
  200. }
  201. }
  202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  204. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  205. public new global::System.Data.DataTableCollection Tables {
  206. get {
  207. return base.Tables;
  208. }
  209. }
  210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  212. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  213. public new global::System.Data.DataRelationCollection Relations {
  214. get {
  215. return base.Relations;
  216. }
  217. }
  218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  220. protected override void InitializeDerivedDataSet() {
  221. this.BeginInit();
  222. this.InitClass();
  223. this.EndInit();
  224. }
  225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  227. public override global::System.Data.DataSet Clone() {
  228. TechServiceBAUDataSet cln = ((TechServiceBAUDataSet)(base.Clone()));
  229. cln.InitVars();
  230. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  231. return cln;
  232. }
  233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  235. protected override bool ShouldSerializeTables() {
  236. return false;
  237. }
  238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  240. protected override bool ShouldSerializeRelations() {
  241. return false;
  242. }
  243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  245. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  246. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  247. this.Reset();
  248. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  249. ds.ReadXml(reader);
  250. if ((ds.Tables["Client"] != null)) {
  251. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  252. }
  253. if ((ds.Tables["Employee"] != null)) {
  254. base.Tables.Add(new EmployeeDataTable(ds.Tables["Employee"]));
  255. }
  256. if ((ds.Tables["ExecutionRequest"] != null)) {
  257. base.Tables.Add(new ExecutionRequestDataTable(ds.Tables["ExecutionRequest"]));
  258. }
  259. if ((ds.Tables["Request"] != null)) {
  260. base.Tables.Add(new RequestDataTable(ds.Tables["Request"]));
  261. }
  262. if ((ds.Tables["Role"] != null)) {
  263. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  264. }
  265. if ((ds.Tables["Status"] != null)) {
  266. base.Tables.Add(new StatusDataTable(ds.Tables["Status"]));
  267. }
  268. if ((ds.Tables["TypeDefect"] != null)) {
  269. base.Tables.Add(new TypeDefectDataTable(ds.Tables["TypeDefect"]));
  270. }
  271. if ((ds.Tables["AllTypeDefect"] != null)) {
  272. base.Tables.Add(new AllTypeDefectDataTable(ds.Tables["AllTypeDefect"]));
  273. }
  274. if ((ds.Tables["ClientFIO"] != null)) {
  275. base.Tables.Add(new ClientFIODataTable(ds.Tables["ClientFIO"]));
  276. }
  277. this.DataSetName = ds.DataSetName;
  278. this.Prefix = ds.Prefix;
  279. this.Namespace = ds.Namespace;
  280. this.Locale = ds.Locale;
  281. this.CaseSensitive = ds.CaseSensitive;
  282. this.EnforceConstraints = ds.EnforceConstraints;
  283. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  284. this.InitVars();
  285. }
  286. else {
  287. this.ReadXml(reader);
  288. this.InitVars();
  289. }
  290. }
  291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  293. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  294. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  295. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  296. stream.Position = 0;
  297. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  298. }
  299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  301. internal void InitVars() {
  302. this.InitVars(true);
  303. }
  304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  306. internal void InitVars(bool initTable) {
  307. this.tableClient = ((ClientDataTable)(base.Tables["Client"]));
  308. if ((initTable == true)) {
  309. if ((this.tableClient != null)) {
  310. this.tableClient.InitVars();
  311. }
  312. }
  313. this.tableEmployee = ((EmployeeDataTable)(base.Tables["Employee"]));
  314. if ((initTable == true)) {
  315. if ((this.tableEmployee != null)) {
  316. this.tableEmployee.InitVars();
  317. }
  318. }
  319. this.tableExecutionRequest = ((ExecutionRequestDataTable)(base.Tables["ExecutionRequest"]));
  320. if ((initTable == true)) {
  321. if ((this.tableExecutionRequest != null)) {
  322. this.tableExecutionRequest.InitVars();
  323. }
  324. }
  325. this.tableRequest = ((RequestDataTable)(base.Tables["Request"]));
  326. if ((initTable == true)) {
  327. if ((this.tableRequest != null)) {
  328. this.tableRequest.InitVars();
  329. }
  330. }
  331. this.tableRole = ((RoleDataTable)(base.Tables["Role"]));
  332. if ((initTable == true)) {
  333. if ((this.tableRole != null)) {
  334. this.tableRole.InitVars();
  335. }
  336. }
  337. this.tableStatus = ((StatusDataTable)(base.Tables["Status"]));
  338. if ((initTable == true)) {
  339. if ((this.tableStatus != null)) {
  340. this.tableStatus.InitVars();
  341. }
  342. }
  343. this.tableTypeDefect = ((TypeDefectDataTable)(base.Tables["TypeDefect"]));
  344. if ((initTable == true)) {
  345. if ((this.tableTypeDefect != null)) {
  346. this.tableTypeDefect.InitVars();
  347. }
  348. }
  349. this.tableAllTypeDefect = ((AllTypeDefectDataTable)(base.Tables["AllTypeDefect"]));
  350. if ((initTable == true)) {
  351. if ((this.tableAllTypeDefect != null)) {
  352. this.tableAllTypeDefect.InitVars();
  353. }
  354. }
  355. this.tableClientFIO = ((ClientFIODataTable)(base.Tables["ClientFIO"]));
  356. if ((initTable == true)) {
  357. if ((this.tableClientFIO != null)) {
  358. this.tableClientFIO.InitVars();
  359. }
  360. }
  361. this.relationFK_Employee_Role = this.Relations["FK_Employee_Role"];
  362. this.relationFK_ExecutionRequest_Employee = this.Relations["FK_ExecutionRequest_Employee"];
  363. this.relationFK_ExecutionRequest_Request = this.Relations["FK_ExecutionRequest_Request"];
  364. this.relationFK_Request_Client = this.Relations["FK_Request_Client"];
  365. this.relationFK_Request_Employee = this.Relations["FK_Request_Employee"];
  366. this.relationFK_Request_Status = this.Relations["FK_Request_Status"];
  367. this.relationFK_Request_TypeDefect = this.Relations["FK_Request_TypeDefect"];
  368. this.relationFK_Request_Client1 = this.Relations["FK_Request_Client1"];
  369. }
  370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  372. private void InitClass() {
  373. this.DataSetName = "TechServiceBAUDataSet";
  374. this.Prefix = "";
  375. this.Namespace = "http://tempuri.org/TechServiceBAUDataSet.xsd";
  376. this.EnforceConstraints = true;
  377. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  378. this.tableClient = new ClientDataTable();
  379. base.Tables.Add(this.tableClient);
  380. this.tableEmployee = new EmployeeDataTable();
  381. base.Tables.Add(this.tableEmployee);
  382. this.tableExecutionRequest = new ExecutionRequestDataTable();
  383. base.Tables.Add(this.tableExecutionRequest);
  384. this.tableRequest = new RequestDataTable();
  385. base.Tables.Add(this.tableRequest);
  386. this.tableRole = new RoleDataTable();
  387. base.Tables.Add(this.tableRole);
  388. this.tableStatus = new StatusDataTable();
  389. base.Tables.Add(this.tableStatus);
  390. this.tableTypeDefect = new TypeDefectDataTable();
  391. base.Tables.Add(this.tableTypeDefect);
  392. this.tableAllTypeDefect = new AllTypeDefectDataTable();
  393. base.Tables.Add(this.tableAllTypeDefect);
  394. this.tableClientFIO = new ClientFIODataTable();
  395. base.Tables.Add(this.tableClientFIO);
  396. this.relationFK_Employee_Role = new global::System.Data.DataRelation("FK_Employee_Role", new global::System.Data.DataColumn[] {
  397. this.tableRole.IdRoleColumn}, new global::System.Data.DataColumn[] {
  398. this.tableEmployee.IdRoleColumn}, false);
  399. this.Relations.Add(this.relationFK_Employee_Role);
  400. this.relationFK_ExecutionRequest_Employee = new global::System.Data.DataRelation("FK_ExecutionRequest_Employee", new global::System.Data.DataColumn[] {
  401. this.tableEmployee.IdEmployeeColumn}, new global::System.Data.DataColumn[] {
  402. this.tableExecutionRequest.IdMasterColumn}, false);
  403. this.Relations.Add(this.relationFK_ExecutionRequest_Employee);
  404. this.relationFK_ExecutionRequest_Request = new global::System.Data.DataRelation("FK_ExecutionRequest_Request", new global::System.Data.DataColumn[] {
  405. this.tableRequest.IdRequestColumn}, new global::System.Data.DataColumn[] {
  406. this.tableExecutionRequest.IdRequestColumn}, false);
  407. this.Relations.Add(this.relationFK_ExecutionRequest_Request);
  408. this.relationFK_Request_Client = new global::System.Data.DataRelation("FK_Request_Client", new global::System.Data.DataColumn[] {
  409. this.tableClient.IdClientColumn}, new global::System.Data.DataColumn[] {
  410. this.tableRequest.IdClientColumn}, false);
  411. this.Relations.Add(this.relationFK_Request_Client);
  412. this.relationFK_Request_Employee = new global::System.Data.DataRelation("FK_Request_Employee", new global::System.Data.DataColumn[] {
  413. this.tableEmployee.IdEmployeeColumn}, new global::System.Data.DataColumn[] {
  414. this.tableRequest.IdManagerColumn}, false);
  415. this.Relations.Add(this.relationFK_Request_Employee);
  416. this.relationFK_Request_Status = new global::System.Data.DataRelation("FK_Request_Status", new global::System.Data.DataColumn[] {
  417. this.tableStatus.IdStatusColumn}, new global::System.Data.DataColumn[] {
  418. this.tableRequest.IdStatusColumn}, false);
  419. this.Relations.Add(this.relationFK_Request_Status);
  420. this.relationFK_Request_TypeDefect = new global::System.Data.DataRelation("FK_Request_TypeDefect", new global::System.Data.DataColumn[] {
  421. this.tableTypeDefect.IdTypeDefectColumn}, new global::System.Data.DataColumn[] {
  422. this.tableRequest.IdTypeDefectColumn}, false);
  423. this.Relations.Add(this.relationFK_Request_TypeDefect);
  424. this.relationFK_Request_Client1 = new global::System.Data.DataRelation("FK_Request_Client1", new global::System.Data.DataColumn[] {
  425. this.tableClientFIO.IdClientColumn}, new global::System.Data.DataColumn[] {
  426. this.tableRequest.IdClientColumn}, false);
  427. this.Relations.Add(this.relationFK_Request_Client1);
  428. }
  429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  431. private bool ShouldSerializeClient() {
  432. return false;
  433. }
  434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  436. private bool ShouldSerializeEmployee() {
  437. return false;
  438. }
  439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  441. private bool ShouldSerializeExecutionRequest() {
  442. return false;
  443. }
  444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  446. private bool ShouldSerializeRequest() {
  447. return false;
  448. }
  449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  451. private bool ShouldSerializeRole() {
  452. return false;
  453. }
  454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  456. private bool ShouldSerializeStatus() {
  457. return false;
  458. }
  459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  461. private bool ShouldSerializeTypeDefect() {
  462. return false;
  463. }
  464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  466. private bool ShouldSerializeAllTypeDefect() {
  467. return false;
  468. }
  469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  471. private bool ShouldSerializeClientFIO() {
  472. return false;
  473. }
  474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  476. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  477. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  478. this.InitVars();
  479. }
  480. }
  481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  483. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  484. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  485. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  486. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  487. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  488. any.Namespace = ds.Namespace;
  489. sequence.Items.Add(any);
  490. type.Particle = sequence;
  491. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  492. if (xs.Contains(dsSchema.TargetNamespace)) {
  493. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  494. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  495. try {
  496. global::System.Xml.Schema.XmlSchema schema = null;
  497. dsSchema.Write(s1);
  498. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  499. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  500. s2.SetLength(0);
  501. schema.Write(s2);
  502. if ((s1.Length == s2.Length)) {
  503. s1.Position = 0;
  504. s2.Position = 0;
  505. for (; ((s1.Position != s1.Length)
  506. && (s1.ReadByte() == s2.ReadByte())); ) {
  507. ;
  508. }
  509. if ((s1.Position == s1.Length)) {
  510. return type;
  511. }
  512. }
  513. }
  514. }
  515. finally {
  516. if ((s1 != null)) {
  517. s1.Close();
  518. }
  519. if ((s2 != null)) {
  520. s2.Close();
  521. }
  522. }
  523. }
  524. xs.Add(dsSchema);
  525. return type;
  526. }
  527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  528. public delegate void ClientRowChangeEventHandler(object sender, ClientRowChangeEvent e);
  529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  530. public delegate void EmployeeRowChangeEventHandler(object sender, EmployeeRowChangeEvent e);
  531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  532. public delegate void ExecutionRequestRowChangeEventHandler(object sender, ExecutionRequestRowChangeEvent e);
  533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  534. public delegate void RequestRowChangeEventHandler(object sender, RequestRowChangeEvent e);
  535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  536. public delegate void RoleRowChangeEventHandler(object sender, RoleRowChangeEvent e);
  537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  538. public delegate void StatusRowChangeEventHandler(object sender, StatusRowChangeEvent e);
  539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  540. public delegate void TypeDefectRowChangeEventHandler(object sender, TypeDefectRowChangeEvent e);
  541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  542. public delegate void AllTypeDefectRowChangeEventHandler(object sender, AllTypeDefectRowChangeEvent e);
  543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  544. public delegate void ClientFIORowChangeEventHandler(object sender, ClientFIORowChangeEvent e);
  545. /// <summary>
  546. ///Represents the strongly named DataTable class.
  547. ///</summary>
  548. [global::System.Serializable()]
  549. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  550. public partial class ClientDataTable : global::System.Data.TypedTableBase<ClientRow> {
  551. private global::System.Data.DataColumn columnIdClient;
  552. private global::System.Data.DataColumn columnSurname;
  553. private global::System.Data.DataColumn columnName;
  554. private global::System.Data.DataColumn columnPatronymic;
  555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  557. public ClientDataTable() {
  558. this.TableName = "Client";
  559. this.BeginInit();
  560. this.InitClass();
  561. this.EndInit();
  562. }
  563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  565. internal ClientDataTable(global::System.Data.DataTable table) {
  566. this.TableName = table.TableName;
  567. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  568. this.CaseSensitive = table.CaseSensitive;
  569. }
  570. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  571. this.Locale = table.Locale;
  572. }
  573. if ((table.Namespace != table.DataSet.Namespace)) {
  574. this.Namespace = table.Namespace;
  575. }
  576. this.Prefix = table.Prefix;
  577. this.MinimumCapacity = table.MinimumCapacity;
  578. }
  579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  581. protected ClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  582. base(info, context) {
  583. this.InitVars();
  584. }
  585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  587. public global::System.Data.DataColumn IdClientColumn {
  588. get {
  589. return this.columnIdClient;
  590. }
  591. }
  592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  594. public global::System.Data.DataColumn SurnameColumn {
  595. get {
  596. return this.columnSurname;
  597. }
  598. }
  599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  601. public global::System.Data.DataColumn NameColumn {
  602. get {
  603. return this.columnName;
  604. }
  605. }
  606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  608. public global::System.Data.DataColumn PatronymicColumn {
  609. get {
  610. return this.columnPatronymic;
  611. }
  612. }
  613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  615. [global::System.ComponentModel.Browsable(false)]
  616. public int Count {
  617. get {
  618. return this.Rows.Count;
  619. }
  620. }
  621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  623. public ClientRow this[int index] {
  624. get {
  625. return ((ClientRow)(this.Rows[index]));
  626. }
  627. }
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  629. public event ClientRowChangeEventHandler ClientRowChanging;
  630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  631. public event ClientRowChangeEventHandler ClientRowChanged;
  632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  633. public event ClientRowChangeEventHandler ClientRowDeleting;
  634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  635. public event ClientRowChangeEventHandler ClientRowDeleted;
  636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  638. public void AddClientRow(ClientRow row) {
  639. this.Rows.Add(row);
  640. }
  641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  643. public ClientRow AddClientRow(string Surname, string Name, string Patronymic) {
  644. ClientRow rowClientRow = ((ClientRow)(this.NewRow()));
  645. object[] columnValuesArray = new object[] {
  646. null,
  647. Surname,
  648. Name,
  649. Patronymic};
  650. rowClientRow.ItemArray = columnValuesArray;
  651. this.Rows.Add(rowClientRow);
  652. return rowClientRow;
  653. }
  654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  656. public ClientRow FindByIdClient(int IdClient) {
  657. return ((ClientRow)(this.Rows.Find(new object[] {
  658. IdClient})));
  659. }
  660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  662. public override global::System.Data.DataTable Clone() {
  663. ClientDataTable cln = ((ClientDataTable)(base.Clone()));
  664. cln.InitVars();
  665. return cln;
  666. }
  667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  669. protected override global::System.Data.DataTable CreateInstance() {
  670. return new ClientDataTable();
  671. }
  672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  674. internal void InitVars() {
  675. this.columnIdClient = base.Columns["IdClient"];
  676. this.columnSurname = base.Columns["Surname"];
  677. this.columnName = base.Columns["Name"];
  678. this.columnPatronymic = base.Columns["Patronymic"];
  679. }
  680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  682. private void InitClass() {
  683. this.columnIdClient = new global::System.Data.DataColumn("IdClient", typeof(int), null, global::System.Data.MappingType.Element);
  684. base.Columns.Add(this.columnIdClient);
  685. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  686. base.Columns.Add(this.columnSurname);
  687. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  688. base.Columns.Add(this.columnName);
  689. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  690. base.Columns.Add(this.columnPatronymic);
  691. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  692. this.columnIdClient}, true));
  693. this.columnIdClient.AutoIncrement = true;
  694. this.columnIdClient.AutoIncrementSeed = -1;
  695. this.columnIdClient.AutoIncrementStep = -1;
  696. this.columnIdClient.AllowDBNull = false;
  697. this.columnIdClient.ReadOnly = true;
  698. this.columnIdClient.Unique = true;
  699. this.columnSurname.MaxLength = 50;
  700. this.columnName.MaxLength = 50;
  701. this.columnPatronymic.MaxLength = 50;
  702. }
  703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  705. public ClientRow NewClientRow() {
  706. return ((ClientRow)(this.NewRow()));
  707. }
  708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  710. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  711. return new ClientRow(builder);
  712. }
  713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  715. protected override global::System.Type GetRowType() {
  716. return typeof(ClientRow);
  717. }
  718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  720. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  721. base.OnRowChanged(e);
  722. if ((this.ClientRowChanged != null)) {
  723. this.ClientRowChanged(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  724. }
  725. }
  726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  728. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  729. base.OnRowChanging(e);
  730. if ((this.ClientRowChanging != null)) {
  731. this.ClientRowChanging(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  732. }
  733. }
  734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  736. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  737. base.OnRowDeleted(e);
  738. if ((this.ClientRowDeleted != null)) {
  739. this.ClientRowDeleted(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  740. }
  741. }
  742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  744. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  745. base.OnRowDeleting(e);
  746. if ((this.ClientRowDeleting != null)) {
  747. this.ClientRowDeleting(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  748. }
  749. }
  750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  752. public void RemoveClientRow(ClientRow row) {
  753. this.Rows.Remove(row);
  754. }
  755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  757. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  758. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  759. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  760. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  761. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  762. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  763. any1.MinOccurs = new decimal(0);
  764. any1.MaxOccurs = decimal.MaxValue;
  765. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  766. sequence.Items.Add(any1);
  767. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  768. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  769. any2.MinOccurs = new decimal(1);
  770. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  771. sequence.Items.Add(any2);
  772. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  773. attribute1.Name = "namespace";
  774. attribute1.FixedValue = ds.Namespace;
  775. type.Attributes.Add(attribute1);
  776. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  777. attribute2.Name = "tableTypeName";
  778. attribute2.FixedValue = "ClientDataTable";
  779. type.Attributes.Add(attribute2);
  780. type.Particle = sequence;
  781. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  782. if (xs.Contains(dsSchema.TargetNamespace)) {
  783. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  784. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  785. try {
  786. global::System.Xml.Schema.XmlSchema schema = null;
  787. dsSchema.Write(s1);
  788. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  789. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  790. s2.SetLength(0);
  791. schema.Write(s2);
  792. if ((s1.Length == s2.Length)) {
  793. s1.Position = 0;
  794. s2.Position = 0;
  795. for (; ((s1.Position != s1.Length)
  796. && (s1.ReadByte() == s2.ReadByte())); ) {
  797. ;
  798. }
  799. if ((s1.Position == s1.Length)) {
  800. return type;
  801. }
  802. }
  803. }
  804. }
  805. finally {
  806. if ((s1 != null)) {
  807. s1.Close();
  808. }
  809. if ((s2 != null)) {
  810. s2.Close();
  811. }
  812. }
  813. }
  814. xs.Add(dsSchema);
  815. return type;
  816. }
  817. }
  818. /// <summary>
  819. ///Represents the strongly named DataTable class.
  820. ///</summary>
  821. [global::System.Serializable()]
  822. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  823. public partial class EmployeeDataTable : global::System.Data.TypedTableBase<EmployeeRow> {
  824. private global::System.Data.DataColumn columnIdEmployee;
  825. private global::System.Data.DataColumn columnIdRole;
  826. private global::System.Data.DataColumn columnSurname;
  827. private global::System.Data.DataColumn columnName;
  828. private global::System.Data.DataColumn columnPatronymic;
  829. private global::System.Data.DataColumn columnLogin;
  830. private global::System.Data.DataColumn columnPassword;
  831. private global::System.Data.DataColumn columnPhoto;
  832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  834. public EmployeeDataTable() {
  835. this.TableName = "Employee";
  836. this.BeginInit();
  837. this.InitClass();
  838. this.EndInit();
  839. }
  840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  842. internal EmployeeDataTable(global::System.Data.DataTable table) {
  843. this.TableName = table.TableName;
  844. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  845. this.CaseSensitive = table.CaseSensitive;
  846. }
  847. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  848. this.Locale = table.Locale;
  849. }
  850. if ((table.Namespace != table.DataSet.Namespace)) {
  851. this.Namespace = table.Namespace;
  852. }
  853. this.Prefix = table.Prefix;
  854. this.MinimumCapacity = table.MinimumCapacity;
  855. }
  856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  858. protected EmployeeDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  859. base(info, context) {
  860. this.InitVars();
  861. }
  862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  864. public global::System.Data.DataColumn IdEmployeeColumn {
  865. get {
  866. return this.columnIdEmployee;
  867. }
  868. }
  869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  871. public global::System.Data.DataColumn IdRoleColumn {
  872. get {
  873. return this.columnIdRole;
  874. }
  875. }
  876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  878. public global::System.Data.DataColumn SurnameColumn {
  879. get {
  880. return this.columnSurname;
  881. }
  882. }
  883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  885. public global::System.Data.DataColumn NameColumn {
  886. get {
  887. return this.columnName;
  888. }
  889. }
  890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  892. public global::System.Data.DataColumn PatronymicColumn {
  893. get {
  894. return this.columnPatronymic;
  895. }
  896. }
  897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  899. public global::System.Data.DataColumn LoginColumn {
  900. get {
  901. return this.columnLogin;
  902. }
  903. }
  904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  906. public global::System.Data.DataColumn PasswordColumn {
  907. get {
  908. return this.columnPassword;
  909. }
  910. }
  911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  913. public global::System.Data.DataColumn PhotoColumn {
  914. get {
  915. return this.columnPhoto;
  916. }
  917. }
  918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  920. [global::System.ComponentModel.Browsable(false)]
  921. public int Count {
  922. get {
  923. return this.Rows.Count;
  924. }
  925. }
  926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  928. public EmployeeRow this[int index] {
  929. get {
  930. return ((EmployeeRow)(this.Rows[index]));
  931. }
  932. }
  933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  934. public event EmployeeRowChangeEventHandler EmployeeRowChanging;
  935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  936. public event EmployeeRowChangeEventHandler EmployeeRowChanged;
  937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  938. public event EmployeeRowChangeEventHandler EmployeeRowDeleting;
  939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  940. public event EmployeeRowChangeEventHandler EmployeeRowDeleted;
  941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  943. public void AddEmployeeRow(EmployeeRow row) {
  944. this.Rows.Add(row);
  945. }
  946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  948. public EmployeeRow AddEmployeeRow(RoleRow parentRoleRowByFK_Employee_Role, string Surname, string Name, string Patronymic, string Login, string Password, string Photo) {
  949. EmployeeRow rowEmployeeRow = ((EmployeeRow)(this.NewRow()));
  950. object[] columnValuesArray = new object[] {
  951. null,
  952. null,
  953. Surname,
  954. Name,
  955. Patronymic,
  956. Login,
  957. Password,
  958. Photo};
  959. if ((parentRoleRowByFK_Employee_Role != null)) {
  960. columnValuesArray[1] = parentRoleRowByFK_Employee_Role[0];
  961. }
  962. rowEmployeeRow.ItemArray = columnValuesArray;
  963. this.Rows.Add(rowEmployeeRow);
  964. return rowEmployeeRow;
  965. }
  966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  968. public EmployeeRow FindByIdEmployee(int IdEmployee) {
  969. return ((EmployeeRow)(this.Rows.Find(new object[] {
  970. IdEmployee})));
  971. }
  972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  974. public override global::System.Data.DataTable Clone() {
  975. EmployeeDataTable cln = ((EmployeeDataTable)(base.Clone()));
  976. cln.InitVars();
  977. return cln;
  978. }
  979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  981. protected override global::System.Data.DataTable CreateInstance() {
  982. return new EmployeeDataTable();
  983. }
  984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  986. internal void InitVars() {
  987. this.columnIdEmployee = base.Columns["IdEmployee"];
  988. this.columnIdRole = base.Columns["IdRole"];
  989. this.columnSurname = base.Columns["Surname"];
  990. this.columnName = base.Columns["Name"];
  991. this.columnPatronymic = base.Columns["Patronymic"];
  992. this.columnLogin = base.Columns["Login"];
  993. this.columnPassword = base.Columns["Password"];
  994. this.columnPhoto = base.Columns["Photo"];
  995. }
  996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  998. private void InitClass() {
  999. this.columnIdEmployee = new global::System.Data.DataColumn("IdEmployee", typeof(int), null, global::System.Data.MappingType.Element);
  1000. base.Columns.Add(this.columnIdEmployee);
  1001. this.columnIdRole = new global::System.Data.DataColumn("IdRole", typeof(int), null, global::System.Data.MappingType.Element);
  1002. base.Columns.Add(this.columnIdRole);
  1003. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  1004. base.Columns.Add(this.columnSurname);
  1005. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1006. base.Columns.Add(this.columnName);
  1007. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  1008. base.Columns.Add(this.columnPatronymic);
  1009. this.columnLogin = new global::System.Data.DataColumn("Login", typeof(string), null, global::System.Data.MappingType.Element);
  1010. base.Columns.Add(this.columnLogin);
  1011. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  1012. base.Columns.Add(this.columnPassword);
  1013. this.columnPhoto = new global::System.Data.DataColumn("Photo", typeof(string), null, global::System.Data.MappingType.Element);
  1014. base.Columns.Add(this.columnPhoto);
  1015. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1016. this.columnIdEmployee}, true));
  1017. this.columnIdEmployee.AutoIncrement = true;
  1018. this.columnIdEmployee.AutoIncrementSeed = -1;
  1019. this.columnIdEmployee.AutoIncrementStep = -1;
  1020. this.columnIdEmployee.AllowDBNull = false;
  1021. this.columnIdEmployee.ReadOnly = true;
  1022. this.columnIdEmployee.Unique = true;
  1023. this.columnSurname.MaxLength = 50;
  1024. this.columnName.MaxLength = 50;
  1025. this.columnPatronymic.MaxLength = 50;
  1026. this.columnLogin.MaxLength = 50;
  1027. this.columnPassword.MaxLength = 50;
  1028. this.columnPhoto.MaxLength = 50;
  1029. }
  1030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1032. public EmployeeRow NewEmployeeRow() {
  1033. return ((EmployeeRow)(this.NewRow()));
  1034. }
  1035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1037. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1038. return new EmployeeRow(builder);
  1039. }
  1040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1042. protected override global::System.Type GetRowType() {
  1043. return typeof(EmployeeRow);
  1044. }
  1045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1047. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1048. base.OnRowChanged(e);
  1049. if ((this.EmployeeRowChanged != null)) {
  1050. this.EmployeeRowChanged(this, new EmployeeRowChangeEvent(((EmployeeRow)(e.Row)), e.Action));
  1051. }
  1052. }
  1053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1055. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1056. base.OnRowChanging(e);
  1057. if ((this.EmployeeRowChanging != null)) {
  1058. this.EmployeeRowChanging(this, new EmployeeRowChangeEvent(((EmployeeRow)(e.Row)), e.Action));
  1059. }
  1060. }
  1061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1063. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1064. base.OnRowDeleted(e);
  1065. if ((this.EmployeeRowDeleted != null)) {
  1066. this.EmployeeRowDeleted(this, new EmployeeRowChangeEvent(((EmployeeRow)(e.Row)), e.Action));
  1067. }
  1068. }
  1069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1071. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1072. base.OnRowDeleting(e);
  1073. if ((this.EmployeeRowDeleting != null)) {
  1074. this.EmployeeRowDeleting(this, new EmployeeRowChangeEvent(((EmployeeRow)(e.Row)), e.Action));
  1075. }
  1076. }
  1077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1079. public void RemoveEmployeeRow(EmployeeRow row) {
  1080. this.Rows.Remove(row);
  1081. }
  1082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1084. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1085. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1086. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1087. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  1088. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1089. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1090. any1.MinOccurs = new decimal(0);
  1091. any1.MaxOccurs = decimal.MaxValue;
  1092. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1093. sequence.Items.Add(any1);
  1094. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1095. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1096. any2.MinOccurs = new decimal(1);
  1097. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1098. sequence.Items.Add(any2);
  1099. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1100. attribute1.Name = "namespace";
  1101. attribute1.FixedValue = ds.Namespace;
  1102. type.Attributes.Add(attribute1);
  1103. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1104. attribute2.Name = "tableTypeName";
  1105. attribute2.FixedValue = "EmployeeDataTable";
  1106. type.Attributes.Add(attribute2);
  1107. type.Particle = sequence;
  1108. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1109. if (xs.Contains(dsSchema.TargetNamespace)) {
  1110. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1111. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1112. try {
  1113. global::System.Xml.Schema.XmlSchema schema = null;
  1114. dsSchema.Write(s1);
  1115. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1116. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1117. s2.SetLength(0);
  1118. schema.Write(s2);
  1119. if ((s1.Length == s2.Length)) {
  1120. s1.Position = 0;
  1121. s2.Position = 0;
  1122. for (; ((s1.Position != s1.Length)
  1123. && (s1.ReadByte() == s2.ReadByte())); ) {
  1124. ;
  1125. }
  1126. if ((s1.Position == s1.Length)) {
  1127. return type;
  1128. }
  1129. }
  1130. }
  1131. }
  1132. finally {
  1133. if ((s1 != null)) {
  1134. s1.Close();
  1135. }
  1136. if ((s2 != null)) {
  1137. s2.Close();
  1138. }
  1139. }
  1140. }
  1141. xs.Add(dsSchema);
  1142. return type;
  1143. }
  1144. }
  1145. /// <summary>
  1146. ///Represents the strongly named DataTable class.
  1147. ///</summary>
  1148. [global::System.Serializable()]
  1149. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1150. public partial class ExecutionRequestDataTable : global::System.Data.TypedTableBase<ExecutionRequestRow> {
  1151. private global::System.Data.DataColumn columnIdExecution;
  1152. private global::System.Data.DataColumn columnIdRequest;
  1153. private global::System.Data.DataColumn columnIdMaster;
  1154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1156. public ExecutionRequestDataTable() {
  1157. this.TableName = "ExecutionRequest";
  1158. this.BeginInit();
  1159. this.InitClass();
  1160. this.EndInit();
  1161. }
  1162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1164. internal ExecutionRequestDataTable(global::System.Data.DataTable table) {
  1165. this.TableName = table.TableName;
  1166. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1167. this.CaseSensitive = table.CaseSensitive;
  1168. }
  1169. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1170. this.Locale = table.Locale;
  1171. }
  1172. if ((table.Namespace != table.DataSet.Namespace)) {
  1173. this.Namespace = table.Namespace;
  1174. }
  1175. this.Prefix = table.Prefix;
  1176. this.MinimumCapacity = table.MinimumCapacity;
  1177. }
  1178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1180. protected ExecutionRequestDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1181. base(info, context) {
  1182. this.InitVars();
  1183. }
  1184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1186. public global::System.Data.DataColumn IdExecutionColumn {
  1187. get {
  1188. return this.columnIdExecution;
  1189. }
  1190. }
  1191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1193. public global::System.Data.DataColumn IdRequestColumn {
  1194. get {
  1195. return this.columnIdRequest;
  1196. }
  1197. }
  1198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1200. public global::System.Data.DataColumn IdMasterColumn {
  1201. get {
  1202. return this.columnIdMaster;
  1203. }
  1204. }
  1205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1207. [global::System.ComponentModel.Browsable(false)]
  1208. public int Count {
  1209. get {
  1210. return this.Rows.Count;
  1211. }
  1212. }
  1213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1215. public ExecutionRequestRow this[int index] {
  1216. get {
  1217. return ((ExecutionRequestRow)(this.Rows[index]));
  1218. }
  1219. }
  1220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1221. public event ExecutionRequestRowChangeEventHandler ExecutionRequestRowChanging;
  1222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1223. public event ExecutionRequestRowChangeEventHandler ExecutionRequestRowChanged;
  1224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1225. public event ExecutionRequestRowChangeEventHandler ExecutionRequestRowDeleting;
  1226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1227. public event ExecutionRequestRowChangeEventHandler ExecutionRequestRowDeleted;
  1228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1230. public void AddExecutionRequestRow(ExecutionRequestRow row) {
  1231. this.Rows.Add(row);
  1232. }
  1233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1235. public ExecutionRequestRow AddExecutionRequestRow(RequestRow parentRequestRowByFK_ExecutionRequest_Request, EmployeeRow parentEmployeeRowByFK_ExecutionRequest_Employee) {
  1236. ExecutionRequestRow rowExecutionRequestRow = ((ExecutionRequestRow)(this.NewRow()));
  1237. object[] columnValuesArray = new object[] {
  1238. null,
  1239. null,
  1240. null};
  1241. if ((parentRequestRowByFK_ExecutionRequest_Request != null)) {
  1242. columnValuesArray[1] = parentRequestRowByFK_ExecutionRequest_Request[0];
  1243. }
  1244. if ((parentEmployeeRowByFK_ExecutionRequest_Employee != null)) {
  1245. columnValuesArray[2] = parentEmployeeRowByFK_ExecutionRequest_Employee[0];
  1246. }
  1247. rowExecutionRequestRow.ItemArray = columnValuesArray;
  1248. this.Rows.Add(rowExecutionRequestRow);
  1249. return rowExecutionRequestRow;
  1250. }
  1251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1253. public ExecutionRequestRow FindByIdExecution(int IdExecution) {
  1254. return ((ExecutionRequestRow)(this.Rows.Find(new object[] {
  1255. IdExecution})));
  1256. }
  1257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1259. public override global::System.Data.DataTable Clone() {
  1260. ExecutionRequestDataTable cln = ((ExecutionRequestDataTable)(base.Clone()));
  1261. cln.InitVars();
  1262. return cln;
  1263. }
  1264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1266. protected override global::System.Data.DataTable CreateInstance() {
  1267. return new ExecutionRequestDataTable();
  1268. }
  1269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1271. internal void InitVars() {
  1272. this.columnIdExecution = base.Columns["IdExecution"];
  1273. this.columnIdRequest = base.Columns["IdRequest"];
  1274. this.columnIdMaster = base.Columns["IdMaster"];
  1275. }
  1276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1278. private void InitClass() {
  1279. this.columnIdExecution = new global::System.Data.DataColumn("IdExecution", typeof(int), null, global::System.Data.MappingType.Element);
  1280. base.Columns.Add(this.columnIdExecution);
  1281. this.columnIdRequest = new global::System.Data.DataColumn("IdRequest", typeof(int), null, global::System.Data.MappingType.Element);
  1282. base.Columns.Add(this.columnIdRequest);
  1283. this.columnIdMaster = new global::System.Data.DataColumn("IdMaster", typeof(int), null, global::System.Data.MappingType.Element);
  1284. base.Columns.Add(this.columnIdMaster);
  1285. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1286. this.columnIdExecution}, true));
  1287. this.columnIdExecution.AutoIncrement = true;
  1288. this.columnIdExecution.AutoIncrementSeed = -1;
  1289. this.columnIdExecution.AutoIncrementStep = -1;
  1290. this.columnIdExecution.AllowDBNull = false;
  1291. this.columnIdExecution.ReadOnly = true;
  1292. this.columnIdExecution.Unique = true;
  1293. }
  1294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1296. public ExecutionRequestRow NewExecutionRequestRow() {
  1297. return ((ExecutionRequestRow)(this.NewRow()));
  1298. }
  1299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1301. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1302. return new ExecutionRequestRow(builder);
  1303. }
  1304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1306. protected override global::System.Type GetRowType() {
  1307. return typeof(ExecutionRequestRow);
  1308. }
  1309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1311. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1312. base.OnRowChanged(e);
  1313. if ((this.ExecutionRequestRowChanged != null)) {
  1314. this.ExecutionRequestRowChanged(this, new ExecutionRequestRowChangeEvent(((ExecutionRequestRow)(e.Row)), e.Action));
  1315. }
  1316. }
  1317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1319. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1320. base.OnRowChanging(e);
  1321. if ((this.ExecutionRequestRowChanging != null)) {
  1322. this.ExecutionRequestRowChanging(this, new ExecutionRequestRowChangeEvent(((ExecutionRequestRow)(e.Row)), e.Action));
  1323. }
  1324. }
  1325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1327. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1328. base.OnRowDeleted(e);
  1329. if ((this.ExecutionRequestRowDeleted != null)) {
  1330. this.ExecutionRequestRowDeleted(this, new ExecutionRequestRowChangeEvent(((ExecutionRequestRow)(e.Row)), e.Action));
  1331. }
  1332. }
  1333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1335. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1336. base.OnRowDeleting(e);
  1337. if ((this.ExecutionRequestRowDeleting != null)) {
  1338. this.ExecutionRequestRowDeleting(this, new ExecutionRequestRowChangeEvent(((ExecutionRequestRow)(e.Row)), e.Action));
  1339. }
  1340. }
  1341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1343. public void RemoveExecutionRequestRow(ExecutionRequestRow row) {
  1344. this.Rows.Remove(row);
  1345. }
  1346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1348. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1349. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1350. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1351. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  1352. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1353. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1354. any1.MinOccurs = new decimal(0);
  1355. any1.MaxOccurs = decimal.MaxValue;
  1356. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1357. sequence.Items.Add(any1);
  1358. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1359. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1360. any2.MinOccurs = new decimal(1);
  1361. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1362. sequence.Items.Add(any2);
  1363. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1364. attribute1.Name = "namespace";
  1365. attribute1.FixedValue = ds.Namespace;
  1366. type.Attributes.Add(attribute1);
  1367. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1368. attribute2.Name = "tableTypeName";
  1369. attribute2.FixedValue = "ExecutionRequestDataTable";
  1370. type.Attributes.Add(attribute2);
  1371. type.Particle = sequence;
  1372. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1373. if (xs.Contains(dsSchema.TargetNamespace)) {
  1374. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1375. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1376. try {
  1377. global::System.Xml.Schema.XmlSchema schema = null;
  1378. dsSchema.Write(s1);
  1379. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1380. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1381. s2.SetLength(0);
  1382. schema.Write(s2);
  1383. if ((s1.Length == s2.Length)) {
  1384. s1.Position = 0;
  1385. s2.Position = 0;
  1386. for (; ((s1.Position != s1.Length)
  1387. && (s1.ReadByte() == s2.ReadByte())); ) {
  1388. ;
  1389. }
  1390. if ((s1.Position == s1.Length)) {
  1391. return type;
  1392. }
  1393. }
  1394. }
  1395. }
  1396. finally {
  1397. if ((s1 != null)) {
  1398. s1.Close();
  1399. }
  1400. if ((s2 != null)) {
  1401. s2.Close();
  1402. }
  1403. }
  1404. }
  1405. xs.Add(dsSchema);
  1406. return type;
  1407. }
  1408. }
  1409. /// <summary>
  1410. ///Represents the strongly named DataTable class.
  1411. ///</summary>
  1412. [global::System.Serializable()]
  1413. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1414. public partial class RequestDataTable : global::System.Data.TypedTableBase<RequestRow> {
  1415. private global::System.Data.DataColumn columnIdRequest;
  1416. private global::System.Data.DataColumn columnIdStatus;
  1417. private global::System.Data.DataColumn columnIdTypeDefect;
  1418. private global::System.Data.DataColumn columnIdClient;
  1419. private global::System.Data.DataColumn columnIdManager;
  1420. private global::System.Data.DataColumn columnDateAccepting;
  1421. private global::System.Data.DataColumn columnDateCompletion;
  1422. private global::System.Data.DataColumn columnEquipmentDefect;
  1423. private global::System.Data.DataColumn columnDescription;
  1424. private global::System.Data.DataColumn columnComment;
  1425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1427. public RequestDataTable() {
  1428. this.TableName = "Request";
  1429. this.BeginInit();
  1430. this.InitClass();
  1431. this.EndInit();
  1432. }
  1433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1435. internal RequestDataTable(global::System.Data.DataTable table) {
  1436. this.TableName = table.TableName;
  1437. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1438. this.CaseSensitive = table.CaseSensitive;
  1439. }
  1440. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1441. this.Locale = table.Locale;
  1442. }
  1443. if ((table.Namespace != table.DataSet.Namespace)) {
  1444. this.Namespace = table.Namespace;
  1445. }
  1446. this.Prefix = table.Prefix;
  1447. this.MinimumCapacity = table.MinimumCapacity;
  1448. }
  1449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1451. protected RequestDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1452. base(info, context) {
  1453. this.InitVars();
  1454. }
  1455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1457. public global::System.Data.DataColumn IdRequestColumn {
  1458. get {
  1459. return this.columnIdRequest;
  1460. }
  1461. }
  1462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1464. public global::System.Data.DataColumn IdStatusColumn {
  1465. get {
  1466. return this.columnIdStatus;
  1467. }
  1468. }
  1469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1471. public global::System.Data.DataColumn IdTypeDefectColumn {
  1472. get {
  1473. return this.columnIdTypeDefect;
  1474. }
  1475. }
  1476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1478. public global::System.Data.DataColumn IdClientColumn {
  1479. get {
  1480. return this.columnIdClient;
  1481. }
  1482. }
  1483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1485. public global::System.Data.DataColumn IdManagerColumn {
  1486. get {
  1487. return this.columnIdManager;
  1488. }
  1489. }
  1490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1492. public global::System.Data.DataColumn DateAcceptingColumn {
  1493. get {
  1494. return this.columnDateAccepting;
  1495. }
  1496. }
  1497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1499. public global::System.Data.DataColumn DateCompletionColumn {
  1500. get {
  1501. return this.columnDateCompletion;
  1502. }
  1503. }
  1504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1506. public global::System.Data.DataColumn EquipmentDefectColumn {
  1507. get {
  1508. return this.columnEquipmentDefect;
  1509. }
  1510. }
  1511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1513. public global::System.Data.DataColumn DescriptionColumn {
  1514. get {
  1515. return this.columnDescription;
  1516. }
  1517. }
  1518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1520. public global::System.Data.DataColumn CommentColumn {
  1521. get {
  1522. return this.columnComment;
  1523. }
  1524. }
  1525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1527. [global::System.ComponentModel.Browsable(false)]
  1528. public int Count {
  1529. get {
  1530. return this.Rows.Count;
  1531. }
  1532. }
  1533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1535. public RequestRow this[int index] {
  1536. get {
  1537. return ((RequestRow)(this.Rows[index]));
  1538. }
  1539. }
  1540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1541. public event RequestRowChangeEventHandler RequestRowChanging;
  1542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1543. public event RequestRowChangeEventHandler RequestRowChanged;
  1544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1545. public event RequestRowChangeEventHandler RequestRowDeleting;
  1546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1547. public event RequestRowChangeEventHandler RequestRowDeleted;
  1548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1550. public void AddRequestRow(RequestRow row) {
  1551. this.Rows.Add(row);
  1552. }
  1553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1555. 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) {
  1556. RequestRow rowRequestRow = ((RequestRow)(this.NewRow()));
  1557. object[] columnValuesArray = new object[] {
  1558. null,
  1559. null,
  1560. null,
  1561. null,
  1562. null,
  1563. DateAccepting,
  1564. DateCompletion,
  1565. EquipmentDefect,
  1566. Description,
  1567. Comment};
  1568. if ((parentStatusRowByFK_Request_Status != null)) {
  1569. columnValuesArray[1] = parentStatusRowByFK_Request_Status[0];
  1570. }
  1571. if ((parentTypeDefectRowByFK_Request_TypeDefect != null)) {
  1572. columnValuesArray[2] = parentTypeDefectRowByFK_Request_TypeDefect[0];
  1573. }
  1574. if ((parentClientRowByFK_Request_Client != null)) {
  1575. columnValuesArray[3] = parentClientRowByFK_Request_Client[0];
  1576. }
  1577. if ((parentEmployeeRowByFK_Request_Employee != null)) {
  1578. columnValuesArray[4] = parentEmployeeRowByFK_Request_Employee[0];
  1579. }
  1580. rowRequestRow.ItemArray = columnValuesArray;
  1581. this.Rows.Add(rowRequestRow);
  1582. return rowRequestRow;
  1583. }
  1584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1586. public RequestRow FindByIdRequest(int IdRequest) {
  1587. return ((RequestRow)(this.Rows.Find(new object[] {
  1588. IdRequest})));
  1589. }
  1590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1592. public override global::System.Data.DataTable Clone() {
  1593. RequestDataTable cln = ((RequestDataTable)(base.Clone()));
  1594. cln.InitVars();
  1595. return cln;
  1596. }
  1597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1599. protected override global::System.Data.DataTable CreateInstance() {
  1600. return new RequestDataTable();
  1601. }
  1602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1604. internal void InitVars() {
  1605. this.columnIdRequest = base.Columns["IdRequest"];
  1606. this.columnIdStatus = base.Columns["IdStatus"];
  1607. this.columnIdTypeDefect = base.Columns["IdTypeDefect"];
  1608. this.columnIdClient = base.Columns["IdClient"];
  1609. this.columnIdManager = base.Columns["IdManager"];
  1610. this.columnDateAccepting = base.Columns["DateAccepting"];
  1611. this.columnDateCompletion = base.Columns["DateCompletion"];
  1612. this.columnEquipmentDefect = base.Columns["EquipmentDefect"];
  1613. this.columnDescription = base.Columns["Description"];
  1614. this.columnComment = base.Columns["Comment"];
  1615. }
  1616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1618. private void InitClass() {
  1619. this.columnIdRequest = new global::System.Data.DataColumn("IdRequest", typeof(int), null, global::System.Data.MappingType.Element);
  1620. base.Columns.Add(this.columnIdRequest);
  1621. this.columnIdStatus = new global::System.Data.DataColumn("IdStatus", typeof(int), null, global::System.Data.MappingType.Element);
  1622. base.Columns.Add(this.columnIdStatus);
  1623. this.columnIdTypeDefect = new global::System.Data.DataColumn("IdTypeDefect", typeof(int), null, global::System.Data.MappingType.Element);
  1624. base.Columns.Add(this.columnIdTypeDefect);
  1625. this.columnIdClient = new global::System.Data.DataColumn("IdClient", typeof(int), null, global::System.Data.MappingType.Element);
  1626. base.Columns.Add(this.columnIdClient);
  1627. this.columnIdManager = new global::System.Data.DataColumn("IdManager", typeof(int), null, global::System.Data.MappingType.Element);
  1628. base.Columns.Add(this.columnIdManager);
  1629. this.columnDateAccepting = new global::System.Data.DataColumn("DateAccepting", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1630. base.Columns.Add(this.columnDateAccepting);
  1631. this.columnDateCompletion = new global::System.Data.DataColumn("DateCompletion", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1632. base.Columns.Add(this.columnDateCompletion);
  1633. this.columnEquipmentDefect = new global::System.Data.DataColumn("EquipmentDefect", typeof(string), null, global::System.Data.MappingType.Element);
  1634. base.Columns.Add(this.columnEquipmentDefect);
  1635. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  1636. base.Columns.Add(this.columnDescription);
  1637. this.columnComment = new global::System.Data.DataColumn("Comment", typeof(string), null, global::System.Data.MappingType.Element);
  1638. base.Columns.Add(this.columnComment);
  1639. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1640. this.columnIdRequest}, true));
  1641. this.columnIdRequest.AutoIncrement = true;
  1642. this.columnIdRequest.AutoIncrementSeed = 1;
  1643. this.columnIdRequest.AllowDBNull = false;
  1644. this.columnIdRequest.ReadOnly = true;
  1645. this.columnIdRequest.Unique = true;
  1646. this.columnEquipmentDefect.MaxLength = 100;
  1647. this.columnDescription.MaxLength = 2147483647;
  1648. this.columnComment.MaxLength = 2147483647;
  1649. }
  1650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1652. public RequestRow NewRequestRow() {
  1653. return ((RequestRow)(this.NewRow()));
  1654. }
  1655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1657. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1658. return new RequestRow(builder);
  1659. }
  1660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1662. protected override global::System.Type GetRowType() {
  1663. return typeof(RequestRow);
  1664. }
  1665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1667. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1668. base.OnRowChanged(e);
  1669. if ((this.RequestRowChanged != null)) {
  1670. this.RequestRowChanged(this, new RequestRowChangeEvent(((RequestRow)(e.Row)), e.Action));
  1671. }
  1672. }
  1673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1675. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1676. base.OnRowChanging(e);
  1677. if ((this.RequestRowChanging != null)) {
  1678. this.RequestRowChanging(this, new RequestRowChangeEvent(((RequestRow)(e.Row)), e.Action));
  1679. }
  1680. }
  1681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1683. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1684. base.OnRowDeleted(e);
  1685. if ((this.RequestRowDeleted != null)) {
  1686. this.RequestRowDeleted(this, new RequestRowChangeEvent(((RequestRow)(e.Row)), e.Action));
  1687. }
  1688. }
  1689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1691. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1692. base.OnRowDeleting(e);
  1693. if ((this.RequestRowDeleting != null)) {
  1694. this.RequestRowDeleting(this, new RequestRowChangeEvent(((RequestRow)(e.Row)), e.Action));
  1695. }
  1696. }
  1697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1699. public void RemoveRequestRow(RequestRow row) {
  1700. this.Rows.Remove(row);
  1701. }
  1702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1704. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1705. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1706. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1707. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  1708. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1709. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1710. any1.MinOccurs = new decimal(0);
  1711. any1.MaxOccurs = decimal.MaxValue;
  1712. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1713. sequence.Items.Add(any1);
  1714. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1715. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1716. any2.MinOccurs = new decimal(1);
  1717. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1718. sequence.Items.Add(any2);
  1719. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1720. attribute1.Name = "namespace";
  1721. attribute1.FixedValue = ds.Namespace;
  1722. type.Attributes.Add(attribute1);
  1723. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1724. attribute2.Name = "tableTypeName";
  1725. attribute2.FixedValue = "RequestDataTable";
  1726. type.Attributes.Add(attribute2);
  1727. type.Particle = sequence;
  1728. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1729. if (xs.Contains(dsSchema.TargetNamespace)) {
  1730. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1731. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1732. try {
  1733. global::System.Xml.Schema.XmlSchema schema = null;
  1734. dsSchema.Write(s1);
  1735. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1736. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1737. s2.SetLength(0);
  1738. schema.Write(s2);
  1739. if ((s1.Length == s2.Length)) {
  1740. s1.Position = 0;
  1741. s2.Position = 0;
  1742. for (; ((s1.Position != s1.Length)
  1743. && (s1.ReadByte() == s2.ReadByte())); ) {
  1744. ;
  1745. }
  1746. if ((s1.Position == s1.Length)) {
  1747. return type;
  1748. }
  1749. }
  1750. }
  1751. }
  1752. finally {
  1753. if ((s1 != null)) {
  1754. s1.Close();
  1755. }
  1756. if ((s2 != null)) {
  1757. s2.Close();
  1758. }
  1759. }
  1760. }
  1761. xs.Add(dsSchema);
  1762. return type;
  1763. }
  1764. }
  1765. /// <summary>
  1766. ///Represents the strongly named DataTable class.
  1767. ///</summary>
  1768. [global::System.Serializable()]
  1769. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1770. public partial class RoleDataTable : global::System.Data.TypedTableBase<RoleRow> {
  1771. private global::System.Data.DataColumn columnIdRole;
  1772. private global::System.Data.DataColumn columnTitle;
  1773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1775. public RoleDataTable() {
  1776. this.TableName = "Role";
  1777. this.BeginInit();
  1778. this.InitClass();
  1779. this.EndInit();
  1780. }
  1781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1783. internal RoleDataTable(global::System.Data.DataTable table) {
  1784. this.TableName = table.TableName;
  1785. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1786. this.CaseSensitive = table.CaseSensitive;
  1787. }
  1788. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1789. this.Locale = table.Locale;
  1790. }
  1791. if ((table.Namespace != table.DataSet.Namespace)) {
  1792. this.Namespace = table.Namespace;
  1793. }
  1794. this.Prefix = table.Prefix;
  1795. this.MinimumCapacity = table.MinimumCapacity;
  1796. }
  1797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1799. protected RoleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1800. base(info, context) {
  1801. this.InitVars();
  1802. }
  1803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1805. public global::System.Data.DataColumn IdRoleColumn {
  1806. get {
  1807. return this.columnIdRole;
  1808. }
  1809. }
  1810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1812. public global::System.Data.DataColumn TitleColumn {
  1813. get {
  1814. return this.columnTitle;
  1815. }
  1816. }
  1817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1819. [global::System.ComponentModel.Browsable(false)]
  1820. public int Count {
  1821. get {
  1822. return this.Rows.Count;
  1823. }
  1824. }
  1825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1827. public RoleRow this[int index] {
  1828. get {
  1829. return ((RoleRow)(this.Rows[index]));
  1830. }
  1831. }
  1832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1833. public event RoleRowChangeEventHandler RoleRowChanging;
  1834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1835. public event RoleRowChangeEventHandler RoleRowChanged;
  1836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1837. public event RoleRowChangeEventHandler RoleRowDeleting;
  1838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1839. public event RoleRowChangeEventHandler RoleRowDeleted;
  1840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1842. public void AddRoleRow(RoleRow row) {
  1843. this.Rows.Add(row);
  1844. }
  1845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1847. public RoleRow AddRoleRow(string Title) {
  1848. RoleRow rowRoleRow = ((RoleRow)(this.NewRow()));
  1849. object[] columnValuesArray = new object[] {
  1850. null,
  1851. Title};
  1852. rowRoleRow.ItemArray = columnValuesArray;
  1853. this.Rows.Add(rowRoleRow);
  1854. return rowRoleRow;
  1855. }
  1856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1858. public RoleRow FindByIdRole(int IdRole) {
  1859. return ((RoleRow)(this.Rows.Find(new object[] {
  1860. IdRole})));
  1861. }
  1862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1864. public override global::System.Data.DataTable Clone() {
  1865. RoleDataTable cln = ((RoleDataTable)(base.Clone()));
  1866. cln.InitVars();
  1867. return cln;
  1868. }
  1869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1871. protected override global::System.Data.DataTable CreateInstance() {
  1872. return new RoleDataTable();
  1873. }
  1874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1876. internal void InitVars() {
  1877. this.columnIdRole = base.Columns["IdRole"];
  1878. this.columnTitle = base.Columns["Title"];
  1879. }
  1880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1882. private void InitClass() {
  1883. this.columnIdRole = new global::System.Data.DataColumn("IdRole", typeof(int), null, global::System.Data.MappingType.Element);
  1884. base.Columns.Add(this.columnIdRole);
  1885. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  1886. base.Columns.Add(this.columnTitle);
  1887. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1888. this.columnIdRole}, true));
  1889. this.columnIdRole.AutoIncrement = true;
  1890. this.columnIdRole.AutoIncrementSeed = -1;
  1891. this.columnIdRole.AutoIncrementStep = -1;
  1892. this.columnIdRole.AllowDBNull = false;
  1893. this.columnIdRole.ReadOnly = true;
  1894. this.columnIdRole.Unique = true;
  1895. this.columnTitle.MaxLength = 50;
  1896. }
  1897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1899. public RoleRow NewRoleRow() {
  1900. return ((RoleRow)(this.NewRow()));
  1901. }
  1902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1904. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1905. return new RoleRow(builder);
  1906. }
  1907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1909. protected override global::System.Type GetRowType() {
  1910. return typeof(RoleRow);
  1911. }
  1912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1914. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1915. base.OnRowChanged(e);
  1916. if ((this.RoleRowChanged != null)) {
  1917. this.RoleRowChanged(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1918. }
  1919. }
  1920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1922. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1923. base.OnRowChanging(e);
  1924. if ((this.RoleRowChanging != null)) {
  1925. this.RoleRowChanging(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1926. }
  1927. }
  1928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1930. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1931. base.OnRowDeleted(e);
  1932. if ((this.RoleRowDeleted != null)) {
  1933. this.RoleRowDeleted(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1934. }
  1935. }
  1936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1938. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1939. base.OnRowDeleting(e);
  1940. if ((this.RoleRowDeleting != null)) {
  1941. this.RoleRowDeleting(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1942. }
  1943. }
  1944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1946. public void RemoveRoleRow(RoleRow row) {
  1947. this.Rows.Remove(row);
  1948. }
  1949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1951. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1952. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1953. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1954. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  1955. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1956. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1957. any1.MinOccurs = new decimal(0);
  1958. any1.MaxOccurs = decimal.MaxValue;
  1959. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1960. sequence.Items.Add(any1);
  1961. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1962. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1963. any2.MinOccurs = new decimal(1);
  1964. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1965. sequence.Items.Add(any2);
  1966. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1967. attribute1.Name = "namespace";
  1968. attribute1.FixedValue = ds.Namespace;
  1969. type.Attributes.Add(attribute1);
  1970. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1971. attribute2.Name = "tableTypeName";
  1972. attribute2.FixedValue = "RoleDataTable";
  1973. type.Attributes.Add(attribute2);
  1974. type.Particle = sequence;
  1975. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1976. if (xs.Contains(dsSchema.TargetNamespace)) {
  1977. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1978. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1979. try {
  1980. global::System.Xml.Schema.XmlSchema schema = null;
  1981. dsSchema.Write(s1);
  1982. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1983. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1984. s2.SetLength(0);
  1985. schema.Write(s2);
  1986. if ((s1.Length == s2.Length)) {
  1987. s1.Position = 0;
  1988. s2.Position = 0;
  1989. for (; ((s1.Position != s1.Length)
  1990. && (s1.ReadByte() == s2.ReadByte())); ) {
  1991. ;
  1992. }
  1993. if ((s1.Position == s1.Length)) {
  1994. return type;
  1995. }
  1996. }
  1997. }
  1998. }
  1999. finally {
  2000. if ((s1 != null)) {
  2001. s1.Close();
  2002. }
  2003. if ((s2 != null)) {
  2004. s2.Close();
  2005. }
  2006. }
  2007. }
  2008. xs.Add(dsSchema);
  2009. return type;
  2010. }
  2011. }
  2012. /// <summary>
  2013. ///Represents the strongly named DataTable class.
  2014. ///</summary>
  2015. [global::System.Serializable()]
  2016. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2017. public partial class StatusDataTable : global::System.Data.TypedTableBase<StatusRow> {
  2018. private global::System.Data.DataColumn columnIdStatus;
  2019. private global::System.Data.DataColumn columnTitle;
  2020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2022. public StatusDataTable() {
  2023. this.TableName = "Status";
  2024. this.BeginInit();
  2025. this.InitClass();
  2026. this.EndInit();
  2027. }
  2028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2030. internal StatusDataTable(global::System.Data.DataTable table) {
  2031. this.TableName = table.TableName;
  2032. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2033. this.CaseSensitive = table.CaseSensitive;
  2034. }
  2035. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2036. this.Locale = table.Locale;
  2037. }
  2038. if ((table.Namespace != table.DataSet.Namespace)) {
  2039. this.Namespace = table.Namespace;
  2040. }
  2041. this.Prefix = table.Prefix;
  2042. this.MinimumCapacity = table.MinimumCapacity;
  2043. }
  2044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2046. protected StatusDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2047. base(info, context) {
  2048. this.InitVars();
  2049. }
  2050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2052. public global::System.Data.DataColumn IdStatusColumn {
  2053. get {
  2054. return this.columnIdStatus;
  2055. }
  2056. }
  2057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2059. public global::System.Data.DataColumn TitleColumn {
  2060. get {
  2061. return this.columnTitle;
  2062. }
  2063. }
  2064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2066. [global::System.ComponentModel.Browsable(false)]
  2067. public int Count {
  2068. get {
  2069. return this.Rows.Count;
  2070. }
  2071. }
  2072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2074. public StatusRow this[int index] {
  2075. get {
  2076. return ((StatusRow)(this.Rows[index]));
  2077. }
  2078. }
  2079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2080. public event StatusRowChangeEventHandler StatusRowChanging;
  2081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2082. public event StatusRowChangeEventHandler StatusRowChanged;
  2083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2084. public event StatusRowChangeEventHandler StatusRowDeleting;
  2085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2086. public event StatusRowChangeEventHandler StatusRowDeleted;
  2087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2089. public void AddStatusRow(StatusRow row) {
  2090. this.Rows.Add(row);
  2091. }
  2092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2094. public StatusRow AddStatusRow(string Title) {
  2095. StatusRow rowStatusRow = ((StatusRow)(this.NewRow()));
  2096. object[] columnValuesArray = new object[] {
  2097. null,
  2098. Title};
  2099. rowStatusRow.ItemArray = columnValuesArray;
  2100. this.Rows.Add(rowStatusRow);
  2101. return rowStatusRow;
  2102. }
  2103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2105. public StatusRow FindByIdStatus(int IdStatus) {
  2106. return ((StatusRow)(this.Rows.Find(new object[] {
  2107. IdStatus})));
  2108. }
  2109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2111. public override global::System.Data.DataTable Clone() {
  2112. StatusDataTable cln = ((StatusDataTable)(base.Clone()));
  2113. cln.InitVars();
  2114. return cln;
  2115. }
  2116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2118. protected override global::System.Data.DataTable CreateInstance() {
  2119. return new StatusDataTable();
  2120. }
  2121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2123. internal void InitVars() {
  2124. this.columnIdStatus = base.Columns["IdStatus"];
  2125. this.columnTitle = base.Columns["Title"];
  2126. }
  2127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2129. private void InitClass() {
  2130. this.columnIdStatus = new global::System.Data.DataColumn("IdStatus", typeof(int), null, global::System.Data.MappingType.Element);
  2131. base.Columns.Add(this.columnIdStatus);
  2132. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2133. base.Columns.Add(this.columnTitle);
  2134. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2135. this.columnIdStatus}, true));
  2136. this.columnIdStatus.AutoIncrement = true;
  2137. this.columnIdStatus.AutoIncrementSeed = -1;
  2138. this.columnIdStatus.AutoIncrementStep = -1;
  2139. this.columnIdStatus.AllowDBNull = false;
  2140. this.columnIdStatus.ReadOnly = true;
  2141. this.columnIdStatus.Unique = true;
  2142. this.columnTitle.MaxLength = 50;
  2143. }
  2144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2146. public StatusRow NewStatusRow() {
  2147. return ((StatusRow)(this.NewRow()));
  2148. }
  2149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2151. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2152. return new StatusRow(builder);
  2153. }
  2154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2156. protected override global::System.Type GetRowType() {
  2157. return typeof(StatusRow);
  2158. }
  2159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2161. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2162. base.OnRowChanged(e);
  2163. if ((this.StatusRowChanged != null)) {
  2164. this.StatusRowChanged(this, new StatusRowChangeEvent(((StatusRow)(e.Row)), e.Action));
  2165. }
  2166. }
  2167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2169. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2170. base.OnRowChanging(e);
  2171. if ((this.StatusRowChanging != null)) {
  2172. this.StatusRowChanging(this, new StatusRowChangeEvent(((StatusRow)(e.Row)), e.Action));
  2173. }
  2174. }
  2175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2177. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2178. base.OnRowDeleted(e);
  2179. if ((this.StatusRowDeleted != null)) {
  2180. this.StatusRowDeleted(this, new StatusRowChangeEvent(((StatusRow)(e.Row)), e.Action));
  2181. }
  2182. }
  2183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2185. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2186. base.OnRowDeleting(e);
  2187. if ((this.StatusRowDeleting != null)) {
  2188. this.StatusRowDeleting(this, new StatusRowChangeEvent(((StatusRow)(e.Row)), e.Action));
  2189. }
  2190. }
  2191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2193. public void RemoveStatusRow(StatusRow row) {
  2194. this.Rows.Remove(row);
  2195. }
  2196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2198. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2199. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2200. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2201. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  2202. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2203. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2204. any1.MinOccurs = new decimal(0);
  2205. any1.MaxOccurs = decimal.MaxValue;
  2206. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2207. sequence.Items.Add(any1);
  2208. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2209. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2210. any2.MinOccurs = new decimal(1);
  2211. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2212. sequence.Items.Add(any2);
  2213. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2214. attribute1.Name = "namespace";
  2215. attribute1.FixedValue = ds.Namespace;
  2216. type.Attributes.Add(attribute1);
  2217. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2218. attribute2.Name = "tableTypeName";
  2219. attribute2.FixedValue = "StatusDataTable";
  2220. type.Attributes.Add(attribute2);
  2221. type.Particle = sequence;
  2222. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2223. if (xs.Contains(dsSchema.TargetNamespace)) {
  2224. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2225. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2226. try {
  2227. global::System.Xml.Schema.XmlSchema schema = null;
  2228. dsSchema.Write(s1);
  2229. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2230. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2231. s2.SetLength(0);
  2232. schema.Write(s2);
  2233. if ((s1.Length == s2.Length)) {
  2234. s1.Position = 0;
  2235. s2.Position = 0;
  2236. for (; ((s1.Position != s1.Length)
  2237. && (s1.ReadByte() == s2.ReadByte())); ) {
  2238. ;
  2239. }
  2240. if ((s1.Position == s1.Length)) {
  2241. return type;
  2242. }
  2243. }
  2244. }
  2245. }
  2246. finally {
  2247. if ((s1 != null)) {
  2248. s1.Close();
  2249. }
  2250. if ((s2 != null)) {
  2251. s2.Close();
  2252. }
  2253. }
  2254. }
  2255. xs.Add(dsSchema);
  2256. return type;
  2257. }
  2258. }
  2259. /// <summary>
  2260. ///Represents the strongly named DataTable class.
  2261. ///</summary>
  2262. [global::System.Serializable()]
  2263. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2264. public partial class TypeDefectDataTable : global::System.Data.TypedTableBase<TypeDefectRow> {
  2265. private global::System.Data.DataColumn columnIdTypeDefect;
  2266. private global::System.Data.DataColumn columnTitle;
  2267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2269. public TypeDefectDataTable() {
  2270. this.TableName = "TypeDefect";
  2271. this.BeginInit();
  2272. this.InitClass();
  2273. this.EndInit();
  2274. }
  2275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2277. internal TypeDefectDataTable(global::System.Data.DataTable table) {
  2278. this.TableName = table.TableName;
  2279. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2280. this.CaseSensitive = table.CaseSensitive;
  2281. }
  2282. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2283. this.Locale = table.Locale;
  2284. }
  2285. if ((table.Namespace != table.DataSet.Namespace)) {
  2286. this.Namespace = table.Namespace;
  2287. }
  2288. this.Prefix = table.Prefix;
  2289. this.MinimumCapacity = table.MinimumCapacity;
  2290. }
  2291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2293. protected TypeDefectDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2294. base(info, context) {
  2295. this.InitVars();
  2296. }
  2297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2299. public global::System.Data.DataColumn IdTypeDefectColumn {
  2300. get {
  2301. return this.columnIdTypeDefect;
  2302. }
  2303. }
  2304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2306. public global::System.Data.DataColumn TitleColumn {
  2307. get {
  2308. return this.columnTitle;
  2309. }
  2310. }
  2311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2313. [global::System.ComponentModel.Browsable(false)]
  2314. public int Count {
  2315. get {
  2316. return this.Rows.Count;
  2317. }
  2318. }
  2319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2321. public TypeDefectRow this[int index] {
  2322. get {
  2323. return ((TypeDefectRow)(this.Rows[index]));
  2324. }
  2325. }
  2326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2327. public event TypeDefectRowChangeEventHandler TypeDefectRowChanging;
  2328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2329. public event TypeDefectRowChangeEventHandler TypeDefectRowChanged;
  2330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2331. public event TypeDefectRowChangeEventHandler TypeDefectRowDeleting;
  2332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2333. public event TypeDefectRowChangeEventHandler TypeDefectRowDeleted;
  2334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2336. public void AddTypeDefectRow(TypeDefectRow row) {
  2337. this.Rows.Add(row);
  2338. }
  2339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2341. public TypeDefectRow AddTypeDefectRow(string Title) {
  2342. TypeDefectRow rowTypeDefectRow = ((TypeDefectRow)(this.NewRow()));
  2343. object[] columnValuesArray = new object[] {
  2344. null,
  2345. Title};
  2346. rowTypeDefectRow.ItemArray = columnValuesArray;
  2347. this.Rows.Add(rowTypeDefectRow);
  2348. return rowTypeDefectRow;
  2349. }
  2350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2352. public TypeDefectRow FindByIdTypeDefect(int IdTypeDefect) {
  2353. return ((TypeDefectRow)(this.Rows.Find(new object[] {
  2354. IdTypeDefect})));
  2355. }
  2356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2358. public override global::System.Data.DataTable Clone() {
  2359. TypeDefectDataTable cln = ((TypeDefectDataTable)(base.Clone()));
  2360. cln.InitVars();
  2361. return cln;
  2362. }
  2363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2365. protected override global::System.Data.DataTable CreateInstance() {
  2366. return new TypeDefectDataTable();
  2367. }
  2368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2370. internal void InitVars() {
  2371. this.columnIdTypeDefect = base.Columns["IdTypeDefect"];
  2372. this.columnTitle = base.Columns["Title"];
  2373. }
  2374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2376. private void InitClass() {
  2377. this.columnIdTypeDefect = new global::System.Data.DataColumn("IdTypeDefect", typeof(int), null, global::System.Data.MappingType.Element);
  2378. base.Columns.Add(this.columnIdTypeDefect);
  2379. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2380. base.Columns.Add(this.columnTitle);
  2381. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2382. this.columnIdTypeDefect}, true));
  2383. this.columnIdTypeDefect.AutoIncrement = true;
  2384. this.columnIdTypeDefect.AutoIncrementSeed = -1;
  2385. this.columnIdTypeDefect.AutoIncrementStep = -1;
  2386. this.columnIdTypeDefect.AllowDBNull = false;
  2387. this.columnIdTypeDefect.ReadOnly = true;
  2388. this.columnIdTypeDefect.Unique = true;
  2389. this.columnTitle.MaxLength = 50;
  2390. }
  2391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2393. public TypeDefectRow NewTypeDefectRow() {
  2394. return ((TypeDefectRow)(this.NewRow()));
  2395. }
  2396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2398. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2399. return new TypeDefectRow(builder);
  2400. }
  2401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2403. protected override global::System.Type GetRowType() {
  2404. return typeof(TypeDefectRow);
  2405. }
  2406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2408. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2409. base.OnRowChanged(e);
  2410. if ((this.TypeDefectRowChanged != null)) {
  2411. this.TypeDefectRowChanged(this, new TypeDefectRowChangeEvent(((TypeDefectRow)(e.Row)), e.Action));
  2412. }
  2413. }
  2414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2416. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2417. base.OnRowChanging(e);
  2418. if ((this.TypeDefectRowChanging != null)) {
  2419. this.TypeDefectRowChanging(this, new TypeDefectRowChangeEvent(((TypeDefectRow)(e.Row)), e.Action));
  2420. }
  2421. }
  2422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2424. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2425. base.OnRowDeleted(e);
  2426. if ((this.TypeDefectRowDeleted != null)) {
  2427. this.TypeDefectRowDeleted(this, new TypeDefectRowChangeEvent(((TypeDefectRow)(e.Row)), e.Action));
  2428. }
  2429. }
  2430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2432. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2433. base.OnRowDeleting(e);
  2434. if ((this.TypeDefectRowDeleting != null)) {
  2435. this.TypeDefectRowDeleting(this, new TypeDefectRowChangeEvent(((TypeDefectRow)(e.Row)), e.Action));
  2436. }
  2437. }
  2438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2440. public void RemoveTypeDefectRow(TypeDefectRow row) {
  2441. this.Rows.Remove(row);
  2442. }
  2443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2445. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2446. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2447. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2448. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  2449. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2450. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2451. any1.MinOccurs = new decimal(0);
  2452. any1.MaxOccurs = decimal.MaxValue;
  2453. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2454. sequence.Items.Add(any1);
  2455. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2456. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2457. any2.MinOccurs = new decimal(1);
  2458. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2459. sequence.Items.Add(any2);
  2460. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2461. attribute1.Name = "namespace";
  2462. attribute1.FixedValue = ds.Namespace;
  2463. type.Attributes.Add(attribute1);
  2464. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2465. attribute2.Name = "tableTypeName";
  2466. attribute2.FixedValue = "TypeDefectDataTable";
  2467. type.Attributes.Add(attribute2);
  2468. type.Particle = sequence;
  2469. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2470. if (xs.Contains(dsSchema.TargetNamespace)) {
  2471. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2472. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2473. try {
  2474. global::System.Xml.Schema.XmlSchema schema = null;
  2475. dsSchema.Write(s1);
  2476. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2477. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2478. s2.SetLength(0);
  2479. schema.Write(s2);
  2480. if ((s1.Length == s2.Length)) {
  2481. s1.Position = 0;
  2482. s2.Position = 0;
  2483. for (; ((s1.Position != s1.Length)
  2484. && (s1.ReadByte() == s2.ReadByte())); ) {
  2485. ;
  2486. }
  2487. if ((s1.Position == s1.Length)) {
  2488. return type;
  2489. }
  2490. }
  2491. }
  2492. }
  2493. finally {
  2494. if ((s1 != null)) {
  2495. s1.Close();
  2496. }
  2497. if ((s2 != null)) {
  2498. s2.Close();
  2499. }
  2500. }
  2501. }
  2502. xs.Add(dsSchema);
  2503. return type;
  2504. }
  2505. }
  2506. /// <summary>
  2507. ///Represents the strongly named DataTable class.
  2508. ///</summary>
  2509. [global::System.Serializable()]
  2510. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2511. public partial class AllTypeDefectDataTable : global::System.Data.TypedTableBase<AllTypeDefectRow> {
  2512. private global::System.Data.DataColumn columnTypeDefect;
  2513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2515. public AllTypeDefectDataTable() {
  2516. this.TableName = "AllTypeDefect";
  2517. this.BeginInit();
  2518. this.InitClass();
  2519. this.EndInit();
  2520. }
  2521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2523. internal AllTypeDefectDataTable(global::System.Data.DataTable table) {
  2524. this.TableName = table.TableName;
  2525. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2526. this.CaseSensitive = table.CaseSensitive;
  2527. }
  2528. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2529. this.Locale = table.Locale;
  2530. }
  2531. if ((table.Namespace != table.DataSet.Namespace)) {
  2532. this.Namespace = table.Namespace;
  2533. }
  2534. this.Prefix = table.Prefix;
  2535. this.MinimumCapacity = table.MinimumCapacity;
  2536. }
  2537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2539. protected AllTypeDefectDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2540. base(info, context) {
  2541. this.InitVars();
  2542. }
  2543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2545. public global::System.Data.DataColumn TypeDefectColumn {
  2546. get {
  2547. return this.columnTypeDefect;
  2548. }
  2549. }
  2550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2552. [global::System.ComponentModel.Browsable(false)]
  2553. public int Count {
  2554. get {
  2555. return this.Rows.Count;
  2556. }
  2557. }
  2558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2560. public AllTypeDefectRow this[int index] {
  2561. get {
  2562. return ((AllTypeDefectRow)(this.Rows[index]));
  2563. }
  2564. }
  2565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2566. public event AllTypeDefectRowChangeEventHandler AllTypeDefectRowChanging;
  2567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2568. public event AllTypeDefectRowChangeEventHandler AllTypeDefectRowChanged;
  2569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2570. public event AllTypeDefectRowChangeEventHandler AllTypeDefectRowDeleting;
  2571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2572. public event AllTypeDefectRowChangeEventHandler AllTypeDefectRowDeleted;
  2573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2575. public void AddAllTypeDefectRow(AllTypeDefectRow row) {
  2576. this.Rows.Add(row);
  2577. }
  2578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2580. public AllTypeDefectRow AddAllTypeDefectRow(string TypeDefect) {
  2581. AllTypeDefectRow rowAllTypeDefectRow = ((AllTypeDefectRow)(this.NewRow()));
  2582. object[] columnValuesArray = new object[] {
  2583. TypeDefect};
  2584. rowAllTypeDefectRow.ItemArray = columnValuesArray;
  2585. this.Rows.Add(rowAllTypeDefectRow);
  2586. return rowAllTypeDefectRow;
  2587. }
  2588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2590. public override global::System.Data.DataTable Clone() {
  2591. AllTypeDefectDataTable cln = ((AllTypeDefectDataTable)(base.Clone()));
  2592. cln.InitVars();
  2593. return cln;
  2594. }
  2595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2597. protected override global::System.Data.DataTable CreateInstance() {
  2598. return new AllTypeDefectDataTable();
  2599. }
  2600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2602. internal void InitVars() {
  2603. this.columnTypeDefect = base.Columns["TypeDefect"];
  2604. }
  2605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2607. private void InitClass() {
  2608. this.columnTypeDefect = new global::System.Data.DataColumn("TypeDefect", typeof(string), null, global::System.Data.MappingType.Element);
  2609. base.Columns.Add(this.columnTypeDefect);
  2610. this.columnTypeDefect.ReadOnly = true;
  2611. this.columnTypeDefect.Caption = "Column1";
  2612. this.columnTypeDefect.MaxLength = 50;
  2613. }
  2614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2616. public AllTypeDefectRow NewAllTypeDefectRow() {
  2617. return ((AllTypeDefectRow)(this.NewRow()));
  2618. }
  2619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2621. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2622. return new AllTypeDefectRow(builder);
  2623. }
  2624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2626. protected override global::System.Type GetRowType() {
  2627. return typeof(AllTypeDefectRow);
  2628. }
  2629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2631. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2632. base.OnRowChanged(e);
  2633. if ((this.AllTypeDefectRowChanged != null)) {
  2634. this.AllTypeDefectRowChanged(this, new AllTypeDefectRowChangeEvent(((AllTypeDefectRow)(e.Row)), e.Action));
  2635. }
  2636. }
  2637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2639. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2640. base.OnRowChanging(e);
  2641. if ((this.AllTypeDefectRowChanging != null)) {
  2642. this.AllTypeDefectRowChanging(this, new AllTypeDefectRowChangeEvent(((AllTypeDefectRow)(e.Row)), e.Action));
  2643. }
  2644. }
  2645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2647. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2648. base.OnRowDeleted(e);
  2649. if ((this.AllTypeDefectRowDeleted != null)) {
  2650. this.AllTypeDefectRowDeleted(this, new AllTypeDefectRowChangeEvent(((AllTypeDefectRow)(e.Row)), e.Action));
  2651. }
  2652. }
  2653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2655. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2656. base.OnRowDeleting(e);
  2657. if ((this.AllTypeDefectRowDeleting != null)) {
  2658. this.AllTypeDefectRowDeleting(this, new AllTypeDefectRowChangeEvent(((AllTypeDefectRow)(e.Row)), e.Action));
  2659. }
  2660. }
  2661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2663. public void RemoveAllTypeDefectRow(AllTypeDefectRow row) {
  2664. this.Rows.Remove(row);
  2665. }
  2666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2668. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2669. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2670. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2671. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  2672. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2673. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2674. any1.MinOccurs = new decimal(0);
  2675. any1.MaxOccurs = decimal.MaxValue;
  2676. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2677. sequence.Items.Add(any1);
  2678. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2679. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2680. any2.MinOccurs = new decimal(1);
  2681. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2682. sequence.Items.Add(any2);
  2683. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2684. attribute1.Name = "namespace";
  2685. attribute1.FixedValue = ds.Namespace;
  2686. type.Attributes.Add(attribute1);
  2687. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2688. attribute2.Name = "tableTypeName";
  2689. attribute2.FixedValue = "AllTypeDefectDataTable";
  2690. type.Attributes.Add(attribute2);
  2691. type.Particle = sequence;
  2692. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2693. if (xs.Contains(dsSchema.TargetNamespace)) {
  2694. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2695. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2696. try {
  2697. global::System.Xml.Schema.XmlSchema schema = null;
  2698. dsSchema.Write(s1);
  2699. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2700. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2701. s2.SetLength(0);
  2702. schema.Write(s2);
  2703. if ((s1.Length == s2.Length)) {
  2704. s1.Position = 0;
  2705. s2.Position = 0;
  2706. for (; ((s1.Position != s1.Length)
  2707. && (s1.ReadByte() == s2.ReadByte())); ) {
  2708. ;
  2709. }
  2710. if ((s1.Position == s1.Length)) {
  2711. return type;
  2712. }
  2713. }
  2714. }
  2715. }
  2716. finally {
  2717. if ((s1 != null)) {
  2718. s1.Close();
  2719. }
  2720. if ((s2 != null)) {
  2721. s2.Close();
  2722. }
  2723. }
  2724. }
  2725. xs.Add(dsSchema);
  2726. return type;
  2727. }
  2728. }
  2729. /// <summary>
  2730. ///Represents the strongly named DataTable class.
  2731. ///</summary>
  2732. [global::System.Serializable()]
  2733. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2734. public partial class ClientFIODataTable : global::System.Data.TypedTableBase<ClientFIORow> {
  2735. private global::System.Data.DataColumn columnIdClient;
  2736. private global::System.Data.DataColumn columnFIO;
  2737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2739. public ClientFIODataTable() {
  2740. this.TableName = "ClientFIO";
  2741. this.BeginInit();
  2742. this.InitClass();
  2743. this.EndInit();
  2744. }
  2745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2747. internal ClientFIODataTable(global::System.Data.DataTable table) {
  2748. this.TableName = table.TableName;
  2749. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2750. this.CaseSensitive = table.CaseSensitive;
  2751. }
  2752. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2753. this.Locale = table.Locale;
  2754. }
  2755. if ((table.Namespace != table.DataSet.Namespace)) {
  2756. this.Namespace = table.Namespace;
  2757. }
  2758. this.Prefix = table.Prefix;
  2759. this.MinimumCapacity = table.MinimumCapacity;
  2760. }
  2761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2763. protected ClientFIODataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2764. base(info, context) {
  2765. this.InitVars();
  2766. }
  2767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2769. public global::System.Data.DataColumn IdClientColumn {
  2770. get {
  2771. return this.columnIdClient;
  2772. }
  2773. }
  2774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2776. public global::System.Data.DataColumn FIOColumn {
  2777. get {
  2778. return this.columnFIO;
  2779. }
  2780. }
  2781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2783. [global::System.ComponentModel.Browsable(false)]
  2784. public int Count {
  2785. get {
  2786. return this.Rows.Count;
  2787. }
  2788. }
  2789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2791. public ClientFIORow this[int index] {
  2792. get {
  2793. return ((ClientFIORow)(this.Rows[index]));
  2794. }
  2795. }
  2796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2797. public event ClientFIORowChangeEventHandler ClientFIORowChanging;
  2798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2799. public event ClientFIORowChangeEventHandler ClientFIORowChanged;
  2800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2801. public event ClientFIORowChangeEventHandler ClientFIORowDeleting;
  2802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2803. public event ClientFIORowChangeEventHandler ClientFIORowDeleted;
  2804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2806. public void AddClientFIORow(ClientFIORow row) {
  2807. this.Rows.Add(row);
  2808. }
  2809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2811. public ClientFIORow AddClientFIORow(string FIO) {
  2812. ClientFIORow rowClientFIORow = ((ClientFIORow)(this.NewRow()));
  2813. object[] columnValuesArray = new object[] {
  2814. null,
  2815. FIO};
  2816. rowClientFIORow.ItemArray = columnValuesArray;
  2817. this.Rows.Add(rowClientFIORow);
  2818. return rowClientFIORow;
  2819. }
  2820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2822. public ClientFIORow FindByIdClient(int IdClient) {
  2823. return ((ClientFIORow)(this.Rows.Find(new object[] {
  2824. IdClient})));
  2825. }
  2826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2828. public override global::System.Data.DataTable Clone() {
  2829. ClientFIODataTable cln = ((ClientFIODataTable)(base.Clone()));
  2830. cln.InitVars();
  2831. return cln;
  2832. }
  2833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2835. protected override global::System.Data.DataTable CreateInstance() {
  2836. return new ClientFIODataTable();
  2837. }
  2838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2840. internal void InitVars() {
  2841. this.columnIdClient = base.Columns["IdClient"];
  2842. this.columnFIO = base.Columns["FIO"];
  2843. }
  2844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2846. private void InitClass() {
  2847. this.columnIdClient = new global::System.Data.DataColumn("IdClient", typeof(int), null, global::System.Data.MappingType.Element);
  2848. base.Columns.Add(this.columnIdClient);
  2849. this.columnFIO = new global::System.Data.DataColumn("FIO", typeof(string), null, global::System.Data.MappingType.Element);
  2850. base.Columns.Add(this.columnFIO);
  2851. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2852. this.columnIdClient}, true));
  2853. this.columnIdClient.AutoIncrement = true;
  2854. this.columnIdClient.AutoIncrementSeed = -1;
  2855. this.columnIdClient.AutoIncrementStep = -1;
  2856. this.columnIdClient.AllowDBNull = false;
  2857. this.columnIdClient.ReadOnly = true;
  2858. this.columnIdClient.Unique = true;
  2859. this.columnFIO.ReadOnly = true;
  2860. this.columnFIO.MaxLength = 152;
  2861. }
  2862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2864. public ClientFIORow NewClientFIORow() {
  2865. return ((ClientFIORow)(this.NewRow()));
  2866. }
  2867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2869. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2870. return new ClientFIORow(builder);
  2871. }
  2872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2874. protected override global::System.Type GetRowType() {
  2875. return typeof(ClientFIORow);
  2876. }
  2877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2879. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2880. base.OnRowChanged(e);
  2881. if ((this.ClientFIORowChanged != null)) {
  2882. this.ClientFIORowChanged(this, new ClientFIORowChangeEvent(((ClientFIORow)(e.Row)), e.Action));
  2883. }
  2884. }
  2885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2887. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2888. base.OnRowChanging(e);
  2889. if ((this.ClientFIORowChanging != null)) {
  2890. this.ClientFIORowChanging(this, new ClientFIORowChangeEvent(((ClientFIORow)(e.Row)), e.Action));
  2891. }
  2892. }
  2893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2895. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2896. base.OnRowDeleted(e);
  2897. if ((this.ClientFIORowDeleted != null)) {
  2898. this.ClientFIORowDeleted(this, new ClientFIORowChangeEvent(((ClientFIORow)(e.Row)), e.Action));
  2899. }
  2900. }
  2901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2903. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2904. base.OnRowDeleting(e);
  2905. if ((this.ClientFIORowDeleting != null)) {
  2906. this.ClientFIORowDeleting(this, new ClientFIORowChangeEvent(((ClientFIORow)(e.Row)), e.Action));
  2907. }
  2908. }
  2909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2911. public void RemoveClientFIORow(ClientFIORow row) {
  2912. this.Rows.Remove(row);
  2913. }
  2914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2916. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2917. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2918. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2919. TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
  2920. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2921. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2922. any1.MinOccurs = new decimal(0);
  2923. any1.MaxOccurs = decimal.MaxValue;
  2924. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2925. sequence.Items.Add(any1);
  2926. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2927. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2928. any2.MinOccurs = new decimal(1);
  2929. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2930. sequence.Items.Add(any2);
  2931. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2932. attribute1.Name = "namespace";
  2933. attribute1.FixedValue = ds.Namespace;
  2934. type.Attributes.Add(attribute1);
  2935. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2936. attribute2.Name = "tableTypeName";
  2937. attribute2.FixedValue = "ClientFIODataTable";
  2938. type.Attributes.Add(attribute2);
  2939. type.Particle = sequence;
  2940. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2941. if (xs.Contains(dsSchema.TargetNamespace)) {
  2942. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2943. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2944. try {
  2945. global::System.Xml.Schema.XmlSchema schema = null;
  2946. dsSchema.Write(s1);
  2947. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2948. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2949. s2.SetLength(0);
  2950. schema.Write(s2);
  2951. if ((s1.Length == s2.Length)) {
  2952. s1.Position = 0;
  2953. s2.Position = 0;
  2954. for (; ((s1.Position != s1.Length)
  2955. && (s1.ReadByte() == s2.ReadByte())); ) {
  2956. ;
  2957. }
  2958. if ((s1.Position == s1.Length)) {
  2959. return type;
  2960. }
  2961. }
  2962. }
  2963. }
  2964. finally {
  2965. if ((s1 != null)) {
  2966. s1.Close();
  2967. }
  2968. if ((s2 != null)) {
  2969. s2.Close();
  2970. }
  2971. }
  2972. }
  2973. xs.Add(dsSchema);
  2974. return type;
  2975. }
  2976. }
  2977. /// <summary>
  2978. ///Represents strongly named DataRow class.
  2979. ///</summary>
  2980. public partial class ClientRow : global::System.Data.DataRow {
  2981. private ClientDataTable tableClient;
  2982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2984. internal ClientRow(global::System.Data.DataRowBuilder rb) :
  2985. base(rb) {
  2986. this.tableClient = ((ClientDataTable)(this.Table));
  2987. }
  2988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2990. public int IdClient {
  2991. get {
  2992. return ((int)(this[this.tableClient.IdClientColumn]));
  2993. }
  2994. set {
  2995. this[this.tableClient.IdClientColumn] = value;
  2996. }
  2997. }
  2998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3000. public string Surname {
  3001. get {
  3002. try {
  3003. return ((string)(this[this.tableClient.SurnameColumn]));
  3004. }
  3005. catch (global::System.InvalidCastException e) {
  3006. throw new global::System.Data.StrongTypingException("Значение для столбца \'Surname\' в таблице \'Client\' равно DBNull.", e);
  3007. }
  3008. }
  3009. set {
  3010. this[this.tableClient.SurnameColumn] = value;
  3011. }
  3012. }
  3013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3015. public string Name {
  3016. get {
  3017. try {
  3018. return ((string)(this[this.tableClient.NameColumn]));
  3019. }
  3020. catch (global::System.InvalidCastException e) {
  3021. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Client\' равно DBNull.", e);
  3022. }
  3023. }
  3024. set {
  3025. this[this.tableClient.NameColumn] = value;
  3026. }
  3027. }
  3028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3030. public string Patronymic {
  3031. get {
  3032. try {
  3033. return ((string)(this[this.tableClient.PatronymicColumn]));
  3034. }
  3035. catch (global::System.InvalidCastException e) {
  3036. throw new global::System.Data.StrongTypingException("Значение для столбца \'Patronymic\' в таблице \'Client\' равно DBNull.", e);
  3037. }
  3038. }
  3039. set {
  3040. this[this.tableClient.PatronymicColumn] = value;
  3041. }
  3042. }
  3043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3045. public bool IsSurnameNull() {
  3046. return this.IsNull(this.tableClient.SurnameColumn);
  3047. }
  3048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3050. public void SetSurnameNull() {
  3051. this[this.tableClient.SurnameColumn] = global::System.Convert.DBNull;
  3052. }
  3053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3055. public bool IsNameNull() {
  3056. return this.IsNull(this.tableClient.NameColumn);
  3057. }
  3058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3060. public void SetNameNull() {
  3061. this[this.tableClient.NameColumn] = global::System.Convert.DBNull;
  3062. }
  3063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3065. public bool IsPatronymicNull() {
  3066. return this.IsNull(this.tableClient.PatronymicColumn);
  3067. }
  3068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3070. public void SetPatronymicNull() {
  3071. this[this.tableClient.PatronymicColumn] = global::System.Convert.DBNull;
  3072. }
  3073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3075. public RequestRow[] GetRequestRows() {
  3076. if ((this.Table.ChildRelations["FK_Request_Client"] == null)) {
  3077. return new RequestRow[0];
  3078. }
  3079. else {
  3080. return ((RequestRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Request_Client"])));
  3081. }
  3082. }
  3083. }
  3084. /// <summary>
  3085. ///Represents strongly named DataRow class.
  3086. ///</summary>
  3087. public partial class EmployeeRow : global::System.Data.DataRow {
  3088. private EmployeeDataTable tableEmployee;
  3089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3091. internal EmployeeRow(global::System.Data.DataRowBuilder rb) :
  3092. base(rb) {
  3093. this.tableEmployee = ((EmployeeDataTable)(this.Table));
  3094. }
  3095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3097. public int IdEmployee {
  3098. get {
  3099. return ((int)(this[this.tableEmployee.IdEmployeeColumn]));
  3100. }
  3101. set {
  3102. this[this.tableEmployee.IdEmployeeColumn] = value;
  3103. }
  3104. }
  3105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3107. public int IdRole {
  3108. get {
  3109. try {
  3110. return ((int)(this[this.tableEmployee.IdRoleColumn]));
  3111. }
  3112. catch (global::System.InvalidCastException e) {
  3113. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdRole\' в таблице \'Employee\' равно DBNull.", e);
  3114. }
  3115. }
  3116. set {
  3117. this[this.tableEmployee.IdRoleColumn] = value;
  3118. }
  3119. }
  3120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3122. public string Surname {
  3123. get {
  3124. try {
  3125. return ((string)(this[this.tableEmployee.SurnameColumn]));
  3126. }
  3127. catch (global::System.InvalidCastException e) {
  3128. throw new global::System.Data.StrongTypingException("Значение для столбца \'Surname\' в таблице \'Employee\' равно DBNull.", e);
  3129. }
  3130. }
  3131. set {
  3132. this[this.tableEmployee.SurnameColumn] = value;
  3133. }
  3134. }
  3135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3137. public string Name {
  3138. get {
  3139. try {
  3140. return ((string)(this[this.tableEmployee.NameColumn]));
  3141. }
  3142. catch (global::System.InvalidCastException e) {
  3143. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Employee\' равно DBNull.", e);
  3144. }
  3145. }
  3146. set {
  3147. this[this.tableEmployee.NameColumn] = value;
  3148. }
  3149. }
  3150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3152. public string Patronymic {
  3153. get {
  3154. try {
  3155. return ((string)(this[this.tableEmployee.PatronymicColumn]));
  3156. }
  3157. catch (global::System.InvalidCastException e) {
  3158. throw new global::System.Data.StrongTypingException("Значение для столбца \'Patronymic\' в таблице \'Employee\' равно DBNull.", e);
  3159. }
  3160. }
  3161. set {
  3162. this[this.tableEmployee.PatronymicColumn] = value;
  3163. }
  3164. }
  3165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3167. public string Login {
  3168. get {
  3169. try {
  3170. return ((string)(this[this.tableEmployee.LoginColumn]));
  3171. }
  3172. catch (global::System.InvalidCastException e) {
  3173. throw new global::System.Data.StrongTypingException("Значение для столбца \'Login\' в таблице \'Employee\' равно DBNull.", e);
  3174. }
  3175. }
  3176. set {
  3177. this[this.tableEmployee.LoginColumn] = value;
  3178. }
  3179. }
  3180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3182. public string Password {
  3183. get {
  3184. try {
  3185. return ((string)(this[this.tableEmployee.PasswordColumn]));
  3186. }
  3187. catch (global::System.InvalidCastException e) {
  3188. throw new global::System.Data.StrongTypingException("Значение для столбца \'Password\' в таблице \'Employee\' равно DBNull.", e);
  3189. }
  3190. }
  3191. set {
  3192. this[this.tableEmployee.PasswordColumn] = value;
  3193. }
  3194. }
  3195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3197. public string Photo {
  3198. get {
  3199. try {
  3200. return ((string)(this[this.tableEmployee.PhotoColumn]));
  3201. }
  3202. catch (global::System.InvalidCastException e) {
  3203. throw new global::System.Data.StrongTypingException("Значение для столбца \'Photo\' в таблице \'Employee\' равно DBNull.", e);
  3204. }
  3205. }
  3206. set {
  3207. this[this.tableEmployee.PhotoColumn] = value;
  3208. }
  3209. }
  3210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3212. public RoleRow RoleRow {
  3213. get {
  3214. return ((RoleRow)(this.GetParentRow(this.Table.ParentRelations["FK_Employee_Role"])));
  3215. }
  3216. set {
  3217. this.SetParentRow(value, this.Table.ParentRelations["FK_Employee_Role"]);
  3218. }
  3219. }
  3220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3222. public bool IsIdRoleNull() {
  3223. return this.IsNull(this.tableEmployee.IdRoleColumn);
  3224. }
  3225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3227. public void SetIdRoleNull() {
  3228. this[this.tableEmployee.IdRoleColumn] = global::System.Convert.DBNull;
  3229. }
  3230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3232. public bool IsSurnameNull() {
  3233. return this.IsNull(this.tableEmployee.SurnameColumn);
  3234. }
  3235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3237. public void SetSurnameNull() {
  3238. this[this.tableEmployee.SurnameColumn] = global::System.Convert.DBNull;
  3239. }
  3240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3242. public bool IsNameNull() {
  3243. return this.IsNull(this.tableEmployee.NameColumn);
  3244. }
  3245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3247. public void SetNameNull() {
  3248. this[this.tableEmployee.NameColumn] = global::System.Convert.DBNull;
  3249. }
  3250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3252. public bool IsPatronymicNull() {
  3253. return this.IsNull(this.tableEmployee.PatronymicColumn);
  3254. }
  3255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3257. public void SetPatronymicNull() {
  3258. this[this.tableEmployee.PatronymicColumn] = global::System.Convert.DBNull;
  3259. }
  3260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3262. public bool IsLoginNull() {
  3263. return this.IsNull(this.tableEmployee.LoginColumn);
  3264. }
  3265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3267. public void SetLoginNull() {
  3268. this[this.tableEmployee.LoginColumn] = global::System.Convert.DBNull;
  3269. }
  3270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3272. public bool IsPasswordNull() {
  3273. return this.IsNull(this.tableEmployee.PasswordColumn);
  3274. }
  3275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3277. public void SetPasswordNull() {
  3278. this[this.tableEmployee.PasswordColumn] = global::System.Convert.DBNull;
  3279. }
  3280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3282. public bool IsPhotoNull() {
  3283. return this.IsNull(this.tableEmployee.PhotoColumn);
  3284. }
  3285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3287. public void SetPhotoNull() {
  3288. this[this.tableEmployee.PhotoColumn] = global::System.Convert.DBNull;
  3289. }
  3290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3292. public ExecutionRequestRow[] GetExecutionRequestRows() {
  3293. if ((this.Table.ChildRelations["FK_ExecutionRequest_Employee"] == null)) {
  3294. return new ExecutionRequestRow[0];
  3295. }
  3296. else {
  3297. return ((ExecutionRequestRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ExecutionRequest_Employee"])));
  3298. }
  3299. }
  3300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3302. public RequestRow[] GetRequestRows() {
  3303. if ((this.Table.ChildRelations["FK_Request_Employee"] == null)) {
  3304. return new RequestRow[0];
  3305. }
  3306. else {
  3307. return ((RequestRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Request_Employee"])));
  3308. }
  3309. }
  3310. }
  3311. /// <summary>
  3312. ///Represents strongly named DataRow class.
  3313. ///</summary>
  3314. public partial class ExecutionRequestRow : global::System.Data.DataRow {
  3315. private ExecutionRequestDataTable tableExecutionRequest;
  3316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3318. internal ExecutionRequestRow(global::System.Data.DataRowBuilder rb) :
  3319. base(rb) {
  3320. this.tableExecutionRequest = ((ExecutionRequestDataTable)(this.Table));
  3321. }
  3322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3324. public int IdExecution {
  3325. get {
  3326. return ((int)(this[this.tableExecutionRequest.IdExecutionColumn]));
  3327. }
  3328. set {
  3329. this[this.tableExecutionRequest.IdExecutionColumn] = value;
  3330. }
  3331. }
  3332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3334. public int IdRequest {
  3335. get {
  3336. try {
  3337. return ((int)(this[this.tableExecutionRequest.IdRequestColumn]));
  3338. }
  3339. catch (global::System.InvalidCastException e) {
  3340. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdRequest\' в таблице \'ExecutionRequest\' равно DBNull.", e);
  3341. }
  3342. }
  3343. set {
  3344. this[this.tableExecutionRequest.IdRequestColumn] = value;
  3345. }
  3346. }
  3347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3349. public int IdMaster {
  3350. get {
  3351. try {
  3352. return ((int)(this[this.tableExecutionRequest.IdMasterColumn]));
  3353. }
  3354. catch (global::System.InvalidCastException e) {
  3355. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdMaster\' в таблице \'ExecutionRequest\' равно DBNull.", e);
  3356. }
  3357. }
  3358. set {
  3359. this[this.tableExecutionRequest.IdMasterColumn] = value;
  3360. }
  3361. }
  3362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3364. public EmployeeRow EmployeeRow {
  3365. get {
  3366. return ((EmployeeRow)(this.GetParentRow(this.Table.ParentRelations["FK_ExecutionRequest_Employee"])));
  3367. }
  3368. set {
  3369. this.SetParentRow(value, this.Table.ParentRelations["FK_ExecutionRequest_Employee"]);
  3370. }
  3371. }
  3372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3374. public RequestRow RequestRow {
  3375. get {
  3376. return ((RequestRow)(this.GetParentRow(this.Table.ParentRelations["FK_ExecutionRequest_Request"])));
  3377. }
  3378. set {
  3379. this.SetParentRow(value, this.Table.ParentRelations["FK_ExecutionRequest_Request"]);
  3380. }
  3381. }
  3382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3384. public bool IsIdRequestNull() {
  3385. return this.IsNull(this.tableExecutionRequest.IdRequestColumn);
  3386. }
  3387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3389. public void SetIdRequestNull() {
  3390. this[this.tableExecutionRequest.IdRequestColumn] = global::System.Convert.DBNull;
  3391. }
  3392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3394. public bool IsIdMasterNull() {
  3395. return this.IsNull(this.tableExecutionRequest.IdMasterColumn);
  3396. }
  3397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3399. public void SetIdMasterNull() {
  3400. this[this.tableExecutionRequest.IdMasterColumn] = global::System.Convert.DBNull;
  3401. }
  3402. }
  3403. /// <summary>
  3404. ///Represents strongly named DataRow class.
  3405. ///</summary>
  3406. public partial class RequestRow : global::System.Data.DataRow {
  3407. private RequestDataTable tableRequest;
  3408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3410. internal RequestRow(global::System.Data.DataRowBuilder rb) :
  3411. base(rb) {
  3412. this.tableRequest = ((RequestDataTable)(this.Table));
  3413. }
  3414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3416. public int IdRequest {
  3417. get {
  3418. return ((int)(this[this.tableRequest.IdRequestColumn]));
  3419. }
  3420. set {
  3421. this[this.tableRequest.IdRequestColumn] = value;
  3422. }
  3423. }
  3424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3426. public int IdStatus {
  3427. get {
  3428. try {
  3429. return ((int)(this[this.tableRequest.IdStatusColumn]));
  3430. }
  3431. catch (global::System.InvalidCastException e) {
  3432. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdStatus\' в таблице \'Request\' равно DBNull.", e);
  3433. }
  3434. }
  3435. set {
  3436. this[this.tableRequest.IdStatusColumn] = value;
  3437. }
  3438. }
  3439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3441. public int IdTypeDefect {
  3442. get {
  3443. try {
  3444. return ((int)(this[this.tableRequest.IdTypeDefectColumn]));
  3445. }
  3446. catch (global::System.InvalidCastException e) {
  3447. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdTypeDefect\' в таблице \'Request\' равно DBNull.", e);
  3448. }
  3449. }
  3450. set {
  3451. this[this.tableRequest.IdTypeDefectColumn] = value;
  3452. }
  3453. }
  3454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3456. public int IdClient {
  3457. get {
  3458. try {
  3459. return ((int)(this[this.tableRequest.IdClientColumn]));
  3460. }
  3461. catch (global::System.InvalidCastException e) {
  3462. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdClient\' в таблице \'Request\' равно DBNull.", e);
  3463. }
  3464. }
  3465. set {
  3466. this[this.tableRequest.IdClientColumn] = value;
  3467. }
  3468. }
  3469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3471. public int IdManager {
  3472. get {
  3473. try {
  3474. return ((int)(this[this.tableRequest.IdManagerColumn]));
  3475. }
  3476. catch (global::System.InvalidCastException e) {
  3477. throw new global::System.Data.StrongTypingException("Значение для столбца \'IdManager\' в таблице \'Request\' равно DBNull.", e);
  3478. }
  3479. }
  3480. set {
  3481. this[this.tableRequest.IdManagerColumn] = value;
  3482. }
  3483. }
  3484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3486. public System.DateTime DateAccepting {
  3487. get {
  3488. try {
  3489. return ((global::System.DateTime)(this[this.tableRequest.DateAcceptingColumn]));
  3490. }
  3491. catch (global::System.InvalidCastException e) {
  3492. throw new global::System.Data.StrongTypingException("Значение для столбца \'DateAccepting\' в таблице \'Request\' равно DBNull.", e);
  3493. }
  3494. }
  3495. set {
  3496. this[this.tableRequest.DateAcceptingColumn] = value;
  3497. }
  3498. }
  3499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3501. public System.DateTime DateCompletion {
  3502. get {
  3503. try {
  3504. return ((global::System.DateTime)(this[this.tableRequest.DateCompletionColumn]));
  3505. }
  3506. catch (global::System.InvalidCastException e) {
  3507. throw new global::System.Data.StrongTypingException("Значение для столбца \'DateCompletion\' в таблице \'Request\' равно DBNull.", e);
  3508. }
  3509. }
  3510. set {
  3511. this[this.tableRequest.DateCompletionColumn] = value;
  3512. }
  3513. }
  3514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3516. public string EquipmentDefect {
  3517. get {
  3518. try {
  3519. return ((string)(this[this.tableRequest.EquipmentDefectColumn]));
  3520. }
  3521. catch (global::System.InvalidCastException e) {
  3522. throw new global::System.Data.StrongTypingException("Значение для столбца \'EquipmentDefect\' в таблице \'Request\' равно DBNull.", e);
  3523. }
  3524. }
  3525. set {
  3526. this[this.tableRequest.EquipmentDefectColumn] = value;
  3527. }
  3528. }
  3529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3531. public string Description {
  3532. get {
  3533. try {
  3534. return ((string)(this[this.tableRequest.DescriptionColumn]));
  3535. }
  3536. catch (global::System.InvalidCastException e) {
  3537. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Request\' равно DBNull.", e);
  3538. }
  3539. }
  3540. set {
  3541. this[this.tableRequest.DescriptionColumn] = value;
  3542. }
  3543. }
  3544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3546. public string Comment {
  3547. get {
  3548. try {
  3549. return ((string)(this[this.tableRequest.CommentColumn]));
  3550. }
  3551. catch (global::System.InvalidCastException e) {
  3552. throw new global::System.Data.StrongTypingException("Значение для столбца \'Comment\' в таблице \'Request\' равно DBNull.", e);
  3553. }
  3554. }
  3555. set {
  3556. this[this.tableRequest.CommentColumn] = value;
  3557. }
  3558. }
  3559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3561. public ClientRow ClientRow {
  3562. get {
  3563. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_Request_Client"])));
  3564. }
  3565. set {
  3566. this.SetParentRow(value, this.Table.ParentRelations["FK_Request_Client"]);
  3567. }
  3568. }
  3569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3571. public EmployeeRow EmployeeRow {
  3572. get {
  3573. return ((EmployeeRow)(this.GetParentRow(this.Table.ParentRelations["FK_Request_Employee"])));
  3574. }
  3575. set {
  3576. this.SetParentRow(value, this.Table.ParentRelations["FK_Request_Employee"]);
  3577. }
  3578. }
  3579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3581. public StatusRow StatusRow {
  3582. get {
  3583. return ((StatusRow)(this.GetParentRow(this.Table.ParentRelations["FK_Request_Status"])));
  3584. }
  3585. set {
  3586. this.SetParentRow(value, this.Table.ParentRelations["FK_Request_Status"]);
  3587. }
  3588. }
  3589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3591. public TypeDefectRow TypeDefectRow {
  3592. get {
  3593. return ((TypeDefectRow)(this.GetParentRow(this.Table.ParentRelations["FK_Request_TypeDefect"])));
  3594. }
  3595. set {
  3596. this.SetParentRow(value, this.Table.ParentRelations["FK_Request_TypeDefect"]);
  3597. }
  3598. }
  3599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3601. public ClientFIORow ClientFIORow {
  3602. get {
  3603. return ((ClientFIORow)(this.GetParentRow(this.Table.ParentRelations["FK_Request_Client1"])));
  3604. }
  3605. set {
  3606. this.SetParentRow(value, this.Table.ParentRelations["FK_Request_Client1"]);
  3607. }
  3608. }
  3609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3611. public bool IsIdStatusNull() {
  3612. return this.IsNull(this.tableRequest.IdStatusColumn);
  3613. }
  3614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3616. public void SetIdStatusNull() {
  3617. this[this.tableRequest.IdStatusColumn] = global::System.Convert.DBNull;
  3618. }
  3619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3621. public bool IsIdTypeDefectNull() {
  3622. return this.IsNull(this.tableRequest.IdTypeDefectColumn);
  3623. }
  3624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3626. public void SetIdTypeDefectNull() {
  3627. this[this.tableRequest.IdTypeDefectColumn] = global::System.Convert.DBNull;
  3628. }
  3629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3631. public bool IsIdClientNull() {
  3632. return this.IsNull(this.tableRequest.IdClientColumn);
  3633. }
  3634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3636. public void SetIdClientNull() {
  3637. this[this.tableRequest.IdClientColumn] = global::System.Convert.DBNull;
  3638. }
  3639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3641. public bool IsIdManagerNull() {
  3642. return this.IsNull(this.tableRequest.IdManagerColumn);
  3643. }
  3644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3646. public void SetIdManagerNull() {
  3647. this[this.tableRequest.IdManagerColumn] = global::System.Convert.DBNull;
  3648. }
  3649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3651. public bool IsDateAcceptingNull() {
  3652. return this.IsNull(this.tableRequest.DateAcceptingColumn);
  3653. }
  3654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3656. public void SetDateAcceptingNull() {
  3657. this[this.tableRequest.DateAcceptingColumn] = global::System.Convert.DBNull;
  3658. }
  3659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3661. public bool IsDateCompletionNull() {
  3662. return this.IsNull(this.tableRequest.DateCompletionColumn);
  3663. }
  3664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3666. public void SetDateCompletionNull() {
  3667. this[this.tableRequest.DateCompletionColumn] = global::System.Convert.DBNull;
  3668. }
  3669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3671. public bool IsEquipmentDefectNull() {
  3672. return this.IsNull(this.tableRequest.EquipmentDefectColumn);
  3673. }
  3674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3676. public void SetEquipmentDefectNull() {
  3677. this[this.tableRequest.EquipmentDefectColumn] = global::System.Convert.DBNull;
  3678. }
  3679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3681. public bool IsDescriptionNull() {
  3682. return this.IsNull(this.tableRequest.DescriptionColumn);
  3683. }
  3684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3686. public void SetDescriptionNull() {
  3687. this[this.tableRequest.DescriptionColumn] = global::System.Convert.DBNull;
  3688. }
  3689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3691. public bool IsCommentNull() {
  3692. return this.IsNull(this.tableRequest.CommentColumn);
  3693. }
  3694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3696. public void SetCommentNull() {
  3697. this[this.tableRequest.CommentColumn] = global::System.Convert.DBNull;
  3698. }
  3699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3701. public ExecutionRequestRow[] GetExecutionRequestRows() {
  3702. if ((this.Table.ChildRelations["FK_ExecutionRequest_Request"] == null)) {
  3703. return new ExecutionRequestRow[0];
  3704. }
  3705. else {
  3706. return ((ExecutionRequestRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ExecutionRequest_Request"])));
  3707. }
  3708. }
  3709. }
  3710. /// <summary>
  3711. ///Represents strongly named DataRow class.
  3712. ///</summary>
  3713. public partial class RoleRow : global::System.Data.DataRow {
  3714. private RoleDataTable tableRole;
  3715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3717. internal RoleRow(global::System.Data.DataRowBuilder rb) :
  3718. base(rb) {
  3719. this.tableRole = ((RoleDataTable)(this.Table));
  3720. }
  3721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3723. public int IdRole {
  3724. get {
  3725. return ((int)(this[this.tableRole.IdRoleColumn]));
  3726. }
  3727. set {
  3728. this[this.tableRole.IdRoleColumn] = value;
  3729. }
  3730. }
  3731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3733. public string Title {
  3734. get {
  3735. try {
  3736. return ((string)(this[this.tableRole.TitleColumn]));
  3737. }
  3738. catch (global::System.InvalidCastException e) {
  3739. throw new global::System.Data.StrongTypingException("Значение для столбца \'Title\' в таблице \'Role\' равно DBNull.", e);
  3740. }
  3741. }
  3742. set {
  3743. this[this.tableRole.TitleColumn] = value;
  3744. }
  3745. }
  3746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3748. public bool IsTitleNull() {
  3749. return this.IsNull(this.tableRole.TitleColumn);
  3750. }
  3751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3753. public void SetTitleNull() {
  3754. this[this.tableRole.TitleColumn] = global::System.Convert.DBNull;
  3755. }
  3756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3758. public EmployeeRow[] GetEmployeeRows() {
  3759. if ((this.Table.ChildRelations["FK_Employee_Role"] == null)) {
  3760. return new EmployeeRow[0];
  3761. }
  3762. else {
  3763. return ((EmployeeRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Employee_Role"])));
  3764. }
  3765. }
  3766. }
  3767. /// <summary>
  3768. ///Represents strongly named DataRow class.
  3769. ///</summary>
  3770. public partial class StatusRow : global::System.Data.DataRow {
  3771. private StatusDataTable tableStatus;
  3772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3774. internal StatusRow(global::System.Data.DataRowBuilder rb) :
  3775. base(rb) {
  3776. this.tableStatus = ((StatusDataTable)(this.Table));
  3777. }
  3778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3780. public int IdStatus {
  3781. get {
  3782. return ((int)(this[this.tableStatus.IdStatusColumn]));
  3783. }
  3784. set {
  3785. this[this.tableStatus.IdStatusColumn] = value;
  3786. }
  3787. }
  3788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3790. public string Title {
  3791. get {
  3792. try {
  3793. return ((string)(this[this.tableStatus.TitleColumn]));
  3794. }
  3795. catch (global::System.InvalidCastException e) {
  3796. throw new global::System.Data.StrongTypingException("Значение для столбца \'Title\' в таблице \'Status\' равно DBNull.", e);
  3797. }
  3798. }
  3799. set {
  3800. this[this.tableStatus.TitleColumn] = value;
  3801. }
  3802. }
  3803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3805. public bool IsTitleNull() {
  3806. return this.IsNull(this.tableStatus.TitleColumn);
  3807. }
  3808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3810. public void SetTitleNull() {
  3811. this[this.tableStatus.TitleColumn] = global::System.Convert.DBNull;
  3812. }
  3813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3815. public RequestRow[] GetRequestRows() {
  3816. if ((this.Table.ChildRelations["FK_Request_Status"] == null)) {
  3817. return new RequestRow[0];
  3818. }
  3819. else {
  3820. return ((RequestRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Request_Status"])));
  3821. }
  3822. }
  3823. }
  3824. /// <summary>
  3825. ///Represents strongly named DataRow class.
  3826. ///</summary>
  3827. public partial class TypeDefectRow : global::System.Data.DataRow {
  3828. private TypeDefectDataTable tableTypeDefect;
  3829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3831. internal TypeDefectRow(global::System.Data.DataRowBuilder rb) :
  3832. base(rb) {
  3833. this.tableTypeDefect = ((TypeDefectDataTable)(this.Table));
  3834. }
  3835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3837. public int IdTypeDefect {
  3838. get {
  3839. return ((int)(this[this.tableTypeDefect.IdTypeDefectColumn]));
  3840. }
  3841. set {
  3842. this[this.tableTypeDefect.IdTypeDefectColumn] = value;
  3843. }
  3844. }
  3845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3847. public string Title {
  3848. get {
  3849. try {
  3850. return ((string)(this[this.tableTypeDefect.TitleColumn]));
  3851. }
  3852. catch (global::System.InvalidCastException e) {
  3853. throw new global::System.Data.StrongTypingException("Значение для столбца \'Title\' в таблице \'TypeDefect\' равно DBNull.", e);
  3854. }
  3855. }
  3856. set {
  3857. this[this.tableTypeDefect.TitleColumn] = value;
  3858. }
  3859. }
  3860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3862. public bool IsTitleNull() {
  3863. return this.IsNull(this.tableTypeDefect.TitleColumn);
  3864. }
  3865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3867. public void SetTitleNull() {
  3868. this[this.tableTypeDefect.TitleColumn] = global::System.Convert.DBNull;
  3869. }
  3870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3872. public RequestRow[] GetRequestRows() {
  3873. if ((this.Table.ChildRelations["FK_Request_TypeDefect"] == null)) {
  3874. return new RequestRow[0];
  3875. }
  3876. else {
  3877. return ((RequestRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Request_TypeDefect"])));
  3878. }
  3879. }
  3880. }
  3881. /// <summary>
  3882. ///Represents strongly named DataRow class.
  3883. ///</summary>
  3884. public partial class AllTypeDefectRow : global::System.Data.DataRow {
  3885. private AllTypeDefectDataTable tableAllTypeDefect;
  3886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3888. internal AllTypeDefectRow(global::System.Data.DataRowBuilder rb) :
  3889. base(rb) {
  3890. this.tableAllTypeDefect = ((AllTypeDefectDataTable)(this.Table));
  3891. }
  3892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3894. public string TypeDefect {
  3895. get {
  3896. try {
  3897. return ((string)(this[this.tableAllTypeDefect.TypeDefectColumn]));
  3898. }
  3899. catch (global::System.InvalidCastException e) {
  3900. throw new global::System.Data.StrongTypingException("Значение для столбца \'TypeDefect\' в таблице \'AllTypeDefect\' равно DBNull.", e);
  3901. }
  3902. }
  3903. set {
  3904. this[this.tableAllTypeDefect.TypeDefectColumn] = value;
  3905. }
  3906. }
  3907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3909. public bool IsTypeDefectNull() {
  3910. return this.IsNull(this.tableAllTypeDefect.TypeDefectColumn);
  3911. }
  3912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3914. public void SetTypeDefectNull() {
  3915. this[this.tableAllTypeDefect.TypeDefectColumn] = global::System.Convert.DBNull;
  3916. }
  3917. }
  3918. /// <summary>
  3919. ///Represents strongly named DataRow class.
  3920. ///</summary>
  3921. public partial class ClientFIORow : global::System.Data.DataRow {
  3922. private ClientFIODataTable tableClientFIO;
  3923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3925. internal ClientFIORow(global::System.Data.DataRowBuilder rb) :
  3926. base(rb) {
  3927. this.tableClientFIO = ((ClientFIODataTable)(this.Table));
  3928. }
  3929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3931. public int IdClient {
  3932. get {
  3933. return ((int)(this[this.tableClientFIO.IdClientColumn]));
  3934. }
  3935. set {
  3936. this[this.tableClientFIO.IdClientColumn] = value;
  3937. }
  3938. }
  3939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3941. public string FIO {
  3942. get {
  3943. try {
  3944. return ((string)(this[this.tableClientFIO.FIOColumn]));
  3945. }
  3946. catch (global::System.InvalidCastException e) {
  3947. throw new global::System.Data.StrongTypingException("Значение для столбца \'FIO\' в таблице \'ClientFIO\' равно DBNull.", e);
  3948. }
  3949. }
  3950. set {
  3951. this[this.tableClientFIO.FIOColumn] = value;
  3952. }
  3953. }
  3954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3956. public bool IsFIONull() {
  3957. return this.IsNull(this.tableClientFIO.FIOColumn);
  3958. }
  3959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3961. public void SetFIONull() {
  3962. this[this.tableClientFIO.FIOColumn] = global::System.Convert.DBNull;
  3963. }
  3964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3966. public RequestRow[] GetRequestRows() {
  3967. if ((this.Table.ChildRelations["FK_Request_Client1"] == null)) {
  3968. return new RequestRow[0];
  3969. }
  3970. else {
  3971. return ((RequestRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Request_Client1"])));
  3972. }
  3973. }
  3974. }
  3975. /// <summary>
  3976. ///Row event argument class
  3977. ///</summary>
  3978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3979. public class ClientRowChangeEvent : global::System.EventArgs {
  3980. private ClientRow eventRow;
  3981. private global::System.Data.DataRowAction eventAction;
  3982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3984. public ClientRowChangeEvent(ClientRow row, global::System.Data.DataRowAction action) {
  3985. this.eventRow = row;
  3986. this.eventAction = action;
  3987. }
  3988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3990. public ClientRow Row {
  3991. get {
  3992. return this.eventRow;
  3993. }
  3994. }
  3995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3997. public global::System.Data.DataRowAction Action {
  3998. get {
  3999. return this.eventAction;
  4000. }
  4001. }
  4002. }
  4003. /// <summary>
  4004. ///Row event argument class
  4005. ///</summary>
  4006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4007. public class EmployeeRowChangeEvent : global::System.EventArgs {
  4008. private EmployeeRow eventRow;
  4009. private global::System.Data.DataRowAction eventAction;
  4010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4012. public EmployeeRowChangeEvent(EmployeeRow row, global::System.Data.DataRowAction action) {
  4013. this.eventRow = row;
  4014. this.eventAction = action;
  4015. }
  4016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4018. public EmployeeRow Row {
  4019. get {
  4020. return this.eventRow;
  4021. }
  4022. }
  4023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4025. public global::System.Data.DataRowAction Action {
  4026. get {
  4027. return this.eventAction;
  4028. }
  4029. }
  4030. }
  4031. /// <summary>
  4032. ///Row event argument class
  4033. ///</summary>
  4034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4035. public class ExecutionRequestRowChangeEvent : global::System.EventArgs {
  4036. private ExecutionRequestRow eventRow;
  4037. private global::System.Data.DataRowAction eventAction;
  4038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4040. public ExecutionRequestRowChangeEvent(ExecutionRequestRow row, global::System.Data.DataRowAction action) {
  4041. this.eventRow = row;
  4042. this.eventAction = action;
  4043. }
  4044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4046. public ExecutionRequestRow Row {
  4047. get {
  4048. return this.eventRow;
  4049. }
  4050. }
  4051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4053. public global::System.Data.DataRowAction Action {
  4054. get {
  4055. return this.eventAction;
  4056. }
  4057. }
  4058. }
  4059. /// <summary>
  4060. ///Row event argument class
  4061. ///</summary>
  4062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4063. public class RequestRowChangeEvent : global::System.EventArgs {
  4064. private RequestRow eventRow;
  4065. private global::System.Data.DataRowAction eventAction;
  4066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4068. public RequestRowChangeEvent(RequestRow row, global::System.Data.DataRowAction action) {
  4069. this.eventRow = row;
  4070. this.eventAction = action;
  4071. }
  4072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4074. public RequestRow Row {
  4075. get {
  4076. return this.eventRow;
  4077. }
  4078. }
  4079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4081. public global::System.Data.DataRowAction Action {
  4082. get {
  4083. return this.eventAction;
  4084. }
  4085. }
  4086. }
  4087. /// <summary>
  4088. ///Row event argument class
  4089. ///</summary>
  4090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4091. public class RoleRowChangeEvent : global::System.EventArgs {
  4092. private RoleRow eventRow;
  4093. private global::System.Data.DataRowAction eventAction;
  4094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4096. public RoleRowChangeEvent(RoleRow row, global::System.Data.DataRowAction action) {
  4097. this.eventRow = row;
  4098. this.eventAction = action;
  4099. }
  4100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4102. public RoleRow Row {
  4103. get {
  4104. return this.eventRow;
  4105. }
  4106. }
  4107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4109. public global::System.Data.DataRowAction Action {
  4110. get {
  4111. return this.eventAction;
  4112. }
  4113. }
  4114. }
  4115. /// <summary>
  4116. ///Row event argument class
  4117. ///</summary>
  4118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4119. public class StatusRowChangeEvent : global::System.EventArgs {
  4120. private StatusRow eventRow;
  4121. private global::System.Data.DataRowAction eventAction;
  4122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4124. public StatusRowChangeEvent(StatusRow row, global::System.Data.DataRowAction action) {
  4125. this.eventRow = row;
  4126. this.eventAction = action;
  4127. }
  4128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4130. public StatusRow Row {
  4131. get {
  4132. return this.eventRow;
  4133. }
  4134. }
  4135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4137. public global::System.Data.DataRowAction Action {
  4138. get {
  4139. return this.eventAction;
  4140. }
  4141. }
  4142. }
  4143. /// <summary>
  4144. ///Row event argument class
  4145. ///</summary>
  4146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4147. public class TypeDefectRowChangeEvent : global::System.EventArgs {
  4148. private TypeDefectRow eventRow;
  4149. private global::System.Data.DataRowAction eventAction;
  4150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4152. public TypeDefectRowChangeEvent(TypeDefectRow row, global::System.Data.DataRowAction action) {
  4153. this.eventRow = row;
  4154. this.eventAction = action;
  4155. }
  4156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4158. public TypeDefectRow Row {
  4159. get {
  4160. return this.eventRow;
  4161. }
  4162. }
  4163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4165. public global::System.Data.DataRowAction Action {
  4166. get {
  4167. return this.eventAction;
  4168. }
  4169. }
  4170. }
  4171. /// <summary>
  4172. ///Row event argument class
  4173. ///</summary>
  4174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4175. public class AllTypeDefectRowChangeEvent : global::System.EventArgs {
  4176. private AllTypeDefectRow eventRow;
  4177. private global::System.Data.DataRowAction eventAction;
  4178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4180. public AllTypeDefectRowChangeEvent(AllTypeDefectRow row, global::System.Data.DataRowAction action) {
  4181. this.eventRow = row;
  4182. this.eventAction = action;
  4183. }
  4184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4186. public AllTypeDefectRow Row {
  4187. get {
  4188. return this.eventRow;
  4189. }
  4190. }
  4191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4193. public global::System.Data.DataRowAction Action {
  4194. get {
  4195. return this.eventAction;
  4196. }
  4197. }
  4198. }
  4199. /// <summary>
  4200. ///Row event argument class
  4201. ///</summary>
  4202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4203. public class ClientFIORowChangeEvent : global::System.EventArgs {
  4204. private ClientFIORow eventRow;
  4205. private global::System.Data.DataRowAction eventAction;
  4206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4208. public ClientFIORowChangeEvent(ClientFIORow row, global::System.Data.DataRowAction action) {
  4209. this.eventRow = row;
  4210. this.eventAction = action;
  4211. }
  4212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4214. public ClientFIORow Row {
  4215. get {
  4216. return this.eventRow;
  4217. }
  4218. }
  4219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4221. public global::System.Data.DataRowAction Action {
  4222. get {
  4223. return this.eventAction;
  4224. }
  4225. }
  4226. }
  4227. }
  4228. }
  4229. namespace СУБД_Техносервис.TechServiceBAUDataSetTableAdapters {
  4230. /// <summary>
  4231. ///Represents the connection and commands used to retrieve and save data.
  4232. ///</summary>
  4233. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4234. [global::System.ComponentModel.ToolboxItem(true)]
  4235. [global::System.ComponentModel.DataObjectAttribute(true)]
  4236. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4237. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4238. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4239. public partial class ClientTableAdapter : global::System.ComponentModel.Component {
  4240. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4241. private global::System.Data.SqlClient.SqlConnection _connection;
  4242. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4243. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4244. private bool _clearBeforeFill;
  4245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4247. public ClientTableAdapter() {
  4248. this.ClearBeforeFill = true;
  4249. }
  4250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4252. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4253. get {
  4254. if ((this._adapter == null)) {
  4255. this.InitAdapter();
  4256. }
  4257. return this._adapter;
  4258. }
  4259. }
  4260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4262. internal global::System.Data.SqlClient.SqlConnection Connection {
  4263. get {
  4264. if ((this._connection == null)) {
  4265. this.InitConnection();
  4266. }
  4267. return this._connection;
  4268. }
  4269. set {
  4270. this._connection = value;
  4271. if ((this.Adapter.InsertCommand != null)) {
  4272. this.Adapter.InsertCommand.Connection = value;
  4273. }
  4274. if ((this.Adapter.DeleteCommand != null)) {
  4275. this.Adapter.DeleteCommand.Connection = value;
  4276. }
  4277. if ((this.Adapter.UpdateCommand != null)) {
  4278. this.Adapter.UpdateCommand.Connection = value;
  4279. }
  4280. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4281. if ((this.CommandCollection[i] != null)) {
  4282. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4283. }
  4284. }
  4285. }
  4286. }
  4287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4289. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4290. get {
  4291. return this._transaction;
  4292. }
  4293. set {
  4294. this._transaction = value;
  4295. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4296. this.CommandCollection[i].Transaction = this._transaction;
  4297. }
  4298. if (((this.Adapter != null)
  4299. && (this.Adapter.DeleteCommand != null))) {
  4300. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4301. }
  4302. if (((this.Adapter != null)
  4303. && (this.Adapter.InsertCommand != null))) {
  4304. this.Adapter.InsertCommand.Transaction = this._transaction;
  4305. }
  4306. if (((this.Adapter != null)
  4307. && (this.Adapter.UpdateCommand != null))) {
  4308. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4309. }
  4310. }
  4311. }
  4312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4314. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4315. get {
  4316. if ((this._commandCollection == null)) {
  4317. this.InitCommandCollection();
  4318. }
  4319. return this._commandCollection;
  4320. }
  4321. }
  4322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4324. public bool ClearBeforeFill {
  4325. get {
  4326. return this._clearBeforeFill;
  4327. }
  4328. set {
  4329. this._clearBeforeFill = value;
  4330. }
  4331. }
  4332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4334. private void InitAdapter() {
  4335. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4336. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4337. tableMapping.SourceTable = "Table";
  4338. tableMapping.DataSetTable = "Client";
  4339. tableMapping.ColumnMappings.Add("IdClient", "IdClient");
  4340. tableMapping.ColumnMappings.Add("Surname", "Surname");
  4341. tableMapping.ColumnMappings.Add("Name", "Name");
  4342. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  4343. this._adapter.TableMappings.Add(tableMapping);
  4344. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4345. this._adapter.DeleteCommand.Connection = this.Connection;
  4346. 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)))";
  4347. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4348. 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, "", "", ""));
  4349. 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, "", "", ""));
  4350. 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, "", "", ""));
  4351. 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, "", "", ""));
  4352. 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, "", "", ""));
  4353. 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, "", "", ""));
  4354. 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, "", "", ""));
  4355. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4356. this._adapter.InsertCommand.Connection = this.Connection;
  4357. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Client] ([Surname], [Name], [Patronymic]) VALUES (@Surname, @N" +
  4358. "ame, @Patronymic);\r\nSELECT IdClient, Surname, Name, Patronymic FROM Client WHERE" +
  4359. " (IdClient = SCOPE_IDENTITY())";
  4360. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4361. 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, "", "", ""));
  4362. 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, "", "", ""));
  4363. 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, "", "", ""));
  4364. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4365. this._adapter.UpdateCommand.Connection = this.Connection;
  4366. 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)));
  4367. SELECT IdClient, Surname, Name, Patronymic FROM Client WHERE (IdClient = @IdClient)";
  4368. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4369. 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, "", "", ""));
  4370. 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, "", "", ""));
  4371. 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, "", "", ""));
  4372. 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, "", "", ""));
  4373. 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, "", "", ""));
  4374. 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, "", "", ""));
  4375. 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, "", "", ""));
  4376. 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, "", "", ""));
  4377. 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, "", "", ""));
  4378. 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, "", "", ""));
  4379. 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, "", "", ""));
  4380. }
  4381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4383. private void InitConnection() {
  4384. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4385. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  4386. }
  4387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4389. private void InitCommandCollection() {
  4390. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4391. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4392. this._commandCollection[0].Connection = this.Connection;
  4393. this._commandCollection[0].CommandText = "SELECT IdClient, Surname, Name, Patronymic FROM dbo.Client";
  4394. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4395. }
  4396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4398. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4399. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4400. public virtual int Fill(TechServiceBAUDataSet.ClientDataTable dataTable) {
  4401. this.Adapter.SelectCommand = this.CommandCollection[0];
  4402. if ((this.ClearBeforeFill == true)) {
  4403. dataTable.Clear();
  4404. }
  4405. int returnValue = this.Adapter.Fill(dataTable);
  4406. return returnValue;
  4407. }
  4408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4410. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4411. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4412. public virtual TechServiceBAUDataSet.ClientDataTable GetData() {
  4413. this.Adapter.SelectCommand = this.CommandCollection[0];
  4414. TechServiceBAUDataSet.ClientDataTable dataTable = new TechServiceBAUDataSet.ClientDataTable();
  4415. this.Adapter.Fill(dataTable);
  4416. return dataTable;
  4417. }
  4418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4420. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4421. public virtual int Update(TechServiceBAUDataSet.ClientDataTable dataTable) {
  4422. return this.Adapter.Update(dataTable);
  4423. }
  4424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4426. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4427. public virtual int Update(TechServiceBAUDataSet dataSet) {
  4428. return this.Adapter.Update(dataSet, "Client");
  4429. }
  4430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4432. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4433. public virtual int Update(global::System.Data.DataRow dataRow) {
  4434. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4435. dataRow});
  4436. }
  4437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4439. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4440. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4441. return this.Adapter.Update(dataRows);
  4442. }
  4443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4445. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4446. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4447. public virtual int Delete(int Original_IdClient, string Original_Surname, string Original_Name, string Original_Patronymic) {
  4448. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdClient));
  4449. if ((Original_Surname == null)) {
  4450. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4451. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4452. }
  4453. else {
  4454. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4455. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Surname));
  4456. }
  4457. if ((Original_Name == null)) {
  4458. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4459. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4460. }
  4461. else {
  4462. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4463. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Name));
  4464. }
  4465. if ((Original_Patronymic == null)) {
  4466. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4467. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4468. }
  4469. else {
  4470. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4471. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Patronymic));
  4472. }
  4473. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4474. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4475. != global::System.Data.ConnectionState.Open)) {
  4476. this.Adapter.DeleteCommand.Connection.Open();
  4477. }
  4478. try {
  4479. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4480. return returnValue;
  4481. }
  4482. finally {
  4483. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4484. this.Adapter.DeleteCommand.Connection.Close();
  4485. }
  4486. }
  4487. }
  4488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4490. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4491. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4492. public virtual int Insert(string Surname, string Name, string Patronymic) {
  4493. if ((Surname == null)) {
  4494. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4495. }
  4496. else {
  4497. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Surname));
  4498. }
  4499. if ((Name == null)) {
  4500. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4501. }
  4502. else {
  4503. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  4504. }
  4505. if ((Patronymic == null)) {
  4506. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4507. }
  4508. else {
  4509. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  4510. }
  4511. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4512. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4513. != global::System.Data.ConnectionState.Open)) {
  4514. this.Adapter.InsertCommand.Connection.Open();
  4515. }
  4516. try {
  4517. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4518. return returnValue;
  4519. }
  4520. finally {
  4521. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4522. this.Adapter.InsertCommand.Connection.Close();
  4523. }
  4524. }
  4525. }
  4526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4528. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4529. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4530. public virtual int Update(string Surname, string Name, string Patronymic, int Original_IdClient, string Original_Surname, string Original_Name, string Original_Patronymic, int IdClient) {
  4531. if ((Surname == null)) {
  4532. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4533. }
  4534. else {
  4535. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Surname));
  4536. }
  4537. if ((Name == null)) {
  4538. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4539. }
  4540. else {
  4541. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  4542. }
  4543. if ((Patronymic == null)) {
  4544. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4545. }
  4546. else {
  4547. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  4548. }
  4549. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_IdClient));
  4550. if ((Original_Surname == null)) {
  4551. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  4552. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  4553. }
  4554. else {
  4555. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  4556. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Surname));
  4557. }
  4558. if ((Original_Name == null)) {
  4559. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  4560. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  4561. }
  4562. else {
  4563. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  4564. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Name));
  4565. }
  4566. if ((Original_Patronymic == null)) {
  4567. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  4568. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  4569. }
  4570. else {
  4571. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  4572. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Patronymic));
  4573. }
  4574. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(IdClient));
  4575. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4576. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4577. != global::System.Data.ConnectionState.Open)) {
  4578. this.Adapter.UpdateCommand.Connection.Open();
  4579. }
  4580. try {
  4581. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4582. return returnValue;
  4583. }
  4584. finally {
  4585. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4586. this.Adapter.UpdateCommand.Connection.Close();
  4587. }
  4588. }
  4589. }
  4590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4592. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4593. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4594. public virtual int Update(string Surname, string Name, string Patronymic, int Original_IdClient, string Original_Surname, string Original_Name, string Original_Patronymic) {
  4595. return this.Update(Surname, Name, Patronymic, Original_IdClient, Original_Surname, Original_Name, Original_Patronymic, Original_IdClient);
  4596. }
  4597. }
  4598. /// <summary>
  4599. ///Represents the connection and commands used to retrieve and save data.
  4600. ///</summary>
  4601. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4602. [global::System.ComponentModel.ToolboxItem(true)]
  4603. [global::System.ComponentModel.DataObjectAttribute(true)]
  4604. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4605. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4606. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4607. public partial class EmployeeTableAdapter : global::System.ComponentModel.Component {
  4608. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4609. private global::System.Data.SqlClient.SqlConnection _connection;
  4610. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4611. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4612. private bool _clearBeforeFill;
  4613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4615. public EmployeeTableAdapter() {
  4616. this.ClearBeforeFill = true;
  4617. }
  4618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4620. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4621. get {
  4622. if ((this._adapter == null)) {
  4623. this.InitAdapter();
  4624. }
  4625. return this._adapter;
  4626. }
  4627. }
  4628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4630. internal global::System.Data.SqlClient.SqlConnection Connection {
  4631. get {
  4632. if ((this._connection == null)) {
  4633. this.InitConnection();
  4634. }
  4635. return this._connection;
  4636. }
  4637. set {
  4638. this._connection = value;
  4639. if ((this.Adapter.InsertCommand != null)) {
  4640. this.Adapter.InsertCommand.Connection = value;
  4641. }
  4642. if ((this.Adapter.DeleteCommand != null)) {
  4643. this.Adapter.DeleteCommand.Connection = value;
  4644. }
  4645. if ((this.Adapter.UpdateCommand != null)) {
  4646. this.Adapter.UpdateCommand.Connection = value;
  4647. }
  4648. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4649. if ((this.CommandCollection[i] != null)) {
  4650. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4651. }
  4652. }
  4653. }
  4654. }
  4655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4657. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4658. get {
  4659. return this._transaction;
  4660. }
  4661. set {
  4662. this._transaction = value;
  4663. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4664. this.CommandCollection[i].Transaction = this._transaction;
  4665. }
  4666. if (((this.Adapter != null)
  4667. && (this.Adapter.DeleteCommand != null))) {
  4668. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4669. }
  4670. if (((this.Adapter != null)
  4671. && (this.Adapter.InsertCommand != null))) {
  4672. this.Adapter.InsertCommand.Transaction = this._transaction;
  4673. }
  4674. if (((this.Adapter != null)
  4675. && (this.Adapter.UpdateCommand != null))) {
  4676. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4677. }
  4678. }
  4679. }
  4680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4682. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4683. get {
  4684. if ((this._commandCollection == null)) {
  4685. this.InitCommandCollection();
  4686. }
  4687. return this._commandCollection;
  4688. }
  4689. }
  4690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4692. public bool ClearBeforeFill {
  4693. get {
  4694. return this._clearBeforeFill;
  4695. }
  4696. set {
  4697. this._clearBeforeFill = value;
  4698. }
  4699. }
  4700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4702. private void InitAdapter() {
  4703. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4704. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4705. tableMapping.SourceTable = "Table";
  4706. tableMapping.DataSetTable = "Employee";
  4707. tableMapping.ColumnMappings.Add("IdEmployee", "IdEmployee");
  4708. tableMapping.ColumnMappings.Add("IdRole", "IdRole");
  4709. tableMapping.ColumnMappings.Add("Surname", "Surname");
  4710. tableMapping.ColumnMappings.Add("Name", "Name");
  4711. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  4712. tableMapping.ColumnMappings.Add("Login", "Login");
  4713. tableMapping.ColumnMappings.Add("Password", "Password");
  4714. tableMapping.ColumnMappings.Add("Photo", "Photo");
  4715. this._adapter.TableMappings.Add(tableMapping);
  4716. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4717. this._adapter.DeleteCommand.Connection = this.Connection;
  4718. 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)))";
  4719. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4720. 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, "", "", ""));
  4721. 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, "", "", ""));
  4722. 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, "", "", ""));
  4723. 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, "", "", ""));
  4724. 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, "", "", ""));
  4725. 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, "", "", ""));
  4726. 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, "", "", ""));
  4727. 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, "", "", ""));
  4728. 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, "", "", ""));
  4729. 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, "", "", ""));
  4730. 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, "", "", ""));
  4731. 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, "", "", ""));
  4732. 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, "", "", ""));
  4733. 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, "", "", ""));
  4734. 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, "", "", ""));
  4735. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4736. this._adapter.InsertCommand.Connection = this.Connection;
  4737. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Employee] ([IdRole], [Surname], [Name], [Patronymic], [Login], [Password], [Photo]) VALUES (@IdRole, @Surname, @Name, @Patronymic, @Login, @Password, @Photo);
  4738. SELECT IdEmployee, IdRole, Surname, Name, Patronymic, Login, Password, Photo FROM Employee WHERE (IdEmployee = SCOPE_IDENTITY())";
  4739. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4740. 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, "", "", ""));
  4741. 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, "", "", ""));
  4742. 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, "", "", ""));
  4743. 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, "", "", ""));
  4744. 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, "", "", ""));
  4745. 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, "", "", ""));
  4746. 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, "", "", ""));
  4747. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4748. this._adapter.UpdateCommand.Connection = this.Connection;
  4749. 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)));
  4750. SELECT IdEmployee, IdRole, Surname, Name, Patronymic, Login, Password, Photo FROM Employee WHERE (IdEmployee = @IdEmployee)";
  4751. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4752. 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, "", "", ""));
  4753. 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, "", "", ""));
  4754. 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, "", "", ""));
  4755. 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, "", "", ""));
  4756. 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, "", "", ""));
  4757. 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, "", "", ""));
  4758. 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, "", "", ""));
  4759. 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, "", "", ""));
  4760. 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, "", "", ""));
  4761. 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, "", "", ""));
  4762. 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, "", "", ""));
  4763. 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, "", "", ""));
  4764. 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, "", "", ""));
  4765. 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, "", "", ""));
  4766. 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, "", "", ""));
  4767. 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, "", "", ""));
  4768. 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, "", "", ""));
  4769. 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, "", "", ""));
  4770. 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, "", "", ""));
  4771. 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, "", "", ""));
  4772. 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, "", "", ""));
  4773. 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, "", "", ""));
  4774. 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, "", "", ""));
  4775. }
  4776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4778. private void InitConnection() {
  4779. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4780. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  4781. }
  4782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4784. private void InitCommandCollection() {
  4785. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4786. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4787. this._commandCollection[0].Connection = this.Connection;
  4788. this._commandCollection[0].CommandText = "SELECT IdEmployee, IdRole, Surname, Name, Patronymic, Login, Password, Photo FROM" +
  4789. " dbo.Employee";
  4790. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4791. }
  4792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4794. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4795. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4796. public virtual int Fill(TechServiceBAUDataSet.EmployeeDataTable dataTable) {
  4797. this.Adapter.SelectCommand = this.CommandCollection[0];
  4798. if ((this.ClearBeforeFill == true)) {
  4799. dataTable.Clear();
  4800. }
  4801. int returnValue = this.Adapter.Fill(dataTable);
  4802. return returnValue;
  4803. }
  4804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4806. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4807. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4808. public virtual TechServiceBAUDataSet.EmployeeDataTable GetData() {
  4809. this.Adapter.SelectCommand = this.CommandCollection[0];
  4810. TechServiceBAUDataSet.EmployeeDataTable dataTable = new TechServiceBAUDataSet.EmployeeDataTable();
  4811. this.Adapter.Fill(dataTable);
  4812. return dataTable;
  4813. }
  4814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4816. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4817. public virtual int Update(TechServiceBAUDataSet.EmployeeDataTable dataTable) {
  4818. return this.Adapter.Update(dataTable);
  4819. }
  4820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4822. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4823. public virtual int Update(TechServiceBAUDataSet dataSet) {
  4824. return this.Adapter.Update(dataSet, "Employee");
  4825. }
  4826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4828. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4829. public virtual int Update(global::System.Data.DataRow dataRow) {
  4830. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4831. dataRow});
  4832. }
  4833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4835. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4836. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4837. return this.Adapter.Update(dataRows);
  4838. }
  4839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4841. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4842. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4843. 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) {
  4844. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdEmployee));
  4845. if ((Original_IdRole.HasValue == true)) {
  4846. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4847. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IdRole.Value));
  4848. }
  4849. else {
  4850. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4851. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4852. }
  4853. if ((Original_Surname == null)) {
  4854. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4855. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4856. }
  4857. else {
  4858. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4859. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Surname));
  4860. }
  4861. if ((Original_Name == null)) {
  4862. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4863. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4864. }
  4865. else {
  4866. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4867. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Name));
  4868. }
  4869. if ((Original_Patronymic == null)) {
  4870. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  4871. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  4872. }
  4873. else {
  4874. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  4875. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Patronymic));
  4876. }
  4877. if ((Original_Login == null)) {
  4878. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  4879. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  4880. }
  4881. else {
  4882. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  4883. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Login));
  4884. }
  4885. if ((Original_Password == null)) {
  4886. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  4887. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  4888. }
  4889. else {
  4890. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  4891. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Password));
  4892. }
  4893. if ((Original_Photo == null)) {
  4894. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  4895. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  4896. }
  4897. else {
  4898. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  4899. this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_Photo));
  4900. }
  4901. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4902. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4903. != global::System.Data.ConnectionState.Open)) {
  4904. this.Adapter.DeleteCommand.Connection.Open();
  4905. }
  4906. try {
  4907. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4908. return returnValue;
  4909. }
  4910. finally {
  4911. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4912. this.Adapter.DeleteCommand.Connection.Close();
  4913. }
  4914. }
  4915. }
  4916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4918. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4919. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4920. public virtual int Insert(global::System.Nullable<int> IdRole, string Surname, string Name, string Patronymic, string Login, string Password, string Photo) {
  4921. if ((IdRole.HasValue == true)) {
  4922. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdRole.Value));
  4923. }
  4924. else {
  4925. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4926. }
  4927. if ((Surname == null)) {
  4928. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4929. }
  4930. else {
  4931. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Surname));
  4932. }
  4933. if ((Name == null)) {
  4934. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4935. }
  4936. else {
  4937. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Name));
  4938. }
  4939. if ((Patronymic == null)) {
  4940. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4941. }
  4942. else {
  4943. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Patronymic));
  4944. }
  4945. if ((Login == null)) {
  4946. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  4947. }
  4948. else {
  4949. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Login));
  4950. }
  4951. if ((Password == null)) {
  4952. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  4953. }
  4954. else {
  4955. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Password));
  4956. }
  4957. if ((Photo == null)) {
  4958. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  4959. }
  4960. else {
  4961. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Photo));
  4962. }
  4963. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4964. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4965. != global::System.Data.ConnectionState.Open)) {
  4966. this.Adapter.InsertCommand.Connection.Open();
  4967. }
  4968. try {
  4969. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4970. return returnValue;
  4971. }
  4972. finally {
  4973. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4974. this.Adapter.InsertCommand.Connection.Close();
  4975. }
  4976. }
  4977. }
  4978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4980. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4981. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4982. public virtual int Update(
  4983. global::System.Nullable<int> IdRole,
  4984. string Surname,
  4985. string Name,
  4986. string Patronymic,
  4987. string Login,
  4988. string Password,
  4989. string Photo,
  4990. int Original_IdEmployee,
  4991. global::System.Nullable<int> Original_IdRole,
  4992. string Original_Surname,
  4993. string Original_Name,
  4994. string Original_Patronymic,
  4995. string Original_Login,
  4996. string Original_Password,
  4997. string Original_Photo,
  4998. int IdEmployee) {
  4999. if ((IdRole.HasValue == true)) {
  5000. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdRole.Value));
  5001. }
  5002. else {
  5003. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5004. }
  5005. if ((Surname == null)) {
  5006. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5007. }
  5008. else {
  5009. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Surname));
  5010. }
  5011. if ((Name == null)) {
  5012. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5013. }
  5014. else {
  5015. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Name));
  5016. }
  5017. if ((Patronymic == null)) {
  5018. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5019. }
  5020. else {
  5021. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Patronymic));
  5022. }
  5023. if ((Login == null)) {
  5024. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5025. }
  5026. else {
  5027. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Login));
  5028. }
  5029. if ((Password == null)) {
  5030. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5031. }
  5032. else {
  5033. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Password));
  5034. }
  5035. if ((Photo == null)) {
  5036. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  5037. }
  5038. else {
  5039. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Photo));
  5040. }
  5041. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_IdEmployee));
  5042. if ((Original_IdRole.HasValue == true)) {
  5043. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  5044. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_IdRole.Value));
  5045. }
  5046. else {
  5047. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  5048. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  5049. }
  5050. if ((Original_Surname == null)) {
  5051. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  5052. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  5053. }
  5054. else {
  5055. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  5056. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Surname));
  5057. }
  5058. if ((Original_Name == null)) {
  5059. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  5060. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  5061. }
  5062. else {
  5063. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  5064. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Name));
  5065. }
  5066. if ((Original_Patronymic == null)) {
  5067. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  5068. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  5069. }
  5070. else {
  5071. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  5072. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Patronymic));
  5073. }
  5074. if ((Original_Login == null)) {
  5075. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  5076. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  5077. }
  5078. else {
  5079. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  5080. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Login));
  5081. }
  5082. if ((Original_Password == null)) {
  5083. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  5084. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  5085. }
  5086. else {
  5087. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  5088. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Password));
  5089. }
  5090. if ((Original_Photo == null)) {
  5091. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  5092. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  5093. }
  5094. else {
  5095. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  5096. this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_Photo));
  5097. }
  5098. this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(IdEmployee));
  5099. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5100. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5101. != global::System.Data.ConnectionState.Open)) {
  5102. this.Adapter.UpdateCommand.Connection.Open();
  5103. }
  5104. try {
  5105. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5106. return returnValue;
  5107. }
  5108. finally {
  5109. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5110. this.Adapter.UpdateCommand.Connection.Close();
  5111. }
  5112. }
  5113. }
  5114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5116. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5117. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5118. 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) {
  5119. 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);
  5120. }
  5121. }
  5122. /// <summary>
  5123. ///Represents the connection and commands used to retrieve and save data.
  5124. ///</summary>
  5125. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5126. [global::System.ComponentModel.ToolboxItem(true)]
  5127. [global::System.ComponentModel.DataObjectAttribute(true)]
  5128. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5129. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5130. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5131. public partial class ExecutionRequestTableAdapter : global::System.ComponentModel.Component {
  5132. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5133. private global::System.Data.SqlClient.SqlConnection _connection;
  5134. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5135. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5136. private bool _clearBeforeFill;
  5137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5139. public ExecutionRequestTableAdapter() {
  5140. this.ClearBeforeFill = true;
  5141. }
  5142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5144. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5145. get {
  5146. if ((this._adapter == null)) {
  5147. this.InitAdapter();
  5148. }
  5149. return this._adapter;
  5150. }
  5151. }
  5152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5154. internal global::System.Data.SqlClient.SqlConnection Connection {
  5155. get {
  5156. if ((this._connection == null)) {
  5157. this.InitConnection();
  5158. }
  5159. return this._connection;
  5160. }
  5161. set {
  5162. this._connection = value;
  5163. if ((this.Adapter.InsertCommand != null)) {
  5164. this.Adapter.InsertCommand.Connection = value;
  5165. }
  5166. if ((this.Adapter.DeleteCommand != null)) {
  5167. this.Adapter.DeleteCommand.Connection = value;
  5168. }
  5169. if ((this.Adapter.UpdateCommand != null)) {
  5170. this.Adapter.UpdateCommand.Connection = value;
  5171. }
  5172. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5173. if ((this.CommandCollection[i] != null)) {
  5174. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5175. }
  5176. }
  5177. }
  5178. }
  5179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5181. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5182. get {
  5183. return this._transaction;
  5184. }
  5185. set {
  5186. this._transaction = value;
  5187. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5188. this.CommandCollection[i].Transaction = this._transaction;
  5189. }
  5190. if (((this.Adapter != null)
  5191. && (this.Adapter.DeleteCommand != null))) {
  5192. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5193. }
  5194. if (((this.Adapter != null)
  5195. && (this.Adapter.InsertCommand != null))) {
  5196. this.Adapter.InsertCommand.Transaction = this._transaction;
  5197. }
  5198. if (((this.Adapter != null)
  5199. && (this.Adapter.UpdateCommand != null))) {
  5200. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5201. }
  5202. }
  5203. }
  5204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5206. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5207. get {
  5208. if ((this._commandCollection == null)) {
  5209. this.InitCommandCollection();
  5210. }
  5211. return this._commandCollection;
  5212. }
  5213. }
  5214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5216. public bool ClearBeforeFill {
  5217. get {
  5218. return this._clearBeforeFill;
  5219. }
  5220. set {
  5221. this._clearBeforeFill = value;
  5222. }
  5223. }
  5224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5226. private void InitAdapter() {
  5227. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5228. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5229. tableMapping.SourceTable = "Table";
  5230. tableMapping.DataSetTable = "ExecutionRequest";
  5231. tableMapping.ColumnMappings.Add("IdExecution", "IdExecution");
  5232. tableMapping.ColumnMappings.Add("IdRequest", "IdRequest");
  5233. tableMapping.ColumnMappings.Add("IdMaster", "IdMaster");
  5234. this._adapter.TableMappings.Add(tableMapping);
  5235. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5236. this._adapter.DeleteCommand.Connection = this.Connection;
  5237. 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)))";
  5238. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5239. 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, "", "", ""));
  5240. 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, "", "", ""));
  5241. 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, "", "", ""));
  5242. 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, "", "", ""));
  5243. 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, "", "", ""));
  5244. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5245. this._adapter.InsertCommand.Connection = this.Connection;
  5246. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ExecutionRequest] ([IdRequest], [IdMaster]) VALUES (@IdRequest" +
  5247. ", @IdMaster);\r\nSELECT IdExecution, IdRequest, IdMaster FROM ExecutionRequest WHE" +
  5248. "RE (IdExecution = SCOPE_IDENTITY())";
  5249. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5250. 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, "", "", ""));
  5251. 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, "", "", ""));
  5252. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5253. this._adapter.UpdateCommand.Connection = this.Connection;
  5254. 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)));
  5255. SELECT IdExecution, IdRequest, IdMaster FROM ExecutionRequest WHERE (IdExecution = @IdExecution)";
  5256. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5257. 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, "", "", ""));
  5258. 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, "", "", ""));
  5259. 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, "", "", ""));
  5260. 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, "", "", ""));
  5261. 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, "", "", ""));
  5262. 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, "", "", ""));
  5263. 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, "", "", ""));
  5264. 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, "", "", ""));
  5265. }
  5266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5268. private void InitConnection() {
  5269. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5270. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  5271. }
  5272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5274. private void InitCommandCollection() {
  5275. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5276. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5277. this._commandCollection[0].Connection = this.Connection;
  5278. this._commandCollection[0].CommandText = "SELECT IdExecution, IdRequest, IdMaster FROM dbo.ExecutionRequest";
  5279. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5280. }
  5281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5283. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5284. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5285. public virtual int Fill(TechServiceBAUDataSet.ExecutionRequestDataTable dataTable) {
  5286. this.Adapter.SelectCommand = this.CommandCollection[0];
  5287. if ((this.ClearBeforeFill == true)) {
  5288. dataTable.Clear();
  5289. }
  5290. int returnValue = this.Adapter.Fill(dataTable);
  5291. return returnValue;
  5292. }
  5293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5295. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5296. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5297. public virtual TechServiceBAUDataSet.ExecutionRequestDataTable GetData() {
  5298. this.Adapter.SelectCommand = this.CommandCollection[0];
  5299. TechServiceBAUDataSet.ExecutionRequestDataTable dataTable = new TechServiceBAUDataSet.ExecutionRequestDataTable();
  5300. this.Adapter.Fill(dataTable);
  5301. return dataTable;
  5302. }
  5303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5305. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5306. public virtual int Update(TechServiceBAUDataSet.ExecutionRequestDataTable dataTable) {
  5307. return this.Adapter.Update(dataTable);
  5308. }
  5309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5311. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5312. public virtual int Update(TechServiceBAUDataSet dataSet) {
  5313. return this.Adapter.Update(dataSet, "ExecutionRequest");
  5314. }
  5315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5317. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5318. public virtual int Update(global::System.Data.DataRow dataRow) {
  5319. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5320. dataRow});
  5321. }
  5322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5324. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5325. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5326. return this.Adapter.Update(dataRows);
  5327. }
  5328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5330. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5331. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5332. public virtual int Delete(int Original_IdExecution, global::System.Nullable<int> Original_IdRequest, global::System.Nullable<int> Original_IdMaster) {
  5333. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdExecution));
  5334. if ((Original_IdRequest.HasValue == true)) {
  5335. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5336. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IdRequest.Value));
  5337. }
  5338. else {
  5339. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5340. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5341. }
  5342. if ((Original_IdMaster.HasValue == true)) {
  5343. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5344. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IdMaster.Value));
  5345. }
  5346. else {
  5347. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5348. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5349. }
  5350. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5351. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5352. != global::System.Data.ConnectionState.Open)) {
  5353. this.Adapter.DeleteCommand.Connection.Open();
  5354. }
  5355. try {
  5356. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5357. return returnValue;
  5358. }
  5359. finally {
  5360. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5361. this.Adapter.DeleteCommand.Connection.Close();
  5362. }
  5363. }
  5364. }
  5365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5367. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5368. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5369. public virtual int Insert(global::System.Nullable<int> IdRequest, global::System.Nullable<int> IdMaster) {
  5370. if ((IdRequest.HasValue == true)) {
  5371. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdRequest.Value));
  5372. }
  5373. else {
  5374. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5375. }
  5376. if ((IdMaster.HasValue == true)) {
  5377. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdMaster.Value));
  5378. }
  5379. else {
  5380. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5381. }
  5382. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5383. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5384. != global::System.Data.ConnectionState.Open)) {
  5385. this.Adapter.InsertCommand.Connection.Open();
  5386. }
  5387. try {
  5388. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5389. return returnValue;
  5390. }
  5391. finally {
  5392. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5393. this.Adapter.InsertCommand.Connection.Close();
  5394. }
  5395. }
  5396. }
  5397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5399. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5400. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5401. 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) {
  5402. if ((IdRequest.HasValue == true)) {
  5403. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdRequest.Value));
  5404. }
  5405. else {
  5406. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5407. }
  5408. if ((IdMaster.HasValue == true)) {
  5409. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdMaster.Value));
  5410. }
  5411. else {
  5412. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5413. }
  5414. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_IdExecution));
  5415. if ((Original_IdRequest.HasValue == true)) {
  5416. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  5417. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IdRequest.Value));
  5418. }
  5419. else {
  5420. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  5421. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5422. }
  5423. if ((Original_IdMaster.HasValue == true)) {
  5424. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  5425. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IdMaster.Value));
  5426. }
  5427. else {
  5428. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  5429. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  5430. }
  5431. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(IdExecution));
  5432. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5433. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5434. != global::System.Data.ConnectionState.Open)) {
  5435. this.Adapter.UpdateCommand.Connection.Open();
  5436. }
  5437. try {
  5438. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5439. return returnValue;
  5440. }
  5441. finally {
  5442. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5443. this.Adapter.UpdateCommand.Connection.Close();
  5444. }
  5445. }
  5446. }
  5447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5449. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5450. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5451. 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) {
  5452. return this.Update(IdRequest, IdMaster, Original_IdExecution, Original_IdRequest, Original_IdMaster, Original_IdExecution);
  5453. }
  5454. }
  5455. /// <summary>
  5456. ///Represents the connection and commands used to retrieve and save data.
  5457. ///</summary>
  5458. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5459. [global::System.ComponentModel.ToolboxItem(true)]
  5460. [global::System.ComponentModel.DataObjectAttribute(true)]
  5461. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5462. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5463. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5464. public partial class RequestTableAdapter : global::System.ComponentModel.Component {
  5465. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5466. private global::System.Data.SqlClient.SqlConnection _connection;
  5467. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5468. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5469. private bool _clearBeforeFill;
  5470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5472. public RequestTableAdapter() {
  5473. this.ClearBeforeFill = true;
  5474. }
  5475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5477. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5478. get {
  5479. if ((this._adapter == null)) {
  5480. this.InitAdapter();
  5481. }
  5482. return this._adapter;
  5483. }
  5484. }
  5485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5487. internal global::System.Data.SqlClient.SqlConnection Connection {
  5488. get {
  5489. if ((this._connection == null)) {
  5490. this.InitConnection();
  5491. }
  5492. return this._connection;
  5493. }
  5494. set {
  5495. this._connection = value;
  5496. if ((this.Adapter.InsertCommand != null)) {
  5497. this.Adapter.InsertCommand.Connection = value;
  5498. }
  5499. if ((this.Adapter.DeleteCommand != null)) {
  5500. this.Adapter.DeleteCommand.Connection = value;
  5501. }
  5502. if ((this.Adapter.UpdateCommand != null)) {
  5503. this.Adapter.UpdateCommand.Connection = value;
  5504. }
  5505. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5506. if ((this.CommandCollection[i] != null)) {
  5507. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5508. }
  5509. }
  5510. }
  5511. }
  5512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5514. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5515. get {
  5516. return this._transaction;
  5517. }
  5518. set {
  5519. this._transaction = value;
  5520. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5521. this.CommandCollection[i].Transaction = this._transaction;
  5522. }
  5523. if (((this.Adapter != null)
  5524. && (this.Adapter.DeleteCommand != null))) {
  5525. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5526. }
  5527. if (((this.Adapter != null)
  5528. && (this.Adapter.InsertCommand != null))) {
  5529. this.Adapter.InsertCommand.Transaction = this._transaction;
  5530. }
  5531. if (((this.Adapter != null)
  5532. && (this.Adapter.UpdateCommand != null))) {
  5533. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5534. }
  5535. }
  5536. }
  5537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5539. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5540. get {
  5541. if ((this._commandCollection == null)) {
  5542. this.InitCommandCollection();
  5543. }
  5544. return this._commandCollection;
  5545. }
  5546. }
  5547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5549. public bool ClearBeforeFill {
  5550. get {
  5551. return this._clearBeforeFill;
  5552. }
  5553. set {
  5554. this._clearBeforeFill = value;
  5555. }
  5556. }
  5557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5559. private void InitAdapter() {
  5560. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5561. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5562. tableMapping.SourceTable = "Table";
  5563. tableMapping.DataSetTable = "Request";
  5564. tableMapping.ColumnMappings.Add("IdRequest", "IdRequest");
  5565. tableMapping.ColumnMappings.Add("IdStatus", "IdStatus");
  5566. tableMapping.ColumnMappings.Add("IdTypeDefect", "IdTypeDefect");
  5567. tableMapping.ColumnMappings.Add("IdClient", "IdClient");
  5568. tableMapping.ColumnMappings.Add("IdManager", "IdManager");
  5569. tableMapping.ColumnMappings.Add("DateAccepting", "DateAccepting");
  5570. tableMapping.ColumnMappings.Add("DateCompletion", "DateCompletion");
  5571. tableMapping.ColumnMappings.Add("EquipmentDefect", "EquipmentDefect");
  5572. tableMapping.ColumnMappings.Add("Description", "Description");
  5573. tableMapping.ColumnMappings.Add("Comment", "Comment");
  5574. this._adapter.TableMappings.Add(tableMapping);
  5575. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5576. this._adapter.DeleteCommand.Connection = this.Connection;
  5577. 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)))";
  5578. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5579. 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, "", "", ""));
  5580. 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, "", "", ""));
  5581. 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, "", "", ""));
  5582. 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, "", "", ""));
  5583. 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, "", "", ""));
  5584. 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, "", "", ""));
  5585. 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, "", "", ""));
  5586. 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, "", "", ""));
  5587. 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, "", "", ""));
  5588. 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, "", "", ""));
  5589. 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, "", "", ""));
  5590. 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, "", "", ""));
  5591. 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, "", "", ""));
  5592. 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, "", "", ""));
  5593. 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, "", "", ""));
  5594. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5595. this._adapter.InsertCommand.Connection = this.Connection;
  5596. 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);
  5597. SELECT IdRequest, IdStatus, IdTypeDefect, IdClient, IdManager, DateAccepting, DateCompletion, EquipmentDefect, Description, Comment FROM Request WHERE (IdRequest = SCOPE_IDENTITY())";
  5598. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5599. 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, "", "", ""));
  5600. 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, "", "", ""));
  5601. 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, "", "", ""));
  5602. 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, "", "", ""));
  5603. 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, "", "", ""));
  5604. 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, "", "", ""));
  5605. 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, "", "", ""));
  5606. 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, "", "", ""));
  5607. 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, "", "", ""));
  5608. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5609. this._adapter.UpdateCommand.Connection = this.Connection;
  5610. 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)));
  5611. SELECT IdRequest, IdStatus, IdTypeDefect, IdClient, IdManager, DateAccepting, DateCompletion, EquipmentDefect, Description, Comment FROM Request WHERE (IdRequest = @IdRequest)";
  5612. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5613. 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, "", "", ""));
  5614. 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, "", "", ""));
  5615. 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, "", "", ""));
  5616. 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, "", "", ""));
  5617. 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, "", "", ""));
  5618. 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, "", "", ""));
  5619. 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, "", "", ""));
  5620. 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, "", "", ""));
  5621. 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, "", "", ""));
  5622. 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, "", "", ""));
  5623. 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, "", "", ""));
  5624. 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, "", "", ""));
  5625. 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, "", "", ""));
  5626. 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, "", "", ""));
  5627. 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, "", "", ""));
  5628. 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, "", "", ""));
  5629. 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, "", "", ""));
  5630. 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, "", "", ""));
  5631. 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, "", "", ""));
  5632. 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, "", "", ""));
  5633. 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, "", "", ""));
  5634. 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, "", "", ""));
  5635. 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, "", "", ""));
  5636. 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, "", "", ""));
  5637. 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, "", "", ""));
  5638. }
  5639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5641. private void InitConnection() {
  5642. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5643. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  5644. }
  5645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5647. private void InitCommandCollection() {
  5648. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5649. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5650. this._commandCollection[0].Connection = this.Connection;
  5651. this._commandCollection[0].CommandText = "SELECT IdRequest, IdStatus, IdTypeDefect, IdClient, IdManager, DateAccepting, Dat" +
  5652. "eCompletion, EquipmentDefect, Description, Comment FROM dbo.Request";
  5653. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5654. }
  5655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5657. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5658. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5659. public virtual int Fill(TechServiceBAUDataSet.RequestDataTable dataTable) {
  5660. this.Adapter.SelectCommand = this.CommandCollection[0];
  5661. if ((this.ClearBeforeFill == true)) {
  5662. dataTable.Clear();
  5663. }
  5664. int returnValue = this.Adapter.Fill(dataTable);
  5665. return returnValue;
  5666. }
  5667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5669. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5670. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5671. public virtual TechServiceBAUDataSet.RequestDataTable GetData() {
  5672. this.Adapter.SelectCommand = this.CommandCollection[0];
  5673. TechServiceBAUDataSet.RequestDataTable dataTable = new TechServiceBAUDataSet.RequestDataTable();
  5674. this.Adapter.Fill(dataTable);
  5675. return dataTable;
  5676. }
  5677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5679. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5680. public virtual int Update(TechServiceBAUDataSet.RequestDataTable dataTable) {
  5681. return this.Adapter.Update(dataTable);
  5682. }
  5683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5685. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5686. public virtual int Update(TechServiceBAUDataSet dataSet) {
  5687. return this.Adapter.Update(dataSet, "Request");
  5688. }
  5689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5691. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5692. public virtual int Update(global::System.Data.DataRow dataRow) {
  5693. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5694. dataRow});
  5695. }
  5696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5698. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5699. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5700. return this.Adapter.Update(dataRows);
  5701. }
  5702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5704. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5705. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5706. 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) {
  5707. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdRequest));
  5708. if ((Original_IdStatus.HasValue == true)) {
  5709. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5710. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IdStatus.Value));
  5711. }
  5712. else {
  5713. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5714. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5715. }
  5716. if ((Original_IdTypeDefect.HasValue == true)) {
  5717. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5718. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IdTypeDefect.Value));
  5719. }
  5720. else {
  5721. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5722. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5723. }
  5724. if ((Original_IdClient.HasValue == true)) {
  5725. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5726. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_IdClient.Value));
  5727. }
  5728. else {
  5729. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5730. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5731. }
  5732. if ((Original_IdManager.HasValue == true)) {
  5733. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  5734. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_IdManager.Value));
  5735. }
  5736. else {
  5737. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  5738. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  5739. }
  5740. if ((Original_DateAccepting.HasValue == true)) {
  5741. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  5742. this.Adapter.DeleteCommand.Parameters[10].Value = ((System.DateTime)(Original_DateAccepting.Value));
  5743. }
  5744. else {
  5745. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  5746. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  5747. }
  5748. if ((Original_DateCompletion.HasValue == true)) {
  5749. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  5750. this.Adapter.DeleteCommand.Parameters[12].Value = ((System.DateTime)(Original_DateCompletion.Value));
  5751. }
  5752. else {
  5753. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  5754. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  5755. }
  5756. if ((Original_EquipmentDefect == null)) {
  5757. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  5758. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  5759. }
  5760. else {
  5761. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  5762. this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_EquipmentDefect));
  5763. }
  5764. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5765. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5766. != global::System.Data.ConnectionState.Open)) {
  5767. this.Adapter.DeleteCommand.Connection.Open();
  5768. }
  5769. try {
  5770. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5771. return returnValue;
  5772. }
  5773. finally {
  5774. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5775. this.Adapter.DeleteCommand.Connection.Close();
  5776. }
  5777. }
  5778. }
  5779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5781. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5782. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5783. 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) {
  5784. if ((IdStatus.HasValue == true)) {
  5785. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdStatus.Value));
  5786. }
  5787. else {
  5788. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5789. }
  5790. if ((IdTypeDefect.HasValue == true)) {
  5791. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdTypeDefect.Value));
  5792. }
  5793. else {
  5794. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5795. }
  5796. if ((IdClient.HasValue == true)) {
  5797. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(IdClient.Value));
  5798. }
  5799. else {
  5800. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5801. }
  5802. if ((IdManager.HasValue == true)) {
  5803. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(IdManager.Value));
  5804. }
  5805. else {
  5806. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5807. }
  5808. if ((DateAccepting.HasValue == true)) {
  5809. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(DateAccepting.Value));
  5810. }
  5811. else {
  5812. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5813. }
  5814. if ((DateCompletion.HasValue == true)) {
  5815. this.Adapter.InsertCommand.Parameters[5].Value = ((System.DateTime)(DateCompletion.Value));
  5816. }
  5817. else {
  5818. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  5819. }
  5820. if ((EquipmentDefect == null)) {
  5821. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  5822. }
  5823. else {
  5824. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(EquipmentDefect));
  5825. }
  5826. if ((Description == null)) {
  5827. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  5828. }
  5829. else {
  5830. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Description));
  5831. }
  5832. if ((Comment == null)) {
  5833. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  5834. }
  5835. else {
  5836. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(Comment));
  5837. }
  5838. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5839. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5840. != global::System.Data.ConnectionState.Open)) {
  5841. this.Adapter.InsertCommand.Connection.Open();
  5842. }
  5843. try {
  5844. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5845. return returnValue;
  5846. }
  5847. finally {
  5848. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5849. this.Adapter.InsertCommand.Connection.Close();
  5850. }
  5851. }
  5852. }
  5853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5855. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5856. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5857. public virtual int Update(
  5858. global::System.Nullable<int> IdStatus,
  5859. global::System.Nullable<int> IdTypeDefect,
  5860. global::System.Nullable<int> IdClient,
  5861. global::System.Nullable<int> IdManager,
  5862. global::System.Nullable<global::System.DateTime> DateAccepting,
  5863. global::System.Nullable<global::System.DateTime> DateCompletion,
  5864. string EquipmentDefect,
  5865. string Description,
  5866. string Comment,
  5867. int Original_IdRequest,
  5868. global::System.Nullable<int> Original_IdStatus,
  5869. global::System.Nullable<int> Original_IdTypeDefect,
  5870. global::System.Nullable<int> Original_IdClient,
  5871. global::System.Nullable<int> Original_IdManager,
  5872. global::System.Nullable<global::System.DateTime> Original_DateAccepting,
  5873. global::System.Nullable<global::System.DateTime> Original_DateCompletion,
  5874. string Original_EquipmentDefect,
  5875. int IdRequest) {
  5876. if ((IdStatus.HasValue == true)) {
  5877. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdStatus.Value));
  5878. }
  5879. else {
  5880. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5881. }
  5882. if ((IdTypeDefect.HasValue == true)) {
  5883. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdTypeDefect.Value));
  5884. }
  5885. else {
  5886. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5887. }
  5888. if ((IdClient.HasValue == true)) {
  5889. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(IdClient.Value));
  5890. }
  5891. else {
  5892. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5893. }
  5894. if ((IdManager.HasValue == true)) {
  5895. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(IdManager.Value));
  5896. }
  5897. else {
  5898. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5899. }
  5900. if ((DateAccepting.HasValue == true)) {
  5901. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(DateAccepting.Value));
  5902. }
  5903. else {
  5904. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5905. }
  5906. if ((DateCompletion.HasValue == true)) {
  5907. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(DateCompletion.Value));
  5908. }
  5909. else {
  5910. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5911. }
  5912. if ((EquipmentDefect == null)) {
  5913. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  5914. }
  5915. else {
  5916. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(EquipmentDefect));
  5917. }
  5918. if ((Description == null)) {
  5919. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  5920. }
  5921. else {
  5922. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Description));
  5923. }
  5924. if ((Comment == null)) {
  5925. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  5926. }
  5927. else {
  5928. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Comment));
  5929. }
  5930. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_IdRequest));
  5931. if ((Original_IdStatus.HasValue == true)) {
  5932. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  5933. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_IdStatus.Value));
  5934. }
  5935. else {
  5936. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  5937. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  5938. }
  5939. if ((Original_IdTypeDefect.HasValue == true)) {
  5940. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  5941. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_IdTypeDefect.Value));
  5942. }
  5943. else {
  5944. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  5945. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  5946. }
  5947. if ((Original_IdClient.HasValue == true)) {
  5948. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  5949. this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_IdClient.Value));
  5950. }
  5951. else {
  5952. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  5953. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  5954. }
  5955. if ((Original_IdManager.HasValue == true)) {
  5956. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  5957. this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_IdManager.Value));
  5958. }
  5959. else {
  5960. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  5961. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  5962. }
  5963. if ((Original_DateAccepting.HasValue == true)) {
  5964. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  5965. this.Adapter.UpdateCommand.Parameters[19].Value = ((System.DateTime)(Original_DateAccepting.Value));
  5966. }
  5967. else {
  5968. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  5969. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  5970. }
  5971. if ((Original_DateCompletion.HasValue == true)) {
  5972. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  5973. this.Adapter.UpdateCommand.Parameters[21].Value = ((System.DateTime)(Original_DateCompletion.Value));
  5974. }
  5975. else {
  5976. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  5977. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  5978. }
  5979. if ((Original_EquipmentDefect == null)) {
  5980. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
  5981. this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
  5982. }
  5983. else {
  5984. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
  5985. this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_EquipmentDefect));
  5986. }
  5987. this.Adapter.UpdateCommand.Parameters[24].Value = ((int)(IdRequest));
  5988. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5989. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5990. != global::System.Data.ConnectionState.Open)) {
  5991. this.Adapter.UpdateCommand.Connection.Open();
  5992. }
  5993. try {
  5994. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5995. return returnValue;
  5996. }
  5997. finally {
  5998. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5999. this.Adapter.UpdateCommand.Connection.Close();
  6000. }
  6001. }
  6002. }
  6003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6005. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6006. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6007. public virtual int Update(
  6008. global::System.Nullable<int> IdStatus,
  6009. global::System.Nullable<int> IdTypeDefect,
  6010. global::System.Nullable<int> IdClient,
  6011. global::System.Nullable<int> IdManager,
  6012. global::System.Nullable<global::System.DateTime> DateAccepting,
  6013. global::System.Nullable<global::System.DateTime> DateCompletion,
  6014. string EquipmentDefect,
  6015. string Description,
  6016. string Comment,
  6017. int Original_IdRequest,
  6018. global::System.Nullable<int> Original_IdStatus,
  6019. global::System.Nullable<int> Original_IdTypeDefect,
  6020. global::System.Nullable<int> Original_IdClient,
  6021. global::System.Nullable<int> Original_IdManager,
  6022. global::System.Nullable<global::System.DateTime> Original_DateAccepting,
  6023. global::System.Nullable<global::System.DateTime> Original_DateCompletion,
  6024. string Original_EquipmentDefect) {
  6025. 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);
  6026. }
  6027. }
  6028. /// <summary>
  6029. ///Represents the connection and commands used to retrieve and save data.
  6030. ///</summary>
  6031. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6032. [global::System.ComponentModel.ToolboxItem(true)]
  6033. [global::System.ComponentModel.DataObjectAttribute(true)]
  6034. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6035. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6036. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6037. public partial class RoleTableAdapter : global::System.ComponentModel.Component {
  6038. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6039. private global::System.Data.SqlClient.SqlConnection _connection;
  6040. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6041. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6042. private bool _clearBeforeFill;
  6043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6045. public RoleTableAdapter() {
  6046. this.ClearBeforeFill = true;
  6047. }
  6048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6050. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6051. get {
  6052. if ((this._adapter == null)) {
  6053. this.InitAdapter();
  6054. }
  6055. return this._adapter;
  6056. }
  6057. }
  6058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6060. internal global::System.Data.SqlClient.SqlConnection Connection {
  6061. get {
  6062. if ((this._connection == null)) {
  6063. this.InitConnection();
  6064. }
  6065. return this._connection;
  6066. }
  6067. set {
  6068. this._connection = value;
  6069. if ((this.Adapter.InsertCommand != null)) {
  6070. this.Adapter.InsertCommand.Connection = value;
  6071. }
  6072. if ((this.Adapter.DeleteCommand != null)) {
  6073. this.Adapter.DeleteCommand.Connection = value;
  6074. }
  6075. if ((this.Adapter.UpdateCommand != null)) {
  6076. this.Adapter.UpdateCommand.Connection = value;
  6077. }
  6078. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6079. if ((this.CommandCollection[i] != null)) {
  6080. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6081. }
  6082. }
  6083. }
  6084. }
  6085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6087. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6088. get {
  6089. return this._transaction;
  6090. }
  6091. set {
  6092. this._transaction = value;
  6093. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6094. this.CommandCollection[i].Transaction = this._transaction;
  6095. }
  6096. if (((this.Adapter != null)
  6097. && (this.Adapter.DeleteCommand != null))) {
  6098. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6099. }
  6100. if (((this.Adapter != null)
  6101. && (this.Adapter.InsertCommand != null))) {
  6102. this.Adapter.InsertCommand.Transaction = this._transaction;
  6103. }
  6104. if (((this.Adapter != null)
  6105. && (this.Adapter.UpdateCommand != null))) {
  6106. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6107. }
  6108. }
  6109. }
  6110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6112. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6113. get {
  6114. if ((this._commandCollection == null)) {
  6115. this.InitCommandCollection();
  6116. }
  6117. return this._commandCollection;
  6118. }
  6119. }
  6120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6122. public bool ClearBeforeFill {
  6123. get {
  6124. return this._clearBeforeFill;
  6125. }
  6126. set {
  6127. this._clearBeforeFill = value;
  6128. }
  6129. }
  6130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6132. private void InitAdapter() {
  6133. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6134. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6135. tableMapping.SourceTable = "Table";
  6136. tableMapping.DataSetTable = "Role";
  6137. tableMapping.ColumnMappings.Add("IdRole", "IdRole");
  6138. tableMapping.ColumnMappings.Add("Title", "Title");
  6139. this._adapter.TableMappings.Add(tableMapping);
  6140. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6141. this._adapter.DeleteCommand.Connection = this.Connection;
  6142. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Role] WHERE (([IdRole] = @Original_IdRole) AND ((@IsNull_Title" +
  6143. " = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))";
  6144. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6145. 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, "", "", ""));
  6146. 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, "", "", ""));
  6147. 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, "", "", ""));
  6148. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6149. this._adapter.InsertCommand.Connection = this.Connection;
  6150. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Role] ([Title]) VALUES (@Title);\r\nSELECT IdRole, Title FROM Ro" +
  6151. "le WHERE (IdRole = SCOPE_IDENTITY())";
  6152. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6153. 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, "", "", ""));
  6154. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6155. this._adapter.UpdateCommand.Connection = this.Connection;
  6156. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Role] SET [Title] = @Title WHERE (([IdRole] = @Original_IdRole) AND" +
  6157. " ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)));\r\nSEL" +
  6158. "ECT IdRole, Title FROM Role WHERE (IdRole = @IdRole)";
  6159. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6160. 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, "", "", ""));
  6161. 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, "", "", ""));
  6162. 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, "", "", ""));
  6163. 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, "", "", ""));
  6164. 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, "", "", ""));
  6165. }
  6166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6168. private void InitConnection() {
  6169. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6170. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  6171. }
  6172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6174. private void InitCommandCollection() {
  6175. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6176. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6177. this._commandCollection[0].Connection = this.Connection;
  6178. this._commandCollection[0].CommandText = "SELECT IdRole, Title FROM dbo.Role";
  6179. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6180. }
  6181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6183. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6184. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6185. public virtual int Fill(TechServiceBAUDataSet.RoleDataTable dataTable) {
  6186. this.Adapter.SelectCommand = this.CommandCollection[0];
  6187. if ((this.ClearBeforeFill == true)) {
  6188. dataTable.Clear();
  6189. }
  6190. int returnValue = this.Adapter.Fill(dataTable);
  6191. return returnValue;
  6192. }
  6193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6195. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6196. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6197. public virtual TechServiceBAUDataSet.RoleDataTable GetData() {
  6198. this.Adapter.SelectCommand = this.CommandCollection[0];
  6199. TechServiceBAUDataSet.RoleDataTable dataTable = new TechServiceBAUDataSet.RoleDataTable();
  6200. this.Adapter.Fill(dataTable);
  6201. return dataTable;
  6202. }
  6203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6205. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6206. public virtual int Update(TechServiceBAUDataSet.RoleDataTable dataTable) {
  6207. return this.Adapter.Update(dataTable);
  6208. }
  6209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6211. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6212. public virtual int Update(TechServiceBAUDataSet dataSet) {
  6213. return this.Adapter.Update(dataSet, "Role");
  6214. }
  6215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6217. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6218. public virtual int Update(global::System.Data.DataRow dataRow) {
  6219. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6220. dataRow});
  6221. }
  6222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6224. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6225. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6226. return this.Adapter.Update(dataRows);
  6227. }
  6228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6230. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6231. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6232. public virtual int Delete(int Original_IdRole, string Original_Title) {
  6233. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdRole));
  6234. if ((Original_Title == null)) {
  6235. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6236. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6237. }
  6238. else {
  6239. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6240. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Title));
  6241. }
  6242. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6243. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6244. != global::System.Data.ConnectionState.Open)) {
  6245. this.Adapter.DeleteCommand.Connection.Open();
  6246. }
  6247. try {
  6248. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6249. return returnValue;
  6250. }
  6251. finally {
  6252. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6253. this.Adapter.DeleteCommand.Connection.Close();
  6254. }
  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.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6260. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6261. public virtual int Insert(string Title) {
  6262. if ((Title == null)) {
  6263. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6264. }
  6265. else {
  6266. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  6267. }
  6268. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6269. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6270. != global::System.Data.ConnectionState.Open)) {
  6271. this.Adapter.InsertCommand.Connection.Open();
  6272. }
  6273. try {
  6274. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6275. return returnValue;
  6276. }
  6277. finally {
  6278. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6279. this.Adapter.InsertCommand.Connection.Close();
  6280. }
  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.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6286. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6287. public virtual int Update(string Title, int Original_IdRole, string Original_Title, int IdRole) {
  6288. if ((Title == null)) {
  6289. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6290. }
  6291. else {
  6292. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  6293. }
  6294. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IdRole));
  6295. if ((Original_Title == null)) {
  6296. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  6297. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6298. }
  6299. else {
  6300. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  6301. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  6302. }
  6303. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IdRole));
  6304. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6305. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6306. != global::System.Data.ConnectionState.Open)) {
  6307. this.Adapter.UpdateCommand.Connection.Open();
  6308. }
  6309. try {
  6310. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6311. return returnValue;
  6312. }
  6313. finally {
  6314. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6315. this.Adapter.UpdateCommand.Connection.Close();
  6316. }
  6317. }
  6318. }
  6319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6321. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6322. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6323. public virtual int Update(string Title, int Original_IdRole, string Original_Title) {
  6324. return this.Update(Title, Original_IdRole, Original_Title, Original_IdRole);
  6325. }
  6326. }
  6327. /// <summary>
  6328. ///Represents the connection and commands used to retrieve and save data.
  6329. ///</summary>
  6330. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6331. [global::System.ComponentModel.ToolboxItem(true)]
  6332. [global::System.ComponentModel.DataObjectAttribute(true)]
  6333. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6334. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6335. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6336. public partial class StatusTableAdapter : global::System.ComponentModel.Component {
  6337. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6338. private global::System.Data.SqlClient.SqlConnection _connection;
  6339. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6340. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6341. private bool _clearBeforeFill;
  6342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6344. public StatusTableAdapter() {
  6345. this.ClearBeforeFill = true;
  6346. }
  6347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6349. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6350. get {
  6351. if ((this._adapter == null)) {
  6352. this.InitAdapter();
  6353. }
  6354. return this._adapter;
  6355. }
  6356. }
  6357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6359. internal global::System.Data.SqlClient.SqlConnection Connection {
  6360. get {
  6361. if ((this._connection == null)) {
  6362. this.InitConnection();
  6363. }
  6364. return this._connection;
  6365. }
  6366. set {
  6367. this._connection = value;
  6368. if ((this.Adapter.InsertCommand != null)) {
  6369. this.Adapter.InsertCommand.Connection = value;
  6370. }
  6371. if ((this.Adapter.DeleteCommand != null)) {
  6372. this.Adapter.DeleteCommand.Connection = value;
  6373. }
  6374. if ((this.Adapter.UpdateCommand != null)) {
  6375. this.Adapter.UpdateCommand.Connection = value;
  6376. }
  6377. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6378. if ((this.CommandCollection[i] != null)) {
  6379. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6380. }
  6381. }
  6382. }
  6383. }
  6384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6386. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6387. get {
  6388. return this._transaction;
  6389. }
  6390. set {
  6391. this._transaction = value;
  6392. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6393. this.CommandCollection[i].Transaction = this._transaction;
  6394. }
  6395. if (((this.Adapter != null)
  6396. && (this.Adapter.DeleteCommand != null))) {
  6397. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6398. }
  6399. if (((this.Adapter != null)
  6400. && (this.Adapter.InsertCommand != null))) {
  6401. this.Adapter.InsertCommand.Transaction = this._transaction;
  6402. }
  6403. if (((this.Adapter != null)
  6404. && (this.Adapter.UpdateCommand != null))) {
  6405. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6406. }
  6407. }
  6408. }
  6409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6411. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6412. get {
  6413. if ((this._commandCollection == null)) {
  6414. this.InitCommandCollection();
  6415. }
  6416. return this._commandCollection;
  6417. }
  6418. }
  6419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6421. public bool ClearBeforeFill {
  6422. get {
  6423. return this._clearBeforeFill;
  6424. }
  6425. set {
  6426. this._clearBeforeFill = value;
  6427. }
  6428. }
  6429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6431. private void InitAdapter() {
  6432. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6433. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6434. tableMapping.SourceTable = "Table";
  6435. tableMapping.DataSetTable = "Status";
  6436. tableMapping.ColumnMappings.Add("IdStatus", "IdStatus");
  6437. tableMapping.ColumnMappings.Add("Title", "Title");
  6438. this._adapter.TableMappings.Add(tableMapping);
  6439. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6440. this._adapter.DeleteCommand.Connection = this.Connection;
  6441. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Status] WHERE (([IdStatus] = @Original_IdStatus) AND ((@IsNull" +
  6442. "_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))";
  6443. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6444. 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, "", "", ""));
  6445. 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, "", "", ""));
  6446. 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, "", "", ""));
  6447. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6448. this._adapter.InsertCommand.Connection = this.Connection;
  6449. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Status] ([Title]) VALUES (@Title);\r\nSELECT IdStatus, Title FRO" +
  6450. "M Status WHERE (IdStatus = SCOPE_IDENTITY())";
  6451. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6452. 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, "", "", ""));
  6453. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6454. this._adapter.UpdateCommand.Connection = this.Connection;
  6455. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Status] SET [Title] = @Title WHERE (([IdStatus] = @Original_IdStatu" +
  6456. "s) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))" +
  6457. ";\r\nSELECT IdStatus, Title FROM Status WHERE (IdStatus = @IdStatus)";
  6458. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6459. 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, "", "", ""));
  6460. 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, "", "", ""));
  6461. 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, "", "", ""));
  6462. 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, "", "", ""));
  6463. 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, "", "", ""));
  6464. }
  6465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6467. private void InitConnection() {
  6468. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6469. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  6470. }
  6471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6473. private void InitCommandCollection() {
  6474. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6475. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6476. this._commandCollection[0].Connection = this.Connection;
  6477. this._commandCollection[0].CommandText = "SELECT IdStatus, Title FROM dbo.Status";
  6478. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6479. }
  6480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6482. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6483. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6484. public virtual int Fill(TechServiceBAUDataSet.StatusDataTable dataTable) {
  6485. this.Adapter.SelectCommand = this.CommandCollection[0];
  6486. if ((this.ClearBeforeFill == true)) {
  6487. dataTable.Clear();
  6488. }
  6489. int returnValue = this.Adapter.Fill(dataTable);
  6490. return returnValue;
  6491. }
  6492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6494. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6495. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6496. public virtual TechServiceBAUDataSet.StatusDataTable GetData() {
  6497. this.Adapter.SelectCommand = this.CommandCollection[0];
  6498. TechServiceBAUDataSet.StatusDataTable dataTable = new TechServiceBAUDataSet.StatusDataTable();
  6499. this.Adapter.Fill(dataTable);
  6500. return dataTable;
  6501. }
  6502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6504. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6505. public virtual int Update(TechServiceBAUDataSet.StatusDataTable dataTable) {
  6506. return this.Adapter.Update(dataTable);
  6507. }
  6508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6510. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6511. public virtual int Update(TechServiceBAUDataSet dataSet) {
  6512. return this.Adapter.Update(dataSet, "Status");
  6513. }
  6514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6516. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6517. public virtual int Update(global::System.Data.DataRow dataRow) {
  6518. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6519. dataRow});
  6520. }
  6521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6523. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6524. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6525. return this.Adapter.Update(dataRows);
  6526. }
  6527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6529. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6530. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6531. public virtual int Delete(int Original_IdStatus, string Original_Title) {
  6532. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdStatus));
  6533. if ((Original_Title == null)) {
  6534. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6535. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6536. }
  6537. else {
  6538. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6539. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Title));
  6540. }
  6541. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6542. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6543. != global::System.Data.ConnectionState.Open)) {
  6544. this.Adapter.DeleteCommand.Connection.Open();
  6545. }
  6546. try {
  6547. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6548. return returnValue;
  6549. }
  6550. finally {
  6551. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6552. this.Adapter.DeleteCommand.Connection.Close();
  6553. }
  6554. }
  6555. }
  6556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6558. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6559. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6560. public virtual int Insert(string Title) {
  6561. if ((Title == null)) {
  6562. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6563. }
  6564. else {
  6565. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  6566. }
  6567. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6568. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6569. != global::System.Data.ConnectionState.Open)) {
  6570. this.Adapter.InsertCommand.Connection.Open();
  6571. }
  6572. try {
  6573. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6574. return returnValue;
  6575. }
  6576. finally {
  6577. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6578. this.Adapter.InsertCommand.Connection.Close();
  6579. }
  6580. }
  6581. }
  6582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6584. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6585. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6586. public virtual int Update(string Title, int Original_IdStatus, string Original_Title, int IdStatus) {
  6587. if ((Title == null)) {
  6588. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6589. }
  6590. else {
  6591. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  6592. }
  6593. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IdStatus));
  6594. if ((Original_Title == null)) {
  6595. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  6596. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6597. }
  6598. else {
  6599. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  6600. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  6601. }
  6602. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IdStatus));
  6603. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6604. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6605. != global::System.Data.ConnectionState.Open)) {
  6606. this.Adapter.UpdateCommand.Connection.Open();
  6607. }
  6608. try {
  6609. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6610. return returnValue;
  6611. }
  6612. finally {
  6613. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6614. this.Adapter.UpdateCommand.Connection.Close();
  6615. }
  6616. }
  6617. }
  6618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6620. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6621. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6622. public virtual int Update(string Title, int Original_IdStatus, string Original_Title) {
  6623. return this.Update(Title, Original_IdStatus, Original_Title, Original_IdStatus);
  6624. }
  6625. }
  6626. /// <summary>
  6627. ///Represents the connection and commands used to retrieve and save data.
  6628. ///</summary>
  6629. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6630. [global::System.ComponentModel.ToolboxItem(true)]
  6631. [global::System.ComponentModel.DataObjectAttribute(true)]
  6632. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6633. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6634. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6635. public partial class TypeDefectTableAdapter : global::System.ComponentModel.Component {
  6636. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6637. private global::System.Data.SqlClient.SqlConnection _connection;
  6638. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6639. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6640. private bool _clearBeforeFill;
  6641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6643. public TypeDefectTableAdapter() {
  6644. this.ClearBeforeFill = true;
  6645. }
  6646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6648. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6649. get {
  6650. if ((this._adapter == null)) {
  6651. this.InitAdapter();
  6652. }
  6653. return this._adapter;
  6654. }
  6655. }
  6656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6658. internal global::System.Data.SqlClient.SqlConnection Connection {
  6659. get {
  6660. if ((this._connection == null)) {
  6661. this.InitConnection();
  6662. }
  6663. return this._connection;
  6664. }
  6665. set {
  6666. this._connection = value;
  6667. if ((this.Adapter.InsertCommand != null)) {
  6668. this.Adapter.InsertCommand.Connection = value;
  6669. }
  6670. if ((this.Adapter.DeleteCommand != null)) {
  6671. this.Adapter.DeleteCommand.Connection = value;
  6672. }
  6673. if ((this.Adapter.UpdateCommand != null)) {
  6674. this.Adapter.UpdateCommand.Connection = value;
  6675. }
  6676. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6677. if ((this.CommandCollection[i] != null)) {
  6678. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6679. }
  6680. }
  6681. }
  6682. }
  6683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6685. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6686. get {
  6687. return this._transaction;
  6688. }
  6689. set {
  6690. this._transaction = value;
  6691. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6692. this.CommandCollection[i].Transaction = this._transaction;
  6693. }
  6694. if (((this.Adapter != null)
  6695. && (this.Adapter.DeleteCommand != null))) {
  6696. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6697. }
  6698. if (((this.Adapter != null)
  6699. && (this.Adapter.InsertCommand != null))) {
  6700. this.Adapter.InsertCommand.Transaction = this._transaction;
  6701. }
  6702. if (((this.Adapter != null)
  6703. && (this.Adapter.UpdateCommand != null))) {
  6704. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6705. }
  6706. }
  6707. }
  6708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6710. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6711. get {
  6712. if ((this._commandCollection == null)) {
  6713. this.InitCommandCollection();
  6714. }
  6715. return this._commandCollection;
  6716. }
  6717. }
  6718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6720. public bool ClearBeforeFill {
  6721. get {
  6722. return this._clearBeforeFill;
  6723. }
  6724. set {
  6725. this._clearBeforeFill = value;
  6726. }
  6727. }
  6728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6730. private void InitAdapter() {
  6731. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6732. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6733. tableMapping.SourceTable = "Table";
  6734. tableMapping.DataSetTable = "TypeDefect";
  6735. tableMapping.ColumnMappings.Add("IdTypeDefect", "IdTypeDefect");
  6736. tableMapping.ColumnMappings.Add("Title", "Title");
  6737. this._adapter.TableMappings.Add(tableMapping);
  6738. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6739. this._adapter.DeleteCommand.Connection = this.Connection;
  6740. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TypeDefect] WHERE (([IdTypeDefect] = @Original_IdTypeDefect) A" +
  6741. "ND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))";
  6742. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6743. 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, "", "", ""));
  6744. 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, "", "", ""));
  6745. 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, "", "", ""));
  6746. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6747. this._adapter.InsertCommand.Connection = this.Connection;
  6748. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TypeDefect] ([Title]) VALUES (@Title);\r\nSELECT IdTypeDefect, T" +
  6749. "itle FROM TypeDefect WHERE (IdTypeDefect = SCOPE_IDENTITY())";
  6750. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6751. 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, "", "", ""));
  6752. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6753. this._adapter.UpdateCommand.Connection = this.Connection;
  6754. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TypeDefect] SET [Title] = @Title WHERE (([IdTypeDefect] = @Original" +
  6755. "_IdTypeDefect) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Origi" +
  6756. "nal_Title)));\r\nSELECT IdTypeDefect, Title FROM TypeDefect WHERE (IdTypeDefect = " +
  6757. "@IdTypeDefect)";
  6758. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6759. 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, "", "", ""));
  6760. 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, "", "", ""));
  6761. 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, "", "", ""));
  6762. 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, "", "", ""));
  6763. 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, "", "", ""));
  6764. }
  6765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6767. private void InitConnection() {
  6768. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6769. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  6770. }
  6771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6773. private void InitCommandCollection() {
  6774. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6775. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6776. this._commandCollection[0].Connection = this.Connection;
  6777. this._commandCollection[0].CommandText = "SELECT IdTypeDefect, Title FROM dbo.TypeDefect";
  6778. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6779. }
  6780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6782. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6783. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6784. public virtual int Fill(TechServiceBAUDataSet.TypeDefectDataTable dataTable) {
  6785. this.Adapter.SelectCommand = this.CommandCollection[0];
  6786. if ((this.ClearBeforeFill == true)) {
  6787. dataTable.Clear();
  6788. }
  6789. int returnValue = this.Adapter.Fill(dataTable);
  6790. return returnValue;
  6791. }
  6792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6794. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6795. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6796. public virtual TechServiceBAUDataSet.TypeDefectDataTable GetData() {
  6797. this.Adapter.SelectCommand = this.CommandCollection[0];
  6798. TechServiceBAUDataSet.TypeDefectDataTable dataTable = new TechServiceBAUDataSet.TypeDefectDataTable();
  6799. this.Adapter.Fill(dataTable);
  6800. return dataTable;
  6801. }
  6802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6804. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6805. public virtual int Update(TechServiceBAUDataSet.TypeDefectDataTable dataTable) {
  6806. return this.Adapter.Update(dataTable);
  6807. }
  6808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6810. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6811. public virtual int Update(TechServiceBAUDataSet dataSet) {
  6812. return this.Adapter.Update(dataSet, "TypeDefect");
  6813. }
  6814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6816. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6817. public virtual int Update(global::System.Data.DataRow dataRow) {
  6818. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6819. dataRow});
  6820. }
  6821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6823. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6824. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6825. return this.Adapter.Update(dataRows);
  6826. }
  6827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6829. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6830. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6831. public virtual int Delete(int Original_IdTypeDefect, string Original_Title) {
  6832. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdTypeDefect));
  6833. if ((Original_Title == null)) {
  6834. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6835. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6836. }
  6837. else {
  6838. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6839. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Title));
  6840. }
  6841. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6842. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6843. != global::System.Data.ConnectionState.Open)) {
  6844. this.Adapter.DeleteCommand.Connection.Open();
  6845. }
  6846. try {
  6847. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6848. return returnValue;
  6849. }
  6850. finally {
  6851. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6852. this.Adapter.DeleteCommand.Connection.Close();
  6853. }
  6854. }
  6855. }
  6856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6858. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6859. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6860. public virtual int Insert(string Title) {
  6861. if ((Title == null)) {
  6862. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6863. }
  6864. else {
  6865. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  6866. }
  6867. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6868. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6869. != global::System.Data.ConnectionState.Open)) {
  6870. this.Adapter.InsertCommand.Connection.Open();
  6871. }
  6872. try {
  6873. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6874. return returnValue;
  6875. }
  6876. finally {
  6877. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6878. this.Adapter.InsertCommand.Connection.Close();
  6879. }
  6880. }
  6881. }
  6882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6884. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6885. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6886. public virtual int Update(string Title, int Original_IdTypeDefect, string Original_Title, int IdTypeDefect) {
  6887. if ((Title == null)) {
  6888. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6889. }
  6890. else {
  6891. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  6892. }
  6893. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IdTypeDefect));
  6894. if ((Original_Title == null)) {
  6895. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  6896. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6897. }
  6898. else {
  6899. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  6900. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  6901. }
  6902. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IdTypeDefect));
  6903. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6904. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6905. != global::System.Data.ConnectionState.Open)) {
  6906. this.Adapter.UpdateCommand.Connection.Open();
  6907. }
  6908. try {
  6909. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6910. return returnValue;
  6911. }
  6912. finally {
  6913. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6914. this.Adapter.UpdateCommand.Connection.Close();
  6915. }
  6916. }
  6917. }
  6918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6920. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6921. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6922. public virtual int Update(string Title, int Original_IdTypeDefect, string Original_Title) {
  6923. return this.Update(Title, Original_IdTypeDefect, Original_Title, Original_IdTypeDefect);
  6924. }
  6925. }
  6926. /// <summary>
  6927. ///Represents the connection and commands used to retrieve and save data.
  6928. ///</summary>
  6929. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6930. [global::System.ComponentModel.ToolboxItem(true)]
  6931. [global::System.ComponentModel.DataObjectAttribute(true)]
  6932. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6933. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6934. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6935. public partial class AllTypeDefectTableAdapter : global::System.ComponentModel.Component {
  6936. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6937. private global::System.Data.SqlClient.SqlConnection _connection;
  6938. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6939. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6940. private bool _clearBeforeFill;
  6941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6943. public AllTypeDefectTableAdapter() {
  6944. this.ClearBeforeFill = true;
  6945. }
  6946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6948. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6949. get {
  6950. if ((this._adapter == null)) {
  6951. this.InitAdapter();
  6952. }
  6953. return this._adapter;
  6954. }
  6955. }
  6956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6958. internal global::System.Data.SqlClient.SqlConnection Connection {
  6959. get {
  6960. if ((this._connection == null)) {
  6961. this.InitConnection();
  6962. }
  6963. return this._connection;
  6964. }
  6965. set {
  6966. this._connection = value;
  6967. if ((this.Adapter.InsertCommand != null)) {
  6968. this.Adapter.InsertCommand.Connection = value;
  6969. }
  6970. if ((this.Adapter.DeleteCommand != null)) {
  6971. this.Adapter.DeleteCommand.Connection = value;
  6972. }
  6973. if ((this.Adapter.UpdateCommand != null)) {
  6974. this.Adapter.UpdateCommand.Connection = value;
  6975. }
  6976. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6977. if ((this.CommandCollection[i] != null)) {
  6978. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6979. }
  6980. }
  6981. }
  6982. }
  6983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6985. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6986. get {
  6987. return this._transaction;
  6988. }
  6989. set {
  6990. this._transaction = value;
  6991. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6992. this.CommandCollection[i].Transaction = this._transaction;
  6993. }
  6994. if (((this.Adapter != null)
  6995. && (this.Adapter.DeleteCommand != null))) {
  6996. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6997. }
  6998. if (((this.Adapter != null)
  6999. && (this.Adapter.InsertCommand != null))) {
  7000. this.Adapter.InsertCommand.Transaction = this._transaction;
  7001. }
  7002. if (((this.Adapter != null)
  7003. && (this.Adapter.UpdateCommand != null))) {
  7004. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7005. }
  7006. }
  7007. }
  7008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7010. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7011. get {
  7012. if ((this._commandCollection == null)) {
  7013. this.InitCommandCollection();
  7014. }
  7015. return this._commandCollection;
  7016. }
  7017. }
  7018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7020. public bool ClearBeforeFill {
  7021. get {
  7022. return this._clearBeforeFill;
  7023. }
  7024. set {
  7025. this._clearBeforeFill = value;
  7026. }
  7027. }
  7028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7030. private void InitAdapter() {
  7031. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7032. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7033. tableMapping.SourceTable = "Table";
  7034. tableMapping.DataSetTable = "AllTypeDefect";
  7035. tableMapping.ColumnMappings.Add("Column1", "TypeDefect");
  7036. this._adapter.TableMappings.Add(tableMapping);
  7037. }
  7038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7040. private void InitConnection() {
  7041. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7042. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  7043. }
  7044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7046. private void InitCommandCollection() {
  7047. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7048. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7049. this._commandCollection[0].Connection = this.Connection;
  7050. this._commandCollection[0].CommandText = "Select \'Все заявки\'\r\nunion all\r\nSelect Title\r\nFrom TypeDefect";
  7051. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7052. }
  7053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7055. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7056. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7057. public virtual int Fill(TechServiceBAUDataSet.AllTypeDefectDataTable dataTable) {
  7058. this.Adapter.SelectCommand = this.CommandCollection[0];
  7059. if ((this.ClearBeforeFill == true)) {
  7060. dataTable.Clear();
  7061. }
  7062. int returnValue = this.Adapter.Fill(dataTable);
  7063. return returnValue;
  7064. }
  7065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7067. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7068. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7069. public virtual TechServiceBAUDataSet.AllTypeDefectDataTable GetData() {
  7070. this.Adapter.SelectCommand = this.CommandCollection[0];
  7071. TechServiceBAUDataSet.AllTypeDefectDataTable dataTable = new TechServiceBAUDataSet.AllTypeDefectDataTable();
  7072. this.Adapter.Fill(dataTable);
  7073. return dataTable;
  7074. }
  7075. }
  7076. /// <summary>
  7077. ///Represents the connection and commands used to retrieve and save data.
  7078. ///</summary>
  7079. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7080. [global::System.ComponentModel.ToolboxItem(true)]
  7081. [global::System.ComponentModel.DataObjectAttribute(true)]
  7082. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7083. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7084. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7085. public partial class ClientFIOTableAdapter : global::System.ComponentModel.Component {
  7086. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7087. private global::System.Data.SqlClient.SqlConnection _connection;
  7088. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7089. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7090. private bool _clearBeforeFill;
  7091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7093. public ClientFIOTableAdapter() {
  7094. this.ClearBeforeFill = true;
  7095. }
  7096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7098. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7099. get {
  7100. if ((this._adapter == null)) {
  7101. this.InitAdapter();
  7102. }
  7103. return this._adapter;
  7104. }
  7105. }
  7106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7108. internal global::System.Data.SqlClient.SqlConnection Connection {
  7109. get {
  7110. if ((this._connection == null)) {
  7111. this.InitConnection();
  7112. }
  7113. return this._connection;
  7114. }
  7115. set {
  7116. this._connection = value;
  7117. if ((this.Adapter.InsertCommand != null)) {
  7118. this.Adapter.InsertCommand.Connection = value;
  7119. }
  7120. if ((this.Adapter.DeleteCommand != null)) {
  7121. this.Adapter.DeleteCommand.Connection = value;
  7122. }
  7123. if ((this.Adapter.UpdateCommand != null)) {
  7124. this.Adapter.UpdateCommand.Connection = value;
  7125. }
  7126. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7127. if ((this.CommandCollection[i] != null)) {
  7128. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7129. }
  7130. }
  7131. }
  7132. }
  7133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7135. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7136. get {
  7137. return this._transaction;
  7138. }
  7139. set {
  7140. this._transaction = value;
  7141. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7142. this.CommandCollection[i].Transaction = this._transaction;
  7143. }
  7144. if (((this.Adapter != null)
  7145. && (this.Adapter.DeleteCommand != null))) {
  7146. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7147. }
  7148. if (((this.Adapter != null)
  7149. && (this.Adapter.InsertCommand != null))) {
  7150. this.Adapter.InsertCommand.Transaction = this._transaction;
  7151. }
  7152. if (((this.Adapter != null)
  7153. && (this.Adapter.UpdateCommand != null))) {
  7154. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7155. }
  7156. }
  7157. }
  7158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7160. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7161. get {
  7162. if ((this._commandCollection == null)) {
  7163. this.InitCommandCollection();
  7164. }
  7165. return this._commandCollection;
  7166. }
  7167. }
  7168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7170. public bool ClearBeforeFill {
  7171. get {
  7172. return this._clearBeforeFill;
  7173. }
  7174. set {
  7175. this._clearBeforeFill = value;
  7176. }
  7177. }
  7178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7180. private void InitAdapter() {
  7181. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7182. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7183. tableMapping.SourceTable = "Table";
  7184. tableMapping.DataSetTable = "ClientFIO";
  7185. tableMapping.ColumnMappings.Add("IdClient", "IdClient");
  7186. tableMapping.ColumnMappings.Add("FIO", "FIO");
  7187. this._adapter.TableMappings.Add(tableMapping);
  7188. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7189. this._adapter.DeleteCommand.Connection = this.Connection;
  7190. this._adapter.DeleteCommand.CommandText = "DELETE FROM [Client] WHERE (([IdClient] = @Original_IdClient))";
  7191. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7192. 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, "", "", ""));
  7193. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7194. this._adapter.InsertCommand.Connection = this.Connection;
  7195. this._adapter.InsertCommand.CommandText = "INSERT INTO [Client] DEFAULT VALUES;\r\nSELECT IdClient, Surname + \' \' + Name + \' \'" +
  7196. " + Patronymic AS FIO FROM Client WHERE (IdClient = SCOPE_IDENTITY())";
  7197. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7198. }
  7199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7201. private void InitConnection() {
  7202. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7203. this._connection.ConnectionString = global::СУБД_Техносервис.Properties.Settings.Default.TechServiceBAUConnectionString;
  7204. }
  7205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7207. private void InitCommandCollection() {
  7208. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7209. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7210. this._commandCollection[0].Connection = this.Connection;
  7211. this._commandCollection[0].CommandText = "SELECT IdClient, (Surname + \' \' + Name + \' \' + Patronymic) as FIO\r\nFROM " +
  7212. " Client";
  7213. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7214. }
  7215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7217. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7218. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7219. public virtual int Fill(TechServiceBAUDataSet.ClientFIODataTable dataTable) {
  7220. this.Adapter.SelectCommand = this.CommandCollection[0];
  7221. if ((this.ClearBeforeFill == true)) {
  7222. dataTable.Clear();
  7223. }
  7224. int returnValue = this.Adapter.Fill(dataTable);
  7225. return returnValue;
  7226. }
  7227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7229. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7230. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7231. public virtual TechServiceBAUDataSet.ClientFIODataTable GetData() {
  7232. this.Adapter.SelectCommand = this.CommandCollection[0];
  7233. TechServiceBAUDataSet.ClientFIODataTable dataTable = new TechServiceBAUDataSet.ClientFIODataTable();
  7234. this.Adapter.Fill(dataTable);
  7235. return dataTable;
  7236. }
  7237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7239. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7240. public virtual int Update(TechServiceBAUDataSet.ClientFIODataTable dataTable) {
  7241. return this.Adapter.Update(dataTable);
  7242. }
  7243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7245. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7246. public virtual int Update(TechServiceBAUDataSet dataSet) {
  7247. return this.Adapter.Update(dataSet, "ClientFIO");
  7248. }
  7249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7251. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7252. public virtual int Update(global::System.Data.DataRow dataRow) {
  7253. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7254. dataRow});
  7255. }
  7256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7258. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7259. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7260. return this.Adapter.Update(dataRows);
  7261. }
  7262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7264. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7265. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7266. public virtual int Delete(int Original_IdClient) {
  7267. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdClient));
  7268. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7269. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7270. != global::System.Data.ConnectionState.Open)) {
  7271. this.Adapter.DeleteCommand.Connection.Open();
  7272. }
  7273. try {
  7274. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7275. return returnValue;
  7276. }
  7277. finally {
  7278. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7279. this.Adapter.DeleteCommand.Connection.Close();
  7280. }
  7281. }
  7282. }
  7283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7285. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7286. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7287. public virtual int Insert() {
  7288. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7289. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7290. != global::System.Data.ConnectionState.Open)) {
  7291. this.Adapter.InsertCommand.Connection.Open();
  7292. }
  7293. try {
  7294. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7295. return returnValue;
  7296. }
  7297. finally {
  7298. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7299. this.Adapter.InsertCommand.Connection.Close();
  7300. }
  7301. }
  7302. }
  7303. }
  7304. /// <summary>
  7305. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  7306. ///</summary>
  7307. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7308. [global::System.ComponentModel.ToolboxItem(true)]
  7309. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  7310. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7311. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  7312. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  7313. private UpdateOrderOption _updateOrder;
  7314. private ClientTableAdapter _clientTableAdapter;
  7315. private EmployeeTableAdapter _employeeTableAdapter;
  7316. private ExecutionRequestTableAdapter _executionRequestTableAdapter;
  7317. private RequestTableAdapter _requestTableAdapter;
  7318. private RoleTableAdapter _roleTableAdapter;
  7319. private StatusTableAdapter _statusTableAdapter;
  7320. private TypeDefectTableAdapter _typeDefectTableAdapter;
  7321. private ClientFIOTableAdapter _clientFIOTableAdapter;
  7322. private bool _backupDataSetBeforeUpdate;
  7323. private global::System.Data.IDbConnection _connection;
  7324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7326. public UpdateOrderOption UpdateOrder {
  7327. get {
  7328. return this._updateOrder;
  7329. }
  7330. set {
  7331. this._updateOrder = value;
  7332. }
  7333. }
  7334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7336. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7337. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7338. "a", "System.Drawing.Design.UITypeEditor")]
  7339. public ClientTableAdapter ClientTableAdapter {
  7340. get {
  7341. return this._clientTableAdapter;
  7342. }
  7343. set {
  7344. this._clientTableAdapter = value;
  7345. }
  7346. }
  7347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7349. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7350. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7351. "a", "System.Drawing.Design.UITypeEditor")]
  7352. public EmployeeTableAdapter EmployeeTableAdapter {
  7353. get {
  7354. return this._employeeTableAdapter;
  7355. }
  7356. set {
  7357. this._employeeTableAdapter = value;
  7358. }
  7359. }
  7360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7362. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7363. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7364. "a", "System.Drawing.Design.UITypeEditor")]
  7365. public ExecutionRequestTableAdapter ExecutionRequestTableAdapter {
  7366. get {
  7367. return this._executionRequestTableAdapter;
  7368. }
  7369. set {
  7370. this._executionRequestTableAdapter = value;
  7371. }
  7372. }
  7373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7375. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7376. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7377. "a", "System.Drawing.Design.UITypeEditor")]
  7378. public RequestTableAdapter RequestTableAdapter {
  7379. get {
  7380. return this._requestTableAdapter;
  7381. }
  7382. set {
  7383. this._requestTableAdapter = value;
  7384. }
  7385. }
  7386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7388. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7389. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7390. "a", "System.Drawing.Design.UITypeEditor")]
  7391. public RoleTableAdapter RoleTableAdapter {
  7392. get {
  7393. return this._roleTableAdapter;
  7394. }
  7395. set {
  7396. this._roleTableAdapter = value;
  7397. }
  7398. }
  7399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7401. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7402. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7403. "a", "System.Drawing.Design.UITypeEditor")]
  7404. public StatusTableAdapter StatusTableAdapter {
  7405. get {
  7406. return this._statusTableAdapter;
  7407. }
  7408. set {
  7409. this._statusTableAdapter = value;
  7410. }
  7411. }
  7412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7414. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7415. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7416. "a", "System.Drawing.Design.UITypeEditor")]
  7417. public TypeDefectTableAdapter TypeDefectTableAdapter {
  7418. get {
  7419. return this._typeDefectTableAdapter;
  7420. }
  7421. set {
  7422. this._typeDefectTableAdapter = value;
  7423. }
  7424. }
  7425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7427. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7428. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7429. "a", "System.Drawing.Design.UITypeEditor")]
  7430. public ClientFIOTableAdapter ClientFIOTableAdapter {
  7431. get {
  7432. return this._clientFIOTableAdapter;
  7433. }
  7434. set {
  7435. this._clientFIOTableAdapter = value;
  7436. }
  7437. }
  7438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7440. public bool BackupDataSetBeforeUpdate {
  7441. get {
  7442. return this._backupDataSetBeforeUpdate;
  7443. }
  7444. set {
  7445. this._backupDataSetBeforeUpdate = value;
  7446. }
  7447. }
  7448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7450. [global::System.ComponentModel.Browsable(false)]
  7451. public global::System.Data.IDbConnection Connection {
  7452. get {
  7453. if ((this._connection != null)) {
  7454. return this._connection;
  7455. }
  7456. if (((this._clientTableAdapter != null)
  7457. && (this._clientTableAdapter.Connection != null))) {
  7458. return this._clientTableAdapter.Connection;
  7459. }
  7460. if (((this._employeeTableAdapter != null)
  7461. && (this._employeeTableAdapter.Connection != null))) {
  7462. return this._employeeTableAdapter.Connection;
  7463. }
  7464. if (((this._executionRequestTableAdapter != null)
  7465. && (this._executionRequestTableAdapter.Connection != null))) {
  7466. return this._executionRequestTableAdapter.Connection;
  7467. }
  7468. if (((this._requestTableAdapter != null)
  7469. && (this._requestTableAdapter.Connection != null))) {
  7470. return this._requestTableAdapter.Connection;
  7471. }
  7472. if (((this._roleTableAdapter != null)
  7473. && (this._roleTableAdapter.Connection != null))) {
  7474. return this._roleTableAdapter.Connection;
  7475. }
  7476. if (((this._statusTableAdapter != null)
  7477. && (this._statusTableAdapter.Connection != null))) {
  7478. return this._statusTableAdapter.Connection;
  7479. }
  7480. if (((this._typeDefectTableAdapter != null)
  7481. && (this._typeDefectTableAdapter.Connection != null))) {
  7482. return this._typeDefectTableAdapter.Connection;
  7483. }
  7484. if (((this._clientFIOTableAdapter != null)
  7485. && (this._clientFIOTableAdapter.Connection != null))) {
  7486. return this._clientFIOTableAdapter.Connection;
  7487. }
  7488. return null;
  7489. }
  7490. set {
  7491. this._connection = value;
  7492. }
  7493. }
  7494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7496. [global::System.ComponentModel.Browsable(false)]
  7497. public int TableAdapterInstanceCount {
  7498. get {
  7499. int count = 0;
  7500. if ((this._clientTableAdapter != null)) {
  7501. count = (count + 1);
  7502. }
  7503. if ((this._employeeTableAdapter != null)) {
  7504. count = (count + 1);
  7505. }
  7506. if ((this._executionRequestTableAdapter != null)) {
  7507. count = (count + 1);
  7508. }
  7509. if ((this._requestTableAdapter != null)) {
  7510. count = (count + 1);
  7511. }
  7512. if ((this._roleTableAdapter != null)) {
  7513. count = (count + 1);
  7514. }
  7515. if ((this._statusTableAdapter != null)) {
  7516. count = (count + 1);
  7517. }
  7518. if ((this._typeDefectTableAdapter != null)) {
  7519. count = (count + 1);
  7520. }
  7521. if ((this._clientFIOTableAdapter != null)) {
  7522. count = (count + 1);
  7523. }
  7524. return count;
  7525. }
  7526. }
  7527. /// <summary>
  7528. ///Update rows in top-down order.
  7529. ///</summary>
  7530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7532. 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) {
  7533. int result = 0;
  7534. if ((this._roleTableAdapter != null)) {
  7535. global::System.Data.DataRow[] updatedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7536. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7537. if (((updatedRows != null)
  7538. && (0 < updatedRows.Length))) {
  7539. result = (result + this._roleTableAdapter.Update(updatedRows));
  7540. allChangedRows.AddRange(updatedRows);
  7541. }
  7542. }
  7543. if ((this._clientTableAdapter != null)) {
  7544. global::System.Data.DataRow[] updatedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7545. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7546. if (((updatedRows != null)
  7547. && (0 < updatedRows.Length))) {
  7548. result = (result + this._clientTableAdapter.Update(updatedRows));
  7549. allChangedRows.AddRange(updatedRows);
  7550. }
  7551. }
  7552. if ((this._employeeTableAdapter != null)) {
  7553. global::System.Data.DataRow[] updatedRows = dataSet.Employee.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7554. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7555. if (((updatedRows != null)
  7556. && (0 < updatedRows.Length))) {
  7557. result = (result + this._employeeTableAdapter.Update(updatedRows));
  7558. allChangedRows.AddRange(updatedRows);
  7559. }
  7560. }
  7561. if ((this._statusTableAdapter != null)) {
  7562. global::System.Data.DataRow[] updatedRows = dataSet.Status.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7563. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7564. if (((updatedRows != null)
  7565. && (0 < updatedRows.Length))) {
  7566. result = (result + this._statusTableAdapter.Update(updatedRows));
  7567. allChangedRows.AddRange(updatedRows);
  7568. }
  7569. }
  7570. if ((this._typeDefectTableAdapter != null)) {
  7571. global::System.Data.DataRow[] updatedRows = dataSet.TypeDefect.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7572. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7573. if (((updatedRows != null)
  7574. && (0 < updatedRows.Length))) {
  7575. result = (result + this._typeDefectTableAdapter.Update(updatedRows));
  7576. allChangedRows.AddRange(updatedRows);
  7577. }
  7578. }
  7579. if ((this._clientFIOTableAdapter != null)) {
  7580. global::System.Data.DataRow[] updatedRows = dataSet.ClientFIO.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7581. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7582. if (((updatedRows != null)
  7583. && (0 < updatedRows.Length))) {
  7584. result = (result + this._clientFIOTableAdapter.Update(updatedRows));
  7585. allChangedRows.AddRange(updatedRows);
  7586. }
  7587. }
  7588. if ((this._requestTableAdapter != null)) {
  7589. global::System.Data.DataRow[] updatedRows = dataSet.Request.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7590. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7591. if (((updatedRows != null)
  7592. && (0 < updatedRows.Length))) {
  7593. result = (result + this._requestTableAdapter.Update(updatedRows));
  7594. allChangedRows.AddRange(updatedRows);
  7595. }
  7596. }
  7597. if ((this._executionRequestTableAdapter != null)) {
  7598. global::System.Data.DataRow[] updatedRows = dataSet.ExecutionRequest.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7599. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7600. if (((updatedRows != null)
  7601. && (0 < updatedRows.Length))) {
  7602. result = (result + this._executionRequestTableAdapter.Update(updatedRows));
  7603. allChangedRows.AddRange(updatedRows);
  7604. }
  7605. }
  7606. return result;
  7607. }
  7608. /// <summary>
  7609. ///Insert rows in top-down order.
  7610. ///</summary>
  7611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7613. private int UpdateInsertedRows(TechServiceBAUDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  7614. int result = 0;
  7615. if ((this._roleTableAdapter != null)) {
  7616. global::System.Data.DataRow[] addedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Added);
  7617. if (((addedRows != null)
  7618. && (0 < addedRows.Length))) {
  7619. result = (result + this._roleTableAdapter.Update(addedRows));
  7620. allAddedRows.AddRange(addedRows);
  7621. }
  7622. }
  7623. if ((this._clientTableAdapter != null)) {
  7624. global::System.Data.DataRow[] addedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Added);
  7625. if (((addedRows != null)
  7626. && (0 < addedRows.Length))) {
  7627. result = (result + this._clientTableAdapter.Update(addedRows));
  7628. allAddedRows.AddRange(addedRows);
  7629. }
  7630. }
  7631. if ((this._employeeTableAdapter != null)) {
  7632. global::System.Data.DataRow[] addedRows = dataSet.Employee.Select(null, null, global::System.Data.DataViewRowState.Added);
  7633. if (((addedRows != null)
  7634. && (0 < addedRows.Length))) {
  7635. result = (result + this._employeeTableAdapter.Update(addedRows));
  7636. allAddedRows.AddRange(addedRows);
  7637. }
  7638. }
  7639. if ((this._statusTableAdapter != null)) {
  7640. global::System.Data.DataRow[] addedRows = dataSet.Status.Select(null, null, global::System.Data.DataViewRowState.Added);
  7641. if (((addedRows != null)
  7642. && (0 < addedRows.Length))) {
  7643. result = (result + this._statusTableAdapter.Update(addedRows));
  7644. allAddedRows.AddRange(addedRows);
  7645. }
  7646. }
  7647. if ((this._typeDefectTableAdapter != null)) {
  7648. global::System.Data.DataRow[] addedRows = dataSet.TypeDefect.Select(null, null, global::System.Data.DataViewRowState.Added);
  7649. if (((addedRows != null)
  7650. && (0 < addedRows.Length))) {
  7651. result = (result + this._typeDefectTableAdapter.Update(addedRows));
  7652. allAddedRows.AddRange(addedRows);
  7653. }
  7654. }
  7655. if ((this._clientFIOTableAdapter != null)) {
  7656. global::System.Data.DataRow[] addedRows = dataSet.ClientFIO.Select(null, null, global::System.Data.DataViewRowState.Added);
  7657. if (((addedRows != null)
  7658. && (0 < addedRows.Length))) {
  7659. result = (result + this._clientFIOTableAdapter.Update(addedRows));
  7660. allAddedRows.AddRange(addedRows);
  7661. }
  7662. }
  7663. if ((this._requestTableAdapter != null)) {
  7664. global::System.Data.DataRow[] addedRows = dataSet.Request.Select(null, null, global::System.Data.DataViewRowState.Added);
  7665. if (((addedRows != null)
  7666. && (0 < addedRows.Length))) {
  7667. result = (result + this._requestTableAdapter.Update(addedRows));
  7668. allAddedRows.AddRange(addedRows);
  7669. }
  7670. }
  7671. if ((this._executionRequestTableAdapter != null)) {
  7672. global::System.Data.DataRow[] addedRows = dataSet.ExecutionRequest.Select(null, null, global::System.Data.DataViewRowState.Added);
  7673. if (((addedRows != null)
  7674. && (0 < addedRows.Length))) {
  7675. result = (result + this._executionRequestTableAdapter.Update(addedRows));
  7676. allAddedRows.AddRange(addedRows);
  7677. }
  7678. }
  7679. return result;
  7680. }
  7681. /// <summary>
  7682. ///Delete rows in bottom-up order.
  7683. ///</summary>
  7684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7686. private int UpdateDeletedRows(TechServiceBAUDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  7687. int result = 0;
  7688. if ((this._executionRequestTableAdapter != null)) {
  7689. global::System.Data.DataRow[] deletedRows = dataSet.ExecutionRequest.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7690. if (((deletedRows != null)
  7691. && (0 < deletedRows.Length))) {
  7692. result = (result + this._executionRequestTableAdapter.Update(deletedRows));
  7693. allChangedRows.AddRange(deletedRows);
  7694. }
  7695. }
  7696. if ((this._requestTableAdapter != null)) {
  7697. global::System.Data.DataRow[] deletedRows = dataSet.Request.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7698. if (((deletedRows != null)
  7699. && (0 < deletedRows.Length))) {
  7700. result = (result + this._requestTableAdapter.Update(deletedRows));
  7701. allChangedRows.AddRange(deletedRows);
  7702. }
  7703. }
  7704. if ((this._clientFIOTableAdapter != null)) {
  7705. global::System.Data.DataRow[] deletedRows = dataSet.ClientFIO.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7706. if (((deletedRows != null)
  7707. && (0 < deletedRows.Length))) {
  7708. result = (result + this._clientFIOTableAdapter.Update(deletedRows));
  7709. allChangedRows.AddRange(deletedRows);
  7710. }
  7711. }
  7712. if ((this._typeDefectTableAdapter != null)) {
  7713. global::System.Data.DataRow[] deletedRows = dataSet.TypeDefect.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7714. if (((deletedRows != null)
  7715. && (0 < deletedRows.Length))) {
  7716. result = (result + this._typeDefectTableAdapter.Update(deletedRows));
  7717. allChangedRows.AddRange(deletedRows);
  7718. }
  7719. }
  7720. if ((this._statusTableAdapter != null)) {
  7721. global::System.Data.DataRow[] deletedRows = dataSet.Status.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7722. if (((deletedRows != null)
  7723. && (0 < deletedRows.Length))) {
  7724. result = (result + this._statusTableAdapter.Update(deletedRows));
  7725. allChangedRows.AddRange(deletedRows);
  7726. }
  7727. }
  7728. if ((this._employeeTableAdapter != null)) {
  7729. global::System.Data.DataRow[] deletedRows = dataSet.Employee.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7730. if (((deletedRows != null)
  7731. && (0 < deletedRows.Length))) {
  7732. result = (result + this._employeeTableAdapter.Update(deletedRows));
  7733. allChangedRows.AddRange(deletedRows);
  7734. }
  7735. }
  7736. if ((this._clientTableAdapter != null)) {
  7737. global::System.Data.DataRow[] deletedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7738. if (((deletedRows != null)
  7739. && (0 < deletedRows.Length))) {
  7740. result = (result + this._clientTableAdapter.Update(deletedRows));
  7741. allChangedRows.AddRange(deletedRows);
  7742. }
  7743. }
  7744. if ((this._roleTableAdapter != null)) {
  7745. global::System.Data.DataRow[] deletedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7746. if (((deletedRows != null)
  7747. && (0 < deletedRows.Length))) {
  7748. result = (result + this._roleTableAdapter.Update(deletedRows));
  7749. allChangedRows.AddRange(deletedRows);
  7750. }
  7751. }
  7752. return result;
  7753. }
  7754. /// <summary>
  7755. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  7756. ///</summary>
  7757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7759. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  7760. if (((updatedRows == null)
  7761. || (updatedRows.Length < 1))) {
  7762. return updatedRows;
  7763. }
  7764. if (((allAddedRows == null)
  7765. || (allAddedRows.Count < 1))) {
  7766. return updatedRows;
  7767. }
  7768. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7769. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  7770. global::System.Data.DataRow row = updatedRows[i];
  7771. if ((allAddedRows.Contains(row) == false)) {
  7772. realUpdatedRows.Add(row);
  7773. }
  7774. }
  7775. return realUpdatedRows.ToArray();
  7776. }
  7777. /// <summary>
  7778. ///Update all changes to the dataset.
  7779. ///</summary>
  7780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7782. public virtual int UpdateAll(TechServiceBAUDataSet dataSet) {
  7783. if ((dataSet == null)) {
  7784. throw new global::System.ArgumentNullException("dataSet");
  7785. }
  7786. if ((dataSet.HasChanges() == false)) {
  7787. return 0;
  7788. }
  7789. if (((this._clientTableAdapter != null)
  7790. && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
  7791. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7792. "r, должны использовать одинаковую строку подключения.");
  7793. }
  7794. if (((this._employeeTableAdapter != null)
  7795. && (this.MatchTableAdapterConnection(this._employeeTableAdapter.Connection) == false))) {
  7796. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7797. "r, должны использовать одинаковую строку подключения.");
  7798. }
  7799. if (((this._executionRequestTableAdapter != null)
  7800. && (this.MatchTableAdapterConnection(this._executionRequestTableAdapter.Connection) == false))) {
  7801. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7802. "r, должны использовать одинаковую строку подключения.");
  7803. }
  7804. if (((this._requestTableAdapter != null)
  7805. && (this.MatchTableAdapterConnection(this._requestTableAdapter.Connection) == false))) {
  7806. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7807. "r, должны использовать одинаковую строку подключения.");
  7808. }
  7809. if (((this._roleTableAdapter != null)
  7810. && (this.MatchTableAdapterConnection(this._roleTableAdapter.Connection) == false))) {
  7811. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7812. "r, должны использовать одинаковую строку подключения.");
  7813. }
  7814. if (((this._statusTableAdapter != null)
  7815. && (this.MatchTableAdapterConnection(this._statusTableAdapter.Connection) == false))) {
  7816. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7817. "r, должны использовать одинаковую строку подключения.");
  7818. }
  7819. if (((this._typeDefectTableAdapter != null)
  7820. && (this.MatchTableAdapterConnection(this._typeDefectTableAdapter.Connection) == false))) {
  7821. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7822. "r, должны использовать одинаковую строку подключения.");
  7823. }
  7824. if (((this._clientFIOTableAdapter != null)
  7825. && (this.MatchTableAdapterConnection(this._clientFIOTableAdapter.Connection) == false))) {
  7826. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7827. "r, должны использовать одинаковую строку подключения.");
  7828. }
  7829. global::System.Data.IDbConnection workConnection = this.Connection;
  7830. if ((workConnection == null)) {
  7831. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  7832. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  7833. }
  7834. bool workConnOpened = false;
  7835. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  7836. == global::System.Data.ConnectionState.Broken)) {
  7837. workConnection.Close();
  7838. }
  7839. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  7840. workConnection.Open();
  7841. workConnOpened = true;
  7842. }
  7843. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  7844. if ((workTransaction == null)) {
  7845. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  7846. "и или текущее состояние не позволяет начать транзакцию.");
  7847. }
  7848. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7849. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7850. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  7851. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  7852. int result = 0;
  7853. global::System.Data.DataSet backupDataSet = null;
  7854. if (this.BackupDataSetBeforeUpdate) {
  7855. backupDataSet = new global::System.Data.DataSet();
  7856. backupDataSet.Merge(dataSet);
  7857. }
  7858. try {
  7859. // ---- Prepare for update -----------
  7860. //
  7861. if ((this._clientTableAdapter != null)) {
  7862. revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection);
  7863. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7864. this._clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7865. if (this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7866. this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7867. adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableAdapter.Adapter);
  7868. }
  7869. }
  7870. if ((this._employeeTableAdapter != null)) {
  7871. revertConnections.Add(this._employeeTableAdapter, this._employeeTableAdapter.Connection);
  7872. this._employeeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7873. this._employeeTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7874. if (this._employeeTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7875. this._employeeTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7876. adaptersWithAcceptChangesDuringUpdate.Add(this._employeeTableAdapter.Adapter);
  7877. }
  7878. }
  7879. if ((this._executionRequestTableAdapter != null)) {
  7880. revertConnections.Add(this._executionRequestTableAdapter, this._executionRequestTableAdapter.Connection);
  7881. this._executionRequestTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7882. this._executionRequestTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7883. if (this._executionRequestTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7884. this._executionRequestTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7885. adaptersWithAcceptChangesDuringUpdate.Add(this._executionRequestTableAdapter.Adapter);
  7886. }
  7887. }
  7888. if ((this._requestTableAdapter != null)) {
  7889. revertConnections.Add(this._requestTableAdapter, this._requestTableAdapter.Connection);
  7890. this._requestTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7891. this._requestTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7892. if (this._requestTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7893. this._requestTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7894. adaptersWithAcceptChangesDuringUpdate.Add(this._requestTableAdapter.Adapter);
  7895. }
  7896. }
  7897. if ((this._roleTableAdapter != null)) {
  7898. revertConnections.Add(this._roleTableAdapter, this._roleTableAdapter.Connection);
  7899. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7900. this._roleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7901. if (this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7902. this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7903. adaptersWithAcceptChangesDuringUpdate.Add(this._roleTableAdapter.Adapter);
  7904. }
  7905. }
  7906. if ((this._statusTableAdapter != null)) {
  7907. revertConnections.Add(this._statusTableAdapter, this._statusTableAdapter.Connection);
  7908. this._statusTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7909. this._statusTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7910. if (this._statusTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7911. this._statusTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7912. adaptersWithAcceptChangesDuringUpdate.Add(this._statusTableAdapter.Adapter);
  7913. }
  7914. }
  7915. if ((this._typeDefectTableAdapter != null)) {
  7916. revertConnections.Add(this._typeDefectTableAdapter, this._typeDefectTableAdapter.Connection);
  7917. this._typeDefectTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7918. this._typeDefectTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7919. if (this._typeDefectTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7920. this._typeDefectTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7921. adaptersWithAcceptChangesDuringUpdate.Add(this._typeDefectTableAdapter.Adapter);
  7922. }
  7923. }
  7924. if ((this._clientFIOTableAdapter != null)) {
  7925. revertConnections.Add(this._clientFIOTableAdapter, this._clientFIOTableAdapter.Connection);
  7926. this._clientFIOTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7927. this._clientFIOTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7928. if (this._clientFIOTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7929. this._clientFIOTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7930. adaptersWithAcceptChangesDuringUpdate.Add(this._clientFIOTableAdapter.Adapter);
  7931. }
  7932. }
  7933. //
  7934. //---- Perform updates -----------
  7935. //
  7936. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  7937. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  7938. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  7939. }
  7940. else {
  7941. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  7942. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  7943. }
  7944. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  7945. //
  7946. //---- Commit updates -----------
  7947. //
  7948. workTransaction.Commit();
  7949. if ((0 < allAddedRows.Count)) {
  7950. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  7951. allAddedRows.CopyTo(rows);
  7952. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  7953. global::System.Data.DataRow row = rows[i];
  7954. row.AcceptChanges();
  7955. }
  7956. }
  7957. if ((0 < allChangedRows.Count)) {
  7958. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  7959. allChangedRows.CopyTo(rows);
  7960. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  7961. global::System.Data.DataRow row = rows[i];
  7962. row.AcceptChanges();
  7963. }
  7964. }
  7965. }
  7966. catch (global::System.Exception ex) {
  7967. workTransaction.Rollback();
  7968. // ---- Restore the dataset -----------
  7969. if (this.BackupDataSetBeforeUpdate) {
  7970. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  7971. dataSet.Clear();
  7972. dataSet.Merge(backupDataSet);
  7973. }
  7974. else {
  7975. if ((0 < allAddedRows.Count)) {
  7976. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  7977. allAddedRows.CopyTo(rows);
  7978. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  7979. global::System.Data.DataRow row = rows[i];
  7980. row.AcceptChanges();
  7981. row.SetAdded();
  7982. }
  7983. }
  7984. }
  7985. throw ex;
  7986. }
  7987. finally {
  7988. if (workConnOpened) {
  7989. workConnection.Close();
  7990. }
  7991. if ((this._clientTableAdapter != null)) {
  7992. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter]));
  7993. this._clientTableAdapter.Transaction = null;
  7994. }
  7995. if ((this._employeeTableAdapter != null)) {
  7996. this._employeeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._employeeTableAdapter]));
  7997. this._employeeTableAdapter.Transaction = null;
  7998. }
  7999. if ((this._executionRequestTableAdapter != null)) {
  8000. this._executionRequestTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._executionRequestTableAdapter]));
  8001. this._executionRequestTableAdapter.Transaction = null;
  8002. }
  8003. if ((this._requestTableAdapter != null)) {
  8004. this._requestTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._requestTableAdapter]));
  8005. this._requestTableAdapter.Transaction = null;
  8006. }
  8007. if ((this._roleTableAdapter != null)) {
  8008. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._roleTableAdapter]));
  8009. this._roleTableAdapter.Transaction = null;
  8010. }
  8011. if ((this._statusTableAdapter != null)) {
  8012. this._statusTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._statusTableAdapter]));
  8013. this._statusTableAdapter.Transaction = null;
  8014. }
  8015. if ((this._typeDefectTableAdapter != null)) {
  8016. this._typeDefectTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._typeDefectTableAdapter]));
  8017. this._typeDefectTableAdapter.Transaction = null;
  8018. }
  8019. if ((this._clientFIOTableAdapter != null)) {
  8020. this._clientFIOTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientFIOTableAdapter]));
  8021. this._clientFIOTableAdapter.Transaction = null;
  8022. }
  8023. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  8024. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  8025. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  8026. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  8027. global::System.Data.Common.DataAdapter adapter = adapters[i];
  8028. adapter.AcceptChangesDuringUpdate = true;
  8029. }
  8030. }
  8031. }
  8032. return result;
  8033. }
  8034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8036. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  8037. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  8038. }
  8039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8041. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  8042. if ((this._connection != null)) {
  8043. return true;
  8044. }
  8045. if (((this.Connection == null)
  8046. || (inputConnection == null))) {
  8047. return true;
  8048. }
  8049. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  8050. return true;
  8051. }
  8052. return false;
  8053. }
  8054. /// <summary>
  8055. ///Update Order Option
  8056. ///</summary>
  8057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8058. public enum UpdateOrderOption {
  8059. InsertUpdateDelete = 0,
  8060. UpdateInsertDelete = 1,
  8061. }
  8062. /// <summary>
  8063. ///Used to sort self-referenced table's rows
  8064. ///</summary>
  8065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8066. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  8067. private global::System.Data.DataRelation _relation;
  8068. private int _childFirst;
  8069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8071. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  8072. this._relation = relation;
  8073. if (childFirst) {
  8074. this._childFirst = -1;
  8075. }
  8076. else {
  8077. this._childFirst = 1;
  8078. }
  8079. }
  8080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8082. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  8083. global::System.Diagnostics.Debug.Assert((row != null));
  8084. global::System.Data.DataRow root = row;
  8085. distance = 0;
  8086. 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>();
  8087. traversedRows[row] = row;
  8088. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  8089. for (
  8090. ; ((parent != null)
  8091. && (traversedRows.ContainsKey(parent) == false));
  8092. ) {
  8093. distance = (distance + 1);
  8094. root = parent;
  8095. traversedRows[parent] = parent;
  8096. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  8097. }
  8098. if ((distance == 0)) {
  8099. traversedRows.Clear();
  8100. traversedRows[row] = row;
  8101. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  8102. for (
  8103. ; ((parent != null)
  8104. && (traversedRows.ContainsKey(parent) == false));
  8105. ) {
  8106. distance = (distance + 1);
  8107. root = parent;
  8108. traversedRows[parent] = parent;
  8109. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  8110. }
  8111. }
  8112. return root;
  8113. }
  8114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8116. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  8117. if (object.ReferenceEquals(row1, row2)) {
  8118. return 0;
  8119. }
  8120. if ((row1 == null)) {
  8121. return -1;
  8122. }
  8123. if ((row2 == null)) {
  8124. return 1;
  8125. }
  8126. int distance1 = 0;
  8127. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  8128. int distance2 = 0;
  8129. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  8130. if (object.ReferenceEquals(root1, root2)) {
  8131. return (this._childFirst * distance1.CompareTo(distance2));
  8132. }
  8133. else {
  8134. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  8135. && (root2.Table != null)));
  8136. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  8137. return -1;
  8138. }
  8139. else {
  8140. return 1;
  8141. }
  8142. }
  8143. }
  8144. }
  8145. }
  8146. }
  8147. #pragma warning restore 1591