ИсследованияБиоматериалаDataSet.Designer.cs 1008 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace Laboratoria {
  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("ИсследованияБиоматериалаDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class ИсследованияБиоматериалаDataSet : global::System.Data.DataSet {
  22. private _services___копияDataTable _tableservices___копия;
  23. private _users___копияDataTable _tableusers___копия;
  24. private АдминистраторDataTable tableАдминистратор;
  25. private АнализаторDataTable tableАнализатор;
  26. private БухгалтерDataTable tableБухгалтер;
  27. private ДанныеПациентовDataTable tableДанныеПациентов;
  28. private ЗаказDataTable tableЗаказ;
  29. private ЛаборантDataTable tableЛаборант;
  30. private ОказанныеУслугиDataTable tableОказанныеУслуги;
  31. private РаботаАнализатораDataTable tableРаботаАнализатора;
  32. private СтраховаяКомпанияDataTable tableСтраховаяКомпания;
  33. private СчетаDataTable tableСчета;
  34. private УслугиЛабораторииDataTable tableУслугиЛаборатории;
  35. private отчётDataTable tableотчёт;
  36. private global::System.Data.DataRelation relationFK_Бухгалтер_УслугиЛаборатории;
  37. private global::System.Data.DataRelation relationFK_ДанныеПациентов_СтраховаяКомпания;
  38. private global::System.Data.DataRelation relationFK_Заказ_Счета;
  39. private global::System.Data.DataRelation relationFK_ОказанныеУслуги_Анализатор;
  40. private global::System.Data.DataRelation relationFK_ОказанныеУслуги_ДанныеПациентов;
  41. private global::System.Data.DataRelation relationFK_ОказанныеУслуги_Заказ;
  42. private global::System.Data.DataRelation relationFK_ОказанныеУслуги_Лаборант;
  43. private global::System.Data.DataRelation relationFK_ОказанныеУслуги_УслугиЛаборатории;
  44. private global::System.Data.DataRelation relationFK_РаботаАнализатора_Анализатор;
  45. private global::System.Data.DataRelation relationFK_РаботаАнализатора_ОказанныеУслуги;
  46. private global::System.Data.DataRelation relationFK_Счета_Бухгалтер;
  47. private global::System.Data.DataRelation relationFK_Счета_СтраховаяКомпания;
  48. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  49. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  50. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  51. public ИсследованияБиоматериалаDataSet() {
  52. this.BeginInit();
  53. this.InitClass();
  54. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  55. base.Tables.CollectionChanged += schemaChangedHandler;
  56. base.Relations.CollectionChanged += schemaChangedHandler;
  57. this.EndInit();
  58. }
  59. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  60. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  61. protected ИсследованияБиоматериалаDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  62. base(info, context, false) {
  63. if ((this.IsBinarySerialized(info, context) == true)) {
  64. this.InitVars(false);
  65. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  66. this.Tables.CollectionChanged += schemaChangedHandler1;
  67. this.Relations.CollectionChanged += schemaChangedHandler1;
  68. return;
  69. }
  70. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  71. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  72. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  73. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  74. if ((ds.Tables["services — копия"] != null)) {
  75. base.Tables.Add(new _services___копияDataTable(ds.Tables["services — копия"]));
  76. }
  77. if ((ds.Tables["users — копия"] != null)) {
  78. base.Tables.Add(new _users___копияDataTable(ds.Tables["users — копия"]));
  79. }
  80. if ((ds.Tables["Администратор"] != null)) {
  81. base.Tables.Add(new АдминистраторDataTable(ds.Tables["Администратор"]));
  82. }
  83. if ((ds.Tables["Анализатор"] != null)) {
  84. base.Tables.Add(new АнализаторDataTable(ds.Tables["Анализатор"]));
  85. }
  86. if ((ds.Tables["Бухгалтер"] != null)) {
  87. base.Tables.Add(new БухгалтерDataTable(ds.Tables["Бухгалтер"]));
  88. }
  89. if ((ds.Tables["ДанныеПациентов"] != null)) {
  90. base.Tables.Add(new ДанныеПациентовDataTable(ds.Tables["ДанныеПациентов"]));
  91. }
  92. if ((ds.Tables["Заказ"] != null)) {
  93. base.Tables.Add(new ЗаказDataTable(ds.Tables["Заказ"]));
  94. }
  95. if ((ds.Tables["Лаборант"] != null)) {
  96. base.Tables.Add(new ЛаборантDataTable(ds.Tables["Лаборант"]));
  97. }
  98. if ((ds.Tables["ОказанныеУслуги"] != null)) {
  99. base.Tables.Add(new ОказанныеУслугиDataTable(ds.Tables["ОказанныеУслуги"]));
  100. }
  101. if ((ds.Tables["РаботаАнализатора"] != null)) {
  102. base.Tables.Add(new РаботаАнализатораDataTable(ds.Tables["РаботаАнализатора"]));
  103. }
  104. if ((ds.Tables["СтраховаяКомпания"] != null)) {
  105. base.Tables.Add(new СтраховаяКомпанияDataTable(ds.Tables["СтраховаяКомпания"]));
  106. }
  107. if ((ds.Tables["Счета"] != null)) {
  108. base.Tables.Add(new СчетаDataTable(ds.Tables["Счета"]));
  109. }
  110. if ((ds.Tables["УслугиЛаборатории"] != null)) {
  111. base.Tables.Add(new УслугиЛабораторииDataTable(ds.Tables["УслугиЛаборатории"]));
  112. }
  113. if ((ds.Tables["отчёт"] != null)) {
  114. base.Tables.Add(new отчётDataTable(ds.Tables["отчёт"]));
  115. }
  116. this.DataSetName = ds.DataSetName;
  117. this.Prefix = ds.Prefix;
  118. this.Namespace = ds.Namespace;
  119. this.Locale = ds.Locale;
  120. this.CaseSensitive = ds.CaseSensitive;
  121. this.EnforceConstraints = ds.EnforceConstraints;
  122. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  123. this.InitVars();
  124. }
  125. else {
  126. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  127. }
  128. this.GetSerializationData(info, context);
  129. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  130. base.Tables.CollectionChanged += schemaChangedHandler;
  131. this.Relations.CollectionChanged += schemaChangedHandler;
  132. }
  133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  135. [global::System.ComponentModel.Browsable(false)]
  136. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  137. public _services___копияDataTable _services___копия {
  138. get {
  139. return this._tableservices___копия;
  140. }
  141. }
  142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  144. [global::System.ComponentModel.Browsable(false)]
  145. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  146. public _users___копияDataTable _users___копия {
  147. get {
  148. return this._tableusers___копия;
  149. }
  150. }
  151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  153. [global::System.ComponentModel.Browsable(false)]
  154. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  155. public АдминистраторDataTable Администратор {
  156. get {
  157. return this.tableАдминистратор;
  158. }
  159. }
  160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  162. [global::System.ComponentModel.Browsable(false)]
  163. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  164. public АнализаторDataTable Анализатор {
  165. get {
  166. return this.tableАнализатор;
  167. }
  168. }
  169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  171. [global::System.ComponentModel.Browsable(false)]
  172. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  173. public БухгалтерDataTable Бухгалтер {
  174. get {
  175. return this.tableБухгалтер;
  176. }
  177. }
  178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  180. [global::System.ComponentModel.Browsable(false)]
  181. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  182. public ДанныеПациентовDataTable ДанныеПациентов {
  183. get {
  184. return this.tableДанныеПациентов;
  185. }
  186. }
  187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  189. [global::System.ComponentModel.Browsable(false)]
  190. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  191. public ЗаказDataTable Заказ {
  192. get {
  193. return this.tableЗаказ;
  194. }
  195. }
  196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  198. [global::System.ComponentModel.Browsable(false)]
  199. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  200. public ЛаборантDataTable Лаборант {
  201. get {
  202. return this.tableЛаборант;
  203. }
  204. }
  205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  207. [global::System.ComponentModel.Browsable(false)]
  208. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  209. public ОказанныеУслугиDataTable ОказанныеУслуги {
  210. get {
  211. return this.tableОказанныеУслуги;
  212. }
  213. }
  214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  216. [global::System.ComponentModel.Browsable(false)]
  217. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  218. public РаботаАнализатораDataTable РаботаАнализатора {
  219. get {
  220. return this.tableРаботаАнализатора;
  221. }
  222. }
  223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  225. [global::System.ComponentModel.Browsable(false)]
  226. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  227. public СтраховаяКомпанияDataTable СтраховаяКомпания {
  228. get {
  229. return this.tableСтраховаяКомпания;
  230. }
  231. }
  232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  234. [global::System.ComponentModel.Browsable(false)]
  235. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  236. public СчетаDataTable Счета {
  237. get {
  238. return this.tableСчета;
  239. }
  240. }
  241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  243. [global::System.ComponentModel.Browsable(false)]
  244. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  245. public УслугиЛабораторииDataTable УслугиЛаборатории {
  246. get {
  247. return this.tableУслугиЛаборатории;
  248. }
  249. }
  250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  252. [global::System.ComponentModel.Browsable(false)]
  253. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  254. public отчётDataTable отчёт {
  255. get {
  256. return this.tableотчёт;
  257. }
  258. }
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  261. [global::System.ComponentModel.BrowsableAttribute(true)]
  262. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  263. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  264. get {
  265. return this._schemaSerializationMode;
  266. }
  267. set {
  268. this._schemaSerializationMode = value;
  269. }
  270. }
  271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  273. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  274. public new global::System.Data.DataTableCollection Tables {
  275. get {
  276. return base.Tables;
  277. }
  278. }
  279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  281. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  282. public new global::System.Data.DataRelationCollection Relations {
  283. get {
  284. return base.Relations;
  285. }
  286. }
  287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  289. protected override void InitializeDerivedDataSet() {
  290. this.BeginInit();
  291. this.InitClass();
  292. this.EndInit();
  293. }
  294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  296. public override global::System.Data.DataSet Clone() {
  297. ИсследованияБиоматериалаDataSet cln = ((ИсследованияБиоматериалаDataSet)(base.Clone()));
  298. cln.InitVars();
  299. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  300. return cln;
  301. }
  302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  304. protected override bool ShouldSerializeTables() {
  305. return false;
  306. }
  307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  309. protected override bool ShouldSerializeRelations() {
  310. return false;
  311. }
  312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  314. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  315. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  316. this.Reset();
  317. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  318. ds.ReadXml(reader);
  319. if ((ds.Tables["services — копия"] != null)) {
  320. base.Tables.Add(new _services___копияDataTable(ds.Tables["services — копия"]));
  321. }
  322. if ((ds.Tables["users — копия"] != null)) {
  323. base.Tables.Add(new _users___копияDataTable(ds.Tables["users — копия"]));
  324. }
  325. if ((ds.Tables["Администратор"] != null)) {
  326. base.Tables.Add(new АдминистраторDataTable(ds.Tables["Администратор"]));
  327. }
  328. if ((ds.Tables["Анализатор"] != null)) {
  329. base.Tables.Add(new АнализаторDataTable(ds.Tables["Анализатор"]));
  330. }
  331. if ((ds.Tables["Бухгалтер"] != null)) {
  332. base.Tables.Add(new БухгалтерDataTable(ds.Tables["Бухгалтер"]));
  333. }
  334. if ((ds.Tables["ДанныеПациентов"] != null)) {
  335. base.Tables.Add(new ДанныеПациентовDataTable(ds.Tables["ДанныеПациентов"]));
  336. }
  337. if ((ds.Tables["Заказ"] != null)) {
  338. base.Tables.Add(new ЗаказDataTable(ds.Tables["Заказ"]));
  339. }
  340. if ((ds.Tables["Лаборант"] != null)) {
  341. base.Tables.Add(new ЛаборантDataTable(ds.Tables["Лаборант"]));
  342. }
  343. if ((ds.Tables["ОказанныеУслуги"] != null)) {
  344. base.Tables.Add(new ОказанныеУслугиDataTable(ds.Tables["ОказанныеУслуги"]));
  345. }
  346. if ((ds.Tables["РаботаАнализатора"] != null)) {
  347. base.Tables.Add(new РаботаАнализатораDataTable(ds.Tables["РаботаАнализатора"]));
  348. }
  349. if ((ds.Tables["СтраховаяКомпания"] != null)) {
  350. base.Tables.Add(new СтраховаяКомпанияDataTable(ds.Tables["СтраховаяКомпания"]));
  351. }
  352. if ((ds.Tables["Счета"] != null)) {
  353. base.Tables.Add(new СчетаDataTable(ds.Tables["Счета"]));
  354. }
  355. if ((ds.Tables["УслугиЛаборатории"] != null)) {
  356. base.Tables.Add(new УслугиЛабораторииDataTable(ds.Tables["УслугиЛаборатории"]));
  357. }
  358. if ((ds.Tables["отчёт"] != null)) {
  359. base.Tables.Add(new отчётDataTable(ds.Tables["отчёт"]));
  360. }
  361. this.DataSetName = ds.DataSetName;
  362. this.Prefix = ds.Prefix;
  363. this.Namespace = ds.Namespace;
  364. this.Locale = ds.Locale;
  365. this.CaseSensitive = ds.CaseSensitive;
  366. this.EnforceConstraints = ds.EnforceConstraints;
  367. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  368. this.InitVars();
  369. }
  370. else {
  371. this.ReadXml(reader);
  372. this.InitVars();
  373. }
  374. }
  375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  377. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  378. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  379. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  380. stream.Position = 0;
  381. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  382. }
  383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  385. internal void InitVars() {
  386. this.InitVars(true);
  387. }
  388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  390. internal void InitVars(bool initTable) {
  391. this._tableservices___копия = ((_services___копияDataTable)(base.Tables["services — копия"]));
  392. if ((initTable == true)) {
  393. if ((this._tableservices___копия != null)) {
  394. this._tableservices___копия.InitVars();
  395. }
  396. }
  397. this._tableusers___копия = ((_users___копияDataTable)(base.Tables["users — копия"]));
  398. if ((initTable == true)) {
  399. if ((this._tableusers___копия != null)) {
  400. this._tableusers___копия.InitVars();
  401. }
  402. }
  403. this.tableАдминистратор = ((АдминистраторDataTable)(base.Tables["Администратор"]));
  404. if ((initTable == true)) {
  405. if ((this.tableАдминистратор != null)) {
  406. this.tableАдминистратор.InitVars();
  407. }
  408. }
  409. this.tableАнализатор = ((АнализаторDataTable)(base.Tables["Анализатор"]));
  410. if ((initTable == true)) {
  411. if ((this.tableАнализатор != null)) {
  412. this.tableАнализатор.InitVars();
  413. }
  414. }
  415. this.tableБухгалтер = ((БухгалтерDataTable)(base.Tables["Бухгалтер"]));
  416. if ((initTable == true)) {
  417. if ((this.tableБухгалтер != null)) {
  418. this.tableБухгалтер.InitVars();
  419. }
  420. }
  421. this.tableДанныеПациентов = ((ДанныеПациентовDataTable)(base.Tables["ДанныеПациентов"]));
  422. if ((initTable == true)) {
  423. if ((this.tableДанныеПациентов != null)) {
  424. this.tableДанныеПациентов.InitVars();
  425. }
  426. }
  427. this.tableЗаказ = ((ЗаказDataTable)(base.Tables["Заказ"]));
  428. if ((initTable == true)) {
  429. if ((this.tableЗаказ != null)) {
  430. this.tableЗаказ.InitVars();
  431. }
  432. }
  433. this.tableЛаборант = ((ЛаборантDataTable)(base.Tables["Лаборант"]));
  434. if ((initTable == true)) {
  435. if ((this.tableЛаборант != null)) {
  436. this.tableЛаборант.InitVars();
  437. }
  438. }
  439. this.tableОказанныеУслуги = ((ОказанныеУслугиDataTable)(base.Tables["ОказанныеУслуги"]));
  440. if ((initTable == true)) {
  441. if ((this.tableОказанныеУслуги != null)) {
  442. this.tableОказанныеУслуги.InitVars();
  443. }
  444. }
  445. this.tableРаботаАнализатора = ((РаботаАнализатораDataTable)(base.Tables["РаботаАнализатора"]));
  446. if ((initTable == true)) {
  447. if ((this.tableРаботаАнализатора != null)) {
  448. this.tableРаботаАнализатора.InitVars();
  449. }
  450. }
  451. this.tableСтраховаяКомпания = ((СтраховаяКомпанияDataTable)(base.Tables["СтраховаяКомпания"]));
  452. if ((initTable == true)) {
  453. if ((this.tableСтраховаяКомпания != null)) {
  454. this.tableСтраховаяКомпания.InitVars();
  455. }
  456. }
  457. this.tableСчета = ((СчетаDataTable)(base.Tables["Счета"]));
  458. if ((initTable == true)) {
  459. if ((this.tableСчета != null)) {
  460. this.tableСчета.InitVars();
  461. }
  462. }
  463. this.tableУслугиЛаборатории = ((УслугиЛабораторииDataTable)(base.Tables["УслугиЛаборатории"]));
  464. if ((initTable == true)) {
  465. if ((this.tableУслугиЛаборатории != null)) {
  466. this.tableУслугиЛаборатории.InitVars();
  467. }
  468. }
  469. this.tableотчёт = ((отчётDataTable)(base.Tables["отчёт"]));
  470. if ((initTable == true)) {
  471. if ((this.tableотчёт != null)) {
  472. this.tableотчёт.InitVars();
  473. }
  474. }
  475. this.relationFK_Бухгалтер_УслугиЛаборатории = this.Relations["FK_Бухгалтер_УслугиЛаборатории"];
  476. this.relationFK_ДанныеПациентов_СтраховаяКомпания = this.Relations["FK_ДанныеПациентов_СтраховаяКомпания"];
  477. this.relationFK_Заказ_Счета = this.Relations["FK_Заказ_Счета"];
  478. this.relationFK_ОказанныеУслуги_Анализатор = this.Relations["FK_ОказанныеУслуги_Анализатор"];
  479. this.relationFK_ОказанныеУслуги_ДанныеПациентов = this.Relations["FK_ОказанныеУслуги_ДанныеПациентов"];
  480. this.relationFK_ОказанныеУслуги_Заказ = this.Relations["FK_ОказанныеУслуги_Заказ"];
  481. this.relationFK_ОказанныеУслуги_Лаборант = this.Relations["FK_ОказанныеУслуги_Лаборант"];
  482. this.relationFK_ОказанныеУслуги_УслугиЛаборатории = this.Relations["FK_ОказанныеУслуги_УслугиЛаборатории"];
  483. this.relationFK_РаботаАнализатора_Анализатор = this.Relations["FK_РаботаАнализатора_Анализатор"];
  484. this.relationFK_РаботаАнализатора_ОказанныеУслуги = this.Relations["FK_РаботаАнализатора_ОказанныеУслуги"];
  485. this.relationFK_Счета_Бухгалтер = this.Relations["FK_Счета_Бухгалтер"];
  486. this.relationFK_Счета_СтраховаяКомпания = this.Relations["FK_Счета_СтраховаяКомпания"];
  487. }
  488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  490. private void InitClass() {
  491. this.DataSetName = "ИсследованияБиоматериалаDataSet";
  492. this.Prefix = "";
  493. this.Namespace = "http://tempuri.org/ИсследованияБиоматериалаDataSet.xsd";
  494. this.EnforceConstraints = true;
  495. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  496. this._tableservices___копия = new _services___копияDataTable();
  497. base.Tables.Add(this._tableservices___копия);
  498. this._tableusers___копия = new _users___копияDataTable();
  499. base.Tables.Add(this._tableusers___копия);
  500. this.tableАдминистратор = new АдминистраторDataTable();
  501. base.Tables.Add(this.tableАдминистратор);
  502. this.tableАнализатор = new АнализаторDataTable();
  503. base.Tables.Add(this.tableАнализатор);
  504. this.tableБухгалтер = new БухгалтерDataTable();
  505. base.Tables.Add(this.tableБухгалтер);
  506. this.tableДанныеПациентов = new ДанныеПациентовDataTable();
  507. base.Tables.Add(this.tableДанныеПациентов);
  508. this.tableЗаказ = new ЗаказDataTable();
  509. base.Tables.Add(this.tableЗаказ);
  510. this.tableЛаборант = new ЛаборантDataTable();
  511. base.Tables.Add(this.tableЛаборант);
  512. this.tableОказанныеУслуги = new ОказанныеУслугиDataTable();
  513. base.Tables.Add(this.tableОказанныеУслуги);
  514. this.tableРаботаАнализатора = new РаботаАнализатораDataTable();
  515. base.Tables.Add(this.tableРаботаАнализатора);
  516. this.tableСтраховаяКомпания = new СтраховаяКомпанияDataTable();
  517. base.Tables.Add(this.tableСтраховаяКомпания);
  518. this.tableСчета = new СчетаDataTable();
  519. base.Tables.Add(this.tableСчета);
  520. this.tableУслугиЛаборатории = new УслугиЛабораторииDataTable();
  521. base.Tables.Add(this.tableУслугиЛаборатории);
  522. this.tableотчёт = new отчётDataTable();
  523. base.Tables.Add(this.tableотчёт);
  524. this.relationFK_Бухгалтер_УслугиЛаборатории = new global::System.Data.DataRelation("FK_Бухгалтер_УслугиЛаборатории", new global::System.Data.DataColumn[] {
  525. this.tableУслугиЛаборатории.ID_УслугиColumn}, new global::System.Data.DataColumn[] {
  526. this.tableБухгалтер.ID_УслугиColumn}, false);
  527. this.Relations.Add(this.relationFK_Бухгалтер_УслугиЛаборатории);
  528. this.relationFK_ДанныеПациентов_СтраховаяКомпания = new global::System.Data.DataRelation("FK_ДанныеПациентов_СтраховаяКомпания", new global::System.Data.DataColumn[] {
  529. this.tableСтраховаяКомпания.ID_КомпанииColumn}, new global::System.Data.DataColumn[] {
  530. this.tableДанныеПациентов.ID_КомпанииColumn}, false);
  531. this.Relations.Add(this.relationFK_ДанныеПациентов_СтраховаяКомпания);
  532. this.relationFK_Заказ_Счета = new global::System.Data.DataRelation("FK_Заказ_Счета", new global::System.Data.DataColumn[] {
  533. this.tableСчета.ID_СчетаColumn}, new global::System.Data.DataColumn[] {
  534. this.tableЗаказ.ID_СчетаColumn}, false);
  535. this.Relations.Add(this.relationFK_Заказ_Счета);
  536. this.relationFK_ОказанныеУслуги_Анализатор = new global::System.Data.DataRelation("FK_ОказанныеУслуги_Анализатор", new global::System.Data.DataColumn[] {
  537. this.tableАнализатор.ID_АнализатораColumn}, new global::System.Data.DataColumn[] {
  538. this.tableОказанныеУслуги.ID_АнализатораColumn}, false);
  539. this.Relations.Add(this.relationFK_ОказанныеУслуги_Анализатор);
  540. this.relationFK_ОказанныеУслуги_ДанныеПациентов = new global::System.Data.DataRelation("FK_ОказанныеУслуги_ДанныеПациентов", new global::System.Data.DataColumn[] {
  541. this.tableДанныеПациентов.ID_ПациентColumn}, new global::System.Data.DataColumn[] {
  542. this.tableОказанныеУслуги.ID_ПациентColumn}, false);
  543. this.Relations.Add(this.relationFK_ОказанныеУслуги_ДанныеПациентов);
  544. this.relationFK_ОказанныеУслуги_Заказ = new global::System.Data.DataRelation("FK_ОказанныеУслуги_Заказ", new global::System.Data.DataColumn[] {
  545. this.tableЗаказ.ID_ЗаказаColumn}, new global::System.Data.DataColumn[] {
  546. this.tableОказанныеУслуги.ID_ЗаказаColumn}, false);
  547. this.Relations.Add(this.relationFK_ОказанныеУслуги_Заказ);
  548. this.relationFK_ОказанныеУслуги_Лаборант = new global::System.Data.DataRelation("FK_ОказанныеУслуги_Лаборант", new global::System.Data.DataColumn[] {
  549. this.tableЛаборант.ID_ЛаборантаColumn}, new global::System.Data.DataColumn[] {
  550. this.tableОказанныеУслуги.ID_ЛаборантаColumn}, false);
  551. this.Relations.Add(this.relationFK_ОказанныеУслуги_Лаборант);
  552. this.relationFK_ОказанныеУслуги_УслугиЛаборатории = new global::System.Data.DataRelation("FK_ОказанныеУслуги_УслугиЛаборатории", new global::System.Data.DataColumn[] {
  553. this.tableУслугиЛаборатории.ID_УслугиColumn}, new global::System.Data.DataColumn[] {
  554. this.tableОказанныеУслуги.ID_УслугиColumn}, false);
  555. this.Relations.Add(this.relationFK_ОказанныеУслуги_УслугиЛаборатории);
  556. this.relationFK_РаботаАнализатора_Анализатор = new global::System.Data.DataRelation("FK_РаботаАнализатора_Анализатор", new global::System.Data.DataColumn[] {
  557. this.tableАнализатор.ID_АнализатораColumn}, new global::System.Data.DataColumn[] {
  558. this.tableРаботаАнализатора.ID_АнализатораColumn}, false);
  559. this.Relations.Add(this.relationFK_РаботаАнализатора_Анализатор);
  560. this.relationFK_РаботаАнализатора_ОказанныеУслуги = new global::System.Data.DataRelation("FK_РаботаАнализатора_ОказанныеУслуги", new global::System.Data.DataColumn[] {
  561. this.tableОказанныеУслуги.ID_ОказанныхУслугColumn}, new global::System.Data.DataColumn[] {
  562. this.tableРаботаАнализатора.ID_ОказанныхУслугColumn}, false);
  563. this.Relations.Add(this.relationFK_РаботаАнализатора_ОказанныеУслуги);
  564. this.relationFK_Счета_Бухгалтер = new global::System.Data.DataRelation("FK_Счета_Бухгалтер", new global::System.Data.DataColumn[] {
  565. this.tableБухгалтер.ID_БухгалтераColumn}, new global::System.Data.DataColumn[] {
  566. this.tableСчета.ID_БухгалтераColumn}, false);
  567. this.Relations.Add(this.relationFK_Счета_Бухгалтер);
  568. this.relationFK_Счета_СтраховаяКомпания = new global::System.Data.DataRelation("FK_Счета_СтраховаяКомпания", new global::System.Data.DataColumn[] {
  569. this.tableСтраховаяКомпания.ID_КомпанииColumn}, new global::System.Data.DataColumn[] {
  570. this.tableСчета.ID_КомпанииColumn}, false);
  571. this.Relations.Add(this.relationFK_Счета_СтраховаяКомпания);
  572. }
  573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  575. private bool ShouldSerialize_services___копия() {
  576. return false;
  577. }
  578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  580. private bool ShouldSerialize_users___копия() {
  581. return false;
  582. }
  583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  585. private bool ShouldSerializeАдминистратор() {
  586. return false;
  587. }
  588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  590. private bool ShouldSerializeАнализатор() {
  591. return false;
  592. }
  593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  595. private bool ShouldSerializeБухгалтер() {
  596. return false;
  597. }
  598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  600. private bool ShouldSerializeДанныеПациентов() {
  601. return false;
  602. }
  603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  605. private bool ShouldSerializeЗаказ() {
  606. return false;
  607. }
  608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  610. private bool ShouldSerializeЛаборант() {
  611. return false;
  612. }
  613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  615. private bool ShouldSerializeОказанныеУслуги() {
  616. return false;
  617. }
  618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  620. private bool ShouldSerializeРаботаАнализатора() {
  621. return false;
  622. }
  623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  625. private bool ShouldSerializeСтраховаяКомпания() {
  626. return false;
  627. }
  628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  630. private bool ShouldSerializeСчета() {
  631. return false;
  632. }
  633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  635. private bool ShouldSerializeУслугиЛаборатории() {
  636. return false;
  637. }
  638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  640. private bool ShouldSerializeотчёт() {
  641. return false;
  642. }
  643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  645. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  646. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  647. this.InitVars();
  648. }
  649. }
  650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  652. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  653. ИсследованияБиоматериалаDataSet ds = new ИсследованияБиоматериалаDataSet();
  654. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  655. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  656. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  657. any.Namespace = ds.Namespace;
  658. sequence.Items.Add(any);
  659. type.Particle = sequence;
  660. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  661. if (xs.Contains(dsSchema.TargetNamespace)) {
  662. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  663. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  664. try {
  665. global::System.Xml.Schema.XmlSchema schema = null;
  666. dsSchema.Write(s1);
  667. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  668. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  669. s2.SetLength(0);
  670. schema.Write(s2);
  671. if ((s1.Length == s2.Length)) {
  672. s1.Position = 0;
  673. s2.Position = 0;
  674. for (; ((s1.Position != s1.Length)
  675. && (s1.ReadByte() == s2.ReadByte())); ) {
  676. ;
  677. }
  678. if ((s1.Position == s1.Length)) {
  679. return type;
  680. }
  681. }
  682. }
  683. }
  684. finally {
  685. if ((s1 != null)) {
  686. s1.Close();
  687. }
  688. if ((s2 != null)) {
  689. s2.Close();
  690. }
  691. }
  692. }
  693. xs.Add(dsSchema);
  694. return type;
  695. }
  696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  697. public delegate void _services___копияRowChangeEventHandler(object sender, _services___копияRowChangeEvent e);
  698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  699. public delegate void _users___копияRowChangeEventHandler(object sender, _users___копияRowChangeEvent e);
  700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  701. public delegate void АдминистраторRowChangeEventHandler(object sender, АдминистраторRowChangeEvent e);
  702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  703. public delegate void АнализаторRowChangeEventHandler(object sender, АнализаторRowChangeEvent e);
  704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  705. public delegate void БухгалтерRowChangeEventHandler(object sender, БухгалтерRowChangeEvent e);
  706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  707. public delegate void ДанныеПациентовRowChangeEventHandler(object sender, ДанныеПациентовRowChangeEvent e);
  708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  709. public delegate void ЗаказRowChangeEventHandler(object sender, ЗаказRowChangeEvent e);
  710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  711. public delegate void ЛаборантRowChangeEventHandler(object sender, ЛаборантRowChangeEvent e);
  712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  713. public delegate void ОказанныеУслугиRowChangeEventHandler(object sender, ОказанныеУслугиRowChangeEvent e);
  714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  715. public delegate void РаботаАнализатораRowChangeEventHandler(object sender, РаботаАнализатораRowChangeEvent e);
  716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  717. public delegate void СтраховаяКомпанияRowChangeEventHandler(object sender, СтраховаяКомпанияRowChangeEvent e);
  718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  719. public delegate void СчетаRowChangeEventHandler(object sender, СчетаRowChangeEvent e);
  720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  721. public delegate void УслугиЛабораторииRowChangeEventHandler(object sender, УслугиЛабораторииRowChangeEvent e);
  722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  723. public delegate void отчётRowChangeEventHandler(object sender, отчётRowChangeEvent e);
  724. /// <summary>
  725. ///Represents the strongly named DataTable class.
  726. ///</summary>
  727. [global::System.Serializable()]
  728. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  729. public partial class _services___копияDataTable : global::System.Data.TypedTableBase<_services___копияRow> {
  730. private global::System.Data.DataColumn columnCode;
  731. private global::System.Data.DataColumn columnService;
  732. private global::System.Data.DataColumn columnPrice;
  733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  735. public _services___копияDataTable() {
  736. this.TableName = "services — копия";
  737. this.BeginInit();
  738. this.InitClass();
  739. this.EndInit();
  740. }
  741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  743. internal _services___копияDataTable(global::System.Data.DataTable table) {
  744. this.TableName = table.TableName;
  745. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  746. this.CaseSensitive = table.CaseSensitive;
  747. }
  748. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  749. this.Locale = table.Locale;
  750. }
  751. if ((table.Namespace != table.DataSet.Namespace)) {
  752. this.Namespace = table.Namespace;
  753. }
  754. this.Prefix = table.Prefix;
  755. this.MinimumCapacity = table.MinimumCapacity;
  756. }
  757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  759. protected _services___копияDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  760. base(info, context) {
  761. this.InitVars();
  762. }
  763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  765. public global::System.Data.DataColumn CodeColumn {
  766. get {
  767. return this.columnCode;
  768. }
  769. }
  770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  772. public global::System.Data.DataColumn ServiceColumn {
  773. get {
  774. return this.columnService;
  775. }
  776. }
  777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  779. public global::System.Data.DataColumn PriceColumn {
  780. get {
  781. return this.columnPrice;
  782. }
  783. }
  784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  786. [global::System.ComponentModel.Browsable(false)]
  787. public int Count {
  788. get {
  789. return this.Rows.Count;
  790. }
  791. }
  792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  794. public _services___копияRow this[int index] {
  795. get {
  796. return ((_services___копияRow)(this.Rows[index]));
  797. }
  798. }
  799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  800. public event _services___копияRowChangeEventHandler _services___копияRowChanging;
  801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  802. public event _services___копияRowChangeEventHandler _services___копияRowChanged;
  803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  804. public event _services___копияRowChangeEventHandler _services___копияRowDeleting;
  805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  806. public event _services___копияRowChangeEventHandler _services___копияRowDeleted;
  807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  809. public void Add_services___копияRow(_services___копияRow row) {
  810. this.Rows.Add(row);
  811. }
  812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  814. public _services___копияRow Add_services___копияRow(long Code, string Service, string Price) {
  815. _services___копияRow row_services___копияRow = ((_services___копияRow)(this.NewRow()));
  816. object[] columnValuesArray = new object[] {
  817. Code,
  818. Service,
  819. Price};
  820. row_services___копияRow.ItemArray = columnValuesArray;
  821. this.Rows.Add(row_services___копияRow);
  822. return row_services___копияRow;
  823. }
  824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  826. public _services___копияRow FindByCode(long Code) {
  827. return ((_services___копияRow)(this.Rows.Find(new object[] {
  828. Code})));
  829. }
  830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  832. public override global::System.Data.DataTable Clone() {
  833. _services___копияDataTable cln = ((_services___копияDataTable)(base.Clone()));
  834. cln.InitVars();
  835. return cln;
  836. }
  837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  839. protected override global::System.Data.DataTable CreateInstance() {
  840. return new _services___копияDataTable();
  841. }
  842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  844. internal void InitVars() {
  845. this.columnCode = base.Columns["Code"];
  846. this.columnService = base.Columns["Service"];
  847. this.columnPrice = base.Columns["Price"];
  848. }
  849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  851. private void InitClass() {
  852. this.columnCode = new global::System.Data.DataColumn("Code", typeof(long), null, global::System.Data.MappingType.Element);
  853. base.Columns.Add(this.columnCode);
  854. this.columnService = new global::System.Data.DataColumn("Service", typeof(string), null, global::System.Data.MappingType.Element);
  855. base.Columns.Add(this.columnService);
  856. this.columnPrice = new global::System.Data.DataColumn("Price", typeof(string), null, global::System.Data.MappingType.Element);
  857. base.Columns.Add(this.columnPrice);
  858. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  859. this.columnCode}, true));
  860. this.columnCode.AllowDBNull = false;
  861. this.columnCode.Unique = true;
  862. this.columnService.AllowDBNull = false;
  863. this.columnService.MaxLength = 50;
  864. this.columnPrice.AllowDBNull = false;
  865. this.columnPrice.MaxLength = 50;
  866. this.ExtendedProperties.Add("Generator_TableVarName", "_tableservices___копия");
  867. this.ExtendedProperties.Add("Generator_UserTableName", "services — копия");
  868. }
  869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  871. public _services___копияRow New_services___копияRow() {
  872. return ((_services___копияRow)(this.NewRow()));
  873. }
  874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  876. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  877. return new _services___копияRow(builder);
  878. }
  879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  881. protected override global::System.Type GetRowType() {
  882. return typeof(_services___копияRow);
  883. }
  884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  886. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  887. base.OnRowChanged(e);
  888. if ((this._services___копияRowChanged != null)) {
  889. this._services___копияRowChanged(this, new _services___копияRowChangeEvent(((_services___копияRow)(e.Row)), e.Action));
  890. }
  891. }
  892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  894. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  895. base.OnRowChanging(e);
  896. if ((this._services___копияRowChanging != null)) {
  897. this._services___копияRowChanging(this, new _services___копияRowChangeEvent(((_services___копияRow)(e.Row)), e.Action));
  898. }
  899. }
  900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  902. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  903. base.OnRowDeleted(e);
  904. if ((this._services___копияRowDeleted != null)) {
  905. this._services___копияRowDeleted(this, new _services___копияRowChangeEvent(((_services___копияRow)(e.Row)), e.Action));
  906. }
  907. }
  908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  910. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  911. base.OnRowDeleting(e);
  912. if ((this._services___копияRowDeleting != null)) {
  913. this._services___копияRowDeleting(this, new _services___копияRowChangeEvent(((_services___копияRow)(e.Row)), e.Action));
  914. }
  915. }
  916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  918. public void Remove_services___копияRow(_services___копияRow row) {
  919. this.Rows.Remove(row);
  920. }
  921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  923. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  924. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  925. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  926. ИсследованияБиоматериалаDataSet ds = new ИсследованияБиоматериалаDataSet();
  927. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  928. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  929. any1.MinOccurs = new decimal(0);
  930. any1.MaxOccurs = decimal.MaxValue;
  931. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  932. sequence.Items.Add(any1);
  933. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  934. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  935. any2.MinOccurs = new decimal(1);
  936. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  937. sequence.Items.Add(any2);
  938. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  939. attribute1.Name = "namespace";
  940. attribute1.FixedValue = ds.Namespace;
  941. type.Attributes.Add(attribute1);
  942. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  943. attribute2.Name = "tableTypeName";
  944. attribute2.FixedValue = "_services___копияDataTable";
  945. type.Attributes.Add(attribute2);
  946. type.Particle = sequence;
  947. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  948. if (xs.Contains(dsSchema.TargetNamespace)) {
  949. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  950. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  951. try {
  952. global::System.Xml.Schema.XmlSchema schema = null;
  953. dsSchema.Write(s1);
  954. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  955. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  956. s2.SetLength(0);
  957. schema.Write(s2);
  958. if ((s1.Length == s2.Length)) {
  959. s1.Position = 0;
  960. s2.Position = 0;
  961. for (; ((s1.Position != s1.Length)
  962. && (s1.ReadByte() == s2.ReadByte())); ) {
  963. ;
  964. }
  965. if ((s1.Position == s1.Length)) {
  966. return type;
  967. }
  968. }
  969. }
  970. }
  971. finally {
  972. if ((s1 != null)) {
  973. s1.Close();
  974. }
  975. if ((s2 != null)) {
  976. s2.Close();
  977. }
  978. }
  979. }
  980. xs.Add(dsSchema);
  981. return type;
  982. }
  983. }
  984. /// <summary>
  985. ///Represents the strongly named DataTable class.
  986. ///</summary>
  987. [global::System.Serializable()]
  988. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  989. public partial class _users___копияDataTable : global::System.Data.TypedTableBase<_users___копияRow> {
  990. private global::System.Data.DataColumn columnid;
  991. private global::System.Data.DataColumn columnname;
  992. private global::System.Data.DataColumn columnlogin;
  993. private global::System.Data.DataColumn columnpassword;
  994. private global::System.Data.DataColumn columnip;
  995. private global::System.Data.DataColumn columnlastenter;
  996. private global::System.Data.DataColumn columnservices;
  997. private global::System.Data.DataColumn columntype;
  998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1000. public _users___копияDataTable() {
  1001. this.TableName = "users — копия";
  1002. this.BeginInit();
  1003. this.InitClass();
  1004. this.EndInit();
  1005. }
  1006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1008. internal _users___копияDataTable(global::System.Data.DataTable table) {
  1009. this.TableName = table.TableName;
  1010. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1011. this.CaseSensitive = table.CaseSensitive;
  1012. }
  1013. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1014. this.Locale = table.Locale;
  1015. }
  1016. if ((table.Namespace != table.DataSet.Namespace)) {
  1017. this.Namespace = table.Namespace;
  1018. }
  1019. this.Prefix = table.Prefix;
  1020. this.MinimumCapacity = table.MinimumCapacity;
  1021. }
  1022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1024. protected _users___копияDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1025. base(info, context) {
  1026. this.InitVars();
  1027. }
  1028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1030. public global::System.Data.DataColumn idColumn {
  1031. get {
  1032. return this.columnid;
  1033. }
  1034. }
  1035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1037. public global::System.Data.DataColumn nameColumn {
  1038. get {
  1039. return this.columnname;
  1040. }
  1041. }
  1042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1044. public global::System.Data.DataColumn loginColumn {
  1045. get {
  1046. return this.columnlogin;
  1047. }
  1048. }
  1049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1051. public global::System.Data.DataColumn passwordColumn {
  1052. get {
  1053. return this.columnpassword;
  1054. }
  1055. }
  1056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1058. public global::System.Data.DataColumn ipColumn {
  1059. get {
  1060. return this.columnip;
  1061. }
  1062. }
  1063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1065. public global::System.Data.DataColumn lastenterColumn {
  1066. get {
  1067. return this.columnlastenter;
  1068. }
  1069. }
  1070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1072. public global::System.Data.DataColumn servicesColumn {
  1073. get {
  1074. return this.columnservices;
  1075. }
  1076. }
  1077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1079. public global::System.Data.DataColumn typeColumn {
  1080. get {
  1081. return this.columntype;
  1082. }
  1083. }
  1084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1086. [global::System.ComponentModel.Browsable(false)]
  1087. public int Count {
  1088. get {
  1089. return this.Rows.Count;
  1090. }
  1091. }
  1092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1094. public _users___копияRow this[int index] {
  1095. get {
  1096. return ((_users___копияRow)(this.Rows[index]));
  1097. }
  1098. }
  1099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1100. public event _users___копияRowChangeEventHandler _users___копияRowChanging;
  1101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1102. public event _users___копияRowChangeEventHandler _users___копияRowChanged;
  1103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1104. public event _users___копияRowChangeEventHandler _users___копияRowDeleting;
  1105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1106. public event _users___копияRowChangeEventHandler _users___копияRowDeleted;
  1107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1109. public void Add_users___копияRow(_users___копияRow row) {
  1110. this.Rows.Add(row);
  1111. }
  1112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1114. public _users___копияRow Add_users___копияRow(long id, string name, string login, string password, string ip, string lastenter, string services, string type) {
  1115. _users___копияRow row_users___копияRow = ((_users___копияRow)(this.NewRow()));
  1116. object[] columnValuesArray = new object[] {
  1117. id,
  1118. name,
  1119. login,
  1120. password,
  1121. ip,
  1122. lastenter,
  1123. services,
  1124. type};
  1125. row_users___копияRow.ItemArray = columnValuesArray;
  1126. this.Rows.Add(row_users___копияRow);
  1127. return row_users___копияRow;
  1128. }
  1129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1131. public _users___копияRow FindByid(long id) {
  1132. return ((_users___копияRow)(this.Rows.Find(new object[] {
  1133. id})));
  1134. }
  1135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1137. public override global::System.Data.DataTable Clone() {
  1138. _users___копияDataTable cln = ((_users___копияDataTable)(base.Clone()));
  1139. cln.InitVars();
  1140. return cln;
  1141. }
  1142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1144. protected override global::System.Data.DataTable CreateInstance() {
  1145. return new _users___копияDataTable();
  1146. }
  1147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1149. internal void InitVars() {
  1150. this.columnid = base.Columns["id"];
  1151. this.columnname = base.Columns["name"];
  1152. this.columnlogin = base.Columns["login"];
  1153. this.columnpassword = base.Columns["password"];
  1154. this.columnip = base.Columns["ip"];
  1155. this.columnlastenter = base.Columns["lastenter"];
  1156. this.columnservices = base.Columns["services"];
  1157. this.columntype = base.Columns["type"];
  1158. }
  1159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1161. private void InitClass() {
  1162. this.columnid = new global::System.Data.DataColumn("id", typeof(long), null, global::System.Data.MappingType.Element);
  1163. base.Columns.Add(this.columnid);
  1164. this.columnname = new global::System.Data.DataColumn("name", typeof(string), null, global::System.Data.MappingType.Element);
  1165. base.Columns.Add(this.columnname);
  1166. this.columnlogin = new global::System.Data.DataColumn("login", typeof(string), null, global::System.Data.MappingType.Element);
  1167. base.Columns.Add(this.columnlogin);
  1168. this.columnpassword = new global::System.Data.DataColumn("password", typeof(string), null, global::System.Data.MappingType.Element);
  1169. base.Columns.Add(this.columnpassword);
  1170. this.columnip = new global::System.Data.DataColumn("ip", typeof(string), null, global::System.Data.MappingType.Element);
  1171. base.Columns.Add(this.columnip);
  1172. this.columnlastenter = new global::System.Data.DataColumn("lastenter", typeof(string), null, global::System.Data.MappingType.Element);
  1173. base.Columns.Add(this.columnlastenter);
  1174. this.columnservices = new global::System.Data.DataColumn("services", typeof(string), null, global::System.Data.MappingType.Element);
  1175. base.Columns.Add(this.columnservices);
  1176. this.columntype = new global::System.Data.DataColumn("type", typeof(string), null, global::System.Data.MappingType.Element);
  1177. base.Columns.Add(this.columntype);
  1178. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1179. this.columnid}, true));
  1180. this.columnid.AllowDBNull = false;
  1181. this.columnid.Unique = true;
  1182. this.columnname.AllowDBNull = false;
  1183. this.columnname.MaxLength = 50;
  1184. this.columnlogin.AllowDBNull = false;
  1185. this.columnlogin.MaxLength = 50;
  1186. this.columnpassword.AllowDBNull = false;
  1187. this.columnpassword.MaxLength = 50;
  1188. this.columnip.AllowDBNull = false;
  1189. this.columnip.MaxLength = 50;
  1190. this.columnlastenter.AllowDBNull = false;
  1191. this.columnlastenter.MaxLength = 50;
  1192. this.columnservices.AllowDBNull = false;
  1193. this.columnservices.MaxLength = 100;
  1194. this.columntype.AllowDBNull = false;
  1195. this.columntype.MaxLength = 50;
  1196. this.ExtendedProperties.Add("Generator_TableVarName", "_tableusers___копия");
  1197. this.ExtendedProperties.Add("Generator_UserTableName", "users — копия");
  1198. }
  1199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1201. public _users___копияRow New_users___копияRow() {
  1202. return ((_users___копияRow)(this.NewRow()));
  1203. }
  1204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1206. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1207. return new _users___копияRow(builder);
  1208. }
  1209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1211. protected override global::System.Type GetRowType() {
  1212. return typeof(_users___копияRow);
  1213. }
  1214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1216. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1217. base.OnRowChanged(e);
  1218. if ((this._users___копияRowChanged != null)) {
  1219. this._users___копияRowChanged(this, new _users___копияRowChangeEvent(((_users___копияRow)(e.Row)), e.Action));
  1220. }
  1221. }
  1222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1224. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1225. base.OnRowChanging(e);
  1226. if ((this._users___копияRowChanging != null)) {
  1227. this._users___копияRowChanging(this, new _users___копияRowChangeEvent(((_users___копияRow)(e.Row)), e.Action));
  1228. }
  1229. }
  1230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1232. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1233. base.OnRowDeleted(e);
  1234. if ((this._users___копияRowDeleted != null)) {
  1235. this._users___копияRowDeleted(this, new _users___копияRowChangeEvent(((_users___копияRow)(e.Row)), e.Action));
  1236. }
  1237. }
  1238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1240. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1241. base.OnRowDeleting(e);
  1242. if ((this._users___копияRowDeleting != null)) {
  1243. this._users___копияRowDeleting(this, new _users___копияRowChangeEvent(((_users___копияRow)(e.Row)), e.Action));
  1244. }
  1245. }
  1246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1248. public void Remove_users___копияRow(_users___копияRow row) {
  1249. this.Rows.Remove(row);
  1250. }
  1251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1253. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1254. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1255. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1256. ИсследованияБиоматериалаDataSet ds = new ИсследованияБиоматериалаDataSet();
  1257. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1258. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1259. any1.MinOccurs = new decimal(0);
  1260. any1.MaxOccurs = decimal.MaxValue;
  1261. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1262. sequence.Items.Add(any1);
  1263. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1264. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1265. any2.MinOccurs = new decimal(1);
  1266. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1267. sequence.Items.Add(any2);
  1268. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1269. attribute1.Name = "namespace";
  1270. attribute1.FixedValue = ds.Namespace;
  1271. type.Attributes.Add(attribute1);
  1272. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1273. attribute2.Name = "tableTypeName";
  1274. attribute2.FixedValue = "_users___копияDataTable";
  1275. type.Attributes.Add(attribute2);
  1276. type.Particle = sequence;
  1277. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1278. if (xs.Contains(dsSchema.TargetNamespace)) {
  1279. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1280. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1281. try {
  1282. global::System.Xml.Schema.XmlSchema schema = null;
  1283. dsSchema.Write(s1);
  1284. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1285. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1286. s2.SetLength(0);
  1287. schema.Write(s2);
  1288. if ((s1.Length == s2.Length)) {
  1289. s1.Position = 0;
  1290. s2.Position = 0;
  1291. for (; ((s1.Position != s1.Length)
  1292. && (s1.ReadByte() == s2.ReadByte())); ) {
  1293. ;
  1294. }
  1295. if ((s1.Position == s1.Length)) {
  1296. return type;
  1297. }
  1298. }
  1299. }
  1300. }
  1301. finally {
  1302. if ((s1 != null)) {
  1303. s1.Close();
  1304. }
  1305. if ((s2 != null)) {
  1306. s2.Close();
  1307. }
  1308. }
  1309. }
  1310. xs.Add(dsSchema);
  1311. return type;
  1312. }
  1313. }
  1314. /// <summary>
  1315. ///Represents the strongly named DataTable class.
  1316. ///</summary>
  1317. [global::System.Serializable()]
  1318. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1319. public partial class АдминистраторDataTable : global::System.Data.TypedTableBase<АдминистраторRow> {
  1320. private global::System.Data.DataColumn columnID_Администратора;
  1321. private global::System.Data.DataColumn columnЛогин;
  1322. private global::System.Data.DataColumn columnПароль;
  1323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1325. public АдминистраторDataTable() {
  1326. this.TableName = "Администратор";
  1327. this.BeginInit();
  1328. this.InitClass();
  1329. this.EndInit();
  1330. }
  1331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1333. internal АдминистраторDataTable(global::System.Data.DataTable table) {
  1334. this.TableName = table.TableName;
  1335. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1336. this.CaseSensitive = table.CaseSensitive;
  1337. }
  1338. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1339. this.Locale = table.Locale;
  1340. }
  1341. if ((table.Namespace != table.DataSet.Namespace)) {
  1342. this.Namespace = table.Namespace;
  1343. }
  1344. this.Prefix = table.Prefix;
  1345. this.MinimumCapacity = table.MinimumCapacity;
  1346. }
  1347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1349. protected АдминистраторDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1350. base(info, context) {
  1351. this.InitVars();
  1352. }
  1353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1355. public global::System.Data.DataColumn ID_АдминистратораColumn {
  1356. get {
  1357. return this.columnID_Администратора;
  1358. }
  1359. }
  1360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1362. public global::System.Data.DataColumn ЛогинColumn {
  1363. get {
  1364. return this.columnЛогин;
  1365. }
  1366. }
  1367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1369. public global::System.Data.DataColumn ПарольColumn {
  1370. get {
  1371. return this.columnПароль;
  1372. }
  1373. }
  1374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1376. [global::System.ComponentModel.Browsable(false)]
  1377. public int Count {
  1378. get {
  1379. return this.Rows.Count;
  1380. }
  1381. }
  1382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1384. public АдминистраторRow this[int index] {
  1385. get {
  1386. return ((АдминистраторRow)(this.Rows[index]));
  1387. }
  1388. }
  1389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1390. public event АдминистраторRowChangeEventHandler АдминистраторRowChanging;
  1391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1392. public event АдминистраторRowChangeEventHandler АдминистраторRowChanged;
  1393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1394. public event АдминистраторRowChangeEventHandler АдминистраторRowDeleting;
  1395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1396. public event АдминистраторRowChangeEventHandler АдминистраторRowDeleted;
  1397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1399. public void AddАдминистраторRow(АдминистраторRow row) {
  1400. this.Rows.Add(row);
  1401. }
  1402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1404. public АдминистраторRow AddАдминистраторRow(long ID_Администратора, string Логин, string Пароль) {
  1405. АдминистраторRow rowАдминистраторRow = ((АдминистраторRow)(this.NewRow()));
  1406. object[] columnValuesArray = new object[] {
  1407. ID_Администратора,
  1408. Логин,
  1409. Пароль};
  1410. rowАдминистраторRow.ItemArray = columnValuesArray;
  1411. this.Rows.Add(rowАдминистраторRow);
  1412. return rowАдминистраторRow;
  1413. }
  1414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1416. public АдминистраторRow FindByID_Администратора(long ID_Администратора) {
  1417. return ((АдминистраторRow)(this.Rows.Find(new object[] {
  1418. ID_Администратора})));
  1419. }
  1420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1422. public override global::System.Data.DataTable Clone() {
  1423. АдминистраторDataTable cln = ((АдминистраторDataTable)(base.Clone()));
  1424. cln.InitVars();
  1425. return cln;
  1426. }
  1427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1429. protected override global::System.Data.DataTable CreateInstance() {
  1430. return new АдминистраторDataTable();
  1431. }
  1432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1434. internal void InitVars() {
  1435. this.columnID_Администратора = base.Columns["ID_Администратора"];
  1436. this.columnЛогин = base.Columns["Логин"];
  1437. this.columnПароль = base.Columns["Пароль"];
  1438. }
  1439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1441. private void InitClass() {
  1442. this.columnID_Администратора = new global::System.Data.DataColumn("ID_Администратора", typeof(long), null, global::System.Data.MappingType.Element);
  1443. base.Columns.Add(this.columnID_Администратора);
  1444. this.columnЛогин = new global::System.Data.DataColumn("Логин", typeof(string), null, global::System.Data.MappingType.Element);
  1445. base.Columns.Add(this.columnЛогин);
  1446. this.columnПароль = new global::System.Data.DataColumn("Пароль", typeof(string), null, global::System.Data.MappingType.Element);
  1447. base.Columns.Add(this.columnПароль);
  1448. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1449. this.columnID_Администратора}, true));
  1450. this.columnID_Администратора.AllowDBNull = false;
  1451. this.columnID_Администратора.Unique = true;
  1452. this.columnЛогин.MaxLength = 50;
  1453. this.columnПароль.MaxLength = 50;
  1454. }
  1455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1457. public АдминистраторRow NewАдминистраторRow() {
  1458. return ((АдминистраторRow)(this.NewRow()));
  1459. }
  1460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1462. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1463. return new АдминистраторRow(builder);
  1464. }
  1465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1467. protected override global::System.Type GetRowType() {
  1468. return typeof(АдминистраторRow);
  1469. }
  1470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1472. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1473. base.OnRowChanged(e);
  1474. if ((this.АдминистраторRowChanged != null)) {
  1475. this.АдминистраторRowChanged(this, new АдминистраторRowChangeEvent(((АдминистраторRow)(e.Row)), e.Action));
  1476. }
  1477. }
  1478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1480. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1481. base.OnRowChanging(e);
  1482. if ((this.АдминистраторRowChanging != null)) {
  1483. this.АдминистраторRowChanging(this, new АдминистраторRowChangeEvent(((АдминистраторRow)(e.Row)), e.Action));
  1484. }
  1485. }
  1486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1488. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1489. base.OnRowDeleted(e);
  1490. if ((this.АдминистраторRowDeleted != null)) {
  1491. this.АдминистраторRowDeleted(this, new АдминистраторRowChangeEvent(((АдминистраторRow)(e.Row)), e.Action));
  1492. }
  1493. }
  1494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1496. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1497. base.OnRowDeleting(e);
  1498. if ((this.АдминистраторRowDeleting != null)) {
  1499. this.АдминистраторRowDeleting(this, new АдминистраторRowChangeEvent(((АдминистраторRow)(e.Row)), e.Action));
  1500. }
  1501. }
  1502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1504. public void RemoveАдминистраторRow(АдминистраторRow row) {
  1505. this.Rows.Remove(row);
  1506. }
  1507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1509. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1510. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1511. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1512. ИсследованияБиоматериалаDataSet ds = new ИсследованияБиоматериалаDataSet();
  1513. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1514. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1515. any1.MinOccurs = new decimal(0);
  1516. any1.MaxOccurs = decimal.MaxValue;
  1517. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1518. sequence.Items.Add(any1);
  1519. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1520. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1521. any2.MinOccurs = new decimal(1);
  1522. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1523. sequence.Items.Add(any2);
  1524. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1525. attribute1.Name = "namespace";
  1526. attribute1.FixedValue = ds.Namespace;
  1527. type.Attributes.Add(attribute1);
  1528. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1529. attribute2.Name = "tableTypeName";
  1530. attribute2.FixedValue = "АдминистраторDataTable";
  1531. type.Attributes.Add(attribute2);
  1532. type.Particle = sequence;
  1533. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1534. if (xs.Contains(dsSchema.TargetNamespace)) {
  1535. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1536. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1537. try {
  1538. global::System.Xml.Schema.XmlSchema schema = null;
  1539. dsSchema.Write(s1);
  1540. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1541. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1542. s2.SetLength(0);
  1543. schema.Write(s2);
  1544. if ((s1.Length == s2.Length)) {
  1545. s1.Position = 0;
  1546. s2.Position = 0;
  1547. for (; ((s1.Position != s1.Length)
  1548. && (s1.ReadByte() == s2.ReadByte())); ) {
  1549. ;
  1550. }
  1551. if ((s1.Position == s1.Length)) {
  1552. return type;
  1553. }
  1554. }
  1555. }
  1556. }
  1557. finally {
  1558. if ((s1 != null)) {
  1559. s1.Close();
  1560. }
  1561. if ((s2 != null)) {
  1562. s2.Close();
  1563. }
  1564. }
  1565. }
  1566. xs.Add(dsSchema);
  1567. return type;
  1568. }
  1569. }
  1570. /// <summary>
  1571. ///Represents the strongly named DataTable class.
  1572. ///</summary>
  1573. [global::System.Serializable()]
  1574. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1575. public partial class АнализаторDataTable : global::System.Data.TypedTableBase<АнализаторRow> {
  1576. private global::System.Data.DataColumn columnID_Анализатора;
  1577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1579. public АнализаторDataTable() {
  1580. this.TableName = "Анализатор";
  1581. this.BeginInit();
  1582. this.InitClass();
  1583. this.EndInit();
  1584. }
  1585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1587. internal АнализаторDataTable(global::System.Data.DataTable table) {
  1588. this.TableName = table.TableName;
  1589. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1590. this.CaseSensitive = table.CaseSensitive;
  1591. }
  1592. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1593. this.Locale = table.Locale;
  1594. }
  1595. if ((table.Namespace != table.DataSet.Namespace)) {
  1596. this.Namespace = table.Namespace;
  1597. }
  1598. this.Prefix = table.Prefix;
  1599. this.MinimumCapacity = table.MinimumCapacity;
  1600. }
  1601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1603. protected АнализаторDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1604. base(info, context) {
  1605. this.InitVars();
  1606. }
  1607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1609. public global::System.Data.DataColumn ID_АнализатораColumn {
  1610. get {
  1611. return this.columnID_Анализатора;
  1612. }
  1613. }
  1614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1616. [global::System.ComponentModel.Browsable(false)]
  1617. public int Count {
  1618. get {
  1619. return this.Rows.Count;
  1620. }
  1621. }
  1622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1624. public АнализаторRow this[int index] {
  1625. get {
  1626. return ((АнализаторRow)(this.Rows[index]));
  1627. }
  1628. }
  1629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1630. public event АнализаторRowChangeEventHandler АнализаторRowChanging;
  1631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1632. public event АнализаторRowChangeEventHandler АнализаторRowChanged;
  1633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1634. public event АнализаторRowChangeEventHandler АнализаторRowDeleting;
  1635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1636. public event АнализаторRowChangeEventHandler АнализаторRowDeleted;
  1637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1639. public void AddАнализаторRow(АнализаторRow row) {
  1640. this.Rows.Add(row);
  1641. }
  1642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1644. public АнализаторRow AddАнализаторRow(long ID_Анализатора) {
  1645. АнализаторRow rowАнализаторRow = ((АнализаторRow)(this.NewRow()));
  1646. object[] columnValuesArray = new object[] {
  1647. ID_Анализатора};
  1648. rowАнализаторRow.ItemArray = columnValuesArray;
  1649. this.Rows.Add(rowАнализаторRow);
  1650. return rowАнализаторRow;
  1651. }
  1652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1654. public АнализаторRow FindByID_Анализатора(long ID_Анализатора) {
  1655. return ((АнализаторRow)(this.Rows.Find(new object[] {
  1656. ID_Анализатора})));
  1657. }
  1658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1660. public override global::System.Data.DataTable Clone() {
  1661. АнализаторDataTable cln = ((АнализаторDataTable)(base.Clone()));
  1662. cln.InitVars();
  1663. return cln;
  1664. }
  1665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1667. protected override global::System.Data.DataTable CreateInstance() {
  1668. return new АнализаторDataTable();
  1669. }
  1670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1672. internal void InitVars() {
  1673. this.columnID_Анализатора = base.Columns["ID_Анализатора"];
  1674. }
  1675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1677. private void InitClass() {
  1678. this.columnID_Анализатора = new global::System.Data.DataColumn("ID_Анализатора", typeof(long), null, global::System.Data.MappingType.Element);
  1679. base.Columns.Add(this.columnID_Анализатора);
  1680. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1681. this.columnID_Анализатора}, true));
  1682. this.columnID_Анализатора.AllowDBNull = false;
  1683. this.columnID_Анализатора.Unique = true;
  1684. }
  1685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1687. public АнализаторRow NewАнализаторRow() {
  1688. return ((АнализаторRow)(this.NewRow()));
  1689. }
  1690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1692. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1693. return new АнализаторRow(builder);
  1694. }
  1695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1697. protected override global::System.Type GetRowType() {
  1698. return typeof(АнализаторRow);
  1699. }
  1700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1702. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1703. base.OnRowChanged(e);
  1704. if ((this.АнализаторRowChanged != null)) {
  1705. this.АнализаторRowChanged(this, new АнализаторRowChangeEvent(((АнализаторRow)(e.Row)), e.Action));
  1706. }
  1707. }
  1708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1710. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1711. base.OnRowChanging(e);
  1712. if ((this.АнализаторRowChanging != null)) {
  1713. this.АнализаторRowChanging(this, new АнализаторRowChangeEvent(((АнализаторRow)(e.Row)), e.Action));
  1714. }
  1715. }
  1716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1718. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1719. base.OnRowDeleted(e);
  1720. if ((this.АнализаторRowDeleted != null)) {
  1721. this.АнализаторRowDeleted(this, new АнализаторRowChangeEvent(((АнализаторRow)(e.Row)), e.Action));
  1722. }
  1723. }
  1724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1726. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1727. base.OnRowDeleting(e);
  1728. if ((this.АнализаторRowDeleting != null)) {
  1729. this.АнализаторRowDeleting(this, new АнализаторRowChangeEvent(((АнализаторRow)(e.Row)), e.Action));
  1730. }
  1731. }
  1732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1734. public void RemoveАнализаторRow(АнализаторRow row) {
  1735. this.Rows.Remove(row);
  1736. }
  1737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1739. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1740. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1741. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1742. ИсследованияБиоматериалаDataSet ds = new ИсследованияБиоматериалаDataSet();
  1743. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1744. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1745. any1.MinOccurs = new decimal(0);
  1746. any1.MaxOccurs = decimal.MaxValue;
  1747. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1748. sequence.Items.Add(any1);
  1749. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1750. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1751. any2.MinOccurs = new decimal(1);
  1752. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1753. sequence.Items.Add(any2);
  1754. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1755. attribute1.Name = "namespace";
  1756. attribute1.FixedValue = ds.Namespace;
  1757. type.Attributes.Add(attribute1);
  1758. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1759. attribute2.Name = "tableTypeName";
  1760. attribute2.FixedValue = "АнализаторDataTable";
  1761. type.Attributes.Add(attribute2);
  1762. type.Particle = sequence;
  1763. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1764. if (xs.Contains(dsSchema.TargetNamespace)) {
  1765. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1766. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1767. try {
  1768. global::System.Xml.Schema.XmlSchema schema = null;
  1769. dsSchema.Write(s1);
  1770. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1771. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1772. s2.SetLength(0);
  1773. schema.Write(s2);
  1774. if ((s1.Length == s2.Length)) {
  1775. s1.Position = 0;
  1776. s2.Position = 0;
  1777. for (; ((s1.Position != s1.Length)
  1778. && (s1.ReadByte() == s2.ReadByte())); ) {
  1779. ;
  1780. }
  1781. if ((s1.Position == s1.Length)) {
  1782. return type;
  1783. }
  1784. }
  1785. }
  1786. }
  1787. finally {
  1788. if ((s1 != null)) {
  1789. s1.Close();
  1790. }
  1791. if ((s2 != null)) {
  1792. s2.Close();
  1793. }
  1794. }
  1795. }
  1796. xs.Add(dsSchema);
  1797. return type;
  1798. }
  1799. }
  1800. /// <summary>
  1801. ///Represents the strongly named DataTable class.
  1802. ///</summary>
  1803. [global::System.Serializable()]
  1804. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1805. public partial class БухгалтерDataTable : global::System.Data.TypedTableBase<БухгалтерRow> {
  1806. private global::System.Data.DataColumn columnID_Бухгалтера;
  1807. private global::System.Data.DataColumn columnID_Услуги;
  1808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1810. public БухгалтерDataTable() {
  1811. this.TableName = "Бухгалтер";
  1812. this.BeginInit();
  1813. this.InitClass();
  1814. this.EndInit();
  1815. }
  1816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1818. internal БухгалтерDataTable(global::System.Data.DataTable table) {
  1819. this.TableName = table.TableName;
  1820. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1821. this.CaseSensitive = table.CaseSensitive;
  1822. }
  1823. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1824. this.Locale = table.Locale;
  1825. }
  1826. if ((table.Namespace != table.DataSet.Namespace)) {
  1827. this.Namespace = table.Namespace;
  1828. }
  1829. this.Prefix = table.Prefix;
  1830. this.MinimumCapacity = table.MinimumCapacity;
  1831. }
  1832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1834. protected БухгалтерDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1835. base(info, context) {
  1836. this.InitVars();
  1837. }
  1838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1840. public global::System.Data.DataColumn ID_БухгалтераColumn {
  1841. get {
  1842. return this.columnID_Бухгалтера;
  1843. }
  1844. }
  1845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1847. public global::System.Data.DataColumn ID_УслугиColumn {
  1848. get {
  1849. return this.columnID_Услуги;
  1850. }
  1851. }
  1852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1854. [global::System.ComponentModel.Browsable(false)]
  1855. public int Count {
  1856. get {
  1857. return this.Rows.Count;
  1858. }
  1859. }
  1860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1862. public БухгалтерRow this[int index] {
  1863. get {
  1864. return ((БухгалтерRow)(this.Rows[index]));
  1865. }
  1866. }
  1867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1868. public event БухгалтерRowChangeEventHandler БухгалтерRowChanging;
  1869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1870. public event БухгалтерRowChangeEventHandler БухгалтерRowChanged;
  1871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1872. public event БухгалтерRowChangeEventHandler БухгалтерRowDeleting;
  1873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1874. public event БухгалтерRowChangeEventHandler БухгалтерRowDeleted;
  1875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1877. public void AddБухгалтерRow(БухгалтерRow row) {
  1878. this.Rows.Add(row);
  1879. }
  1880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1882. public БухгалтерRow AddБухгалтерRow(long ID_Бухгалтера, УслугиЛабораторииRow parentУслугиЛабораторииRowByFK_Бухгалтер_УслугиЛаборатории) {
  1883. БухгалтерRow rowБухгалтерRow = ((БухгалтерRow)(this.NewRow()));
  1884. object[] columnValuesArray = new object[] {
  1885. ID_Бухгалтера,
  1886. null};
  1887. if ((parentУслугиЛабораторииRowByFK_Бухгалтер_УслугиЛаборатории != null)) {
  1888. columnValuesArray[1] = parentУслугиЛабораторииRowByFK_Бухгалтер_УслугиЛаборатории[0];
  1889. }
  1890. rowБухгалтерRow.ItemArray = columnValuesArray;
  1891. this.Rows.Add(rowБухгалтерRow);
  1892. return rowБухгалтерRow;
  1893. }
  1894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1896. public БухгалтерRow FindByID_Бухгалтера(long ID_Бухгалтера) {
  1897. return ((БухгалтерRow)(this.Rows.Find(new object[] {
  1898. ID_Бухгалтера})));
  1899. }
  1900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1902. public override global::System.Data.DataTable Clone() {
  1903. БухгалтерDataTable cln = ((БухгалтерDataTable)(base.Clone()));
  1904. cln.InitVars();
  1905. return cln;
  1906. }
  1907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1909. protected override global::System.Data.DataTable CreateInstance() {
  1910. return new БухгалтерDataTable();
  1911. }
  1912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1914. internal void InitVars() {
  1915. this.columnID_Бухгалтера = base.Columns["ID_Бухгалтера"];
  1916. this.columnID_Услуги = base.Columns["ID_Услуги"];
  1917. }
  1918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1920. private void InitClass() {
  1921. this.columnID_Бухгалтера = new global::System.Data.DataColumn("ID_Бухгалтера", typeof(long), null, global::System.Data.MappingType.Element);
  1922. base.Columns.Add(this.columnID_Бухгалтера);
  1923. this.columnID_Услуги = new global::System.Data.DataColumn("ID_Услуги", typeof(long), null, global::System.Data.MappingType.Element);
  1924. base.Columns.Add(this.columnID_Услуги);
  1925. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1926. this.columnID_Бухгалтера}, true));
  1927. this.columnID_Бухгалтера.AllowDBNull = false;
  1928. this.columnID_Бухгалтера.Unique = true;
  1929. this.columnID_Услуги.AllowDBNull = false;
  1930. }
  1931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1933. public БухгалтерRow NewБухгалтерRow() {
  1934. return ((БухгалтерRow)(this.NewRow()));
  1935. }
  1936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1938. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1939. return new БухгалтерRow(builder);
  1940. }
  1941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1943. protected override global::System.Type GetRowType() {
  1944. return typeof(БухгалтерRow);
  1945. }
  1946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1948. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1949. base.OnRowChanged(e);
  1950. if ((this.БухгалтерRowChanged != null)) {
  1951. this.БухгалтерRowChanged(this, new БухгалтерRowChangeEvent(((БухгалтерRow)(e.Row)), e.Action));
  1952. }
  1953. }
  1954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1956. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1957. base.OnRowChanging(e);
  1958. if ((this.БухгалтерRowChanging != null)) {
  1959. this.БухгалтерRowChanging(this, new БухгалтерRowChangeEvent(((БухгалтерRow)(e.Row)), e.Action));
  1960. }
  1961. }
  1962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1964. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1965. base.OnRowDeleted(e);
  1966. if ((this.БухгалтерRowDeleted != null)) {
  1967. this.БухгалтерRowDeleted(this, new БухгалтерRowChangeEvent(((БухгалтерRow)(e.Row)), e.Action));
  1968. }
  1969. }
  1970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1972. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1973. base.OnRowDeleting(e);
  1974. if ((this.БухгалтерRowDeleting != null)) {
  1975. this.БухгалтерRowDeleting(this, new БухгалтерRowChangeEvent(((БухгалтерRow)(e.Row)), e.Action));
  1976. }
  1977. }
  1978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1980. public void RemoveБухгалтерRow(БухгалтерRow row) {
  1981. this.Rows.Remove(row);
  1982. }
  1983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1985. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1986. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1987. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1988. ИсследованияБиоматериалаDataSet ds = new ИсследованияБиоматериалаDataSet();
  1989. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1990. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1991. any1.MinOccurs = new decimal(0);
  1992. any1.MaxOccurs = decimal.MaxValue;
  1993. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1994. sequence.Items.Add(any1);
  1995. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1996. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1997. any2.MinOccurs = new decimal(1);
  1998. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1999. sequence.Items.Add(any2);
  2000. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2001. attribute1.Name = "namespace";
  2002. attribute1.FixedValue = ds.Namespace;
  2003. type.Attributes.Add(attribute1);
  2004. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2005. attribute2.Name = "tableTypeName";
  2006. attribute2.FixedValue = "БухгалтерDataTable";
  2007. type.Attributes.Add(attribute2);
  2008. type.Particle = sequence;
  2009. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2010. if (xs.Contains(dsSchema.TargetNamespace)) {
  2011. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2012. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2013. try {
  2014. global::System.Xml.Schema.XmlSchema schema = null;
  2015. dsSchema.Write(s1);
  2016. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2017. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2018. s2.SetLength(0);
  2019. schema.Write(s2);
  2020. if ((s1.Length == s2.Length)) {
  2021. s1.Position = 0;
  2022. s2.Position = 0;
  2023. for (; ((s1.Position != s1.Length)
  2024. && (s1.ReadByte() == s2.ReadByte())); ) {
  2025. ;
  2026. }
  2027. if ((s1.Position == s1.Length)) {
  2028. return type;
  2029. }
  2030. }
  2031. }
  2032. }
  2033. finally {
  2034. if ((s1 != null)) {
  2035. s1.Close();
  2036. }
  2037. if ((s2 != null)) {
  2038. s2.Close();
  2039. }
  2040. }
  2041. }
  2042. xs.Add(dsSchema);
  2043. return type;
  2044. }
  2045. }
  2046. /// <summary>
  2047. ///Represents the strongly named DataTable class.
  2048. ///</summary>
  2049. [global::System.Serializable()]
  2050. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2051. public partial class ДанныеПациентовDataTable : global::System.Data.TypedTableBase<ДанныеПациентовRow> {
  2052. private global::System.Data.DataColumn columnID_Пациент;
  2053. private global::System.Data.DataColumn columnлогин;
  2054. private global::System.Data.DataColumn columnпароль;
  2055. private global::System.Data.DataColumn columnФамилия;
  2056. private global::System.Data.DataColumn columnИмя;
  2057. private global::System.Data.DataColumn columnОтчество;
  2058. private global::System.Data.DataColumn columnДатаРождения;
  2059. private global::System.Data.DataColumn columnСерияИНомер_паспорта;
  2060. private global::System.Data.DataColumn columnТелефон;
  2061. private global::System.Data.DataColumn _columne_mail;
  2062. private global::System.Data.DataColumn columnНомерСтраховогоПолиса;
  2063. private global::System.Data.DataColumn columnТипСтраховогоПолиса;
  2064. private global::System.Data.DataColumn columnID_Компании;
  2065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2067. public ДанныеПациентовDataTable() {
  2068. this.TableName = "ДанныеПациентов";
  2069. this.BeginInit();
  2070. this.InitClass();
  2071. this.EndInit();
  2072. }
  2073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2075. internal ДанныеПациентовDataTable(global::System.Data.DataTable table) {
  2076. this.TableName = table.TableName;
  2077. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2078. this.CaseSensitive = table.CaseSensitive;
  2079. }
  2080. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2081. this.Locale = table.Locale;
  2082. }
  2083. if ((table.Namespace != table.DataSet.Namespace)) {
  2084. this.Namespace = table.Namespace;
  2085. }
  2086. this.Prefix = table.Prefix;
  2087. this.MinimumCapacity = table.MinimumCapacity;
  2088. }
  2089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2091. protected ДанныеПациентовDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2092. base(info, context) {
  2093. this.InitVars();
  2094. }
  2095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2097. public global::System.Data.DataColumn ID_ПациентColumn {
  2098. get {
  2099. return this.columnID_Пациент;
  2100. }
  2101. }
  2102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2104. public global::System.Data.DataColumn логинColumn {
  2105. get {
  2106. return this.columnлогин;
  2107. }
  2108. }
  2109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2111. public global::System.Data.DataColumn парольColumn {
  2112. get {
  2113. return this.columnпароль;
  2114. }
  2115. }
  2116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2118. public global::System.Data.DataColumn ФамилияColumn {
  2119. get {
  2120. return this.columnФамилия;
  2121. }
  2122. }
  2123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2125. public global::System.Data.DataColumn ИмяColumn {
  2126. get {
  2127. return this.columnИмя;
  2128. }
  2129. }
  2130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2132. public global::System.Data.DataColumn ОтчествоColumn {
  2133. get {
  2134. return this.columnОтчество;
  2135. }
  2136. }
  2137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2139. public global::System.Data.DataColumn ДатаРожденияColumn {
  2140. get {
  2141. return this.columnДатаРождения;
  2142. }
  2143. }
  2144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2146. public global::System.Data.DataColumn СерияИНомер_паспортаColumn {
  2147. get {
  2148. return this.columnСерияИНомер_паспорта;
  2149. }
  2150. }
  2151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2153. public global::System.Data.DataColumn ТелефонColumn {
  2154. get {
  2155. return this.columnТелефон;
  2156. }
  2157. }
  2158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2160. public global::System.Data.DataColumn _e_mailColumn {
  2161. get {
  2162. return this._columne_mail;
  2163. }
  2164. }
  2165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2167. public global::System.Data.DataColumn НомерСтраховогоПолисаColumn {
  2168. get {
  2169. return this.columnНомерСтраховогоПолиса;
  2170. }
  2171. }
  2172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2174. public global::System.Data.DataColumn ТипСтраховогоПолисаColumn {
  2175. get {
  2176. return this.columnТипСтраховогоПолиса;
  2177. }
  2178. }
  2179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2181. public global::System.Data.DataColumn ID_КомпанииColumn {
  2182. get {
  2183. return this.columnID_Компании;
  2184. }
  2185. }
  2186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2188. [global::System.ComponentModel.Browsable(false)]
  2189. public int Count {
  2190. get {
  2191. return this.Rows.Count;
  2192. }
  2193. }
  2194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2196. public ДанныеПациентовRow this[int index] {
  2197. get {
  2198. return ((ДанныеПациентовRow)(this.Rows[index]));
  2199. }
  2200. }
  2201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2202. public event ДанныеПациентовRowChangeEventHandler ДанныеПациентовRowChanging;
  2203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2204. public event ДанныеПациентовRowChangeEventHandler ДанныеПациентовRowChanged;
  2205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2206. public event ДанныеПациентовRowChangeEventHandler ДанныеПациентовRowDeleting;
  2207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2208. public event ДанныеПациентовRowChangeEventHandler ДанныеПациентовRowDeleted;
  2209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2211. public void AddДанныеПациентовRow(ДанныеПациентовRow row) {
  2212. this.Rows.Add(row);
  2213. }
  2214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2216. public ДанныеПациентовRow AddДанныеПациентовRow(long ID_Пациент, string логин, string пароль, string Фамилия, string Имя, string Отчество, System.DateTime ДатаРождения, string СерияИНомер_паспорта, string Телефон, string _e_mail, string НомерСтраховогоПолиса, string ТипСтраховогоПолиса, СтраховаяКомпанияRow parentСтраховаяКомпанияRowByFK_ДанныеПациентов_СтраховаяКомпания) {
  2217. ДанныеПациентовRow rowДанныеПациентовRow = ((ДанныеПациентовRow)(this.NewRow()));
  2218. object[] columnValuesArray = new object[] {
  2219. ID_Пациент,
  2220. логин,
  2221. пароль,
  2222. Фамилия,
  2223. Имя,
  2224. Отчество,
  2225. ДатаРождения,
  2226. СерияИНомер_паспорта,
  2227. Телефон,
  2228. _e_mail,
  2229. НомерСтраховогоПолиса,
  2230. ТипСтраховогоПолиса,
  2231. null};
  2232. if ((parentСтраховаяКомпанияRowByFK_ДанныеПациентов_СтраховаяКомпания != null)) {
  2233. columnValuesArray[12] = parentСтраховаяКомпанияRowByFK_ДанныеПациентов_СтраховаяКомпания[0];
  2234. }
  2235. rowДанныеПациентовRow.ItemArray = columnValuesArray;
  2236. this.Rows.Add(rowДанныеПациентовRow);
  2237. return rowДанныеПациентовRow;
  2238. }
  2239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2241. public ДанныеПациентовRow FindByID_Пациент(long ID_Пациент) {
  2242. return ((ДанныеПациентовRow)(this.Rows.Find(new object[] {
  2243. ID_Пациент})));
  2244. }
  2245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2247. public override global::System.Data.DataTable Clone() {
  2248. ДанныеПациентовDataTable cln = ((ДанныеПациентовDataTable)(base.Clone()));
  2249. cln.InitVars();
  2250. return cln;
  2251. }
  2252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2254. protected override global::System.Data.DataTable CreateInstance() {
  2255. return new ДанныеПациентовDataTable();
  2256. }
  2257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2259. internal void InitVars() {
  2260. this.columnID_Пациент = base.Columns["ID_Пациент"];
  2261. this.columnлогин = base.Columns["логин"];
  2262. this.columnпароль = base.Columns["пароль"];
  2263. this.columnФамилия = base.Columns["Фамилия"];
  2264. this.columnИмя = base.Columns["Имя"];
  2265. this.columnОтчество = base.Columns["Отчество"];
  2266. this.columnДатаРождения = base.Columns["ДатаРождения"];
  2267. this.columnСерияИНомер_паспорта = base.Columns["СерияИНомер_паспорта"];
  2268. this.columnТелефон = base.Columns["Телефон"];
  2269. this._columne_mail = base.Columns["e-mail"];
  2270. this.columnНомерСтраховогоПолиса = base.Columns["НомерСтраховогоПолиса"];
  2271. this.columnТипСтраховогоПолиса = base.Columns["ТипСтраховогоПолиса"];
  2272. this.columnID_Компании = base.Columns["ID_Компании"];
  2273. }
  2274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2276. private void InitClass() {
  2277. this.columnID_Пациент = new global::System.Data.DataColumn("ID_Пациент", typeof(long), null, global::System.Data.MappingType.Element);
  2278. base.Columns.Add(this.columnID_Пациент);
  2279. this.columnлогин = new global::System.Data.DataColumn("логин", typeof(string), null, global::System.Data.MappingType.Element);
  2280. base.Columns.Add(this.columnлогин);
  2281. this.columnпароль = new global::System.Data.DataColumn("пароль", typeof(string), null, global::System.Data.MappingType.Element);
  2282. base.Columns.Add(this.columnпароль);
  2283. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  2284. base.Columns.Add(this.columnФамилия);
  2285. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  2286. base.Columns.Add(this.columnИмя);
  2287. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  2288. base.Columns.Add(this.columnОтчество);
  2289. this.columnДатаРождения = new global::System.Data.DataColumn("ДатаРождения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2290. base.Columns.Add(this.columnДатаРождения);
  2291. this.columnСерияИНомер_паспорта = new global::System.Data.DataColumn("СерияИНомер_паспорта", typeof(string), null, global::System.Data.MappingType.Element);
  2292. base.Columns.Add(this.columnСерияИНомер_паспорта);
  2293. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  2294. base.Columns.Add(this.columnТелефон);
  2295. this._columne_mail = new global::System.Data.DataColumn("e-mail", typeof(string), null, global::System.Data.MappingType.Element);
  2296. this._columne_mail.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columne_mail");
  2297. this._columne_mail.ExtendedProperties.Add("Generator_UserColumnName", "e-mail");
  2298. base.Columns.Add(this._columne_mail);
  2299. this.columnНомерСтраховогоПолиса = new global::System.Data.DataColumn("НомерСтраховогоПолиса", typeof(string), null, global::System.Data.MappingType.Element);
  2300. base.Columns.Add(this.columnНомерСтраховогоПолиса);
  2301. this.columnТипСтраховогоПолиса = new global::System.Data.DataColumn("ТипСтраховогоПолиса", typeof(string), null, global::System.Data.MappingType.Element);
  2302. base.Columns.Add(this.columnТипСтраховогоПолиса);
  2303. this.columnID_Компании = new global::System.Data.DataColumn("ID_Компании", typeof(long), null, global::System.Data.MappingType.Element);
  2304. base.Columns.Add(this.columnID_Компании);
  2305. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2306. this.columnID_Пациент}, true));
  2307. this.columnID_Пациент.AllowDBNull = false;
  2308. this.columnID_Пациент.Unique = true;
  2309. this.columnлогин.MaxLength = 50;
  2310. this.columnпароль.MaxLength = 50;
  2311. this.columnФамилия.MaxLength = 50;
  2312. this.columnИмя.MaxLength = 50;
  2313. this.columnОтчество.MaxLength = 50;
  2314. this.columnСерияИНомер_паспорта.MaxLength = 50;
  2315. this.columnТелефон.MaxLength = 11;
  2316. this._columne_mail.MaxLength = 50;
  2317. this.columnНомерСтраховогоПолиса.MaxLength = 50;
  2318. this.columnТипСтраховогоПолиса.MaxLength = 50;
  2319. }
  2320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2322. public ДанныеПациентовRow NewДанныеПациентовRow() {
  2323. return ((ДанныеПациентовRow)(this.NewRow()));
  2324. }
  2325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2327. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2328. return new ДанныеПациентовRow(builder);
  2329. }
  2330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2332. protected override global::System.Type GetRowType() {
  2333. return typeof(ДанныеПациентовRow);
  2334. }
  2335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2337. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2338. base.OnRowChanged(e);
  2339. if ((this.ДанныеПациентовRowChanged != null)) {
  2340. this.ДанныеПациентовRowChanged(this, new ДанныеПациентовRowChangeEvent(((ДанныеПациентовRow)(e.Row)), e.Action));
  2341. }
  2342. }
  2343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2345. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2346. base.OnRowChanging(e);
  2347. if ((this.ДанныеПациентовRowChanging != null)) {
  2348. this.ДанныеПациентовRowChanging(this, new ДанныеПациентовRowChangeEvent(((ДанныеПациентовRow)(e.Row)), e.Action));
  2349. }
  2350. }
  2351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2353. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2354. base.OnRowDeleted(e);
  2355. if ((this.ДанныеПациентовRowDeleted != null)) {
  2356. this.ДанныеПациентовRowDeleted(this, new ДанныеПациентовRowChangeEvent(((ДанныеПациентовRow)(e.Row)), e.Action));
  2357. }
  2358. }
  2359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2361. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2362. base.OnRowDeleting(e);
  2363. if ((this.ДанныеПациентовRowDeleting != null)) {
  2364. this.ДанныеПациентовRowDeleting(this, new ДанныеПациентовRowChangeEvent(((ДанныеПациентовRow)(e.Row)), e.Action));
  2365. }
  2366. }
  2367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2369. public void RemoveДанныеПациентовRow(ДанныеПациентовRow row) {
  2370. this.Rows.Remove(row);
  2371. }
  2372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2374. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2375. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2376. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2377. ИсследованияБиоматериалаDataSet ds = new ИсследованияБиоматериалаDataSet();
  2378. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2379. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2380. any1.MinOccurs = new decimal(0);
  2381. any1.MaxOccurs = decimal.MaxValue;
  2382. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2383. sequence.Items.Add(any1);
  2384. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2385. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2386. any2.MinOccurs = new decimal(1);
  2387. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2388. sequence.Items.Add(any2);
  2389. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2390. attribute1.Name = "namespace";
  2391. attribute1.FixedValue = ds.Namespace;
  2392. type.Attributes.Add(attribute1);
  2393. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2394. attribute2.Name = "tableTypeName";
  2395. attribute2.FixedValue = "ДанныеПациентовDataTable";
  2396. type.Attributes.Add(attribute2);
  2397. type.Particle = sequence;
  2398. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2399. if (xs.Contains(dsSchema.TargetNamespace)) {
  2400. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2401. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2402. try {
  2403. global::System.Xml.Schema.XmlSchema schema = null;
  2404. dsSchema.Write(s1);
  2405. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2406. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2407. s2.SetLength(0);
  2408. schema.Write(s2);
  2409. if ((s1.Length == s2.Length)) {
  2410. s1.Position = 0;
  2411. s2.Position = 0;
  2412. for (; ((s1.Position != s1.Length)
  2413. && (s1.ReadByte() == s2.ReadByte())); ) {
  2414. ;
  2415. }
  2416. if ((s1.Position == s1.Length)) {
  2417. return type;
  2418. }
  2419. }
  2420. }
  2421. }
  2422. finally {
  2423. if ((s1 != null)) {
  2424. s1.Close();
  2425. }
  2426. if ((s2 != null)) {
  2427. s2.Close();
  2428. }
  2429. }
  2430. }
  2431. xs.Add(dsSchema);
  2432. return type;
  2433. }
  2434. }
  2435. /// <summary>
  2436. ///Represents the strongly named DataTable class.
  2437. ///</summary>
  2438. [global::System.Serializable()]
  2439. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2440. public partial class ЗаказDataTable : global::System.Data.TypedTableBase<ЗаказRow> {
  2441. private global::System.Data.DataColumn columnID_Заказа;
  2442. private global::System.Data.DataColumn columnДатаСоздания;
  2443. private global::System.Data.DataColumn columnСтатусЗаказа;
  2444. private global::System.Data.DataColumn columnСтатусУслуги;
  2445. private global::System.Data.DataColumn columnВремяВыполнения;
  2446. private global::System.Data.DataColumn columnID_Счета;
  2447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2449. public ЗаказDataTable() {
  2450. this.TableName = "Заказ";
  2451. this.BeginInit();
  2452. this.InitClass();
  2453. this.EndInit();
  2454. }
  2455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2457. internal ЗаказDataTable(global::System.Data.DataTable table) {
  2458. this.TableName = table.TableName;
  2459. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2460. this.CaseSensitive = table.CaseSensitive;
  2461. }
  2462. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2463. this.Locale = table.Locale;
  2464. }
  2465. if ((table.Namespace != table.DataSet.Namespace)) {
  2466. this.Namespace = table.Namespace;
  2467. }
  2468. this.Prefix = table.Prefix;
  2469. this.MinimumCapacity = table.MinimumCapacity;
  2470. }
  2471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2473. protected ЗаказDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2474. base(info, context) {
  2475. this.InitVars();
  2476. }
  2477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2479. public global::System.Data.DataColumn ID_ЗаказаColumn {
  2480. get {
  2481. return this.columnID_Заказа;
  2482. }
  2483. }
  2484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2486. public global::System.Data.DataColumn ДатаСозданияColumn {
  2487. get {
  2488. return this.columnДатаСоздания;
  2489. }
  2490. }
  2491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2493. public global::System.Data.DataColumn СтатусЗаказаColumn {
  2494. get {
  2495. return this.columnСтатусЗаказа;
  2496. }
  2497. }
  2498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2500. public global::System.Data.DataColumn СтатусУслугиColumn {
  2501. get {
  2502. return this.columnСтатусУслуги;
  2503. }
  2504. }
  2505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2507. public global::System.Data.DataColumn ВремяВыполненияColumn {
  2508. get {
  2509. return this.columnВремяВыполнения;
  2510. }
  2511. }
  2512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2514. public global::System.Data.DataColumn ID_СчетаColumn {
  2515. get {
  2516. return this.columnID_Счета;
  2517. }
  2518. }
  2519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2521. [global::System.ComponentModel.Browsable(false)]
  2522. public int Count {
  2523. get {
  2524. return this.Rows.Count;
  2525. }
  2526. }
  2527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2529. public ЗаказRow this[int index] {
  2530. get {
  2531. return ((ЗаказRow)(this.Rows[index]));
  2532. }
  2533. }
  2534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2535. public event ЗаказRowChangeEventHandler ЗаказRowChanging;
  2536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2537. public event ЗаказRowChangeEventHandler ЗаказRowChanged;
  2538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2539. public event ЗаказRowChangeEventHandler ЗаказRowDeleting;
  2540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2541. public event ЗаказRowChangeEventHandler ЗаказRowDeleted;
  2542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2544. public void AddЗаказRow(ЗаказRow row) {
  2545. this.Rows.Add(row);
  2546. }
  2547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2549. public ЗаказRow AddЗаказRow(long ID_Заказа, System.DateTime ДатаСоздания, string СтатусЗаказа, string СтатусУслуги, int ВремяВыполнения, СчетаRow parentСчетаRowByFK_Заказ_Счета) {
  2550. ЗаказRow rowЗаказRow = ((ЗаказRow)(this.NewRow()));
  2551. object[] columnValuesArray = new object[] {
  2552. ID_Заказа,
  2553. ДатаСоздания,
  2554. СтатусЗаказа,
  2555. СтатусУслуги,
  2556. ВремяВыполнения,
  2557. null};
  2558. if ((parentСчетаRowByFK_Заказ_Счета != null)) {
  2559. columnValuesArray[5] = parentСчетаRowByFK_Заказ_Счета[0];
  2560. }
  2561. rowЗаказRow.ItemArray = columnValuesArray;
  2562. this.Rows.Add(rowЗаказRow);
  2563. return rowЗаказRow;
  2564. }
  2565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2567. public ЗаказRow FindByID_Заказа(long ID_Заказа) {
  2568. return ((ЗаказRow)(this.Rows.Find(new object[] {
  2569. ID_Заказа})));
  2570. }
  2571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2573. public override global::System.Data.DataTable Clone() {
  2574. ЗаказDataTable cln = ((ЗаказDataTable)(base.Clone()));
  2575. cln.InitVars();
  2576. return cln;
  2577. }
  2578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2580. protected override global::System.Data.DataTable CreateInstance() {
  2581. return new ЗаказDataTable();
  2582. }
  2583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2585. internal void InitVars() {
  2586. this.columnID_Заказа = base.Columns["ID_Заказа"];
  2587. this.columnДатаСоздания = base.Columns["ДатаСоздания"];
  2588. this.columnСтатусЗаказа = base.Columns["СтатусЗаказа"];
  2589. this.columnСтатусУслуги = base.Columns["СтатусУслуги"];
  2590. this.columnВремяВыполнения = base.Columns["ВремяВыполнения"];
  2591. this.columnID_Счета = base.Columns["ID_Счета"];
  2592. }
  2593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2595. private void InitClass() {
  2596. this.columnID_Заказа = new global::System.Data.DataColumn("ID_Заказа", typeof(long), null, global::System.Data.MappingType.Element);
  2597. base.Columns.Add(this.columnID_Заказа);
  2598. this.columnДатаСоздания = new global::System.Data.DataColumn("ДатаСоздания", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2599. base.Columns.Add(this.columnДатаСоздания);
  2600. this.columnСтатусЗаказа = new global::System.Data.DataColumn("СтатусЗаказа", typeof(string), null, global::System.Data.MappingType.Element);
  2601. base.Columns.Add(this.columnСтатусЗаказа);
  2602. this.columnСтатусУслуги = new global::System.Data.DataColumn("СтатусУслуги", typeof(string), null, global::System.Data.MappingType.Element);
  2603. base.Columns.Add(this.columnСтатусУслуги);
  2604. this.columnВремяВыполнения = new global::System.Data.DataColumn("ВремяВыполнения", typeof(int), null, global::System.Data.MappingType.Element);
  2605. base.Columns.Add(this.columnВремяВыполнения);
  2606. this.columnID_Счета = new global::System.Data.DataColumn("ID_Счета", typeof(long), null, global::System.Data.MappingType.Element);
  2607. base.Columns.Add(this.columnID_Счета);
  2608. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2609. this.columnID_Заказа}, true));
  2610. this.columnID_Заказа.AllowDBNull = false;
  2611. this.columnID_Заказа.Unique = true;
  2612. this.columnСтатусЗаказа.MaxLength = 10;
  2613. this.columnСтатусУслуги.MaxLength = 10;
  2614. }
  2615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2617. public ЗаказRow NewЗаказRow() {
  2618. return ((ЗаказRow)(this.NewRow()));
  2619. }
  2620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2622. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2623. return new ЗаказRow(builder);
  2624. }
  2625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2627. protected override global::System.Type GetRowType() {
  2628. return typeof(ЗаказRow);
  2629. }
  2630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2632. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2633. base.OnRowChanged(e);
  2634. if ((this.ЗаказRowChanged != null)) {
  2635. this.ЗаказRowChanged(this, new ЗаказRowChangeEvent(((ЗаказRow)(e.Row)), e.Action));
  2636. }
  2637. }
  2638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2640. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2641. base.OnRowChanging(e);
  2642. if ((this.ЗаказRowChanging != null)) {
  2643. this.ЗаказRowChanging(this, new ЗаказRowChangeEvent(((ЗаказRow)(e.Row)), e.Action));
  2644. }
  2645. }
  2646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2648. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2649. base.OnRowDeleted(e);
  2650. if ((this.ЗаказRowDeleted != null)) {
  2651. this.ЗаказRowDeleted(this, new ЗаказRowChangeEvent(((ЗаказRow)(e.Row)), e.Action));
  2652. }
  2653. }
  2654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2656. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2657. base.OnRowDeleting(e);
  2658. if ((this.ЗаказRowDeleting != null)) {
  2659. this.ЗаказRowDeleting(this, new ЗаказRowChangeEvent(((ЗаказRow)(e.Row)), e.Action));
  2660. }
  2661. }
  2662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2664. public void RemoveЗаказRow(ЗаказRow row) {
  2665. this.Rows.Remove(row);
  2666. }
  2667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2669. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2670. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2671. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2672. ИсследованияБиоматериалаDataSet ds = new ИсследованияБиоматериалаDataSet();
  2673. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2674. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2675. any1.MinOccurs = new decimal(0);
  2676. any1.MaxOccurs = decimal.MaxValue;
  2677. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2678. sequence.Items.Add(any1);
  2679. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2680. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2681. any2.MinOccurs = new decimal(1);
  2682. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2683. sequence.Items.Add(any2);
  2684. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2685. attribute1.Name = "namespace";
  2686. attribute1.FixedValue = ds.Namespace;
  2687. type.Attributes.Add(attribute1);
  2688. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2689. attribute2.Name = "tableTypeName";
  2690. attribute2.FixedValue = "ЗаказDataTable";
  2691. type.Attributes.Add(attribute2);
  2692. type.Particle = sequence;
  2693. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2694. if (xs.Contains(dsSchema.TargetNamespace)) {
  2695. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2696. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2697. try {
  2698. global::System.Xml.Schema.XmlSchema schema = null;
  2699. dsSchema.Write(s1);
  2700. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2701. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2702. s2.SetLength(0);
  2703. schema.Write(s2);
  2704. if ((s1.Length == s2.Length)) {
  2705. s1.Position = 0;
  2706. s2.Position = 0;
  2707. for (; ((s1.Position != s1.Length)
  2708. && (s1.ReadByte() == s2.ReadByte())); ) {
  2709. ;
  2710. }
  2711. if ((s1.Position == s1.Length)) {
  2712. return type;
  2713. }
  2714. }
  2715. }
  2716. }
  2717. finally {
  2718. if ((s1 != null)) {
  2719. s1.Close();
  2720. }
  2721. if ((s2 != null)) {
  2722. s2.Close();
  2723. }
  2724. }
  2725. }
  2726. xs.Add(dsSchema);
  2727. return type;
  2728. }
  2729. }
  2730. /// <summary>
  2731. ///Represents the strongly named DataTable class.
  2732. ///</summary>
  2733. [global::System.Serializable()]
  2734. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2735. public partial class ЛаборантDataTable : global::System.Data.TypedTableBase<ЛаборантRow> {
  2736. private global::System.Data.DataColumn columnID_Лаборанта;
  2737. private global::System.Data.DataColumn columnЛогин;
  2738. private global::System.Data.DataColumn columnПароль;
  2739. private global::System.Data.DataColumn columnФамилия;
  2740. private global::System.Data.DataColumn columnИмя;
  2741. private global::System.Data.DataColumn columnОтчество;
  2742. private global::System.Data.DataColumn columnПоследняяДатаИВремяВхода;
  2743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2745. public ЛаборантDataTable() {
  2746. this.TableName = "Лаборант";
  2747. this.BeginInit();
  2748. this.InitClass();
  2749. this.EndInit();
  2750. }
  2751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2753. internal ЛаборантDataTable(global::System.Data.DataTable table) {
  2754. this.TableName = table.TableName;
  2755. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2756. this.CaseSensitive = table.CaseSensitive;
  2757. }
  2758. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2759. this.Locale = table.Locale;
  2760. }
  2761. if ((table.Namespace != table.DataSet.Namespace)) {
  2762. this.Namespace = table.Namespace;
  2763. }
  2764. this.Prefix = table.Prefix;
  2765. this.MinimumCapacity = table.MinimumCapacity;
  2766. }
  2767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2769. protected ЛаборантDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2770. base(info, context) {
  2771. this.InitVars();
  2772. }
  2773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2775. public global::System.Data.DataColumn ID_ЛаборантаColumn {
  2776. get {
  2777. return this.columnID_Лаборанта;
  2778. }
  2779. }
  2780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2782. public global::System.Data.DataColumn ЛогинColumn {
  2783. get {
  2784. return this.columnЛогин;
  2785. }
  2786. }
  2787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2789. public global::System.Data.DataColumn ПарольColumn {
  2790. get {
  2791. return this.columnПароль;
  2792. }
  2793. }
  2794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2796. public global::System.Data.DataColumn ФамилияColumn {
  2797. get {
  2798. return this.columnФамилия;
  2799. }
  2800. }
  2801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2803. public global::System.Data.DataColumn ИмяColumn {
  2804. get {
  2805. return this.columnИмя;
  2806. }
  2807. }
  2808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2810. public global::System.Data.DataColumn ОтчествоColumn {
  2811. get {
  2812. return this.columnОтчество;
  2813. }
  2814. }
  2815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2817. public global::System.Data.DataColumn ПоследняяДатаИВремяВходаColumn {
  2818. get {
  2819. return this.columnПоследняяДатаИВремяВхода;
  2820. }
  2821. }
  2822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2824. [global::System.ComponentModel.Browsable(false)]
  2825. public int Count {
  2826. get {
  2827. return this.Rows.Count;
  2828. }
  2829. }
  2830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2832. public ЛаборантRow this[int index] {
  2833. get {
  2834. return ((ЛаборантRow)(this.Rows[index]));
  2835. }
  2836. }
  2837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2838. public event ЛаборантRowChangeEventHandler ЛаборантRowChanging;
  2839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2840. public event ЛаборантRowChangeEventHandler ЛаборантRowChanged;
  2841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2842. public event ЛаборантRowChangeEventHandler ЛаборантRowDeleting;
  2843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2844. public event ЛаборантRowChangeEventHandler ЛаборантRowDeleted;
  2845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2847. public void AddЛаборантRow(ЛаборантRow row) {
  2848. this.Rows.Add(row);
  2849. }
  2850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2852. public ЛаборантRow AddЛаборантRow(long ID_Лаборанта, string Логин, string Пароль, string Фамилия, string Имя, string Отчество, System.DateTime ПоследняяДатаИВремяВхода) {
  2853. ЛаборантRow rowЛаборантRow = ((ЛаборантRow)(this.NewRow()));
  2854. object[] columnValuesArray = new object[] {
  2855. ID_Лаборанта,
  2856. Логин,
  2857. Пароль,
  2858. Фамилия,
  2859. Имя,
  2860. Отчество,
  2861. ПоследняяДатаИВремяВхода};
  2862. rowЛаборантRow.ItemArray = columnValuesArray;
  2863. this.Rows.Add(rowЛаборантRow);
  2864. return rowЛаборантRow;
  2865. }
  2866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2868. public ЛаборантRow FindByID_Лаборанта(long ID_Лаборанта) {
  2869. return ((ЛаборантRow)(this.Rows.Find(new object[] {
  2870. ID_Лаборанта})));
  2871. }
  2872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2874. public override global::System.Data.DataTable Clone() {
  2875. ЛаборантDataTable cln = ((ЛаборантDataTable)(base.Clone()));
  2876. cln.InitVars();
  2877. return cln;
  2878. }
  2879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2881. protected override global::System.Data.DataTable CreateInstance() {
  2882. return new ЛаборантDataTable();
  2883. }
  2884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2886. internal void InitVars() {
  2887. this.columnID_Лаборанта = base.Columns["ID_Лаборанта"];
  2888. this.columnЛогин = base.Columns["Логин"];
  2889. this.columnПароль = base.Columns["Пароль"];
  2890. this.columnФамилия = base.Columns["Фамилия"];
  2891. this.columnИмя = base.Columns["Имя"];
  2892. this.columnОтчество = base.Columns["Отчество"];
  2893. this.columnПоследняяДатаИВремяВхода = base.Columns["ПоследняяДатаИВремяВхода"];
  2894. }
  2895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2897. private void InitClass() {
  2898. this.columnID_Лаборанта = new global::System.Data.DataColumn("ID_Лаборанта", typeof(long), null, global::System.Data.MappingType.Element);
  2899. base.Columns.Add(this.columnID_Лаборанта);
  2900. this.columnЛогин = new global::System.Data.DataColumn("Логин", typeof(string), null, global::System.Data.MappingType.Element);
  2901. base.Columns.Add(this.columnЛогин);
  2902. this.columnПароль = new global::System.Data.DataColumn("Пароль", typeof(string), null, global::System.Data.MappingType.Element);
  2903. base.Columns.Add(this.columnПароль);
  2904. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  2905. base.Columns.Add(this.columnФамилия);
  2906. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  2907. base.Columns.Add(this.columnИмя);
  2908. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  2909. base.Columns.Add(this.columnОтчество);
  2910. this.columnПоследняяДатаИВремяВхода = new global::System.Data.DataColumn("ПоследняяДатаИВремяВхода", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2911. base.Columns.Add(this.columnПоследняяДатаИВремяВхода);
  2912. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2913. this.columnID_Лаборанта}, true));
  2914. this.columnID_Лаборанта.AllowDBNull = false;
  2915. this.columnID_Лаборанта.Unique = true;
  2916. this.columnЛогин.MaxLength = 50;
  2917. this.columnПароль.MaxLength = 50;
  2918. this.columnФамилия.MaxLength = 50;
  2919. this.columnИмя.MaxLength = 50;
  2920. this.columnОтчество.MaxLength = 50;
  2921. }
  2922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2924. public ЛаборантRow NewЛаборантRow() {
  2925. return ((ЛаборантRow)(this.NewRow()));
  2926. }
  2927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2929. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2930. return new ЛаборантRow(builder);
  2931. }
  2932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2934. protected override global::System.Type GetRowType() {
  2935. return typeof(ЛаборантRow);
  2936. }
  2937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2939. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2940. base.OnRowChanged(e);
  2941. if ((this.ЛаборантRowChanged != null)) {
  2942. this.ЛаборантRowChanged(this, new ЛаборантRowChangeEvent(((ЛаборантRow)(e.Row)), e.Action));
  2943. }
  2944. }
  2945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2947. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2948. base.OnRowChanging(e);
  2949. if ((this.ЛаборантRowChanging != null)) {
  2950. this.ЛаборантRowChanging(this, new ЛаборантRowChangeEvent(((ЛаборантRow)(e.Row)), e.Action));
  2951. }
  2952. }
  2953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2955. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2956. base.OnRowDeleted(e);
  2957. if ((this.ЛаборантRowDeleted != null)) {
  2958. this.ЛаборантRowDeleted(this, new ЛаборантRowChangeEvent(((ЛаборантRow)(e.Row)), e.Action));
  2959. }
  2960. }
  2961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2963. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2964. base.OnRowDeleting(e);
  2965. if ((this.ЛаборантRowDeleting != null)) {
  2966. this.ЛаборантRowDeleting(this, new ЛаборантRowChangeEvent(((ЛаборантRow)(e.Row)), e.Action));
  2967. }
  2968. }
  2969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2971. public void RemoveЛаборантRow(ЛаборантRow row) {
  2972. this.Rows.Remove(row);
  2973. }
  2974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2976. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2977. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2978. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2979. ИсследованияБиоматериалаDataSet ds = new ИсследованияБиоматериалаDataSet();
  2980. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2981. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2982. any1.MinOccurs = new decimal(0);
  2983. any1.MaxOccurs = decimal.MaxValue;
  2984. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2985. sequence.Items.Add(any1);
  2986. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2987. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2988. any2.MinOccurs = new decimal(1);
  2989. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2990. sequence.Items.Add(any2);
  2991. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2992. attribute1.Name = "namespace";
  2993. attribute1.FixedValue = ds.Namespace;
  2994. type.Attributes.Add(attribute1);
  2995. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2996. attribute2.Name = "tableTypeName";
  2997. attribute2.FixedValue = "ЛаборантDataTable";
  2998. type.Attributes.Add(attribute2);
  2999. type.Particle = sequence;
  3000. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3001. if (xs.Contains(dsSchema.TargetNamespace)) {
  3002. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3003. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3004. try {
  3005. global::System.Xml.Schema.XmlSchema schema = null;
  3006. dsSchema.Write(s1);
  3007. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3008. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3009. s2.SetLength(0);
  3010. schema.Write(s2);
  3011. if ((s1.Length == s2.Length)) {
  3012. s1.Position = 0;
  3013. s2.Position = 0;
  3014. for (; ((s1.Position != s1.Length)
  3015. && (s1.ReadByte() == s2.ReadByte())); ) {
  3016. ;
  3017. }
  3018. if ((s1.Position == s1.Length)) {
  3019. return type;
  3020. }
  3021. }
  3022. }
  3023. }
  3024. finally {
  3025. if ((s1 != null)) {
  3026. s1.Close();
  3027. }
  3028. if ((s2 != null)) {
  3029. s2.Close();
  3030. }
  3031. }
  3032. }
  3033. xs.Add(dsSchema);
  3034. return type;
  3035. }
  3036. }
  3037. /// <summary>
  3038. ///Represents the strongly named DataTable class.
  3039. ///</summary>
  3040. [global::System.Serializable()]
  3041. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3042. public partial class ОказанныеУслугиDataTable : global::System.Data.TypedTableBase<ОказанныеУслугиRow> {
  3043. private global::System.Data.DataColumn columnID_ОказанныхУслуг;
  3044. private global::System.Data.DataColumn columnID_Услуги;
  3045. private global::System.Data.DataColumn columnID_Заказа;
  3046. private global::System.Data.DataColumn columnID_Лаборанта;
  3047. private global::System.Data.DataColumn columnID_Анализатора;
  3048. private global::System.Data.DataColumn columnID_Пациент;
  3049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3051. public ОказанныеУслугиDataTable() {
  3052. this.TableName = "ОказанныеУслуги";
  3053. this.BeginInit();
  3054. this.InitClass();
  3055. this.EndInit();
  3056. }
  3057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3059. internal ОказанныеУслугиDataTable(global::System.Data.DataTable table) {
  3060. this.TableName = table.TableName;
  3061. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3062. this.CaseSensitive = table.CaseSensitive;
  3063. }
  3064. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3065. this.Locale = table.Locale;
  3066. }
  3067. if ((table.Namespace != table.DataSet.Namespace)) {
  3068. this.Namespace = table.Namespace;
  3069. }
  3070. this.Prefix = table.Prefix;
  3071. this.MinimumCapacity = table.MinimumCapacity;
  3072. }
  3073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3075. protected ОказанныеУслугиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3076. base(info, context) {
  3077. this.InitVars();
  3078. }
  3079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3081. public global::System.Data.DataColumn ID_ОказанныхУслугColumn {
  3082. get {
  3083. return this.columnID_ОказанныхУслуг;
  3084. }
  3085. }
  3086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3088. public global::System.Data.DataColumn ID_УслугиColumn {
  3089. get {
  3090. return this.columnID_Услуги;
  3091. }
  3092. }
  3093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3095. public global::System.Data.DataColumn ID_ЗаказаColumn {
  3096. get {
  3097. return this.columnID_Заказа;
  3098. }
  3099. }
  3100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3102. public global::System.Data.DataColumn ID_ЛаборантаColumn {
  3103. get {
  3104. return this.columnID_Лаборанта;
  3105. }
  3106. }
  3107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3109. public global::System.Data.DataColumn ID_АнализатораColumn {
  3110. get {
  3111. return this.columnID_Анализатора;
  3112. }
  3113. }
  3114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3116. public global::System.Data.DataColumn ID_ПациентColumn {
  3117. get {
  3118. return this.columnID_Пациент;
  3119. }
  3120. }
  3121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3123. [global::System.ComponentModel.Browsable(false)]
  3124. public int Count {
  3125. get {
  3126. return this.Rows.Count;
  3127. }
  3128. }
  3129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3131. public ОказанныеУслугиRow this[int index] {
  3132. get {
  3133. return ((ОказанныеУслугиRow)(this.Rows[index]));
  3134. }
  3135. }
  3136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3137. public event ОказанныеУслугиRowChangeEventHandler ОказанныеУслугиRowChanging;
  3138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3139. public event ОказанныеУслугиRowChangeEventHandler ОказанныеУслугиRowChanged;
  3140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3141. public event ОказанныеУслугиRowChangeEventHandler ОказанныеУслугиRowDeleting;
  3142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3143. public event ОказанныеУслугиRowChangeEventHandler ОказанныеУслугиRowDeleted;
  3144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3146. public void AddОказанныеУслугиRow(ОказанныеУслугиRow row) {
  3147. this.Rows.Add(row);
  3148. }
  3149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3151. public ОказанныеУслугиRow AddОказанныеУслугиRow(long ID_ОказанныхУслуг, УслугиЛабораторииRow parentУслугиЛабораторииRowByFK_ОказанныеУслуги_УслугиЛаборатории, ЗаказRow parentЗаказRowByFK_ОказанныеУслуги_Заказ, ЛаборантRow parentЛаборантRowByFK_ОказанныеУслуги_Лаборант, АнализаторRow parentАнализаторRowByFK_ОказанныеУслуги_Анализатор, ДанныеПациентовRow parentДанныеПациентовRowByFK_ОказанныеУслуги_ДанныеПациентов) {
  3152. ОказанныеУслугиRow rowОказанныеУслугиRow = ((ОказанныеУслугиRow)(this.NewRow()));
  3153. object[] columnValuesArray = new object[] {
  3154. ID_ОказанныхУслуг,
  3155. null,
  3156. null,
  3157. null,
  3158. null,
  3159. null};
  3160. if ((parentУслугиЛабораторииRowByFK_ОказанныеУслуги_УслугиЛаборатории != null)) {
  3161. columnValuesArray[1] = parentУслугиЛабораторииRowByFK_ОказанныеУслуги_УслугиЛаборатории[0];
  3162. }
  3163. if ((parentЗаказRowByFK_ОказанныеУслуги_Заказ != null)) {
  3164. columnValuesArray[2] = parentЗаказRowByFK_ОказанныеУслуги_Заказ[0];
  3165. }
  3166. if ((parentЛаборантRowByFK_ОказанныеУслуги_Лаборант != null)) {
  3167. columnValuesArray[3] = parentЛаборантRowByFK_ОказанныеУслуги_Лаборант[0];
  3168. }
  3169. if ((parentАнализаторRowByFK_ОказанныеУслуги_Анализатор != null)) {
  3170. columnValuesArray[4] = parentАнализаторRowByFK_ОказанныеУслуги_Анализатор[0];
  3171. }
  3172. if ((parentДанныеПациентовRowByFK_ОказанныеУслуги_ДанныеПациентов != null)) {
  3173. columnValuesArray[5] = parentДанныеПациентовRowByFK_ОказанныеУслуги_ДанныеПациентов[0];
  3174. }
  3175. rowОказанныеУслугиRow.ItemArray = columnValuesArray;
  3176. this.Rows.Add(rowОказанныеУслугиRow);
  3177. return rowОказанныеУслугиRow;
  3178. }
  3179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3181. public ОказанныеУслугиRow FindByID_ОказанныхУслуг(long ID_ОказанныхУслуг) {
  3182. return ((ОказанныеУслугиRow)(this.Rows.Find(new object[] {
  3183. ID_ОказанныхУслуг})));
  3184. }
  3185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3187. public override global::System.Data.DataTable Clone() {
  3188. ОказанныеУслугиDataTable cln = ((ОказанныеУслугиDataTable)(base.Clone()));
  3189. cln.InitVars();
  3190. return cln;
  3191. }
  3192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3194. protected override global::System.Data.DataTable CreateInstance() {
  3195. return new ОказанныеУслугиDataTable();
  3196. }
  3197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3199. internal void InitVars() {
  3200. this.columnID_ОказанныхУслуг = base.Columns["ID_ОказанныхУслуг"];
  3201. this.columnID_Услуги = base.Columns["ID_Услуги"];
  3202. this.columnID_Заказа = base.Columns["ID_Заказа"];
  3203. this.columnID_Лаборанта = base.Columns["ID_Лаборанта"];
  3204. this.columnID_Анализатора = base.Columns["ID_Анализатора"];
  3205. this.columnID_Пациент = base.Columns["ID_Пациент"];
  3206. }
  3207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3209. private void InitClass() {
  3210. this.columnID_ОказанныхУслуг = new global::System.Data.DataColumn("ID_ОказанныхУслуг", typeof(long), null, global::System.Data.MappingType.Element);
  3211. base.Columns.Add(this.columnID_ОказанныхУслуг);
  3212. this.columnID_Услуги = new global::System.Data.DataColumn("ID_Услуги", typeof(long), null, global::System.Data.MappingType.Element);
  3213. base.Columns.Add(this.columnID_Услуги);
  3214. this.columnID_Заказа = new global::System.Data.DataColumn("ID_Заказа", typeof(long), null, global::System.Data.MappingType.Element);
  3215. base.Columns.Add(this.columnID_Заказа);
  3216. this.columnID_Лаборанта = new global::System.Data.DataColumn("ID_Лаборанта", typeof(long), null, global::System.Data.MappingType.Element);
  3217. base.Columns.Add(this.columnID_Лаборанта);
  3218. this.columnID_Анализатора = new global::System.Data.DataColumn("ID_Анализатора", typeof(long), null, global::System.Data.MappingType.Element);
  3219. base.Columns.Add(this.columnID_Анализатора);
  3220. this.columnID_Пациент = new global::System.Data.DataColumn("ID_Пациент", typeof(long), null, global::System.Data.MappingType.Element);
  3221. base.Columns.Add(this.columnID_Пациент);
  3222. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3223. this.columnID_ОказанныхУслуг}, true));
  3224. this.columnID_ОказанныхУслуг.AllowDBNull = false;
  3225. this.columnID_ОказанныхУслуг.Unique = true;
  3226. }
  3227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3229. public ОказанныеУслугиRow NewОказанныеУслугиRow() {
  3230. return ((ОказанныеУслугиRow)(this.NewRow()));
  3231. }
  3232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3234. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3235. return new ОказанныеУслугиRow(builder);
  3236. }
  3237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3239. protected override global::System.Type GetRowType() {
  3240. return typeof(ОказанныеУслугиRow);
  3241. }
  3242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3244. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3245. base.OnRowChanged(e);
  3246. if ((this.ОказанныеУслугиRowChanged != null)) {
  3247. this.ОказанныеУслугиRowChanged(this, new ОказанныеУслугиRowChangeEvent(((ОказанныеУслугиRow)(e.Row)), e.Action));
  3248. }
  3249. }
  3250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3252. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3253. base.OnRowChanging(e);
  3254. if ((this.ОказанныеУслугиRowChanging != null)) {
  3255. this.ОказанныеУслугиRowChanging(this, new ОказанныеУслугиRowChangeEvent(((ОказанныеУслугиRow)(e.Row)), e.Action));
  3256. }
  3257. }
  3258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3260. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3261. base.OnRowDeleted(e);
  3262. if ((this.ОказанныеУслугиRowDeleted != null)) {
  3263. this.ОказанныеУслугиRowDeleted(this, new ОказанныеУслугиRowChangeEvent(((ОказанныеУслугиRow)(e.Row)), e.Action));
  3264. }
  3265. }
  3266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3268. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3269. base.OnRowDeleting(e);
  3270. if ((this.ОказанныеУслугиRowDeleting != null)) {
  3271. this.ОказанныеУслугиRowDeleting(this, new ОказанныеУслугиRowChangeEvent(((ОказанныеУслугиRow)(e.Row)), e.Action));
  3272. }
  3273. }
  3274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3276. public void RemoveОказанныеУслугиRow(ОказанныеУслугиRow row) {
  3277. this.Rows.Remove(row);
  3278. }
  3279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3281. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3282. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3283. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3284. ИсследованияБиоматериалаDataSet ds = new ИсследованияБиоматериалаDataSet();
  3285. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3286. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3287. any1.MinOccurs = new decimal(0);
  3288. any1.MaxOccurs = decimal.MaxValue;
  3289. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3290. sequence.Items.Add(any1);
  3291. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3292. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3293. any2.MinOccurs = new decimal(1);
  3294. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3295. sequence.Items.Add(any2);
  3296. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3297. attribute1.Name = "namespace";
  3298. attribute1.FixedValue = ds.Namespace;
  3299. type.Attributes.Add(attribute1);
  3300. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3301. attribute2.Name = "tableTypeName";
  3302. attribute2.FixedValue = "ОказанныеУслугиDataTable";
  3303. type.Attributes.Add(attribute2);
  3304. type.Particle = sequence;
  3305. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3306. if (xs.Contains(dsSchema.TargetNamespace)) {
  3307. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3308. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3309. try {
  3310. global::System.Xml.Schema.XmlSchema schema = null;
  3311. dsSchema.Write(s1);
  3312. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3313. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3314. s2.SetLength(0);
  3315. schema.Write(s2);
  3316. if ((s1.Length == s2.Length)) {
  3317. s1.Position = 0;
  3318. s2.Position = 0;
  3319. for (; ((s1.Position != s1.Length)
  3320. && (s1.ReadByte() == s2.ReadByte())); ) {
  3321. ;
  3322. }
  3323. if ((s1.Position == s1.Length)) {
  3324. return type;
  3325. }
  3326. }
  3327. }
  3328. }
  3329. finally {
  3330. if ((s1 != null)) {
  3331. s1.Close();
  3332. }
  3333. if ((s2 != null)) {
  3334. s2.Close();
  3335. }
  3336. }
  3337. }
  3338. xs.Add(dsSchema);
  3339. return type;
  3340. }
  3341. }
  3342. /// <summary>
  3343. ///Represents the strongly named DataTable class.
  3344. ///</summary>
  3345. [global::System.Serializable()]
  3346. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3347. public partial class РаботаАнализатораDataTable : global::System.Data.TypedTableBase<РаботаАнализатораRow> {
  3348. private global::System.Data.DataColumn columnID_РаботАнализатора;
  3349. private global::System.Data.DataColumn columnID_Анализатора;
  3350. private global::System.Data.DataColumn columnID_ОказанныхУслуг;
  3351. private global::System.Data.DataColumn columnДатаИВремяПоступленияЗаказа;
  3352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3354. public РаботаАнализатораDataTable() {
  3355. this.TableName = "РаботаАнализатора";
  3356. this.BeginInit();
  3357. this.InitClass();
  3358. this.EndInit();
  3359. }
  3360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3362. internal РаботаАнализатораDataTable(global::System.Data.DataTable table) {
  3363. this.TableName = table.TableName;
  3364. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3365. this.CaseSensitive = table.CaseSensitive;
  3366. }
  3367. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3368. this.Locale = table.Locale;
  3369. }
  3370. if ((table.Namespace != table.DataSet.Namespace)) {
  3371. this.Namespace = table.Namespace;
  3372. }
  3373. this.Prefix = table.Prefix;
  3374. this.MinimumCapacity = table.MinimumCapacity;
  3375. }
  3376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3378. protected РаботаАнализатораDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3379. base(info, context) {
  3380. this.InitVars();
  3381. }
  3382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3384. public global::System.Data.DataColumn ID_РаботАнализатораColumn {
  3385. get {
  3386. return this.columnID_РаботАнализатора;
  3387. }
  3388. }
  3389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3391. public global::System.Data.DataColumn ID_АнализатораColumn {
  3392. get {
  3393. return this.columnID_Анализатора;
  3394. }
  3395. }
  3396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3398. public global::System.Data.DataColumn ID_ОказанныхУслугColumn {
  3399. get {
  3400. return this.columnID_ОказанныхУслуг;
  3401. }
  3402. }
  3403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3405. public global::System.Data.DataColumn ДатаИВремяПоступленияЗаказаColumn {
  3406. get {
  3407. return this.columnДатаИВремяПоступленияЗаказа;
  3408. }
  3409. }
  3410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3412. [global::System.ComponentModel.Browsable(false)]
  3413. public int Count {
  3414. get {
  3415. return this.Rows.Count;
  3416. }
  3417. }
  3418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3420. public РаботаАнализатораRow this[int index] {
  3421. get {
  3422. return ((РаботаАнализатораRow)(this.Rows[index]));
  3423. }
  3424. }
  3425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3426. public event РаботаАнализатораRowChangeEventHandler РаботаАнализатораRowChanging;
  3427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3428. public event РаботаАнализатораRowChangeEventHandler РаботаАнализатораRowChanged;
  3429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3430. public event РаботаАнализатораRowChangeEventHandler РаботаАнализатораRowDeleting;
  3431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3432. public event РаботаАнализатораRowChangeEventHandler РаботаАнализатораRowDeleted;
  3433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3435. public void AddРаботаАнализатораRow(РаботаАнализатораRow row) {
  3436. this.Rows.Add(row);
  3437. }
  3438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3440. public РаботаАнализатораRow AddРаботаАнализатораRow(long ID_РаботАнализатора, АнализаторRow parentАнализаторRowByFK_РаботаАнализатора_Анализатор, ОказанныеУслугиRow parentОказанныеУслугиRowByFK_РаботаАнализатора_ОказанныеУслуги, string ДатаИВремяПоступленияЗаказа) {
  3441. РаботаАнализатораRow rowРаботаАнализатораRow = ((РаботаАнализатораRow)(this.NewRow()));
  3442. object[] columnValuesArray = new object[] {
  3443. ID_РаботАнализатора,
  3444. null,
  3445. null,
  3446. ДатаИВремяПоступленияЗаказа};
  3447. if ((parentАнализаторRowByFK_РаботаАнализатора_Анализатор != null)) {
  3448. columnValuesArray[1] = parentАнализаторRowByFK_РаботаАнализатора_Анализатор[0];
  3449. }
  3450. if ((parentОказанныеУслугиRowByFK_РаботаАнализатора_ОказанныеУслуги != null)) {
  3451. columnValuesArray[2] = parentОказанныеУслугиRowByFK_РаботаАнализатора_ОказанныеУслуги[0];
  3452. }
  3453. rowРаботаАнализатораRow.ItemArray = columnValuesArray;
  3454. this.Rows.Add(rowРаботаАнализатораRow);
  3455. return rowРаботаАнализатораRow;
  3456. }
  3457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3459. public РаботаАнализатораRow FindByID_РаботАнализатора(long ID_РаботАнализатора) {
  3460. return ((РаботаАнализатораRow)(this.Rows.Find(new object[] {
  3461. ID_РаботАнализатора})));
  3462. }
  3463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3465. public override global::System.Data.DataTable Clone() {
  3466. РаботаАнализатораDataTable cln = ((РаботаАнализатораDataTable)(base.Clone()));
  3467. cln.InitVars();
  3468. return cln;
  3469. }
  3470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3472. protected override global::System.Data.DataTable CreateInstance() {
  3473. return new РаботаАнализатораDataTable();
  3474. }
  3475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3477. internal void InitVars() {
  3478. this.columnID_РаботАнализатора = base.Columns["ID_РаботАнализатора"];
  3479. this.columnID_Анализатора = base.Columns["ID_Анализатора"];
  3480. this.columnID_ОказанныхУслуг = base.Columns["ID_ОказанныхУслуг"];
  3481. this.columnДатаИВремяПоступленияЗаказа = base.Columns["ДатаИВремяПоступленияЗаказа"];
  3482. }
  3483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3485. private void InitClass() {
  3486. this.columnID_РаботАнализатора = new global::System.Data.DataColumn("ID_РаботАнализатора", typeof(long), null, global::System.Data.MappingType.Element);
  3487. base.Columns.Add(this.columnID_РаботАнализатора);
  3488. this.columnID_Анализатора = new global::System.Data.DataColumn("ID_Анализатора", typeof(long), null, global::System.Data.MappingType.Element);
  3489. base.Columns.Add(this.columnID_Анализатора);
  3490. this.columnID_ОказанныхУслуг = new global::System.Data.DataColumn("ID_ОказанныхУслуг", typeof(long), null, global::System.Data.MappingType.Element);
  3491. base.Columns.Add(this.columnID_ОказанныхУслуг);
  3492. this.columnДатаИВремяПоступленияЗаказа = new global::System.Data.DataColumn("ДатаИВремяПоступленияЗаказа", typeof(string), null, global::System.Data.MappingType.Element);
  3493. base.Columns.Add(this.columnДатаИВремяПоступленияЗаказа);
  3494. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3495. this.columnID_РаботАнализатора}, true));
  3496. this.columnID_РаботАнализатора.AllowDBNull = false;
  3497. this.columnID_РаботАнализатора.Unique = true;
  3498. this.columnДатаИВремяПоступленияЗаказа.MaxLength = 10;
  3499. }
  3500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3502. public РаботаАнализатораRow NewРаботаАнализатораRow() {
  3503. return ((РаботаАнализатораRow)(this.NewRow()));
  3504. }
  3505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3507. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3508. return new РаботаАнализатораRow(builder);
  3509. }
  3510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3512. protected override global::System.Type GetRowType() {
  3513. return typeof(РаботаАнализатораRow);
  3514. }
  3515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3517. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3518. base.OnRowChanged(e);
  3519. if ((this.РаботаАнализатораRowChanged != null)) {
  3520. this.РаботаАнализатораRowChanged(this, new РаботаАнализатораRowChangeEvent(((РаботаАнализатораRow)(e.Row)), e.Action));
  3521. }
  3522. }
  3523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3525. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3526. base.OnRowChanging(e);
  3527. if ((this.РаботаАнализатораRowChanging != null)) {
  3528. this.РаботаАнализатораRowChanging(this, new РаботаАнализатораRowChangeEvent(((РаботаАнализатораRow)(e.Row)), e.Action));
  3529. }
  3530. }
  3531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3533. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3534. base.OnRowDeleted(e);
  3535. if ((this.РаботаАнализатораRowDeleted != null)) {
  3536. this.РаботаАнализатораRowDeleted(this, new РаботаАнализатораRowChangeEvent(((РаботаАнализатораRow)(e.Row)), e.Action));
  3537. }
  3538. }
  3539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3541. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3542. base.OnRowDeleting(e);
  3543. if ((this.РаботаАнализатораRowDeleting != null)) {
  3544. this.РаботаАнализатораRowDeleting(this, new РаботаАнализатораRowChangeEvent(((РаботаАнализатораRow)(e.Row)), e.Action));
  3545. }
  3546. }
  3547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3549. public void RemoveРаботаАнализатораRow(РаботаАнализатораRow row) {
  3550. this.Rows.Remove(row);
  3551. }
  3552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3554. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3555. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3556. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3557. ИсследованияБиоматериалаDataSet ds = new ИсследованияБиоматериалаDataSet();
  3558. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3559. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3560. any1.MinOccurs = new decimal(0);
  3561. any1.MaxOccurs = decimal.MaxValue;
  3562. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3563. sequence.Items.Add(any1);
  3564. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3565. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3566. any2.MinOccurs = new decimal(1);
  3567. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3568. sequence.Items.Add(any2);
  3569. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3570. attribute1.Name = "namespace";
  3571. attribute1.FixedValue = ds.Namespace;
  3572. type.Attributes.Add(attribute1);
  3573. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3574. attribute2.Name = "tableTypeName";
  3575. attribute2.FixedValue = "РаботаАнализатораDataTable";
  3576. type.Attributes.Add(attribute2);
  3577. type.Particle = sequence;
  3578. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3579. if (xs.Contains(dsSchema.TargetNamespace)) {
  3580. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3581. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3582. try {
  3583. global::System.Xml.Schema.XmlSchema schema = null;
  3584. dsSchema.Write(s1);
  3585. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3586. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3587. s2.SetLength(0);
  3588. schema.Write(s2);
  3589. if ((s1.Length == s2.Length)) {
  3590. s1.Position = 0;
  3591. s2.Position = 0;
  3592. for (; ((s1.Position != s1.Length)
  3593. && (s1.ReadByte() == s2.ReadByte())); ) {
  3594. ;
  3595. }
  3596. if ((s1.Position == s1.Length)) {
  3597. return type;
  3598. }
  3599. }
  3600. }
  3601. }
  3602. finally {
  3603. if ((s1 != null)) {
  3604. s1.Close();
  3605. }
  3606. if ((s2 != null)) {
  3607. s2.Close();
  3608. }
  3609. }
  3610. }
  3611. xs.Add(dsSchema);
  3612. return type;
  3613. }
  3614. }
  3615. /// <summary>
  3616. ///Represents the strongly named DataTable class.
  3617. ///</summary>
  3618. [global::System.Serializable()]
  3619. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3620. public partial class СтраховаяКомпанияDataTable : global::System.Data.TypedTableBase<СтраховаяКомпанияRow> {
  3621. private global::System.Data.DataColumn columnID_Компании;
  3622. private global::System.Data.DataColumn columnНазвание;
  3623. private global::System.Data.DataColumn columnАдрес;
  3624. private global::System.Data.DataColumn columnИНН;
  3625. private global::System.Data.DataColumn columnPC;
  3626. private global::System.Data.DataColumn columnБИК;
  3627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3629. public СтраховаяКомпанияDataTable() {
  3630. this.TableName = "СтраховаяКомпания";
  3631. this.BeginInit();
  3632. this.InitClass();
  3633. this.EndInit();
  3634. }
  3635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3637. internal СтраховаяКомпанияDataTable(global::System.Data.DataTable table) {
  3638. this.TableName = table.TableName;
  3639. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3640. this.CaseSensitive = table.CaseSensitive;
  3641. }
  3642. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3643. this.Locale = table.Locale;
  3644. }
  3645. if ((table.Namespace != table.DataSet.Namespace)) {
  3646. this.Namespace = table.Namespace;
  3647. }
  3648. this.Prefix = table.Prefix;
  3649. this.MinimumCapacity = table.MinimumCapacity;
  3650. }
  3651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3653. protected СтраховаяКомпанияDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3654. base(info, context) {
  3655. this.InitVars();
  3656. }
  3657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3659. public global::System.Data.DataColumn ID_КомпанииColumn {
  3660. get {
  3661. return this.columnID_Компании;
  3662. }
  3663. }
  3664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3666. public global::System.Data.DataColumn НазваниеColumn {
  3667. get {
  3668. return this.columnНазвание;
  3669. }
  3670. }
  3671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3673. public global::System.Data.DataColumn АдресColumn {
  3674. get {
  3675. return this.columnАдрес;
  3676. }
  3677. }
  3678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3680. public global::System.Data.DataColumn ИННColumn {
  3681. get {
  3682. return this.columnИНН;
  3683. }
  3684. }
  3685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3687. public global::System.Data.DataColumn PCColumn {
  3688. get {
  3689. return this.columnPC;
  3690. }
  3691. }
  3692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3694. public global::System.Data.DataColumn БИКColumn {
  3695. get {
  3696. return this.columnБИК;
  3697. }
  3698. }
  3699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3701. [global::System.ComponentModel.Browsable(false)]
  3702. public int Count {
  3703. get {
  3704. return this.Rows.Count;
  3705. }
  3706. }
  3707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3709. public СтраховаяКомпанияRow this[int index] {
  3710. get {
  3711. return ((СтраховаяКомпанияRow)(this.Rows[index]));
  3712. }
  3713. }
  3714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3715. public event СтраховаяКомпанияRowChangeEventHandler СтраховаяКомпанияRowChanging;
  3716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3717. public event СтраховаяКомпанияRowChangeEventHandler СтраховаяКомпанияRowChanged;
  3718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3719. public event СтраховаяКомпанияRowChangeEventHandler СтраховаяКомпанияRowDeleting;
  3720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3721. public event СтраховаяКомпанияRowChangeEventHandler СтраховаяКомпанияRowDeleted;
  3722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3724. public void AddСтраховаяКомпанияRow(СтраховаяКомпанияRow row) {
  3725. this.Rows.Add(row);
  3726. }
  3727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3729. public СтраховаяКомпанияRow AddСтраховаяКомпанияRow(long ID_Компании, string Название, string Адрес, int ИНН, string PC, string БИК) {
  3730. СтраховаяКомпанияRow rowСтраховаяКомпанияRow = ((СтраховаяКомпанияRow)(this.NewRow()));
  3731. object[] columnValuesArray = new object[] {
  3732. ID_Компании,
  3733. Название,
  3734. Адрес,
  3735. ИНН,
  3736. PC,
  3737. БИК};
  3738. rowСтраховаяКомпанияRow.ItemArray = columnValuesArray;
  3739. this.Rows.Add(rowСтраховаяКомпанияRow);
  3740. return rowСтраховаяКомпанияRow;
  3741. }
  3742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3744. public СтраховаяКомпанияRow FindByID_Компании(long ID_Компании) {
  3745. return ((СтраховаяКомпанияRow)(this.Rows.Find(new object[] {
  3746. ID_Компании})));
  3747. }
  3748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3750. public override global::System.Data.DataTable Clone() {
  3751. СтраховаяКомпанияDataTable cln = ((СтраховаяКомпанияDataTable)(base.Clone()));
  3752. cln.InitVars();
  3753. return cln;
  3754. }
  3755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3757. protected override global::System.Data.DataTable CreateInstance() {
  3758. return new СтраховаяКомпанияDataTable();
  3759. }
  3760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3762. internal void InitVars() {
  3763. this.columnID_Компании = base.Columns["ID_Компании"];
  3764. this.columnНазвание = base.Columns["Название"];
  3765. this.columnАдрес = base.Columns["Адрес"];
  3766. this.columnИНН = base.Columns["ИНН"];
  3767. this.columnPC = base.Columns["PC"];
  3768. this.columnБИК = base.Columns["БИК"];
  3769. }
  3770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3772. private void InitClass() {
  3773. this.columnID_Компании = new global::System.Data.DataColumn("ID_Компании", typeof(long), null, global::System.Data.MappingType.Element);
  3774. base.Columns.Add(this.columnID_Компании);
  3775. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  3776. base.Columns.Add(this.columnНазвание);
  3777. this.columnАдрес = new global::System.Data.DataColumn("Адрес", typeof(string), null, global::System.Data.MappingType.Element);
  3778. base.Columns.Add(this.columnАдрес);
  3779. this.columnИНН = new global::System.Data.DataColumn("ИНН", typeof(int), null, global::System.Data.MappingType.Element);
  3780. base.Columns.Add(this.columnИНН);
  3781. this.columnPC = new global::System.Data.DataColumn("PC", typeof(string), null, global::System.Data.MappingType.Element);
  3782. base.Columns.Add(this.columnPC);
  3783. this.columnБИК = new global::System.Data.DataColumn("БИК", typeof(string), null, global::System.Data.MappingType.Element);
  3784. base.Columns.Add(this.columnБИК);
  3785. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3786. this.columnID_Компании}, true));
  3787. this.columnID_Компании.AllowDBNull = false;
  3788. this.columnID_Компании.Unique = true;
  3789. this.columnНазвание.MaxLength = 50;
  3790. this.columnАдрес.MaxLength = 50;
  3791. this.columnPC.MaxLength = 50;
  3792. this.columnБИК.MaxLength = 50;
  3793. }
  3794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3796. public СтраховаяКомпанияRow NewСтраховаяКомпанияRow() {
  3797. return ((СтраховаяКомпанияRow)(this.NewRow()));
  3798. }
  3799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3801. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3802. return new СтраховаяКомпанияRow(builder);
  3803. }
  3804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3806. protected override global::System.Type GetRowType() {
  3807. return typeof(СтраховаяКомпанияRow);
  3808. }
  3809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3811. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3812. base.OnRowChanged(e);
  3813. if ((this.СтраховаяКомпанияRowChanged != null)) {
  3814. this.СтраховаяКомпанияRowChanged(this, new СтраховаяКомпанияRowChangeEvent(((СтраховаяКомпанияRow)(e.Row)), e.Action));
  3815. }
  3816. }
  3817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3819. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3820. base.OnRowChanging(e);
  3821. if ((this.СтраховаяКомпанияRowChanging != null)) {
  3822. this.СтраховаяКомпанияRowChanging(this, new СтраховаяКомпанияRowChangeEvent(((СтраховаяКомпанияRow)(e.Row)), e.Action));
  3823. }
  3824. }
  3825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3827. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3828. base.OnRowDeleted(e);
  3829. if ((this.СтраховаяКомпанияRowDeleted != null)) {
  3830. this.СтраховаяКомпанияRowDeleted(this, new СтраховаяКомпанияRowChangeEvent(((СтраховаяКомпанияRow)(e.Row)), e.Action));
  3831. }
  3832. }
  3833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3835. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3836. base.OnRowDeleting(e);
  3837. if ((this.СтраховаяКомпанияRowDeleting != null)) {
  3838. this.СтраховаяКомпанияRowDeleting(this, new СтраховаяКомпанияRowChangeEvent(((СтраховаяКомпанияRow)(e.Row)), e.Action));
  3839. }
  3840. }
  3841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3843. public void RemoveСтраховаяКомпанияRow(СтраховаяКомпанияRow row) {
  3844. this.Rows.Remove(row);
  3845. }
  3846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3848. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3849. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3850. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3851. ИсследованияБиоматериалаDataSet ds = new ИсследованияБиоматериалаDataSet();
  3852. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3853. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3854. any1.MinOccurs = new decimal(0);
  3855. any1.MaxOccurs = decimal.MaxValue;
  3856. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3857. sequence.Items.Add(any1);
  3858. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3859. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3860. any2.MinOccurs = new decimal(1);
  3861. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3862. sequence.Items.Add(any2);
  3863. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3864. attribute1.Name = "namespace";
  3865. attribute1.FixedValue = ds.Namespace;
  3866. type.Attributes.Add(attribute1);
  3867. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3868. attribute2.Name = "tableTypeName";
  3869. attribute2.FixedValue = "СтраховаяКомпанияDataTable";
  3870. type.Attributes.Add(attribute2);
  3871. type.Particle = sequence;
  3872. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3873. if (xs.Contains(dsSchema.TargetNamespace)) {
  3874. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3875. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3876. try {
  3877. global::System.Xml.Schema.XmlSchema schema = null;
  3878. dsSchema.Write(s1);
  3879. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3880. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3881. s2.SetLength(0);
  3882. schema.Write(s2);
  3883. if ((s1.Length == s2.Length)) {
  3884. s1.Position = 0;
  3885. s2.Position = 0;
  3886. for (; ((s1.Position != s1.Length)
  3887. && (s1.ReadByte() == s2.ReadByte())); ) {
  3888. ;
  3889. }
  3890. if ((s1.Position == s1.Length)) {
  3891. return type;
  3892. }
  3893. }
  3894. }
  3895. }
  3896. finally {
  3897. if ((s1 != null)) {
  3898. s1.Close();
  3899. }
  3900. if ((s2 != null)) {
  3901. s2.Close();
  3902. }
  3903. }
  3904. }
  3905. xs.Add(dsSchema);
  3906. return type;
  3907. }
  3908. }
  3909. /// <summary>
  3910. ///Represents the strongly named DataTable class.
  3911. ///</summary>
  3912. [global::System.Serializable()]
  3913. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3914. public partial class СчетаDataTable : global::System.Data.TypedTableBase<СчетаRow> {
  3915. private global::System.Data.DataColumn columnID_Счета;
  3916. private global::System.Data.DataColumn columnID_Бухгалтера;
  3917. private global::System.Data.DataColumn columnID_Компании;
  3918. private global::System.Data.DataColumn columnСумма;
  3919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3921. public СчетаDataTable() {
  3922. this.TableName = "Счета";
  3923. this.BeginInit();
  3924. this.InitClass();
  3925. this.EndInit();
  3926. }
  3927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3929. internal СчетаDataTable(global::System.Data.DataTable table) {
  3930. this.TableName = table.TableName;
  3931. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3932. this.CaseSensitive = table.CaseSensitive;
  3933. }
  3934. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3935. this.Locale = table.Locale;
  3936. }
  3937. if ((table.Namespace != table.DataSet.Namespace)) {
  3938. this.Namespace = table.Namespace;
  3939. }
  3940. this.Prefix = table.Prefix;
  3941. this.MinimumCapacity = table.MinimumCapacity;
  3942. }
  3943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3945. protected СчетаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3946. base(info, context) {
  3947. this.InitVars();
  3948. }
  3949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3951. public global::System.Data.DataColumn ID_СчетаColumn {
  3952. get {
  3953. return this.columnID_Счета;
  3954. }
  3955. }
  3956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3958. public global::System.Data.DataColumn ID_БухгалтераColumn {
  3959. get {
  3960. return this.columnID_Бухгалтера;
  3961. }
  3962. }
  3963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3965. public global::System.Data.DataColumn ID_КомпанииColumn {
  3966. get {
  3967. return this.columnID_Компании;
  3968. }
  3969. }
  3970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3972. public global::System.Data.DataColumn СуммаColumn {
  3973. get {
  3974. return this.columnСумма;
  3975. }
  3976. }
  3977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3979. [global::System.ComponentModel.Browsable(false)]
  3980. public int Count {
  3981. get {
  3982. return this.Rows.Count;
  3983. }
  3984. }
  3985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3987. public СчетаRow this[int index] {
  3988. get {
  3989. return ((СчетаRow)(this.Rows[index]));
  3990. }
  3991. }
  3992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3993. public event СчетаRowChangeEventHandler СчетаRowChanging;
  3994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3995. public event СчетаRowChangeEventHandler СчетаRowChanged;
  3996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3997. public event СчетаRowChangeEventHandler СчетаRowDeleting;
  3998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3999. public event СчетаRowChangeEventHandler СчетаRowDeleted;
  4000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4002. public void AddСчетаRow(СчетаRow row) {
  4003. this.Rows.Add(row);
  4004. }
  4005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4007. public СчетаRow AddСчетаRow(long ID_Счета, БухгалтерRow parentБухгалтерRowByFK_Счета_Бухгалтер, СтраховаяКомпанияRow parentСтраховаяКомпанияRowByFK_Счета_СтраховаяКомпания, decimal Сумма) {
  4008. СчетаRow rowСчетаRow = ((СчетаRow)(this.NewRow()));
  4009. object[] columnValuesArray = new object[] {
  4010. ID_Счета,
  4011. null,
  4012. null,
  4013. Сумма};
  4014. if ((parentБухгалтерRowByFK_Счета_Бухгалтер != null)) {
  4015. columnValuesArray[1] = parentБухгалтерRowByFK_Счета_Бухгалтер[0];
  4016. }
  4017. if ((parentСтраховаяКомпанияRowByFK_Счета_СтраховаяКомпания != null)) {
  4018. columnValuesArray[2] = parentСтраховаяКомпанияRowByFK_Счета_СтраховаяКомпания[0];
  4019. }
  4020. rowСчетаRow.ItemArray = columnValuesArray;
  4021. this.Rows.Add(rowСчетаRow);
  4022. return rowСчетаRow;
  4023. }
  4024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4026. public СчетаRow FindByID_Счета(long ID_Счета) {
  4027. return ((СчетаRow)(this.Rows.Find(new object[] {
  4028. ID_Счета})));
  4029. }
  4030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4032. public override global::System.Data.DataTable Clone() {
  4033. СчетаDataTable cln = ((СчетаDataTable)(base.Clone()));
  4034. cln.InitVars();
  4035. return cln;
  4036. }
  4037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4039. protected override global::System.Data.DataTable CreateInstance() {
  4040. return new СчетаDataTable();
  4041. }
  4042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4044. internal void InitVars() {
  4045. this.columnID_Счета = base.Columns["ID_Счета"];
  4046. this.columnID_Бухгалтера = base.Columns["ID_Бухгалтера"];
  4047. this.columnID_Компании = base.Columns["ID_Компании"];
  4048. this.columnСумма = base.Columns["Сумма"];
  4049. }
  4050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4052. private void InitClass() {
  4053. this.columnID_Счета = new global::System.Data.DataColumn("ID_Счета", typeof(long), null, global::System.Data.MappingType.Element);
  4054. base.Columns.Add(this.columnID_Счета);
  4055. this.columnID_Бухгалтера = new global::System.Data.DataColumn("ID_Бухгалтера", typeof(long), null, global::System.Data.MappingType.Element);
  4056. base.Columns.Add(this.columnID_Бухгалтера);
  4057. this.columnID_Компании = new global::System.Data.DataColumn("ID_Компании", typeof(long), null, global::System.Data.MappingType.Element);
  4058. base.Columns.Add(this.columnID_Компании);
  4059. this.columnСумма = new global::System.Data.DataColumn("Сумма", typeof(decimal), null, global::System.Data.MappingType.Element);
  4060. base.Columns.Add(this.columnСумма);
  4061. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4062. this.columnID_Счета}, true));
  4063. this.columnID_Счета.AllowDBNull = false;
  4064. this.columnID_Счета.Unique = true;
  4065. }
  4066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4068. public СчетаRow NewСчетаRow() {
  4069. return ((СчетаRow)(this.NewRow()));
  4070. }
  4071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4073. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4074. return new СчетаRow(builder);
  4075. }
  4076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4078. protected override global::System.Type GetRowType() {
  4079. return typeof(СчетаRow);
  4080. }
  4081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4083. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4084. base.OnRowChanged(e);
  4085. if ((this.СчетаRowChanged != null)) {
  4086. this.СчетаRowChanged(this, new СчетаRowChangeEvent(((СчетаRow)(e.Row)), e.Action));
  4087. }
  4088. }
  4089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4091. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4092. base.OnRowChanging(e);
  4093. if ((this.СчетаRowChanging != null)) {
  4094. this.СчетаRowChanging(this, new СчетаRowChangeEvent(((СчетаRow)(e.Row)), e.Action));
  4095. }
  4096. }
  4097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4099. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4100. base.OnRowDeleted(e);
  4101. if ((this.СчетаRowDeleted != null)) {
  4102. this.СчетаRowDeleted(this, new СчетаRowChangeEvent(((СчетаRow)(e.Row)), e.Action));
  4103. }
  4104. }
  4105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4107. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4108. base.OnRowDeleting(e);
  4109. if ((this.СчетаRowDeleting != null)) {
  4110. this.СчетаRowDeleting(this, new СчетаRowChangeEvent(((СчетаRow)(e.Row)), e.Action));
  4111. }
  4112. }
  4113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4115. public void RemoveСчетаRow(СчетаRow row) {
  4116. this.Rows.Remove(row);
  4117. }
  4118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4120. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4121. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4122. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4123. ИсследованияБиоматериалаDataSet ds = new ИсследованияБиоматериалаDataSet();
  4124. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4125. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4126. any1.MinOccurs = new decimal(0);
  4127. any1.MaxOccurs = decimal.MaxValue;
  4128. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4129. sequence.Items.Add(any1);
  4130. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4131. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4132. any2.MinOccurs = new decimal(1);
  4133. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4134. sequence.Items.Add(any2);
  4135. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4136. attribute1.Name = "namespace";
  4137. attribute1.FixedValue = ds.Namespace;
  4138. type.Attributes.Add(attribute1);
  4139. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4140. attribute2.Name = "tableTypeName";
  4141. attribute2.FixedValue = "СчетаDataTable";
  4142. type.Attributes.Add(attribute2);
  4143. type.Particle = sequence;
  4144. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4145. if (xs.Contains(dsSchema.TargetNamespace)) {
  4146. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4147. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4148. try {
  4149. global::System.Xml.Schema.XmlSchema schema = null;
  4150. dsSchema.Write(s1);
  4151. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4152. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4153. s2.SetLength(0);
  4154. schema.Write(s2);
  4155. if ((s1.Length == s2.Length)) {
  4156. s1.Position = 0;
  4157. s2.Position = 0;
  4158. for (; ((s1.Position != s1.Length)
  4159. && (s1.ReadByte() == s2.ReadByte())); ) {
  4160. ;
  4161. }
  4162. if ((s1.Position == s1.Length)) {
  4163. return type;
  4164. }
  4165. }
  4166. }
  4167. }
  4168. finally {
  4169. if ((s1 != null)) {
  4170. s1.Close();
  4171. }
  4172. if ((s2 != null)) {
  4173. s2.Close();
  4174. }
  4175. }
  4176. }
  4177. xs.Add(dsSchema);
  4178. return type;
  4179. }
  4180. }
  4181. /// <summary>
  4182. ///Represents the strongly named DataTable class.
  4183. ///</summary>
  4184. [global::System.Serializable()]
  4185. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4186. public partial class УслугиЛабораторииDataTable : global::System.Data.TypedTableBase<УслугиЛабораторииRow> {
  4187. private global::System.Data.DataColumn columnID_Услуги;
  4188. private global::System.Data.DataColumn columnНаименование;
  4189. private global::System.Data.DataColumn columnСтоимость;
  4190. private global::System.Data.DataColumn columnСрокВыполнения;
  4191. private global::System.Data.DataColumn columnСреднееОтклонение;
  4192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4194. public УслугиЛабораторииDataTable() {
  4195. this.TableName = "УслугиЛаборатории";
  4196. this.BeginInit();
  4197. this.InitClass();
  4198. this.EndInit();
  4199. }
  4200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4202. internal УслугиЛабораторииDataTable(global::System.Data.DataTable table) {
  4203. this.TableName = table.TableName;
  4204. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4205. this.CaseSensitive = table.CaseSensitive;
  4206. }
  4207. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4208. this.Locale = table.Locale;
  4209. }
  4210. if ((table.Namespace != table.DataSet.Namespace)) {
  4211. this.Namespace = table.Namespace;
  4212. }
  4213. this.Prefix = table.Prefix;
  4214. this.MinimumCapacity = table.MinimumCapacity;
  4215. }
  4216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4218. protected УслугиЛабораторииDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4219. base(info, context) {
  4220. this.InitVars();
  4221. }
  4222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4224. public global::System.Data.DataColumn ID_УслугиColumn {
  4225. get {
  4226. return this.columnID_Услуги;
  4227. }
  4228. }
  4229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4231. public global::System.Data.DataColumn НаименованиеColumn {
  4232. get {
  4233. return this.columnНаименование;
  4234. }
  4235. }
  4236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4238. public global::System.Data.DataColumn СтоимостьColumn {
  4239. get {
  4240. return this.columnСтоимость;
  4241. }
  4242. }
  4243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4245. public global::System.Data.DataColumn СрокВыполненияColumn {
  4246. get {
  4247. return this.columnСрокВыполнения;
  4248. }
  4249. }
  4250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4252. public global::System.Data.DataColumn СреднееОтклонениеColumn {
  4253. get {
  4254. return this.columnСреднееОтклонение;
  4255. }
  4256. }
  4257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4259. [global::System.ComponentModel.Browsable(false)]
  4260. public int Count {
  4261. get {
  4262. return this.Rows.Count;
  4263. }
  4264. }
  4265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4267. public УслугиЛабораторииRow this[int index] {
  4268. get {
  4269. return ((УслугиЛабораторииRow)(this.Rows[index]));
  4270. }
  4271. }
  4272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4273. public event УслугиЛабораторииRowChangeEventHandler УслугиЛабораторииRowChanging;
  4274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4275. public event УслугиЛабораторииRowChangeEventHandler УслугиЛабораторииRowChanged;
  4276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4277. public event УслугиЛабораторииRowChangeEventHandler УслугиЛабораторииRowDeleting;
  4278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4279. public event УслугиЛабораторииRowChangeEventHandler УслугиЛабораторииRowDeleted;
  4280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4282. public void AddУслугиЛабораторииRow(УслугиЛабораторииRow row) {
  4283. this.Rows.Add(row);
  4284. }
  4285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4287. public УслугиЛабораторииRow AddУслугиЛабораторииRow(long ID_Услуги, string Наименование, decimal Стоимость, System.DateTime СрокВыполнения, decimal СреднееОтклонение) {
  4288. УслугиЛабораторииRow rowУслугиЛабораторииRow = ((УслугиЛабораторииRow)(this.NewRow()));
  4289. object[] columnValuesArray = new object[] {
  4290. ID_Услуги,
  4291. Наименование,
  4292. Стоимость,
  4293. СрокВыполнения,
  4294. СреднееОтклонение};
  4295. rowУслугиЛабораторииRow.ItemArray = columnValuesArray;
  4296. this.Rows.Add(rowУслугиЛабораторииRow);
  4297. return rowУслугиЛабораторииRow;
  4298. }
  4299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4301. public УслугиЛабораторииRow FindByID_Услуги(long ID_Услуги) {
  4302. return ((УслугиЛабораторииRow)(this.Rows.Find(new object[] {
  4303. ID_Услуги})));
  4304. }
  4305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4307. public override global::System.Data.DataTable Clone() {
  4308. УслугиЛабораторииDataTable cln = ((УслугиЛабораторииDataTable)(base.Clone()));
  4309. cln.InitVars();
  4310. return cln;
  4311. }
  4312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4314. protected override global::System.Data.DataTable CreateInstance() {
  4315. return new УслугиЛабораторииDataTable();
  4316. }
  4317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4319. internal void InitVars() {
  4320. this.columnID_Услуги = base.Columns["ID_Услуги"];
  4321. this.columnНаименование = base.Columns["Наименование"];
  4322. this.columnСтоимость = base.Columns["Стоимость"];
  4323. this.columnСрокВыполнения = base.Columns["СрокВыполнения"];
  4324. this.columnСреднееОтклонение = base.Columns["СреднееОтклонение"];
  4325. }
  4326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4328. private void InitClass() {
  4329. this.columnID_Услуги = new global::System.Data.DataColumn("ID_Услуги", typeof(long), null, global::System.Data.MappingType.Element);
  4330. base.Columns.Add(this.columnID_Услуги);
  4331. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  4332. base.Columns.Add(this.columnНаименование);
  4333. this.columnСтоимость = new global::System.Data.DataColumn("Стоимость", typeof(decimal), null, global::System.Data.MappingType.Element);
  4334. base.Columns.Add(this.columnСтоимость);
  4335. this.columnСрокВыполнения = new global::System.Data.DataColumn("СрокВыполнения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  4336. base.Columns.Add(this.columnСрокВыполнения);
  4337. this.columnСреднееОтклонение = new global::System.Data.DataColumn("СреднееОтклонение", typeof(decimal), null, global::System.Data.MappingType.Element);
  4338. base.Columns.Add(this.columnСреднееОтклонение);
  4339. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4340. this.columnID_Услуги}, true));
  4341. this.columnID_Услуги.AllowDBNull = false;
  4342. this.columnID_Услуги.Unique = true;
  4343. this.columnНаименование.MaxLength = 50;
  4344. }
  4345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4347. public УслугиЛабораторииRow NewУслугиЛабораторииRow() {
  4348. return ((УслугиЛабораторииRow)(this.NewRow()));
  4349. }
  4350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4352. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4353. return new УслугиЛабораторииRow(builder);
  4354. }
  4355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4357. protected override global::System.Type GetRowType() {
  4358. return typeof(УслугиЛабораторииRow);
  4359. }
  4360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4362. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4363. base.OnRowChanged(e);
  4364. if ((this.УслугиЛабораторииRowChanged != null)) {
  4365. this.УслугиЛабораторииRowChanged(this, new УслугиЛабораторииRowChangeEvent(((УслугиЛабораторииRow)(e.Row)), e.Action));
  4366. }
  4367. }
  4368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4370. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4371. base.OnRowChanging(e);
  4372. if ((this.УслугиЛабораторииRowChanging != null)) {
  4373. this.УслугиЛабораторииRowChanging(this, new УслугиЛабораторииRowChangeEvent(((УслугиЛабораторииRow)(e.Row)), e.Action));
  4374. }
  4375. }
  4376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4378. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4379. base.OnRowDeleted(e);
  4380. if ((this.УслугиЛабораторииRowDeleted != null)) {
  4381. this.УслугиЛабораторииRowDeleted(this, new УслугиЛабораторииRowChangeEvent(((УслугиЛабораторииRow)(e.Row)), e.Action));
  4382. }
  4383. }
  4384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4386. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4387. base.OnRowDeleting(e);
  4388. if ((this.УслугиЛабораторииRowDeleting != null)) {
  4389. this.УслугиЛабораторииRowDeleting(this, new УслугиЛабораторииRowChangeEvent(((УслугиЛабораторииRow)(e.Row)), e.Action));
  4390. }
  4391. }
  4392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4394. public void RemoveУслугиЛабораторииRow(УслугиЛабораторииRow row) {
  4395. this.Rows.Remove(row);
  4396. }
  4397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4399. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4400. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4401. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4402. ИсследованияБиоматериалаDataSet ds = new ИсследованияБиоматериалаDataSet();
  4403. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4404. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4405. any1.MinOccurs = new decimal(0);
  4406. any1.MaxOccurs = decimal.MaxValue;
  4407. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4408. sequence.Items.Add(any1);
  4409. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4410. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4411. any2.MinOccurs = new decimal(1);
  4412. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4413. sequence.Items.Add(any2);
  4414. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4415. attribute1.Name = "namespace";
  4416. attribute1.FixedValue = ds.Namespace;
  4417. type.Attributes.Add(attribute1);
  4418. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4419. attribute2.Name = "tableTypeName";
  4420. attribute2.FixedValue = "УслугиЛабораторииDataTable";
  4421. type.Attributes.Add(attribute2);
  4422. type.Particle = sequence;
  4423. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4424. if (xs.Contains(dsSchema.TargetNamespace)) {
  4425. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4426. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4427. try {
  4428. global::System.Xml.Schema.XmlSchema schema = null;
  4429. dsSchema.Write(s1);
  4430. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4431. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4432. s2.SetLength(0);
  4433. schema.Write(s2);
  4434. if ((s1.Length == s2.Length)) {
  4435. s1.Position = 0;
  4436. s2.Position = 0;
  4437. for (; ((s1.Position != s1.Length)
  4438. && (s1.ReadByte() == s2.ReadByte())); ) {
  4439. ;
  4440. }
  4441. if ((s1.Position == s1.Length)) {
  4442. return type;
  4443. }
  4444. }
  4445. }
  4446. }
  4447. finally {
  4448. if ((s1 != null)) {
  4449. s1.Close();
  4450. }
  4451. if ((s2 != null)) {
  4452. s2.Close();
  4453. }
  4454. }
  4455. }
  4456. xs.Add(dsSchema);
  4457. return type;
  4458. }
  4459. }
  4460. /// <summary>
  4461. ///Represents the strongly named DataTable class.
  4462. ///</summary>
  4463. [global::System.Serializable()]
  4464. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4465. public partial class отчётDataTable : global::System.Data.TypedTableBase<отчётRow> {
  4466. private global::System.Data.DataColumn columnID_Пациент;
  4467. private global::System.Data.DataColumn columnФамилия;
  4468. private global::System.Data.DataColumn columnИмя;
  4469. private global::System.Data.DataColumn columnДатаРождения;
  4470. private global::System.Data.DataColumn columnID_Компании;
  4471. private global::System.Data.DataColumn columnID_Лаборанта;
  4472. private global::System.Data.DataColumn columnID_Услуги;
  4473. private global::System.Data.DataColumn columnID_Заказа;
  4474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4476. public отчётDataTable() {
  4477. this.TableName = "отчёт";
  4478. this.BeginInit();
  4479. this.InitClass();
  4480. this.EndInit();
  4481. }
  4482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4484. internal отчётDataTable(global::System.Data.DataTable table) {
  4485. this.TableName = table.TableName;
  4486. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4487. this.CaseSensitive = table.CaseSensitive;
  4488. }
  4489. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4490. this.Locale = table.Locale;
  4491. }
  4492. if ((table.Namespace != table.DataSet.Namespace)) {
  4493. this.Namespace = table.Namespace;
  4494. }
  4495. this.Prefix = table.Prefix;
  4496. this.MinimumCapacity = table.MinimumCapacity;
  4497. }
  4498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4500. protected отчётDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4501. base(info, context) {
  4502. this.InitVars();
  4503. }
  4504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4506. public global::System.Data.DataColumn ID_ПациентColumn {
  4507. get {
  4508. return this.columnID_Пациент;
  4509. }
  4510. }
  4511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4513. public global::System.Data.DataColumn ФамилияColumn {
  4514. get {
  4515. return this.columnФамилия;
  4516. }
  4517. }
  4518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4520. public global::System.Data.DataColumn ИмяColumn {
  4521. get {
  4522. return this.columnИмя;
  4523. }
  4524. }
  4525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4527. public global::System.Data.DataColumn ДатаРожденияColumn {
  4528. get {
  4529. return this.columnДатаРождения;
  4530. }
  4531. }
  4532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4534. public global::System.Data.DataColumn ID_КомпанииColumn {
  4535. get {
  4536. return this.columnID_Компании;
  4537. }
  4538. }
  4539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4541. public global::System.Data.DataColumn ID_ЛаборантаColumn {
  4542. get {
  4543. return this.columnID_Лаборанта;
  4544. }
  4545. }
  4546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4548. public global::System.Data.DataColumn ID_УслугиColumn {
  4549. get {
  4550. return this.columnID_Услуги;
  4551. }
  4552. }
  4553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4555. public global::System.Data.DataColumn ID_ЗаказаColumn {
  4556. get {
  4557. return this.columnID_Заказа;
  4558. }
  4559. }
  4560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4562. [global::System.ComponentModel.Browsable(false)]
  4563. public int Count {
  4564. get {
  4565. return this.Rows.Count;
  4566. }
  4567. }
  4568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4570. public отчётRow this[int index] {
  4571. get {
  4572. return ((отчётRow)(this.Rows[index]));
  4573. }
  4574. }
  4575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4576. public event отчётRowChangeEventHandler отчётRowChanging;
  4577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4578. public event отчётRowChangeEventHandler отчётRowChanged;
  4579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4580. public event отчётRowChangeEventHandler отчётRowDeleting;
  4581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4582. public event отчётRowChangeEventHandler отчётRowDeleted;
  4583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4585. public void AddотчётRow(отчётRow row) {
  4586. this.Rows.Add(row);
  4587. }
  4588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4590. public отчётRow AddотчётRow(long ID_Пациент, string Фамилия, string Имя, System.DateTime ДатаРождения, long ID_Компании, long ID_Лаборанта, long ID_Услуги, long ID_Заказа) {
  4591. отчётRow rowотчётRow = ((отчётRow)(this.NewRow()));
  4592. object[] columnValuesArray = new object[] {
  4593. ID_Пациент,
  4594. Фамилия,
  4595. Имя,
  4596. ДатаРождения,
  4597. ID_Компании,
  4598. ID_Лаборанта,
  4599. ID_Услуги,
  4600. ID_Заказа};
  4601. rowотчётRow.ItemArray = columnValuesArray;
  4602. this.Rows.Add(rowотчётRow);
  4603. return rowотчётRow;
  4604. }
  4605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4607. public override global::System.Data.DataTable Clone() {
  4608. отчётDataTable cln = ((отчётDataTable)(base.Clone()));
  4609. cln.InitVars();
  4610. return cln;
  4611. }
  4612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4614. protected override global::System.Data.DataTable CreateInstance() {
  4615. return new отчётDataTable();
  4616. }
  4617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4619. internal void InitVars() {
  4620. this.columnID_Пациент = base.Columns["ID_Пациент"];
  4621. this.columnФамилия = base.Columns["Фамилия"];
  4622. this.columnИмя = base.Columns["Имя"];
  4623. this.columnДатаРождения = base.Columns["ДатаРождения"];
  4624. this.columnID_Компании = base.Columns["ID_Компании"];
  4625. this.columnID_Лаборанта = base.Columns["ID_Лаборанта"];
  4626. this.columnID_Услуги = base.Columns["ID_Услуги"];
  4627. this.columnID_Заказа = base.Columns["ID_Заказа"];
  4628. }
  4629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4631. private void InitClass() {
  4632. this.columnID_Пациент = new global::System.Data.DataColumn("ID_Пациент", typeof(long), null, global::System.Data.MappingType.Element);
  4633. base.Columns.Add(this.columnID_Пациент);
  4634. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  4635. base.Columns.Add(this.columnФамилия);
  4636. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  4637. base.Columns.Add(this.columnИмя);
  4638. this.columnДатаРождения = new global::System.Data.DataColumn("ДатаРождения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  4639. base.Columns.Add(this.columnДатаРождения);
  4640. this.columnID_Компании = new global::System.Data.DataColumn("ID_Компании", typeof(long), null, global::System.Data.MappingType.Element);
  4641. base.Columns.Add(this.columnID_Компании);
  4642. this.columnID_Лаборанта = new global::System.Data.DataColumn("ID_Лаборанта", typeof(long), null, global::System.Data.MappingType.Element);
  4643. base.Columns.Add(this.columnID_Лаборанта);
  4644. this.columnID_Услуги = new global::System.Data.DataColumn("ID_Услуги", typeof(long), null, global::System.Data.MappingType.Element);
  4645. base.Columns.Add(this.columnID_Услуги);
  4646. this.columnID_Заказа = new global::System.Data.DataColumn("ID_Заказа", typeof(long), null, global::System.Data.MappingType.Element);
  4647. base.Columns.Add(this.columnID_Заказа);
  4648. this.columnID_Пациент.AllowDBNull = false;
  4649. this.columnФамилия.MaxLength = 50;
  4650. this.columnИмя.MaxLength = 50;
  4651. this.columnID_Лаборанта.AllowDBNull = false;
  4652. this.columnID_Заказа.AllowDBNull = false;
  4653. }
  4654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4656. public отчётRow NewотчётRow() {
  4657. return ((отчётRow)(this.NewRow()));
  4658. }
  4659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4661. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4662. return new отчётRow(builder);
  4663. }
  4664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4666. protected override global::System.Type GetRowType() {
  4667. return typeof(отчётRow);
  4668. }
  4669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4671. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4672. base.OnRowChanged(e);
  4673. if ((this.отчётRowChanged != null)) {
  4674. this.отчётRowChanged(this, new отчётRowChangeEvent(((отчётRow)(e.Row)), e.Action));
  4675. }
  4676. }
  4677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4679. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4680. base.OnRowChanging(e);
  4681. if ((this.отчётRowChanging != null)) {
  4682. this.отчётRowChanging(this, new отчётRowChangeEvent(((отчётRow)(e.Row)), e.Action));
  4683. }
  4684. }
  4685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4687. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4688. base.OnRowDeleted(e);
  4689. if ((this.отчётRowDeleted != null)) {
  4690. this.отчётRowDeleted(this, new отчётRowChangeEvent(((отчётRow)(e.Row)), e.Action));
  4691. }
  4692. }
  4693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4695. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4696. base.OnRowDeleting(e);
  4697. if ((this.отчётRowDeleting != null)) {
  4698. this.отчётRowDeleting(this, new отчётRowChangeEvent(((отчётRow)(e.Row)), e.Action));
  4699. }
  4700. }
  4701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4703. public void RemoveотчётRow(отчётRow row) {
  4704. this.Rows.Remove(row);
  4705. }
  4706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4708. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4709. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4710. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4711. ИсследованияБиоматериалаDataSet ds = new ИсследованияБиоматериалаDataSet();
  4712. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4713. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4714. any1.MinOccurs = new decimal(0);
  4715. any1.MaxOccurs = decimal.MaxValue;
  4716. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4717. sequence.Items.Add(any1);
  4718. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4719. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4720. any2.MinOccurs = new decimal(1);
  4721. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4722. sequence.Items.Add(any2);
  4723. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4724. attribute1.Name = "namespace";
  4725. attribute1.FixedValue = ds.Namespace;
  4726. type.Attributes.Add(attribute1);
  4727. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4728. attribute2.Name = "tableTypeName";
  4729. attribute2.FixedValue = "отчётDataTable";
  4730. type.Attributes.Add(attribute2);
  4731. type.Particle = sequence;
  4732. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4733. if (xs.Contains(dsSchema.TargetNamespace)) {
  4734. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4735. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4736. try {
  4737. global::System.Xml.Schema.XmlSchema schema = null;
  4738. dsSchema.Write(s1);
  4739. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4740. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4741. s2.SetLength(0);
  4742. schema.Write(s2);
  4743. if ((s1.Length == s2.Length)) {
  4744. s1.Position = 0;
  4745. s2.Position = 0;
  4746. for (; ((s1.Position != s1.Length)
  4747. && (s1.ReadByte() == s2.ReadByte())); ) {
  4748. ;
  4749. }
  4750. if ((s1.Position == s1.Length)) {
  4751. return type;
  4752. }
  4753. }
  4754. }
  4755. }
  4756. finally {
  4757. if ((s1 != null)) {
  4758. s1.Close();
  4759. }
  4760. if ((s2 != null)) {
  4761. s2.Close();
  4762. }
  4763. }
  4764. }
  4765. xs.Add(dsSchema);
  4766. return type;
  4767. }
  4768. }
  4769. /// <summary>
  4770. ///Represents strongly named DataRow class.
  4771. ///</summary>
  4772. public partial class _services___копияRow : global::System.Data.DataRow {
  4773. private _services___копияDataTable _tableservices___копия;
  4774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4776. internal _services___копияRow(global::System.Data.DataRowBuilder rb) :
  4777. base(rb) {
  4778. this._tableservices___копия = ((_services___копияDataTable)(this.Table));
  4779. }
  4780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4782. public long Code {
  4783. get {
  4784. return ((long)(this[this._tableservices___копия.CodeColumn]));
  4785. }
  4786. set {
  4787. this[this._tableservices___копия.CodeColumn] = value;
  4788. }
  4789. }
  4790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4792. public string Service {
  4793. get {
  4794. return ((string)(this[this._tableservices___копия.ServiceColumn]));
  4795. }
  4796. set {
  4797. this[this._tableservices___копия.ServiceColumn] = value;
  4798. }
  4799. }
  4800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4802. public string Price {
  4803. get {
  4804. return ((string)(this[this._tableservices___копия.PriceColumn]));
  4805. }
  4806. set {
  4807. this[this._tableservices___копия.PriceColumn] = value;
  4808. }
  4809. }
  4810. }
  4811. /// <summary>
  4812. ///Represents strongly named DataRow class.
  4813. ///</summary>
  4814. public partial class _users___копияRow : global::System.Data.DataRow {
  4815. private _users___копияDataTable _tableusers___копия;
  4816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4818. internal _users___копияRow(global::System.Data.DataRowBuilder rb) :
  4819. base(rb) {
  4820. this._tableusers___копия = ((_users___копияDataTable)(this.Table));
  4821. }
  4822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4824. public long id {
  4825. get {
  4826. return ((long)(this[this._tableusers___копия.idColumn]));
  4827. }
  4828. set {
  4829. this[this._tableusers___копия.idColumn] = value;
  4830. }
  4831. }
  4832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4834. public string name {
  4835. get {
  4836. return ((string)(this[this._tableusers___копия.nameColumn]));
  4837. }
  4838. set {
  4839. this[this._tableusers___копия.nameColumn] = value;
  4840. }
  4841. }
  4842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4844. public string login {
  4845. get {
  4846. return ((string)(this[this._tableusers___копия.loginColumn]));
  4847. }
  4848. set {
  4849. this[this._tableusers___копия.loginColumn] = value;
  4850. }
  4851. }
  4852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4854. public string password {
  4855. get {
  4856. return ((string)(this[this._tableusers___копия.passwordColumn]));
  4857. }
  4858. set {
  4859. this[this._tableusers___копия.passwordColumn] = value;
  4860. }
  4861. }
  4862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4864. public string ip {
  4865. get {
  4866. return ((string)(this[this._tableusers___копия.ipColumn]));
  4867. }
  4868. set {
  4869. this[this._tableusers___копия.ipColumn] = value;
  4870. }
  4871. }
  4872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4874. public string lastenter {
  4875. get {
  4876. return ((string)(this[this._tableusers___копия.lastenterColumn]));
  4877. }
  4878. set {
  4879. this[this._tableusers___копия.lastenterColumn] = value;
  4880. }
  4881. }
  4882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4884. public string services {
  4885. get {
  4886. return ((string)(this[this._tableusers___копия.servicesColumn]));
  4887. }
  4888. set {
  4889. this[this._tableusers___копия.servicesColumn] = value;
  4890. }
  4891. }
  4892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4894. public string type {
  4895. get {
  4896. return ((string)(this[this._tableusers___копия.typeColumn]));
  4897. }
  4898. set {
  4899. this[this._tableusers___копия.typeColumn] = value;
  4900. }
  4901. }
  4902. }
  4903. /// <summary>
  4904. ///Represents strongly named DataRow class.
  4905. ///</summary>
  4906. public partial class АдминистраторRow : global::System.Data.DataRow {
  4907. private АдминистраторDataTable tableАдминистратор;
  4908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4910. internal АдминистраторRow(global::System.Data.DataRowBuilder rb) :
  4911. base(rb) {
  4912. this.tableАдминистратор = ((АдминистраторDataTable)(this.Table));
  4913. }
  4914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4916. public long ID_Администратора {
  4917. get {
  4918. return ((long)(this[this.tableАдминистратор.ID_АдминистратораColumn]));
  4919. }
  4920. set {
  4921. this[this.tableАдминистратор.ID_АдминистратораColumn] = value;
  4922. }
  4923. }
  4924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4926. public string Логин {
  4927. get {
  4928. try {
  4929. return ((string)(this[this.tableАдминистратор.ЛогинColumn]));
  4930. }
  4931. catch (global::System.InvalidCastException e) {
  4932. throw new global::System.Data.StrongTypingException("Значение для столбца \'Логин\' в таблице \'Администратор\' равно DBNull.", e);
  4933. }
  4934. }
  4935. set {
  4936. this[this.tableАдминистратор.ЛогинColumn] = value;
  4937. }
  4938. }
  4939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4941. public string Пароль {
  4942. get {
  4943. try {
  4944. return ((string)(this[this.tableАдминистратор.ПарольColumn]));
  4945. }
  4946. catch (global::System.InvalidCastException e) {
  4947. throw new global::System.Data.StrongTypingException("Значение для столбца \'Пароль\' в таблице \'Администратор\' равно DBNull.", e);
  4948. }
  4949. }
  4950. set {
  4951. this[this.tableАдминистратор.ПарольColumn] = value;
  4952. }
  4953. }
  4954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4956. public bool IsЛогинNull() {
  4957. return this.IsNull(this.tableАдминистратор.ЛогинColumn);
  4958. }
  4959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4961. public void SetЛогинNull() {
  4962. this[this.tableАдминистратор.ЛогинColumn] = global::System.Convert.DBNull;
  4963. }
  4964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4966. public bool IsПарольNull() {
  4967. return this.IsNull(this.tableАдминистратор.ПарольColumn);
  4968. }
  4969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4971. public void SetПарольNull() {
  4972. this[this.tableАдминистратор.ПарольColumn] = global::System.Convert.DBNull;
  4973. }
  4974. }
  4975. /// <summary>
  4976. ///Represents strongly named DataRow class.
  4977. ///</summary>
  4978. public partial class АнализаторRow : global::System.Data.DataRow {
  4979. private АнализаторDataTable tableАнализатор;
  4980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4982. internal АнализаторRow(global::System.Data.DataRowBuilder rb) :
  4983. base(rb) {
  4984. this.tableАнализатор = ((АнализаторDataTable)(this.Table));
  4985. }
  4986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4988. public long ID_Анализатора {
  4989. get {
  4990. return ((long)(this[this.tableАнализатор.ID_АнализатораColumn]));
  4991. }
  4992. set {
  4993. this[this.tableАнализатор.ID_АнализатораColumn] = value;
  4994. }
  4995. }
  4996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4998. public ОказанныеУслугиRow[] GetОказанныеУслугиRows() {
  4999. if ((this.Table.ChildRelations["FK_ОказанныеУслуги_Анализатор"] == null)) {
  5000. return new ОказанныеУслугиRow[0];
  5001. }
  5002. else {
  5003. return ((ОказанныеУслугиRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ОказанныеУслуги_Анализатор"])));
  5004. }
  5005. }
  5006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5008. public РаботаАнализатораRow[] GetРаботаАнализатораRows() {
  5009. if ((this.Table.ChildRelations["FK_РаботаАнализатора_Анализатор"] == null)) {
  5010. return new РаботаАнализатораRow[0];
  5011. }
  5012. else {
  5013. return ((РаботаАнализатораRow[])(base.GetChildRows(this.Table.ChildRelations["FK_РаботаАнализатора_Анализатор"])));
  5014. }
  5015. }
  5016. }
  5017. /// <summary>
  5018. ///Represents strongly named DataRow class.
  5019. ///</summary>
  5020. public partial class БухгалтерRow : global::System.Data.DataRow {
  5021. private БухгалтерDataTable tableБухгалтер;
  5022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5024. internal БухгалтерRow(global::System.Data.DataRowBuilder rb) :
  5025. base(rb) {
  5026. this.tableБухгалтер = ((БухгалтерDataTable)(this.Table));
  5027. }
  5028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5030. public long ID_Бухгалтера {
  5031. get {
  5032. return ((long)(this[this.tableБухгалтер.ID_БухгалтераColumn]));
  5033. }
  5034. set {
  5035. this[this.tableБухгалтер.ID_БухгалтераColumn] = value;
  5036. }
  5037. }
  5038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5040. public long ID_Услуги {
  5041. get {
  5042. return ((long)(this[this.tableБухгалтер.ID_УслугиColumn]));
  5043. }
  5044. set {
  5045. this[this.tableБухгалтер.ID_УслугиColumn] = value;
  5046. }
  5047. }
  5048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5050. public УслугиЛабораторииRow УслугиЛабораторииRow {
  5051. get {
  5052. return ((УслугиЛабораторииRow)(this.GetParentRow(this.Table.ParentRelations["FK_Бухгалтер_УслугиЛаборатории"])));
  5053. }
  5054. set {
  5055. this.SetParentRow(value, this.Table.ParentRelations["FK_Бухгалтер_УслугиЛаборатории"]);
  5056. }
  5057. }
  5058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5060. public СчетаRow[] GetСчетаRows() {
  5061. if ((this.Table.ChildRelations["FK_Счета_Бухгалтер"] == null)) {
  5062. return new СчетаRow[0];
  5063. }
  5064. else {
  5065. return ((СчетаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Счета_Бухгалтер"])));
  5066. }
  5067. }
  5068. }
  5069. /// <summary>
  5070. ///Represents strongly named DataRow class.
  5071. ///</summary>
  5072. public partial class ДанныеПациентовRow : global::System.Data.DataRow {
  5073. private ДанныеПациентовDataTable tableДанныеПациентов;
  5074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5076. internal ДанныеПациентовRow(global::System.Data.DataRowBuilder rb) :
  5077. base(rb) {
  5078. this.tableДанныеПациентов = ((ДанныеПациентовDataTable)(this.Table));
  5079. }
  5080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5082. public long ID_Пациент {
  5083. get {
  5084. return ((long)(this[this.tableДанныеПациентов.ID_ПациентColumn]));
  5085. }
  5086. set {
  5087. this[this.tableДанныеПациентов.ID_ПациентColumn] = value;
  5088. }
  5089. }
  5090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5092. public string логин {
  5093. get {
  5094. try {
  5095. return ((string)(this[this.tableДанныеПациентов.логинColumn]));
  5096. }
  5097. catch (global::System.InvalidCastException e) {
  5098. throw new global::System.Data.StrongTypingException("Значение для столбца \'логин\' в таблице \'ДанныеПациентов\' равно DBNull.", e);
  5099. }
  5100. }
  5101. set {
  5102. this[this.tableДанныеПациентов.логинColumn] = value;
  5103. }
  5104. }
  5105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5107. public string пароль {
  5108. get {
  5109. try {
  5110. return ((string)(this[this.tableДанныеПациентов.парольColumn]));
  5111. }
  5112. catch (global::System.InvalidCastException e) {
  5113. throw new global::System.Data.StrongTypingException("Значение для столбца \'пароль\' в таблице \'ДанныеПациентов\' равно DBNull.", e);
  5114. }
  5115. }
  5116. set {
  5117. this[this.tableДанныеПациентов.парольColumn] = value;
  5118. }
  5119. }
  5120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5122. public string Фамилия {
  5123. get {
  5124. try {
  5125. return ((string)(this[this.tableДанныеПациентов.ФамилияColumn]));
  5126. }
  5127. catch (global::System.InvalidCastException e) {
  5128. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фамилия\' в таблице \'ДанныеПациентов\' равно DBNull.", e);
  5129. }
  5130. }
  5131. set {
  5132. this[this.tableДанныеПациентов.ФамилияColumn] = value;
  5133. }
  5134. }
  5135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5137. public string Имя {
  5138. get {
  5139. try {
  5140. return ((string)(this[this.tableДанныеПациентов.ИмяColumn]));
  5141. }
  5142. catch (global::System.InvalidCastException e) {
  5143. throw new global::System.Data.StrongTypingException("Значение для столбца \'Имя\' в таблице \'ДанныеПациентов\' равно DBNull.", e);
  5144. }
  5145. }
  5146. set {
  5147. this[this.tableДанныеПациентов.ИмяColumn] = value;
  5148. }
  5149. }
  5150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5152. public string Отчество {
  5153. get {
  5154. try {
  5155. return ((string)(this[this.tableДанныеПациентов.ОтчествоColumn]));
  5156. }
  5157. catch (global::System.InvalidCastException e) {
  5158. throw new global::System.Data.StrongTypingException("Значение для столбца \'Отчество\' в таблице \'ДанныеПациентов\' равно DBNull.", e);
  5159. }
  5160. }
  5161. set {
  5162. this[this.tableДанныеПациентов.ОтчествоColumn] = value;
  5163. }
  5164. }
  5165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5167. public System.DateTime ДатаРождения {
  5168. get {
  5169. try {
  5170. return ((global::System.DateTime)(this[this.tableДанныеПациентов.ДатаРожденияColumn]));
  5171. }
  5172. catch (global::System.InvalidCastException e) {
  5173. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаРождения\' в таблице \'ДанныеПациентов\' равно DBNull.", e);
  5174. }
  5175. }
  5176. set {
  5177. this[this.tableДанныеПациентов.ДатаРожденияColumn] = value;
  5178. }
  5179. }
  5180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5182. public string СерияИНомер_паспорта {
  5183. get {
  5184. try {
  5185. return ((string)(this[this.tableДанныеПациентов.СерияИНомер_паспортаColumn]));
  5186. }
  5187. catch (global::System.InvalidCastException e) {
  5188. throw new global::System.Data.StrongTypingException("Значение для столбца \'СерияИНомер_паспорта\' в таблице \'ДанныеПациентов\' равно DBN" +
  5189. "ull.", e);
  5190. }
  5191. }
  5192. set {
  5193. this[this.tableДанныеПациентов.СерияИНомер_паспортаColumn] = value;
  5194. }
  5195. }
  5196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5198. public string Телефон {
  5199. get {
  5200. try {
  5201. return ((string)(this[this.tableДанныеПациентов.ТелефонColumn]));
  5202. }
  5203. catch (global::System.InvalidCastException e) {
  5204. throw new global::System.Data.StrongTypingException("Значение для столбца \'Телефон\' в таблице \'ДанныеПациентов\' равно DBNull.", e);
  5205. }
  5206. }
  5207. set {
  5208. this[this.tableДанныеПациентов.ТелефонColumn] = value;
  5209. }
  5210. }
  5211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5213. public string _e_mail {
  5214. get {
  5215. try {
  5216. return ((string)(this[this.tableДанныеПациентов._e_mailColumn]));
  5217. }
  5218. catch (global::System.InvalidCastException e) {
  5219. throw new global::System.Data.StrongTypingException("Значение для столбца \'e-mail\' в таблице \'ДанныеПациентов\' равно DBNull.", e);
  5220. }
  5221. }
  5222. set {
  5223. this[this.tableДанныеПациентов._e_mailColumn] = value;
  5224. }
  5225. }
  5226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5228. public string НомерСтраховогоПолиса {
  5229. get {
  5230. try {
  5231. return ((string)(this[this.tableДанныеПациентов.НомерСтраховогоПолисаColumn]));
  5232. }
  5233. catch (global::System.InvalidCastException e) {
  5234. throw new global::System.Data.StrongTypingException("Значение для столбца \'НомерСтраховогоПолиса\' в таблице \'ДанныеПациентов\' равно DB" +
  5235. "Null.", e);
  5236. }
  5237. }
  5238. set {
  5239. this[this.tableДанныеПациентов.НомерСтраховогоПолисаColumn] = value;
  5240. }
  5241. }
  5242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5244. public string ТипСтраховогоПолиса {
  5245. get {
  5246. try {
  5247. return ((string)(this[this.tableДанныеПациентов.ТипСтраховогоПолисаColumn]));
  5248. }
  5249. catch (global::System.InvalidCastException e) {
  5250. throw new global::System.Data.StrongTypingException("Значение для столбца \'ТипСтраховогоПолиса\' в таблице \'ДанныеПациентов\' равно DBNu" +
  5251. "ll.", e);
  5252. }
  5253. }
  5254. set {
  5255. this[this.tableДанныеПациентов.ТипСтраховогоПолисаColumn] = value;
  5256. }
  5257. }
  5258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5260. public long ID_Компании {
  5261. get {
  5262. try {
  5263. return ((long)(this[this.tableДанныеПациентов.ID_КомпанииColumn]));
  5264. }
  5265. catch (global::System.InvalidCastException e) {
  5266. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Компании\' в таблице \'ДанныеПациентов\' равно DBNull.", e);
  5267. }
  5268. }
  5269. set {
  5270. this[this.tableДанныеПациентов.ID_КомпанииColumn] = value;
  5271. }
  5272. }
  5273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5275. public СтраховаяКомпанияRow СтраховаяКомпанияRow {
  5276. get {
  5277. return ((СтраховаяКомпанияRow)(this.GetParentRow(this.Table.ParentRelations["FK_ДанныеПациентов_СтраховаяКомпания"])));
  5278. }
  5279. set {
  5280. this.SetParentRow(value, this.Table.ParentRelations["FK_ДанныеПациентов_СтраховаяКомпания"]);
  5281. }
  5282. }
  5283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5285. public bool IsлогинNull() {
  5286. return this.IsNull(this.tableДанныеПациентов.логинColumn);
  5287. }
  5288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5290. public void SetлогинNull() {
  5291. this[this.tableДанныеПациентов.логинColumn] = global::System.Convert.DBNull;
  5292. }
  5293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5295. public bool IsпарольNull() {
  5296. return this.IsNull(this.tableДанныеПациентов.парольColumn);
  5297. }
  5298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5300. public void SetпарольNull() {
  5301. this[this.tableДанныеПациентов.парольColumn] = global::System.Convert.DBNull;
  5302. }
  5303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5305. public bool IsФамилияNull() {
  5306. return this.IsNull(this.tableДанныеПациентов.ФамилияColumn);
  5307. }
  5308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5310. public void SetФамилияNull() {
  5311. this[this.tableДанныеПациентов.ФамилияColumn] = global::System.Convert.DBNull;
  5312. }
  5313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5315. public bool IsИмяNull() {
  5316. return this.IsNull(this.tableДанныеПациентов.ИмяColumn);
  5317. }
  5318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5320. public void SetИмяNull() {
  5321. this[this.tableДанныеПациентов.ИмяColumn] = global::System.Convert.DBNull;
  5322. }
  5323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5325. public bool IsОтчествоNull() {
  5326. return this.IsNull(this.tableДанныеПациентов.ОтчествоColumn);
  5327. }
  5328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5330. public void SetОтчествоNull() {
  5331. this[this.tableДанныеПациентов.ОтчествоColumn] = global::System.Convert.DBNull;
  5332. }
  5333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5335. public bool IsДатаРожденияNull() {
  5336. return this.IsNull(this.tableДанныеПациентов.ДатаРожденияColumn);
  5337. }
  5338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5340. public void SetДатаРожденияNull() {
  5341. this[this.tableДанныеПациентов.ДатаРожденияColumn] = global::System.Convert.DBNull;
  5342. }
  5343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5345. public bool IsСерияИНомер_паспортаNull() {
  5346. return this.IsNull(this.tableДанныеПациентов.СерияИНомер_паспортаColumn);
  5347. }
  5348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5350. public void SetСерияИНомер_паспортаNull() {
  5351. this[this.tableДанныеПациентов.СерияИНомер_паспортаColumn] = global::System.Convert.DBNull;
  5352. }
  5353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5355. public bool IsТелефонNull() {
  5356. return this.IsNull(this.tableДанныеПациентов.ТелефонColumn);
  5357. }
  5358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5360. public void SetТелефонNull() {
  5361. this[this.tableДанныеПациентов.ТелефонColumn] = global::System.Convert.DBNull;
  5362. }
  5363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5365. public bool Is_e_mailNull() {
  5366. return this.IsNull(this.tableДанныеПациентов._e_mailColumn);
  5367. }
  5368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5370. public void Set_e_mailNull() {
  5371. this[this.tableДанныеПациентов._e_mailColumn] = global::System.Convert.DBNull;
  5372. }
  5373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5375. public bool IsНомерСтраховогоПолисаNull() {
  5376. return this.IsNull(this.tableДанныеПациентов.НомерСтраховогоПолисаColumn);
  5377. }
  5378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5380. public void SetНомерСтраховогоПолисаNull() {
  5381. this[this.tableДанныеПациентов.НомерСтраховогоПолисаColumn] = global::System.Convert.DBNull;
  5382. }
  5383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5385. public bool IsТипСтраховогоПолисаNull() {
  5386. return this.IsNull(this.tableДанныеПациентов.ТипСтраховогоПолисаColumn);
  5387. }
  5388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5390. public void SetТипСтраховогоПолисаNull() {
  5391. this[this.tableДанныеПациентов.ТипСтраховогоПолисаColumn] = global::System.Convert.DBNull;
  5392. }
  5393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5395. public bool IsID_КомпанииNull() {
  5396. return this.IsNull(this.tableДанныеПациентов.ID_КомпанииColumn);
  5397. }
  5398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5400. public void SetID_КомпанииNull() {
  5401. this[this.tableДанныеПациентов.ID_КомпанииColumn] = global::System.Convert.DBNull;
  5402. }
  5403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5405. public ОказанныеУслугиRow[] GetОказанныеУслугиRows() {
  5406. if ((this.Table.ChildRelations["FK_ОказанныеУслуги_ДанныеПациентов"] == null)) {
  5407. return new ОказанныеУслугиRow[0];
  5408. }
  5409. else {
  5410. return ((ОказанныеУслугиRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ОказанныеУслуги_ДанныеПациентов"])));
  5411. }
  5412. }
  5413. }
  5414. /// <summary>
  5415. ///Represents strongly named DataRow class.
  5416. ///</summary>
  5417. public partial class ЗаказRow : global::System.Data.DataRow {
  5418. private ЗаказDataTable tableЗаказ;
  5419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5421. internal ЗаказRow(global::System.Data.DataRowBuilder rb) :
  5422. base(rb) {
  5423. this.tableЗаказ = ((ЗаказDataTable)(this.Table));
  5424. }
  5425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5427. public long ID_Заказа {
  5428. get {
  5429. return ((long)(this[this.tableЗаказ.ID_ЗаказаColumn]));
  5430. }
  5431. set {
  5432. this[this.tableЗаказ.ID_ЗаказаColumn] = value;
  5433. }
  5434. }
  5435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5437. public System.DateTime ДатаСоздания {
  5438. get {
  5439. try {
  5440. return ((global::System.DateTime)(this[this.tableЗаказ.ДатаСозданияColumn]));
  5441. }
  5442. catch (global::System.InvalidCastException e) {
  5443. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаСоздания\' в таблице \'Заказ\' равно DBNull.", e);
  5444. }
  5445. }
  5446. set {
  5447. this[this.tableЗаказ.ДатаСозданияColumn] = value;
  5448. }
  5449. }
  5450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5452. public string СтатусЗаказа {
  5453. get {
  5454. try {
  5455. return ((string)(this[this.tableЗаказ.СтатусЗаказаColumn]));
  5456. }
  5457. catch (global::System.InvalidCastException e) {
  5458. throw new global::System.Data.StrongTypingException("Значение для столбца \'СтатусЗаказа\' в таблице \'Заказ\' равно DBNull.", e);
  5459. }
  5460. }
  5461. set {
  5462. this[this.tableЗаказ.СтатусЗаказаColumn] = value;
  5463. }
  5464. }
  5465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5467. public string СтатусУслуги {
  5468. get {
  5469. try {
  5470. return ((string)(this[this.tableЗаказ.СтатусУслугиColumn]));
  5471. }
  5472. catch (global::System.InvalidCastException e) {
  5473. throw new global::System.Data.StrongTypingException("Значение для столбца \'СтатусУслуги\' в таблице \'Заказ\' равно DBNull.", e);
  5474. }
  5475. }
  5476. set {
  5477. this[this.tableЗаказ.СтатусУслугиColumn] = value;
  5478. }
  5479. }
  5480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5482. public int ВремяВыполнения {
  5483. get {
  5484. try {
  5485. return ((int)(this[this.tableЗаказ.ВремяВыполненияColumn]));
  5486. }
  5487. catch (global::System.InvalidCastException e) {
  5488. throw new global::System.Data.StrongTypingException("Значение для столбца \'ВремяВыполнения\' в таблице \'Заказ\' равно DBNull.", e);
  5489. }
  5490. }
  5491. set {
  5492. this[this.tableЗаказ.ВремяВыполненияColumn] = value;
  5493. }
  5494. }
  5495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5497. public long ID_Счета {
  5498. get {
  5499. try {
  5500. return ((long)(this[this.tableЗаказ.ID_СчетаColumn]));
  5501. }
  5502. catch (global::System.InvalidCastException e) {
  5503. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Счета\' в таблице \'Заказ\' равно DBNull.", e);
  5504. }
  5505. }
  5506. set {
  5507. this[this.tableЗаказ.ID_СчетаColumn] = value;
  5508. }
  5509. }
  5510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5512. public СчетаRow СчетаRow {
  5513. get {
  5514. return ((СчетаRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказ_Счета"])));
  5515. }
  5516. set {
  5517. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказ_Счета"]);
  5518. }
  5519. }
  5520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5522. public bool IsДатаСозданияNull() {
  5523. return this.IsNull(this.tableЗаказ.ДатаСозданияColumn);
  5524. }
  5525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5527. public void SetДатаСозданияNull() {
  5528. this[this.tableЗаказ.ДатаСозданияColumn] = global::System.Convert.DBNull;
  5529. }
  5530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5532. public bool IsСтатусЗаказаNull() {
  5533. return this.IsNull(this.tableЗаказ.СтатусЗаказаColumn);
  5534. }
  5535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5537. public void SetСтатусЗаказаNull() {
  5538. this[this.tableЗаказ.СтатусЗаказаColumn] = global::System.Convert.DBNull;
  5539. }
  5540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5542. public bool IsСтатусУслугиNull() {
  5543. return this.IsNull(this.tableЗаказ.СтатусУслугиColumn);
  5544. }
  5545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5547. public void SetСтатусУслугиNull() {
  5548. this[this.tableЗаказ.СтатусУслугиColumn] = global::System.Convert.DBNull;
  5549. }
  5550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5552. public bool IsВремяВыполненияNull() {
  5553. return this.IsNull(this.tableЗаказ.ВремяВыполненияColumn);
  5554. }
  5555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5557. public void SetВремяВыполненияNull() {
  5558. this[this.tableЗаказ.ВремяВыполненияColumn] = global::System.Convert.DBNull;
  5559. }
  5560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5562. public bool IsID_СчетаNull() {
  5563. return this.IsNull(this.tableЗаказ.ID_СчетаColumn);
  5564. }
  5565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5567. public void SetID_СчетаNull() {
  5568. this[this.tableЗаказ.ID_СчетаColumn] = global::System.Convert.DBNull;
  5569. }
  5570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5572. public ОказанныеУслугиRow[] GetОказанныеУслугиRows() {
  5573. if ((this.Table.ChildRelations["FK_ОказанныеУслуги_Заказ"] == null)) {
  5574. return new ОказанныеУслугиRow[0];
  5575. }
  5576. else {
  5577. return ((ОказанныеУслугиRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ОказанныеУслуги_Заказ"])));
  5578. }
  5579. }
  5580. }
  5581. /// <summary>
  5582. ///Represents strongly named DataRow class.
  5583. ///</summary>
  5584. public partial class ЛаборантRow : global::System.Data.DataRow {
  5585. private ЛаборантDataTable tableЛаборант;
  5586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5588. internal ЛаборантRow(global::System.Data.DataRowBuilder rb) :
  5589. base(rb) {
  5590. this.tableЛаборант = ((ЛаборантDataTable)(this.Table));
  5591. }
  5592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5594. public long ID_Лаборанта {
  5595. get {
  5596. return ((long)(this[this.tableЛаборант.ID_ЛаборантаColumn]));
  5597. }
  5598. set {
  5599. this[this.tableЛаборант.ID_ЛаборантаColumn] = value;
  5600. }
  5601. }
  5602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5604. public string Логин {
  5605. get {
  5606. try {
  5607. return ((string)(this[this.tableЛаборант.ЛогинColumn]));
  5608. }
  5609. catch (global::System.InvalidCastException e) {
  5610. throw new global::System.Data.StrongTypingException("Значение для столбца \'Логин\' в таблице \'Лаборант\' равно DBNull.", e);
  5611. }
  5612. }
  5613. set {
  5614. this[this.tableЛаборант.ЛогинColumn] = value;
  5615. }
  5616. }
  5617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5619. public string Пароль {
  5620. get {
  5621. try {
  5622. return ((string)(this[this.tableЛаборант.ПарольColumn]));
  5623. }
  5624. catch (global::System.InvalidCastException e) {
  5625. throw new global::System.Data.StrongTypingException("Значение для столбца \'Пароль\' в таблице \'Лаборант\' равно DBNull.", e);
  5626. }
  5627. }
  5628. set {
  5629. this[this.tableЛаборант.ПарольColumn] = value;
  5630. }
  5631. }
  5632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5634. public string Фамилия {
  5635. get {
  5636. try {
  5637. return ((string)(this[this.tableЛаборант.ФамилияColumn]));
  5638. }
  5639. catch (global::System.InvalidCastException e) {
  5640. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фамилия\' в таблице \'Лаборант\' равно DBNull.", e);
  5641. }
  5642. }
  5643. set {
  5644. this[this.tableЛаборант.ФамилияColumn] = value;
  5645. }
  5646. }
  5647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5649. public string Имя {
  5650. get {
  5651. try {
  5652. return ((string)(this[this.tableЛаборант.ИмяColumn]));
  5653. }
  5654. catch (global::System.InvalidCastException e) {
  5655. throw new global::System.Data.StrongTypingException("Значение для столбца \'Имя\' в таблице \'Лаборант\' равно DBNull.", e);
  5656. }
  5657. }
  5658. set {
  5659. this[this.tableЛаборант.ИмяColumn] = value;
  5660. }
  5661. }
  5662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5664. public string Отчество {
  5665. get {
  5666. try {
  5667. return ((string)(this[this.tableЛаборант.ОтчествоColumn]));
  5668. }
  5669. catch (global::System.InvalidCastException e) {
  5670. throw new global::System.Data.StrongTypingException("Значение для столбца \'Отчество\' в таблице \'Лаборант\' равно DBNull.", e);
  5671. }
  5672. }
  5673. set {
  5674. this[this.tableЛаборант.ОтчествоColumn] = value;
  5675. }
  5676. }
  5677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5679. public System.DateTime ПоследняяДатаИВремяВхода {
  5680. get {
  5681. try {
  5682. return ((global::System.DateTime)(this[this.tableЛаборант.ПоследняяДатаИВремяВходаColumn]));
  5683. }
  5684. catch (global::System.InvalidCastException e) {
  5685. throw new global::System.Data.StrongTypingException("Значение для столбца \'ПоследняяДатаИВремяВхода\' в таблице \'Лаборант\' равно DBNull" +
  5686. ".", e);
  5687. }
  5688. }
  5689. set {
  5690. this[this.tableЛаборант.ПоследняяДатаИВремяВходаColumn] = value;
  5691. }
  5692. }
  5693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5695. public bool IsЛогинNull() {
  5696. return this.IsNull(this.tableЛаборант.ЛогинColumn);
  5697. }
  5698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5700. public void SetЛогинNull() {
  5701. this[this.tableЛаборант.ЛогинColumn] = global::System.Convert.DBNull;
  5702. }
  5703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5705. public bool IsПарольNull() {
  5706. return this.IsNull(this.tableЛаборант.ПарольColumn);
  5707. }
  5708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5710. public void SetПарольNull() {
  5711. this[this.tableЛаборант.ПарольColumn] = global::System.Convert.DBNull;
  5712. }
  5713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5715. public bool IsФамилияNull() {
  5716. return this.IsNull(this.tableЛаборант.ФамилияColumn);
  5717. }
  5718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5720. public void SetФамилияNull() {
  5721. this[this.tableЛаборант.ФамилияColumn] = global::System.Convert.DBNull;
  5722. }
  5723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5725. public bool IsИмяNull() {
  5726. return this.IsNull(this.tableЛаборант.ИмяColumn);
  5727. }
  5728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5730. public void SetИмяNull() {
  5731. this[this.tableЛаборант.ИмяColumn] = global::System.Convert.DBNull;
  5732. }
  5733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5735. public bool IsОтчествоNull() {
  5736. return this.IsNull(this.tableЛаборант.ОтчествоColumn);
  5737. }
  5738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5740. public void SetОтчествоNull() {
  5741. this[this.tableЛаборант.ОтчествоColumn] = global::System.Convert.DBNull;
  5742. }
  5743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5745. public bool IsПоследняяДатаИВремяВходаNull() {
  5746. return this.IsNull(this.tableЛаборант.ПоследняяДатаИВремяВходаColumn);
  5747. }
  5748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5750. public void SetПоследняяДатаИВремяВходаNull() {
  5751. this[this.tableЛаборант.ПоследняяДатаИВремяВходаColumn] = global::System.Convert.DBNull;
  5752. }
  5753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5755. public ОказанныеУслугиRow[] GetОказанныеУслугиRows() {
  5756. if ((this.Table.ChildRelations["FK_ОказанныеУслуги_Лаборант"] == null)) {
  5757. return new ОказанныеУслугиRow[0];
  5758. }
  5759. else {
  5760. return ((ОказанныеУслугиRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ОказанныеУслуги_Лаборант"])));
  5761. }
  5762. }
  5763. }
  5764. /// <summary>
  5765. ///Represents strongly named DataRow class.
  5766. ///</summary>
  5767. public partial class ОказанныеУслугиRow : global::System.Data.DataRow {
  5768. private ОказанныеУслугиDataTable tableОказанныеУслуги;
  5769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5771. internal ОказанныеУслугиRow(global::System.Data.DataRowBuilder rb) :
  5772. base(rb) {
  5773. this.tableОказанныеУслуги = ((ОказанныеУслугиDataTable)(this.Table));
  5774. }
  5775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5777. public long ID_ОказанныхУслуг {
  5778. get {
  5779. return ((long)(this[this.tableОказанныеУслуги.ID_ОказанныхУслугColumn]));
  5780. }
  5781. set {
  5782. this[this.tableОказанныеУслуги.ID_ОказанныхУслугColumn] = value;
  5783. }
  5784. }
  5785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5787. public long ID_Услуги {
  5788. get {
  5789. try {
  5790. return ((long)(this[this.tableОказанныеУслуги.ID_УслугиColumn]));
  5791. }
  5792. catch (global::System.InvalidCastException e) {
  5793. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Услуги\' в таблице \'ОказанныеУслуги\' равно DBNull.", e);
  5794. }
  5795. }
  5796. set {
  5797. this[this.tableОказанныеУслуги.ID_УслугиColumn] = value;
  5798. }
  5799. }
  5800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5802. public long ID_Заказа {
  5803. get {
  5804. try {
  5805. return ((long)(this[this.tableОказанныеУслуги.ID_ЗаказаColumn]));
  5806. }
  5807. catch (global::System.InvalidCastException e) {
  5808. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Заказа\' в таблице \'ОказанныеУслуги\' равно DBNull.", e);
  5809. }
  5810. }
  5811. set {
  5812. this[this.tableОказанныеУслуги.ID_ЗаказаColumn] = value;
  5813. }
  5814. }
  5815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5817. public long ID_Лаборанта {
  5818. get {
  5819. try {
  5820. return ((long)(this[this.tableОказанныеУслуги.ID_ЛаборантаColumn]));
  5821. }
  5822. catch (global::System.InvalidCastException e) {
  5823. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Лаборанта\' в таблице \'ОказанныеУслуги\' равно DBNull.", e);
  5824. }
  5825. }
  5826. set {
  5827. this[this.tableОказанныеУслуги.ID_ЛаборантаColumn] = value;
  5828. }
  5829. }
  5830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5832. public long ID_Анализатора {
  5833. get {
  5834. try {
  5835. return ((long)(this[this.tableОказанныеУслуги.ID_АнализатораColumn]));
  5836. }
  5837. catch (global::System.InvalidCastException e) {
  5838. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Анализатора\' в таблице \'ОказанныеУслуги\' равно DBNull.", e);
  5839. }
  5840. }
  5841. set {
  5842. this[this.tableОказанныеУслуги.ID_АнализатораColumn] = value;
  5843. }
  5844. }
  5845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5847. public long ID_Пациент {
  5848. get {
  5849. try {
  5850. return ((long)(this[this.tableОказанныеУслуги.ID_ПациентColumn]));
  5851. }
  5852. catch (global::System.InvalidCastException e) {
  5853. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Пациент\' в таблице \'ОказанныеУслуги\' равно DBNull.", e);
  5854. }
  5855. }
  5856. set {
  5857. this[this.tableОказанныеУслуги.ID_ПациентColumn] = value;
  5858. }
  5859. }
  5860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5862. public АнализаторRow АнализаторRow {
  5863. get {
  5864. return ((АнализаторRow)(this.GetParentRow(this.Table.ParentRelations["FK_ОказанныеУслуги_Анализатор"])));
  5865. }
  5866. set {
  5867. this.SetParentRow(value, this.Table.ParentRelations["FK_ОказанныеУслуги_Анализатор"]);
  5868. }
  5869. }
  5870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5872. public ДанныеПациентовRow ДанныеПациентовRow {
  5873. get {
  5874. return ((ДанныеПациентовRow)(this.GetParentRow(this.Table.ParentRelations["FK_ОказанныеУслуги_ДанныеПациентов"])));
  5875. }
  5876. set {
  5877. this.SetParentRow(value, this.Table.ParentRelations["FK_ОказанныеУслуги_ДанныеПациентов"]);
  5878. }
  5879. }
  5880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5882. public ЗаказRow ЗаказRow {
  5883. get {
  5884. return ((ЗаказRow)(this.GetParentRow(this.Table.ParentRelations["FK_ОказанныеУслуги_Заказ"])));
  5885. }
  5886. set {
  5887. this.SetParentRow(value, this.Table.ParentRelations["FK_ОказанныеУслуги_Заказ"]);
  5888. }
  5889. }
  5890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5892. public ЛаборантRow ЛаборантRow {
  5893. get {
  5894. return ((ЛаборантRow)(this.GetParentRow(this.Table.ParentRelations["FK_ОказанныеУслуги_Лаборант"])));
  5895. }
  5896. set {
  5897. this.SetParentRow(value, this.Table.ParentRelations["FK_ОказанныеУслуги_Лаборант"]);
  5898. }
  5899. }
  5900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5902. public УслугиЛабораторииRow УслугиЛабораторииRow {
  5903. get {
  5904. return ((УслугиЛабораторииRow)(this.GetParentRow(this.Table.ParentRelations["FK_ОказанныеУслуги_УслугиЛаборатории"])));
  5905. }
  5906. set {
  5907. this.SetParentRow(value, this.Table.ParentRelations["FK_ОказанныеУслуги_УслугиЛаборатории"]);
  5908. }
  5909. }
  5910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5912. public bool IsID_УслугиNull() {
  5913. return this.IsNull(this.tableОказанныеУслуги.ID_УслугиColumn);
  5914. }
  5915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5917. public void SetID_УслугиNull() {
  5918. this[this.tableОказанныеУслуги.ID_УслугиColumn] = global::System.Convert.DBNull;
  5919. }
  5920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5922. public bool IsID_ЗаказаNull() {
  5923. return this.IsNull(this.tableОказанныеУслуги.ID_ЗаказаColumn);
  5924. }
  5925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5927. public void SetID_ЗаказаNull() {
  5928. this[this.tableОказанныеУслуги.ID_ЗаказаColumn] = global::System.Convert.DBNull;
  5929. }
  5930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5932. public bool IsID_ЛаборантаNull() {
  5933. return this.IsNull(this.tableОказанныеУслуги.ID_ЛаборантаColumn);
  5934. }
  5935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5937. public void SetID_ЛаборантаNull() {
  5938. this[this.tableОказанныеУслуги.ID_ЛаборантаColumn] = global::System.Convert.DBNull;
  5939. }
  5940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5942. public bool IsID_АнализатораNull() {
  5943. return this.IsNull(this.tableОказанныеУслуги.ID_АнализатораColumn);
  5944. }
  5945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5947. public void SetID_АнализатораNull() {
  5948. this[this.tableОказанныеУслуги.ID_АнализатораColumn] = global::System.Convert.DBNull;
  5949. }
  5950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5952. public bool IsID_ПациентNull() {
  5953. return this.IsNull(this.tableОказанныеУслуги.ID_ПациентColumn);
  5954. }
  5955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5957. public void SetID_ПациентNull() {
  5958. this[this.tableОказанныеУслуги.ID_ПациентColumn] = global::System.Convert.DBNull;
  5959. }
  5960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5962. public РаботаАнализатораRow[] GetРаботаАнализатораRows() {
  5963. if ((this.Table.ChildRelations["FK_РаботаАнализатора_ОказанныеУслуги"] == null)) {
  5964. return new РаботаАнализатораRow[0];
  5965. }
  5966. else {
  5967. return ((РаботаАнализатораRow[])(base.GetChildRows(this.Table.ChildRelations["FK_РаботаАнализатора_ОказанныеУслуги"])));
  5968. }
  5969. }
  5970. }
  5971. /// <summary>
  5972. ///Represents strongly named DataRow class.
  5973. ///</summary>
  5974. public partial class РаботаАнализатораRow : global::System.Data.DataRow {
  5975. private РаботаАнализатораDataTable tableРаботаАнализатора;
  5976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5978. internal РаботаАнализатораRow(global::System.Data.DataRowBuilder rb) :
  5979. base(rb) {
  5980. this.tableРаботаАнализатора = ((РаботаАнализатораDataTable)(this.Table));
  5981. }
  5982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5984. public long ID_РаботАнализатора {
  5985. get {
  5986. return ((long)(this[this.tableРаботаАнализатора.ID_РаботАнализатораColumn]));
  5987. }
  5988. set {
  5989. this[this.tableРаботаАнализатора.ID_РаботАнализатораColumn] = value;
  5990. }
  5991. }
  5992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5994. public long ID_Анализатора {
  5995. get {
  5996. try {
  5997. return ((long)(this[this.tableРаботаАнализатора.ID_АнализатораColumn]));
  5998. }
  5999. catch (global::System.InvalidCastException e) {
  6000. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Анализатора\' в таблице \'РаботаАнализатора\' равно DBNull." +
  6001. "", e);
  6002. }
  6003. }
  6004. set {
  6005. this[this.tableРаботаАнализатора.ID_АнализатораColumn] = value;
  6006. }
  6007. }
  6008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6010. public long ID_ОказанныхУслуг {
  6011. get {
  6012. try {
  6013. return ((long)(this[this.tableРаботаАнализатора.ID_ОказанныхУслугColumn]));
  6014. }
  6015. catch (global::System.InvalidCastException e) {
  6016. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_ОказанныхУслуг\' в таблице \'РаботаАнализатора\' равно DBNu" +
  6017. "ll.", e);
  6018. }
  6019. }
  6020. set {
  6021. this[this.tableРаботаАнализатора.ID_ОказанныхУслугColumn] = value;
  6022. }
  6023. }
  6024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6026. public string ДатаИВремяПоступленияЗаказа {
  6027. get {
  6028. try {
  6029. return ((string)(this[this.tableРаботаАнализатора.ДатаИВремяПоступленияЗаказаColumn]));
  6030. }
  6031. catch (global::System.InvalidCastException e) {
  6032. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаИВремяПоступленияЗаказа\' в таблице \'РаботаАнализатора\' " +
  6033. "равно DBNull.", e);
  6034. }
  6035. }
  6036. set {
  6037. this[this.tableРаботаАнализатора.ДатаИВремяПоступленияЗаказаColumn] = value;
  6038. }
  6039. }
  6040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6042. public АнализаторRow АнализаторRow {
  6043. get {
  6044. return ((АнализаторRow)(this.GetParentRow(this.Table.ParentRelations["FK_РаботаАнализатора_Анализатор"])));
  6045. }
  6046. set {
  6047. this.SetParentRow(value, this.Table.ParentRelations["FK_РаботаАнализатора_Анализатор"]);
  6048. }
  6049. }
  6050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6052. public ОказанныеУслугиRow ОказанныеУслугиRow {
  6053. get {
  6054. return ((ОказанныеУслугиRow)(this.GetParentRow(this.Table.ParentRelations["FK_РаботаАнализатора_ОказанныеУслуги"])));
  6055. }
  6056. set {
  6057. this.SetParentRow(value, this.Table.ParentRelations["FK_РаботаАнализатора_ОказанныеУслуги"]);
  6058. }
  6059. }
  6060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6062. public bool IsID_АнализатораNull() {
  6063. return this.IsNull(this.tableРаботаАнализатора.ID_АнализатораColumn);
  6064. }
  6065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6067. public void SetID_АнализатораNull() {
  6068. this[this.tableРаботаАнализатора.ID_АнализатораColumn] = global::System.Convert.DBNull;
  6069. }
  6070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6072. public bool IsID_ОказанныхУслугNull() {
  6073. return this.IsNull(this.tableРаботаАнализатора.ID_ОказанныхУслугColumn);
  6074. }
  6075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6077. public void SetID_ОказанныхУслугNull() {
  6078. this[this.tableРаботаАнализатора.ID_ОказанныхУслугColumn] = global::System.Convert.DBNull;
  6079. }
  6080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6082. public bool IsДатаИВремяПоступленияЗаказаNull() {
  6083. return this.IsNull(this.tableРаботаАнализатора.ДатаИВремяПоступленияЗаказаColumn);
  6084. }
  6085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6087. public void SetДатаИВремяПоступленияЗаказаNull() {
  6088. this[this.tableРаботаАнализатора.ДатаИВремяПоступленияЗаказаColumn] = global::System.Convert.DBNull;
  6089. }
  6090. }
  6091. /// <summary>
  6092. ///Represents strongly named DataRow class.
  6093. ///</summary>
  6094. public partial class СтраховаяКомпанияRow : global::System.Data.DataRow {
  6095. private СтраховаяКомпанияDataTable tableСтраховаяКомпания;
  6096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6098. internal СтраховаяКомпанияRow(global::System.Data.DataRowBuilder rb) :
  6099. base(rb) {
  6100. this.tableСтраховаяКомпания = ((СтраховаяКомпанияDataTable)(this.Table));
  6101. }
  6102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6104. public long ID_Компании {
  6105. get {
  6106. return ((long)(this[this.tableСтраховаяКомпания.ID_КомпанииColumn]));
  6107. }
  6108. set {
  6109. this[this.tableСтраховаяКомпания.ID_КомпанииColumn] = value;
  6110. }
  6111. }
  6112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6114. public string Название {
  6115. get {
  6116. try {
  6117. return ((string)(this[this.tableСтраховаяКомпания.НазваниеColumn]));
  6118. }
  6119. catch (global::System.InvalidCastException e) {
  6120. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'СтраховаяКомпания\' равно DBNull.", e);
  6121. }
  6122. }
  6123. set {
  6124. this[this.tableСтраховаяКомпания.НазваниеColumn] = value;
  6125. }
  6126. }
  6127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6129. public string Адрес {
  6130. get {
  6131. try {
  6132. return ((string)(this[this.tableСтраховаяКомпания.АдресColumn]));
  6133. }
  6134. catch (global::System.InvalidCastException e) {
  6135. throw new global::System.Data.StrongTypingException("Значение для столбца \'Адрес\' в таблице \'СтраховаяКомпания\' равно DBNull.", e);
  6136. }
  6137. }
  6138. set {
  6139. this[this.tableСтраховаяКомпания.АдресColumn] = value;
  6140. }
  6141. }
  6142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6144. public int ИНН {
  6145. get {
  6146. try {
  6147. return ((int)(this[this.tableСтраховаяКомпания.ИННColumn]));
  6148. }
  6149. catch (global::System.InvalidCastException e) {
  6150. throw new global::System.Data.StrongTypingException("Значение для столбца \'ИНН\' в таблице \'СтраховаяКомпания\' равно DBNull.", e);
  6151. }
  6152. }
  6153. set {
  6154. this[this.tableСтраховаяКомпания.ИННColumn] = value;
  6155. }
  6156. }
  6157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6159. public string PC {
  6160. get {
  6161. try {
  6162. return ((string)(this[this.tableСтраховаяКомпания.PCColumn]));
  6163. }
  6164. catch (global::System.InvalidCastException e) {
  6165. throw new global::System.Data.StrongTypingException("Значение для столбца \'PC\' в таблице \'СтраховаяКомпания\' равно DBNull.", e);
  6166. }
  6167. }
  6168. set {
  6169. this[this.tableСтраховаяКомпания.PCColumn] = value;
  6170. }
  6171. }
  6172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6174. public string БИК {
  6175. get {
  6176. try {
  6177. return ((string)(this[this.tableСтраховаяКомпания.БИКColumn]));
  6178. }
  6179. catch (global::System.InvalidCastException e) {
  6180. throw new global::System.Data.StrongTypingException("Значение для столбца \'БИК\' в таблице \'СтраховаяКомпания\' равно DBNull.", e);
  6181. }
  6182. }
  6183. set {
  6184. this[this.tableСтраховаяКомпания.БИКColumn] = value;
  6185. }
  6186. }
  6187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6189. public bool IsНазваниеNull() {
  6190. return this.IsNull(this.tableСтраховаяКомпания.НазваниеColumn);
  6191. }
  6192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6194. public void SetНазваниеNull() {
  6195. this[this.tableСтраховаяКомпания.НазваниеColumn] = global::System.Convert.DBNull;
  6196. }
  6197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6199. public bool IsАдресNull() {
  6200. return this.IsNull(this.tableСтраховаяКомпания.АдресColumn);
  6201. }
  6202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6204. public void SetАдресNull() {
  6205. this[this.tableСтраховаяКомпания.АдресColumn] = global::System.Convert.DBNull;
  6206. }
  6207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6209. public bool IsИННNull() {
  6210. return this.IsNull(this.tableСтраховаяКомпания.ИННColumn);
  6211. }
  6212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6214. public void SetИННNull() {
  6215. this[this.tableСтраховаяКомпания.ИННColumn] = global::System.Convert.DBNull;
  6216. }
  6217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6219. public bool IsPCNull() {
  6220. return this.IsNull(this.tableСтраховаяКомпания.PCColumn);
  6221. }
  6222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6224. public void SetPCNull() {
  6225. this[this.tableСтраховаяКомпания.PCColumn] = global::System.Convert.DBNull;
  6226. }
  6227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6229. public bool IsБИКNull() {
  6230. return this.IsNull(this.tableСтраховаяКомпания.БИКColumn);
  6231. }
  6232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6234. public void SetБИКNull() {
  6235. this[this.tableСтраховаяКомпания.БИКColumn] = global::System.Convert.DBNull;
  6236. }
  6237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6239. public ДанныеПациентовRow[] GetДанныеПациентовRows() {
  6240. if ((this.Table.ChildRelations["FK_ДанныеПациентов_СтраховаяКомпания"] == null)) {
  6241. return new ДанныеПациентовRow[0];
  6242. }
  6243. else {
  6244. return ((ДанныеПациентовRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ДанныеПациентов_СтраховаяКомпания"])));
  6245. }
  6246. }
  6247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6249. public СчетаRow[] GetСчетаRows() {
  6250. if ((this.Table.ChildRelations["FK_Счета_СтраховаяКомпания"] == null)) {
  6251. return new СчетаRow[0];
  6252. }
  6253. else {
  6254. return ((СчетаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Счета_СтраховаяКомпания"])));
  6255. }
  6256. }
  6257. }
  6258. /// <summary>
  6259. ///Represents strongly named DataRow class.
  6260. ///</summary>
  6261. public partial class СчетаRow : global::System.Data.DataRow {
  6262. private СчетаDataTable tableСчета;
  6263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6265. internal СчетаRow(global::System.Data.DataRowBuilder rb) :
  6266. base(rb) {
  6267. this.tableСчета = ((СчетаDataTable)(this.Table));
  6268. }
  6269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6271. public long ID_Счета {
  6272. get {
  6273. return ((long)(this[this.tableСчета.ID_СчетаColumn]));
  6274. }
  6275. set {
  6276. this[this.tableСчета.ID_СчетаColumn] = value;
  6277. }
  6278. }
  6279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6281. public long ID_Бухгалтера {
  6282. get {
  6283. try {
  6284. return ((long)(this[this.tableСчета.ID_БухгалтераColumn]));
  6285. }
  6286. catch (global::System.InvalidCastException e) {
  6287. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Бухгалтера\' в таблице \'Счета\' равно DBNull.", e);
  6288. }
  6289. }
  6290. set {
  6291. this[this.tableСчета.ID_БухгалтераColumn] = value;
  6292. }
  6293. }
  6294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6296. public long ID_Компании {
  6297. get {
  6298. try {
  6299. return ((long)(this[this.tableСчета.ID_КомпанииColumn]));
  6300. }
  6301. catch (global::System.InvalidCastException e) {
  6302. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Компании\' в таблице \'Счета\' равно DBNull.", e);
  6303. }
  6304. }
  6305. set {
  6306. this[this.tableСчета.ID_КомпанииColumn] = value;
  6307. }
  6308. }
  6309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6311. public decimal Сумма {
  6312. get {
  6313. try {
  6314. return ((decimal)(this[this.tableСчета.СуммаColumn]));
  6315. }
  6316. catch (global::System.InvalidCastException e) {
  6317. throw new global::System.Data.StrongTypingException("Значение для столбца \'Сумма\' в таблице \'Счета\' равно DBNull.", e);
  6318. }
  6319. }
  6320. set {
  6321. this[this.tableСчета.СуммаColumn] = value;
  6322. }
  6323. }
  6324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6326. public БухгалтерRow БухгалтерRow {
  6327. get {
  6328. return ((БухгалтерRow)(this.GetParentRow(this.Table.ParentRelations["FK_Счета_Бухгалтер"])));
  6329. }
  6330. set {
  6331. this.SetParentRow(value, this.Table.ParentRelations["FK_Счета_Бухгалтер"]);
  6332. }
  6333. }
  6334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6336. public СтраховаяКомпанияRow СтраховаяКомпанияRow {
  6337. get {
  6338. return ((СтраховаяКомпанияRow)(this.GetParentRow(this.Table.ParentRelations["FK_Счета_СтраховаяКомпания"])));
  6339. }
  6340. set {
  6341. this.SetParentRow(value, this.Table.ParentRelations["FK_Счета_СтраховаяКомпания"]);
  6342. }
  6343. }
  6344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6346. public bool IsID_БухгалтераNull() {
  6347. return this.IsNull(this.tableСчета.ID_БухгалтераColumn);
  6348. }
  6349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6351. public void SetID_БухгалтераNull() {
  6352. this[this.tableСчета.ID_БухгалтераColumn] = global::System.Convert.DBNull;
  6353. }
  6354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6356. public bool IsID_КомпанииNull() {
  6357. return this.IsNull(this.tableСчета.ID_КомпанииColumn);
  6358. }
  6359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6361. public void SetID_КомпанииNull() {
  6362. this[this.tableСчета.ID_КомпанииColumn] = global::System.Convert.DBNull;
  6363. }
  6364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6366. public bool IsСуммаNull() {
  6367. return this.IsNull(this.tableСчета.СуммаColumn);
  6368. }
  6369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6371. public void SetСуммаNull() {
  6372. this[this.tableСчета.СуммаColumn] = global::System.Convert.DBNull;
  6373. }
  6374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6376. public ЗаказRow[] GetЗаказRows() {
  6377. if ((this.Table.ChildRelations["FK_Заказ_Счета"] == null)) {
  6378. return new ЗаказRow[0];
  6379. }
  6380. else {
  6381. return ((ЗаказRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказ_Счета"])));
  6382. }
  6383. }
  6384. }
  6385. /// <summary>
  6386. ///Represents strongly named DataRow class.
  6387. ///</summary>
  6388. public partial class УслугиЛабораторииRow : global::System.Data.DataRow {
  6389. private УслугиЛабораторииDataTable tableУслугиЛаборатории;
  6390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6392. internal УслугиЛабораторииRow(global::System.Data.DataRowBuilder rb) :
  6393. base(rb) {
  6394. this.tableУслугиЛаборатории = ((УслугиЛабораторииDataTable)(this.Table));
  6395. }
  6396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6398. public long ID_Услуги {
  6399. get {
  6400. return ((long)(this[this.tableУслугиЛаборатории.ID_УслугиColumn]));
  6401. }
  6402. set {
  6403. this[this.tableУслугиЛаборатории.ID_УслугиColumn] = value;
  6404. }
  6405. }
  6406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6408. public string Наименование {
  6409. get {
  6410. try {
  6411. return ((string)(this[this.tableУслугиЛаборатории.НаименованиеColumn]));
  6412. }
  6413. catch (global::System.InvalidCastException e) {
  6414. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'УслугиЛаборатории\' равно DBNull.", e);
  6415. }
  6416. }
  6417. set {
  6418. this[this.tableУслугиЛаборатории.НаименованиеColumn] = value;
  6419. }
  6420. }
  6421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6423. public decimal Стоимость {
  6424. get {
  6425. try {
  6426. return ((decimal)(this[this.tableУслугиЛаборатории.СтоимостьColumn]));
  6427. }
  6428. catch (global::System.InvalidCastException e) {
  6429. throw new global::System.Data.StrongTypingException("Значение для столбца \'Стоимость\' в таблице \'УслугиЛаборатории\' равно DBNull.", e);
  6430. }
  6431. }
  6432. set {
  6433. this[this.tableУслугиЛаборатории.СтоимостьColumn] = value;
  6434. }
  6435. }
  6436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6438. public System.DateTime СрокВыполнения {
  6439. get {
  6440. try {
  6441. return ((global::System.DateTime)(this[this.tableУслугиЛаборатории.СрокВыполненияColumn]));
  6442. }
  6443. catch (global::System.InvalidCastException e) {
  6444. throw new global::System.Data.StrongTypingException("Значение для столбца \'СрокВыполнения\' в таблице \'УслугиЛаборатории\' равно DBNull." +
  6445. "", e);
  6446. }
  6447. }
  6448. set {
  6449. this[this.tableУслугиЛаборатории.СрокВыполненияColumn] = value;
  6450. }
  6451. }
  6452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6454. public decimal СреднееОтклонение {
  6455. get {
  6456. try {
  6457. return ((decimal)(this[this.tableУслугиЛаборатории.СреднееОтклонениеColumn]));
  6458. }
  6459. catch (global::System.InvalidCastException e) {
  6460. throw new global::System.Data.StrongTypingException("Значение для столбца \'СреднееОтклонение\' в таблице \'УслугиЛаборатории\' равно DBNu" +
  6461. "ll.", e);
  6462. }
  6463. }
  6464. set {
  6465. this[this.tableУслугиЛаборатории.СреднееОтклонениеColumn] = value;
  6466. }
  6467. }
  6468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6470. public bool IsНаименованиеNull() {
  6471. return this.IsNull(this.tableУслугиЛаборатории.НаименованиеColumn);
  6472. }
  6473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6475. public void SetНаименованиеNull() {
  6476. this[this.tableУслугиЛаборатории.НаименованиеColumn] = global::System.Convert.DBNull;
  6477. }
  6478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6480. public bool IsСтоимостьNull() {
  6481. return this.IsNull(this.tableУслугиЛаборатории.СтоимостьColumn);
  6482. }
  6483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6485. public void SetСтоимостьNull() {
  6486. this[this.tableУслугиЛаборатории.СтоимостьColumn] = global::System.Convert.DBNull;
  6487. }
  6488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6490. public bool IsСрокВыполненияNull() {
  6491. return this.IsNull(this.tableУслугиЛаборатории.СрокВыполненияColumn);
  6492. }
  6493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6495. public void SetСрокВыполненияNull() {
  6496. this[this.tableУслугиЛаборатории.СрокВыполненияColumn] = global::System.Convert.DBNull;
  6497. }
  6498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6500. public bool IsСреднееОтклонениеNull() {
  6501. return this.IsNull(this.tableУслугиЛаборатории.СреднееОтклонениеColumn);
  6502. }
  6503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6505. public void SetСреднееОтклонениеNull() {
  6506. this[this.tableУслугиЛаборатории.СреднееОтклонениеColumn] = global::System.Convert.DBNull;
  6507. }
  6508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6510. public БухгалтерRow[] GetБухгалтерRows() {
  6511. if ((this.Table.ChildRelations["FK_Бухгалтер_УслугиЛаборатории"] == null)) {
  6512. return new БухгалтерRow[0];
  6513. }
  6514. else {
  6515. return ((БухгалтерRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Бухгалтер_УслугиЛаборатории"])));
  6516. }
  6517. }
  6518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6520. public ОказанныеУслугиRow[] GetОказанныеУслугиRows() {
  6521. if ((this.Table.ChildRelations["FK_ОказанныеУслуги_УслугиЛаборатории"] == null)) {
  6522. return new ОказанныеУслугиRow[0];
  6523. }
  6524. else {
  6525. return ((ОказанныеУслугиRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ОказанныеУслуги_УслугиЛаборатории"])));
  6526. }
  6527. }
  6528. }
  6529. /// <summary>
  6530. ///Represents strongly named DataRow class.
  6531. ///</summary>
  6532. public partial class отчётRow : global::System.Data.DataRow {
  6533. private отчётDataTable tableотчёт;
  6534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6536. internal отчётRow(global::System.Data.DataRowBuilder rb) :
  6537. base(rb) {
  6538. this.tableотчёт = ((отчётDataTable)(this.Table));
  6539. }
  6540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6542. public long ID_Пациент {
  6543. get {
  6544. return ((long)(this[this.tableотчёт.ID_ПациентColumn]));
  6545. }
  6546. set {
  6547. this[this.tableотчёт.ID_ПациентColumn] = value;
  6548. }
  6549. }
  6550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6552. public string Фамилия {
  6553. get {
  6554. try {
  6555. return ((string)(this[this.tableотчёт.ФамилияColumn]));
  6556. }
  6557. catch (global::System.InvalidCastException e) {
  6558. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фамилия\' в таблице \'отчёт\' равно DBNull.", e);
  6559. }
  6560. }
  6561. set {
  6562. this[this.tableотчёт.ФамилияColumn] = value;
  6563. }
  6564. }
  6565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6567. public string Имя {
  6568. get {
  6569. try {
  6570. return ((string)(this[this.tableотчёт.ИмяColumn]));
  6571. }
  6572. catch (global::System.InvalidCastException e) {
  6573. throw new global::System.Data.StrongTypingException("Значение для столбца \'Имя\' в таблице \'отчёт\' равно DBNull.", e);
  6574. }
  6575. }
  6576. set {
  6577. this[this.tableотчёт.ИмяColumn] = value;
  6578. }
  6579. }
  6580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6582. public System.DateTime ДатаРождения {
  6583. get {
  6584. try {
  6585. return ((global::System.DateTime)(this[this.tableотчёт.ДатаРожденияColumn]));
  6586. }
  6587. catch (global::System.InvalidCastException e) {
  6588. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаРождения\' в таблице \'отчёт\' равно DBNull.", e);
  6589. }
  6590. }
  6591. set {
  6592. this[this.tableотчёт.ДатаРожденияColumn] = value;
  6593. }
  6594. }
  6595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6597. public long ID_Компании {
  6598. get {
  6599. try {
  6600. return ((long)(this[this.tableотчёт.ID_КомпанииColumn]));
  6601. }
  6602. catch (global::System.InvalidCastException e) {
  6603. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Компании\' в таблице \'отчёт\' равно DBNull.", e);
  6604. }
  6605. }
  6606. set {
  6607. this[this.tableотчёт.ID_КомпанииColumn] = value;
  6608. }
  6609. }
  6610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6612. public long ID_Лаборанта {
  6613. get {
  6614. return ((long)(this[this.tableотчёт.ID_ЛаборантаColumn]));
  6615. }
  6616. set {
  6617. this[this.tableотчёт.ID_ЛаборантаColumn] = value;
  6618. }
  6619. }
  6620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6622. public long ID_Услуги {
  6623. get {
  6624. try {
  6625. return ((long)(this[this.tableотчёт.ID_УслугиColumn]));
  6626. }
  6627. catch (global::System.InvalidCastException e) {
  6628. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Услуги\' в таблице \'отчёт\' равно DBNull.", e);
  6629. }
  6630. }
  6631. set {
  6632. this[this.tableотчёт.ID_УслугиColumn] = value;
  6633. }
  6634. }
  6635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6637. public long ID_Заказа {
  6638. get {
  6639. return ((long)(this[this.tableотчёт.ID_ЗаказаColumn]));
  6640. }
  6641. set {
  6642. this[this.tableотчёт.ID_ЗаказаColumn] = value;
  6643. }
  6644. }
  6645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6647. public bool IsФамилияNull() {
  6648. return this.IsNull(this.tableотчёт.ФамилияColumn);
  6649. }
  6650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6652. public void SetФамилияNull() {
  6653. this[this.tableотчёт.ФамилияColumn] = global::System.Convert.DBNull;
  6654. }
  6655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6657. public bool IsИмяNull() {
  6658. return this.IsNull(this.tableотчёт.ИмяColumn);
  6659. }
  6660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6662. public void SetИмяNull() {
  6663. this[this.tableотчёт.ИмяColumn] = global::System.Convert.DBNull;
  6664. }
  6665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6667. public bool IsДатаРожденияNull() {
  6668. return this.IsNull(this.tableотчёт.ДатаРожденияColumn);
  6669. }
  6670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6672. public void SetДатаРожденияNull() {
  6673. this[this.tableотчёт.ДатаРожденияColumn] = global::System.Convert.DBNull;
  6674. }
  6675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6677. public bool IsID_КомпанииNull() {
  6678. return this.IsNull(this.tableотчёт.ID_КомпанииColumn);
  6679. }
  6680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6682. public void SetID_КомпанииNull() {
  6683. this[this.tableотчёт.ID_КомпанииColumn] = global::System.Convert.DBNull;
  6684. }
  6685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6687. public bool IsID_УслугиNull() {
  6688. return this.IsNull(this.tableотчёт.ID_УслугиColumn);
  6689. }
  6690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6692. public void SetID_УслугиNull() {
  6693. this[this.tableотчёт.ID_УслугиColumn] = global::System.Convert.DBNull;
  6694. }
  6695. }
  6696. /// <summary>
  6697. ///Row event argument class
  6698. ///</summary>
  6699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6700. public class _services___копияRowChangeEvent : global::System.EventArgs {
  6701. private _services___копияRow eventRow;
  6702. private global::System.Data.DataRowAction eventAction;
  6703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6705. public _services___копияRowChangeEvent(_services___копияRow row, global::System.Data.DataRowAction action) {
  6706. this.eventRow = row;
  6707. this.eventAction = action;
  6708. }
  6709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6711. public _services___копияRow Row {
  6712. get {
  6713. return this.eventRow;
  6714. }
  6715. }
  6716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6718. public global::System.Data.DataRowAction Action {
  6719. get {
  6720. return this.eventAction;
  6721. }
  6722. }
  6723. }
  6724. /// <summary>
  6725. ///Row event argument class
  6726. ///</summary>
  6727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6728. public class _users___копияRowChangeEvent : global::System.EventArgs {
  6729. private _users___копияRow eventRow;
  6730. private global::System.Data.DataRowAction eventAction;
  6731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6733. public _users___копияRowChangeEvent(_users___копияRow row, global::System.Data.DataRowAction action) {
  6734. this.eventRow = row;
  6735. this.eventAction = action;
  6736. }
  6737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6739. public _users___копияRow Row {
  6740. get {
  6741. return this.eventRow;
  6742. }
  6743. }
  6744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6746. public global::System.Data.DataRowAction Action {
  6747. get {
  6748. return this.eventAction;
  6749. }
  6750. }
  6751. }
  6752. /// <summary>
  6753. ///Row event argument class
  6754. ///</summary>
  6755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6756. public class АдминистраторRowChangeEvent : global::System.EventArgs {
  6757. private АдминистраторRow eventRow;
  6758. private global::System.Data.DataRowAction eventAction;
  6759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6761. public АдминистраторRowChangeEvent(АдминистраторRow row, global::System.Data.DataRowAction action) {
  6762. this.eventRow = row;
  6763. this.eventAction = action;
  6764. }
  6765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6767. public АдминистраторRow Row {
  6768. get {
  6769. return this.eventRow;
  6770. }
  6771. }
  6772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6774. public global::System.Data.DataRowAction Action {
  6775. get {
  6776. return this.eventAction;
  6777. }
  6778. }
  6779. }
  6780. /// <summary>
  6781. ///Row event argument class
  6782. ///</summary>
  6783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6784. public class АнализаторRowChangeEvent : global::System.EventArgs {
  6785. private АнализаторRow eventRow;
  6786. private global::System.Data.DataRowAction eventAction;
  6787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6789. public АнализаторRowChangeEvent(АнализаторRow row, global::System.Data.DataRowAction action) {
  6790. this.eventRow = row;
  6791. this.eventAction = action;
  6792. }
  6793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6795. public АнализаторRow Row {
  6796. get {
  6797. return this.eventRow;
  6798. }
  6799. }
  6800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6802. public global::System.Data.DataRowAction Action {
  6803. get {
  6804. return this.eventAction;
  6805. }
  6806. }
  6807. }
  6808. /// <summary>
  6809. ///Row event argument class
  6810. ///</summary>
  6811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6812. public class БухгалтерRowChangeEvent : global::System.EventArgs {
  6813. private БухгалтерRow eventRow;
  6814. private global::System.Data.DataRowAction eventAction;
  6815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6817. public БухгалтерRowChangeEvent(БухгалтерRow row, global::System.Data.DataRowAction action) {
  6818. this.eventRow = row;
  6819. this.eventAction = action;
  6820. }
  6821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6823. public БухгалтерRow Row {
  6824. get {
  6825. return this.eventRow;
  6826. }
  6827. }
  6828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6830. public global::System.Data.DataRowAction Action {
  6831. get {
  6832. return this.eventAction;
  6833. }
  6834. }
  6835. }
  6836. /// <summary>
  6837. ///Row event argument class
  6838. ///</summary>
  6839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6840. public class ДанныеПациентовRowChangeEvent : global::System.EventArgs {
  6841. private ДанныеПациентовRow eventRow;
  6842. private global::System.Data.DataRowAction eventAction;
  6843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6845. public ДанныеПациентовRowChangeEvent(ДанныеПациентовRow row, global::System.Data.DataRowAction action) {
  6846. this.eventRow = row;
  6847. this.eventAction = action;
  6848. }
  6849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6851. public ДанныеПациентовRow Row {
  6852. get {
  6853. return this.eventRow;
  6854. }
  6855. }
  6856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6858. public global::System.Data.DataRowAction Action {
  6859. get {
  6860. return this.eventAction;
  6861. }
  6862. }
  6863. }
  6864. /// <summary>
  6865. ///Row event argument class
  6866. ///</summary>
  6867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6868. public class ЗаказRowChangeEvent : global::System.EventArgs {
  6869. private ЗаказRow eventRow;
  6870. private global::System.Data.DataRowAction eventAction;
  6871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6873. public ЗаказRowChangeEvent(ЗаказRow row, global::System.Data.DataRowAction action) {
  6874. this.eventRow = row;
  6875. this.eventAction = action;
  6876. }
  6877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6879. public ЗаказRow Row {
  6880. get {
  6881. return this.eventRow;
  6882. }
  6883. }
  6884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6886. public global::System.Data.DataRowAction Action {
  6887. get {
  6888. return this.eventAction;
  6889. }
  6890. }
  6891. }
  6892. /// <summary>
  6893. ///Row event argument class
  6894. ///</summary>
  6895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6896. public class ЛаборантRowChangeEvent : global::System.EventArgs {
  6897. private ЛаборантRow eventRow;
  6898. private global::System.Data.DataRowAction eventAction;
  6899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6901. public ЛаборантRowChangeEvent(ЛаборантRow row, global::System.Data.DataRowAction action) {
  6902. this.eventRow = row;
  6903. this.eventAction = action;
  6904. }
  6905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6907. public ЛаборантRow Row {
  6908. get {
  6909. return this.eventRow;
  6910. }
  6911. }
  6912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6914. public global::System.Data.DataRowAction Action {
  6915. get {
  6916. return this.eventAction;
  6917. }
  6918. }
  6919. }
  6920. /// <summary>
  6921. ///Row event argument class
  6922. ///</summary>
  6923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6924. public class ОказанныеУслугиRowChangeEvent : global::System.EventArgs {
  6925. private ОказанныеУслугиRow eventRow;
  6926. private global::System.Data.DataRowAction eventAction;
  6927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6929. public ОказанныеУслугиRowChangeEvent(ОказанныеУслугиRow row, global::System.Data.DataRowAction action) {
  6930. this.eventRow = row;
  6931. this.eventAction = action;
  6932. }
  6933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6935. public ОказанныеУслугиRow Row {
  6936. get {
  6937. return this.eventRow;
  6938. }
  6939. }
  6940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6942. public global::System.Data.DataRowAction Action {
  6943. get {
  6944. return this.eventAction;
  6945. }
  6946. }
  6947. }
  6948. /// <summary>
  6949. ///Row event argument class
  6950. ///</summary>
  6951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6952. public class РаботаАнализатораRowChangeEvent : global::System.EventArgs {
  6953. private РаботаАнализатораRow eventRow;
  6954. private global::System.Data.DataRowAction eventAction;
  6955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6957. public РаботаАнализатораRowChangeEvent(РаботаАнализатораRow row, global::System.Data.DataRowAction action) {
  6958. this.eventRow = row;
  6959. this.eventAction = action;
  6960. }
  6961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6963. public РаботаАнализатораRow Row {
  6964. get {
  6965. return this.eventRow;
  6966. }
  6967. }
  6968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6970. public global::System.Data.DataRowAction Action {
  6971. get {
  6972. return this.eventAction;
  6973. }
  6974. }
  6975. }
  6976. /// <summary>
  6977. ///Row event argument class
  6978. ///</summary>
  6979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6980. public class СтраховаяКомпанияRowChangeEvent : global::System.EventArgs {
  6981. private СтраховаяКомпанияRow eventRow;
  6982. private global::System.Data.DataRowAction eventAction;
  6983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6985. public СтраховаяКомпанияRowChangeEvent(СтраховаяКомпанияRow row, global::System.Data.DataRowAction action) {
  6986. this.eventRow = row;
  6987. this.eventAction = action;
  6988. }
  6989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6991. public СтраховаяКомпанияRow Row {
  6992. get {
  6993. return this.eventRow;
  6994. }
  6995. }
  6996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6998. public global::System.Data.DataRowAction Action {
  6999. get {
  7000. return this.eventAction;
  7001. }
  7002. }
  7003. }
  7004. /// <summary>
  7005. ///Row event argument class
  7006. ///</summary>
  7007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7008. public class СчетаRowChangeEvent : global::System.EventArgs {
  7009. private СчетаRow eventRow;
  7010. private global::System.Data.DataRowAction eventAction;
  7011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7013. public СчетаRowChangeEvent(СчетаRow row, global::System.Data.DataRowAction action) {
  7014. this.eventRow = row;
  7015. this.eventAction = action;
  7016. }
  7017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7019. public СчетаRow Row {
  7020. get {
  7021. return this.eventRow;
  7022. }
  7023. }
  7024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7026. public global::System.Data.DataRowAction Action {
  7027. get {
  7028. return this.eventAction;
  7029. }
  7030. }
  7031. }
  7032. /// <summary>
  7033. ///Row event argument class
  7034. ///</summary>
  7035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7036. public class УслугиЛабораторииRowChangeEvent : global::System.EventArgs {
  7037. private УслугиЛабораторииRow eventRow;
  7038. private global::System.Data.DataRowAction eventAction;
  7039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7041. public УслугиЛабораторииRowChangeEvent(УслугиЛабораторииRow row, global::System.Data.DataRowAction action) {
  7042. this.eventRow = row;
  7043. this.eventAction = action;
  7044. }
  7045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7047. public УслугиЛабораторииRow Row {
  7048. get {
  7049. return this.eventRow;
  7050. }
  7051. }
  7052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7054. public global::System.Data.DataRowAction Action {
  7055. get {
  7056. return this.eventAction;
  7057. }
  7058. }
  7059. }
  7060. /// <summary>
  7061. ///Row event argument class
  7062. ///</summary>
  7063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7064. public class отчётRowChangeEvent : global::System.EventArgs {
  7065. private отчётRow eventRow;
  7066. private global::System.Data.DataRowAction eventAction;
  7067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7069. public отчётRowChangeEvent(отчётRow row, global::System.Data.DataRowAction action) {
  7070. this.eventRow = row;
  7071. this.eventAction = action;
  7072. }
  7073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7075. public отчётRow Row {
  7076. get {
  7077. return this.eventRow;
  7078. }
  7079. }
  7080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7082. public global::System.Data.DataRowAction Action {
  7083. get {
  7084. return this.eventAction;
  7085. }
  7086. }
  7087. }
  7088. }
  7089. }
  7090. namespace Laboratoria.ИсследованияБиоматериалаDataSetTableAdapters {
  7091. /// <summary>
  7092. ///Represents the connection and commands used to retrieve and save data.
  7093. ///</summary>
  7094. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7095. [global::System.ComponentModel.ToolboxItem(true)]
  7096. [global::System.ComponentModel.DataObjectAttribute(true)]
  7097. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7098. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7099. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7100. public partial class services___копияTableAdapter : global::System.ComponentModel.Component {
  7101. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7102. private global::System.Data.SqlClient.SqlConnection _connection;
  7103. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7104. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7105. private bool _clearBeforeFill;
  7106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7108. public services___копияTableAdapter() {
  7109. this.ClearBeforeFill = true;
  7110. }
  7111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7113. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7114. get {
  7115. if ((this._adapter == null)) {
  7116. this.InitAdapter();
  7117. }
  7118. return this._adapter;
  7119. }
  7120. }
  7121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7123. internal global::System.Data.SqlClient.SqlConnection Connection {
  7124. get {
  7125. if ((this._connection == null)) {
  7126. this.InitConnection();
  7127. }
  7128. return this._connection;
  7129. }
  7130. set {
  7131. this._connection = value;
  7132. if ((this.Adapter.InsertCommand != null)) {
  7133. this.Adapter.InsertCommand.Connection = value;
  7134. }
  7135. if ((this.Adapter.DeleteCommand != null)) {
  7136. this.Adapter.DeleteCommand.Connection = value;
  7137. }
  7138. if ((this.Adapter.UpdateCommand != null)) {
  7139. this.Adapter.UpdateCommand.Connection = value;
  7140. }
  7141. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7142. if ((this.CommandCollection[i] != null)) {
  7143. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7144. }
  7145. }
  7146. }
  7147. }
  7148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7150. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7151. get {
  7152. return this._transaction;
  7153. }
  7154. set {
  7155. this._transaction = value;
  7156. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7157. this.CommandCollection[i].Transaction = this._transaction;
  7158. }
  7159. if (((this.Adapter != null)
  7160. && (this.Adapter.DeleteCommand != null))) {
  7161. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7162. }
  7163. if (((this.Adapter != null)
  7164. && (this.Adapter.InsertCommand != null))) {
  7165. this.Adapter.InsertCommand.Transaction = this._transaction;
  7166. }
  7167. if (((this.Adapter != null)
  7168. && (this.Adapter.UpdateCommand != null))) {
  7169. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7170. }
  7171. }
  7172. }
  7173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7175. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7176. get {
  7177. if ((this._commandCollection == null)) {
  7178. this.InitCommandCollection();
  7179. }
  7180. return this._commandCollection;
  7181. }
  7182. }
  7183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7185. public bool ClearBeforeFill {
  7186. get {
  7187. return this._clearBeforeFill;
  7188. }
  7189. set {
  7190. this._clearBeforeFill = value;
  7191. }
  7192. }
  7193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7195. private void InitAdapter() {
  7196. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7197. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7198. tableMapping.SourceTable = "Table";
  7199. tableMapping.DataSetTable = "services — копия";
  7200. tableMapping.ColumnMappings.Add("Code", "Code");
  7201. tableMapping.ColumnMappings.Add("Service", "Service");
  7202. tableMapping.ColumnMappings.Add("Price", "Price");
  7203. this._adapter.TableMappings.Add(tableMapping);
  7204. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7205. this._adapter.DeleteCommand.Connection = this.Connection;
  7206. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[services — копия] WHERE (([Code] = @Original_Code) AND ([Servi" +
  7207. "ce] = @Original_Service) AND ([Price] = @Original_Price))";
  7208. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7209. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7210. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Service", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Service", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7211. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Price", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Price", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7212. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7213. this._adapter.InsertCommand.Connection = this.Connection;
  7214. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[services — копия] ([Code], [Service], [Price]) VALUES (@Code, " +
  7215. "@Service, @Price);\r\nSELECT Code, Service, Price FROM [services — копия] WHERE (C" +
  7216. "ode = @Code)";
  7217. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7218. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7219. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Service", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Service", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7220. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Price", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Price", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7221. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7222. this._adapter.UpdateCommand.Connection = this.Connection;
  7223. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[services — копия] SET [Code] = @Code, [Service] = @Service, [Price] = @Price WHERE (([Code] = @Original_Code) AND ([Service] = @Original_Service) AND ([Price] = @Original_Price));
  7224. SELECT Code, Service, Price FROM [services — копия] WHERE (Code = @Code)";
  7225. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7226. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7227. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Service", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Service", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7228. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Price", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Price", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7229. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7230. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Service", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Service", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7231. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Price", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Price", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7232. }
  7233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7235. private void InitConnection() {
  7236. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7237. this._connection.ConnectionString = global::Laboratoria.Properties.Settings.Default.ИсследованияБиоматериалаConnectionString;
  7238. }
  7239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7241. private void InitCommandCollection() {
  7242. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7243. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7244. this._commandCollection[0].Connection = this.Connection;
  7245. this._commandCollection[0].CommandText = "SELECT Code, Service, Price FROM dbo.[services — копия]";
  7246. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7247. }
  7248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7250. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7251. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7252. public virtual int Fill(ИсследованияБиоматериалаDataSet._services___копияDataTable dataTable) {
  7253. this.Adapter.SelectCommand = this.CommandCollection[0];
  7254. if ((this.ClearBeforeFill == true)) {
  7255. dataTable.Clear();
  7256. }
  7257. int returnValue = this.Adapter.Fill(dataTable);
  7258. return returnValue;
  7259. }
  7260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7262. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7263. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7264. public virtual ИсследованияБиоматериалаDataSet._services___копияDataTable GetData() {
  7265. this.Adapter.SelectCommand = this.CommandCollection[0];
  7266. ИсследованияБиоматериалаDataSet._services___копияDataTable dataTable = new ИсследованияБиоматериалаDataSet._services___копияDataTable();
  7267. this.Adapter.Fill(dataTable);
  7268. return dataTable;
  7269. }
  7270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7272. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7273. public virtual int Update(ИсследованияБиоматериалаDataSet._services___копияDataTable dataTable) {
  7274. return this.Adapter.Update(dataTable);
  7275. }
  7276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7278. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7279. public virtual int Update(ИсследованияБиоматериалаDataSet dataSet) {
  7280. return this.Adapter.Update(dataSet, "services — копия");
  7281. }
  7282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7284. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7285. public virtual int Update(global::System.Data.DataRow dataRow) {
  7286. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7287. dataRow});
  7288. }
  7289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7291. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7292. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7293. return this.Adapter.Update(dataRows);
  7294. }
  7295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7297. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7298. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7299. public virtual int Delete(long Original_Code, string Original_Service, string Original_Price) {
  7300. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_Code));
  7301. if ((Original_Service == null)) {
  7302. throw new global::System.ArgumentNullException("Original_Service");
  7303. }
  7304. else {
  7305. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Service));
  7306. }
  7307. if ((Original_Price == null)) {
  7308. throw new global::System.ArgumentNullException("Original_Price");
  7309. }
  7310. else {
  7311. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Price));
  7312. }
  7313. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7314. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7315. != global::System.Data.ConnectionState.Open)) {
  7316. this.Adapter.DeleteCommand.Connection.Open();
  7317. }
  7318. try {
  7319. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7320. return returnValue;
  7321. }
  7322. finally {
  7323. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7324. this.Adapter.DeleteCommand.Connection.Close();
  7325. }
  7326. }
  7327. }
  7328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7330. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7331. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7332. public virtual int Insert(long Code, string Service, string Price) {
  7333. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(Code));
  7334. if ((Service == null)) {
  7335. throw new global::System.ArgumentNullException("Service");
  7336. }
  7337. else {
  7338. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Service));
  7339. }
  7340. if ((Price == null)) {
  7341. throw new global::System.ArgumentNullException("Price");
  7342. }
  7343. else {
  7344. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Price));
  7345. }
  7346. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7347. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7348. != global::System.Data.ConnectionState.Open)) {
  7349. this.Adapter.InsertCommand.Connection.Open();
  7350. }
  7351. try {
  7352. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7353. return returnValue;
  7354. }
  7355. finally {
  7356. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7357. this.Adapter.InsertCommand.Connection.Close();
  7358. }
  7359. }
  7360. }
  7361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7363. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7364. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7365. public virtual int Update(long Code, string Service, string Price, long Original_Code, string Original_Service, string Original_Price) {
  7366. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(Code));
  7367. if ((Service == null)) {
  7368. throw new global::System.ArgumentNullException("Service");
  7369. }
  7370. else {
  7371. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Service));
  7372. }
  7373. if ((Price == null)) {
  7374. throw new global::System.ArgumentNullException("Price");
  7375. }
  7376. else {
  7377. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Price));
  7378. }
  7379. this.Adapter.UpdateCommand.Parameters[3].Value = ((long)(Original_Code));
  7380. if ((Original_Service == null)) {
  7381. throw new global::System.ArgumentNullException("Original_Service");
  7382. }
  7383. else {
  7384. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Service));
  7385. }
  7386. if ((Original_Price == null)) {
  7387. throw new global::System.ArgumentNullException("Original_Price");
  7388. }
  7389. else {
  7390. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Price));
  7391. }
  7392. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7393. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7394. != global::System.Data.ConnectionState.Open)) {
  7395. this.Adapter.UpdateCommand.Connection.Open();
  7396. }
  7397. try {
  7398. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7399. return returnValue;
  7400. }
  7401. finally {
  7402. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7403. this.Adapter.UpdateCommand.Connection.Close();
  7404. }
  7405. }
  7406. }
  7407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7409. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7410. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7411. public virtual int Update(string Service, string Price, long Original_Code, string Original_Service, string Original_Price) {
  7412. return this.Update(Original_Code, Service, Price, Original_Code, Original_Service, Original_Price);
  7413. }
  7414. }
  7415. /// <summary>
  7416. ///Represents the connection and commands used to retrieve and save data.
  7417. ///</summary>
  7418. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7419. [global::System.ComponentModel.ToolboxItem(true)]
  7420. [global::System.ComponentModel.DataObjectAttribute(true)]
  7421. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7422. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7423. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7424. public partial class users___копияTableAdapter : global::System.ComponentModel.Component {
  7425. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7426. private global::System.Data.SqlClient.SqlConnection _connection;
  7427. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7428. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7429. private bool _clearBeforeFill;
  7430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7432. public users___копияTableAdapter() {
  7433. this.ClearBeforeFill = true;
  7434. }
  7435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7437. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7438. get {
  7439. if ((this._adapter == null)) {
  7440. this.InitAdapter();
  7441. }
  7442. return this._adapter;
  7443. }
  7444. }
  7445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7447. internal global::System.Data.SqlClient.SqlConnection Connection {
  7448. get {
  7449. if ((this._connection == null)) {
  7450. this.InitConnection();
  7451. }
  7452. return this._connection;
  7453. }
  7454. set {
  7455. this._connection = value;
  7456. if ((this.Adapter.InsertCommand != null)) {
  7457. this.Adapter.InsertCommand.Connection = value;
  7458. }
  7459. if ((this.Adapter.DeleteCommand != null)) {
  7460. this.Adapter.DeleteCommand.Connection = value;
  7461. }
  7462. if ((this.Adapter.UpdateCommand != null)) {
  7463. this.Adapter.UpdateCommand.Connection = value;
  7464. }
  7465. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7466. if ((this.CommandCollection[i] != null)) {
  7467. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7468. }
  7469. }
  7470. }
  7471. }
  7472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7474. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7475. get {
  7476. return this._transaction;
  7477. }
  7478. set {
  7479. this._transaction = value;
  7480. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7481. this.CommandCollection[i].Transaction = this._transaction;
  7482. }
  7483. if (((this.Adapter != null)
  7484. && (this.Adapter.DeleteCommand != null))) {
  7485. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7486. }
  7487. if (((this.Adapter != null)
  7488. && (this.Adapter.InsertCommand != null))) {
  7489. this.Adapter.InsertCommand.Transaction = this._transaction;
  7490. }
  7491. if (((this.Adapter != null)
  7492. && (this.Adapter.UpdateCommand != null))) {
  7493. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7494. }
  7495. }
  7496. }
  7497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7499. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7500. get {
  7501. if ((this._commandCollection == null)) {
  7502. this.InitCommandCollection();
  7503. }
  7504. return this._commandCollection;
  7505. }
  7506. }
  7507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7509. public bool ClearBeforeFill {
  7510. get {
  7511. return this._clearBeforeFill;
  7512. }
  7513. set {
  7514. this._clearBeforeFill = value;
  7515. }
  7516. }
  7517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7519. private void InitAdapter() {
  7520. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7521. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7522. tableMapping.SourceTable = "Table";
  7523. tableMapping.DataSetTable = "users — копия";
  7524. tableMapping.ColumnMappings.Add("id", "id");
  7525. tableMapping.ColumnMappings.Add("name", "name");
  7526. tableMapping.ColumnMappings.Add("login", "login");
  7527. tableMapping.ColumnMappings.Add("password", "password");
  7528. tableMapping.ColumnMappings.Add("ip", "ip");
  7529. tableMapping.ColumnMappings.Add("lastenter", "lastenter");
  7530. tableMapping.ColumnMappings.Add("services", "services");
  7531. tableMapping.ColumnMappings.Add("type", "type");
  7532. this._adapter.TableMappings.Add(tableMapping);
  7533. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7534. this._adapter.DeleteCommand.Connection = this.Connection;
  7535. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[users — копия] WHERE (([id] = @Original_id) AND ([name] = @Original_name) AND ([login] = @Original_login) AND ([password] = @Original_password) AND ([ip] = @Original_ip) AND ([lastenter] = @Original_lastenter) AND ([services] = @Original_services) AND ([type] = @Original_type))";
  7536. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7537. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7538. 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, "", "", ""));
  7539. 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, "", "", ""));
  7540. 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, "", "", ""));
  7541. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ip", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ip", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7542. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_lastenter", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lastenter", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7543. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_services", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "services", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7544. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_type", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7545. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7546. this._adapter.InsertCommand.Connection = this.Connection;
  7547. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[users — копия] ([id], [name], [login], [password], [ip], [lastenter], [services], [type]) VALUES (@id, @name, @login, @password, @ip, @lastenter, @services, @type);
  7548. SELECT id, name, login, password, ip, lastenter, services, type FROM [users — копия] WHERE (id = @id)";
  7549. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7550. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7551. 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, "", "", ""));
  7552. 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, "", "", ""));
  7553. 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, "", "", ""));
  7554. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ip", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ip", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7555. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@lastenter", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lastenter", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7556. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@services", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "services", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7557. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@type", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7558. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7559. this._adapter.UpdateCommand.Connection = this.Connection;
  7560. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[users — копия] SET [id] = @id, [name] = @name, [login] = @login, [password] = @password, [ip] = @ip, [lastenter] = @lastenter, [services] = @services, [type] = @type WHERE (([id] = @Original_id) AND ([name] = @Original_name) AND ([login] = @Original_login) AND ([password] = @Original_password) AND ([ip] = @Original_ip) AND ([lastenter] = @Original_lastenter) AND ([services] = @Original_services) AND ([type] = @Original_type));
  7561. SELECT id, name, login, password, ip, lastenter, services, type FROM [users — копия] WHERE (id = @id)";
  7562. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7563. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7564. 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, "", "", ""));
  7565. 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, "", "", ""));
  7566. 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, "", "", ""));
  7567. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ip", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ip", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7568. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@lastenter", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lastenter", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7569. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@services", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "services", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7570. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@type", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7571. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7572. 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, "", "", ""));
  7573. 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, "", "", ""));
  7574. 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, "", "", ""));
  7575. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ip", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ip", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7576. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_lastenter", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lastenter", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7577. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_services", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "services", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7578. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_type", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7579. }
  7580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7582. private void InitConnection() {
  7583. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7584. this._connection.ConnectionString = global::Laboratoria.Properties.Settings.Default.ИсследованияБиоматериалаConnectionString;
  7585. }
  7586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7588. private void InitCommandCollection() {
  7589. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7590. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7591. this._commandCollection[0].Connection = this.Connection;
  7592. this._commandCollection[0].CommandText = "SELECT id, name, login, password, ip, lastenter, services, type FROM dbo.[users —" +
  7593. " копия]";
  7594. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7595. }
  7596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7598. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7599. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7600. public virtual int Fill(ИсследованияБиоматериалаDataSet._users___копияDataTable dataTable) {
  7601. this.Adapter.SelectCommand = this.CommandCollection[0];
  7602. if ((this.ClearBeforeFill == true)) {
  7603. dataTable.Clear();
  7604. }
  7605. int returnValue = this.Adapter.Fill(dataTable);
  7606. return returnValue;
  7607. }
  7608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7610. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7611. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7612. public virtual ИсследованияБиоматериалаDataSet._users___копияDataTable GetData() {
  7613. this.Adapter.SelectCommand = this.CommandCollection[0];
  7614. ИсследованияБиоматериалаDataSet._users___копияDataTable dataTable = new ИсследованияБиоматериалаDataSet._users___копияDataTable();
  7615. this.Adapter.Fill(dataTable);
  7616. return dataTable;
  7617. }
  7618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7620. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7621. public virtual int Update(ИсследованияБиоматериалаDataSet._users___копияDataTable dataTable) {
  7622. return this.Adapter.Update(dataTable);
  7623. }
  7624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7626. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7627. public virtual int Update(ИсследованияБиоматериалаDataSet dataSet) {
  7628. return this.Adapter.Update(dataSet, "users — копия");
  7629. }
  7630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7632. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7633. public virtual int Update(global::System.Data.DataRow dataRow) {
  7634. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7635. dataRow});
  7636. }
  7637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7639. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7640. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7641. return this.Adapter.Update(dataRows);
  7642. }
  7643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7645. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7646. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7647. public virtual int Delete(long Original_id, string Original_name, string Original_login, string Original_password, string Original_ip, string Original_lastenter, string Original_services, string Original_type) {
  7648. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_id));
  7649. if ((Original_name == null)) {
  7650. throw new global::System.ArgumentNullException("Original_name");
  7651. }
  7652. else {
  7653. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_name));
  7654. }
  7655. if ((Original_login == null)) {
  7656. throw new global::System.ArgumentNullException("Original_login");
  7657. }
  7658. else {
  7659. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_login));
  7660. }
  7661. if ((Original_password == null)) {
  7662. throw new global::System.ArgumentNullException("Original_password");
  7663. }
  7664. else {
  7665. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_password));
  7666. }
  7667. if ((Original_ip == null)) {
  7668. throw new global::System.ArgumentNullException("Original_ip");
  7669. }
  7670. else {
  7671. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_ip));
  7672. }
  7673. if ((Original_lastenter == null)) {
  7674. throw new global::System.ArgumentNullException("Original_lastenter");
  7675. }
  7676. else {
  7677. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_lastenter));
  7678. }
  7679. if ((Original_services == null)) {
  7680. throw new global::System.ArgumentNullException("Original_services");
  7681. }
  7682. else {
  7683. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_services));
  7684. }
  7685. if ((Original_type == null)) {
  7686. throw new global::System.ArgumentNullException("Original_type");
  7687. }
  7688. else {
  7689. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_type));
  7690. }
  7691. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7692. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7693. != global::System.Data.ConnectionState.Open)) {
  7694. this.Adapter.DeleteCommand.Connection.Open();
  7695. }
  7696. try {
  7697. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7698. return returnValue;
  7699. }
  7700. finally {
  7701. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7702. this.Adapter.DeleteCommand.Connection.Close();
  7703. }
  7704. }
  7705. }
  7706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7708. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7709. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7710. public virtual int Insert(long id, string name, string login, string password, string ip, string lastenter, string services, string type) {
  7711. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(id));
  7712. if ((name == null)) {
  7713. throw new global::System.ArgumentNullException("name");
  7714. }
  7715. else {
  7716. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(name));
  7717. }
  7718. if ((login == null)) {
  7719. throw new global::System.ArgumentNullException("login");
  7720. }
  7721. else {
  7722. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(login));
  7723. }
  7724. if ((password == null)) {
  7725. throw new global::System.ArgumentNullException("password");
  7726. }
  7727. else {
  7728. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(password));
  7729. }
  7730. if ((ip == null)) {
  7731. throw new global::System.ArgumentNullException("ip");
  7732. }
  7733. else {
  7734. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(ip));
  7735. }
  7736. if ((lastenter == null)) {
  7737. throw new global::System.ArgumentNullException("lastenter");
  7738. }
  7739. else {
  7740. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(lastenter));
  7741. }
  7742. if ((services == null)) {
  7743. throw new global::System.ArgumentNullException("services");
  7744. }
  7745. else {
  7746. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(services));
  7747. }
  7748. if ((type == null)) {
  7749. throw new global::System.ArgumentNullException("type");
  7750. }
  7751. else {
  7752. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(type));
  7753. }
  7754. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7755. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7756. != global::System.Data.ConnectionState.Open)) {
  7757. this.Adapter.InsertCommand.Connection.Open();
  7758. }
  7759. try {
  7760. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7761. return returnValue;
  7762. }
  7763. finally {
  7764. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7765. this.Adapter.InsertCommand.Connection.Close();
  7766. }
  7767. }
  7768. }
  7769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7771. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7772. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7773. public virtual int Update(
  7774. long id,
  7775. string name,
  7776. string login,
  7777. string password,
  7778. string ip,
  7779. string lastenter,
  7780. string services,
  7781. string type,
  7782. long Original_id,
  7783. string Original_name,
  7784. string Original_login,
  7785. string Original_password,
  7786. string Original_ip,
  7787. string Original_lastenter,
  7788. string Original_services,
  7789. string Original_type) {
  7790. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(id));
  7791. if ((name == null)) {
  7792. throw new global::System.ArgumentNullException("name");
  7793. }
  7794. else {
  7795. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(name));
  7796. }
  7797. if ((login == null)) {
  7798. throw new global::System.ArgumentNullException("login");
  7799. }
  7800. else {
  7801. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(login));
  7802. }
  7803. if ((password == null)) {
  7804. throw new global::System.ArgumentNullException("password");
  7805. }
  7806. else {
  7807. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(password));
  7808. }
  7809. if ((ip == null)) {
  7810. throw new global::System.ArgumentNullException("ip");
  7811. }
  7812. else {
  7813. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(ip));
  7814. }
  7815. if ((lastenter == null)) {
  7816. throw new global::System.ArgumentNullException("lastenter");
  7817. }
  7818. else {
  7819. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(lastenter));
  7820. }
  7821. if ((services == null)) {
  7822. throw new global::System.ArgumentNullException("services");
  7823. }
  7824. else {
  7825. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(services));
  7826. }
  7827. if ((type == null)) {
  7828. throw new global::System.ArgumentNullException("type");
  7829. }
  7830. else {
  7831. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(type));
  7832. }
  7833. this.Adapter.UpdateCommand.Parameters[8].Value = ((long)(Original_id));
  7834. if ((Original_name == null)) {
  7835. throw new global::System.ArgumentNullException("Original_name");
  7836. }
  7837. else {
  7838. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_name));
  7839. }
  7840. if ((Original_login == null)) {
  7841. throw new global::System.ArgumentNullException("Original_login");
  7842. }
  7843. else {
  7844. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_login));
  7845. }
  7846. if ((Original_password == null)) {
  7847. throw new global::System.ArgumentNullException("Original_password");
  7848. }
  7849. else {
  7850. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_password));
  7851. }
  7852. if ((Original_ip == null)) {
  7853. throw new global::System.ArgumentNullException("Original_ip");
  7854. }
  7855. else {
  7856. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_ip));
  7857. }
  7858. if ((Original_lastenter == null)) {
  7859. throw new global::System.ArgumentNullException("Original_lastenter");
  7860. }
  7861. else {
  7862. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_lastenter));
  7863. }
  7864. if ((Original_services == null)) {
  7865. throw new global::System.ArgumentNullException("Original_services");
  7866. }
  7867. else {
  7868. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_services));
  7869. }
  7870. if ((Original_type == null)) {
  7871. throw new global::System.ArgumentNullException("Original_type");
  7872. }
  7873. else {
  7874. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_type));
  7875. }
  7876. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7877. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7878. != global::System.Data.ConnectionState.Open)) {
  7879. this.Adapter.UpdateCommand.Connection.Open();
  7880. }
  7881. try {
  7882. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7883. return returnValue;
  7884. }
  7885. finally {
  7886. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7887. this.Adapter.UpdateCommand.Connection.Close();
  7888. }
  7889. }
  7890. }
  7891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7893. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7894. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7895. public virtual int Update(string name, string login, string password, string ip, string lastenter, string services, string type, long Original_id, string Original_name, string Original_login, string Original_password, string Original_ip, string Original_lastenter, string Original_services, string Original_type) {
  7896. return this.Update(Original_id, name, login, password, ip, lastenter, services, type, Original_id, Original_name, Original_login, Original_password, Original_ip, Original_lastenter, Original_services, Original_type);
  7897. }
  7898. }
  7899. /// <summary>
  7900. ///Represents the connection and commands used to retrieve and save data.
  7901. ///</summary>
  7902. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7903. [global::System.ComponentModel.ToolboxItem(true)]
  7904. [global::System.ComponentModel.DataObjectAttribute(true)]
  7905. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7906. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7907. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7908. public partial class АдминистраторTableAdapter : global::System.ComponentModel.Component {
  7909. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7910. private global::System.Data.SqlClient.SqlConnection _connection;
  7911. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7912. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7913. private bool _clearBeforeFill;
  7914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7916. public АдминистраторTableAdapter() {
  7917. this.ClearBeforeFill = true;
  7918. }
  7919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7921. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7922. get {
  7923. if ((this._adapter == null)) {
  7924. this.InitAdapter();
  7925. }
  7926. return this._adapter;
  7927. }
  7928. }
  7929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7931. internal global::System.Data.SqlClient.SqlConnection Connection {
  7932. get {
  7933. if ((this._connection == null)) {
  7934. this.InitConnection();
  7935. }
  7936. return this._connection;
  7937. }
  7938. set {
  7939. this._connection = value;
  7940. if ((this.Adapter.InsertCommand != null)) {
  7941. this.Adapter.InsertCommand.Connection = value;
  7942. }
  7943. if ((this.Adapter.DeleteCommand != null)) {
  7944. this.Adapter.DeleteCommand.Connection = value;
  7945. }
  7946. if ((this.Adapter.UpdateCommand != null)) {
  7947. this.Adapter.UpdateCommand.Connection = value;
  7948. }
  7949. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7950. if ((this.CommandCollection[i] != null)) {
  7951. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7952. }
  7953. }
  7954. }
  7955. }
  7956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7958. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7959. get {
  7960. return this._transaction;
  7961. }
  7962. set {
  7963. this._transaction = value;
  7964. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7965. this.CommandCollection[i].Transaction = this._transaction;
  7966. }
  7967. if (((this.Adapter != null)
  7968. && (this.Adapter.DeleteCommand != null))) {
  7969. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7970. }
  7971. if (((this.Adapter != null)
  7972. && (this.Adapter.InsertCommand != null))) {
  7973. this.Adapter.InsertCommand.Transaction = this._transaction;
  7974. }
  7975. if (((this.Adapter != null)
  7976. && (this.Adapter.UpdateCommand != null))) {
  7977. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7978. }
  7979. }
  7980. }
  7981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7983. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7984. get {
  7985. if ((this._commandCollection == null)) {
  7986. this.InitCommandCollection();
  7987. }
  7988. return this._commandCollection;
  7989. }
  7990. }
  7991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7993. public bool ClearBeforeFill {
  7994. get {
  7995. return this._clearBeforeFill;
  7996. }
  7997. set {
  7998. this._clearBeforeFill = value;
  7999. }
  8000. }
  8001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8003. private void InitAdapter() {
  8004. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8005. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8006. tableMapping.SourceTable = "Table";
  8007. tableMapping.DataSetTable = "Администратор";
  8008. tableMapping.ColumnMappings.Add("ID_Администратора", "ID_Администратора");
  8009. tableMapping.ColumnMappings.Add("Логин", "Логин");
  8010. tableMapping.ColumnMappings.Add("Пароль", "Пароль");
  8011. this._adapter.TableMappings.Add(tableMapping);
  8012. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8013. this._adapter.DeleteCommand.Connection = this.Connection;
  8014. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Администратор] WHERE (([ID_Администратора] = @Original_ID_Адми" +
  8015. "нистратора) AND ((@IsNull_Логин = 1 AND [Логин] IS NULL) OR ([Логин] = @Original" +
  8016. "_Логин)) AND ((@IsNull_Пароль = 1 AND [Пароль] IS NULL) OR ([Пароль] = @Original" +
  8017. "_Пароль)))";
  8018. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8019. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Администратора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Администратора", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8020. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Логин", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8021. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8022. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Пароль", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8023. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8024. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8025. this._adapter.InsertCommand.Connection = this.Connection;
  8026. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Администратор] ([ID_Администратора], [Логин], [Пароль]) VALUES" +
  8027. " (@ID_Администратора, @Логин, @Пароль);\r\nSELECT ID_Администратора, Логин, Пароль" +
  8028. " FROM Администратор WHERE (ID_Администратора = @ID_Администратора)";
  8029. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8030. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Администратора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Администратора", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8031. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8032. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8033. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8034. this._adapter.UpdateCommand.Connection = this.Connection;
  8035. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Администратор] SET [ID_Администратора] = @ID_Администратора, [Логин] = @Логин, [Пароль] = @Пароль WHERE (([ID_Администратора] = @Original_ID_Администратора) AND ((@IsNull_Логин = 1 AND [Логин] IS NULL) OR ([Логин] = @Original_Логин)) AND ((@IsNull_Пароль = 1 AND [Пароль] IS NULL) OR ([Пароль] = @Original_Пароль)));
  8036. SELECT ID_Администратора, Логин, Пароль FROM Администратор WHERE (ID_Администратора = @ID_Администратора)";
  8037. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8038. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Администратора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Администратора", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8039. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8040. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8041. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Администратора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Администратора", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8042. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Логин", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8043. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8044. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Пароль", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8045. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8046. }
  8047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8049. private void InitConnection() {
  8050. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8051. this._connection.ConnectionString = global::Laboratoria.Properties.Settings.Default.ИсследованияБиоматериалаConnectionString;
  8052. }
  8053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8055. private void InitCommandCollection() {
  8056. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8057. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8058. this._commandCollection[0].Connection = this.Connection;
  8059. this._commandCollection[0].CommandText = "SELECT ID_Администратора, Логин, Пароль FROM dbo.Администратор";
  8060. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8061. }
  8062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8064. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8065. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8066. public virtual int Fill(ИсследованияБиоматериалаDataSet.АдминистраторDataTable dataTable) {
  8067. this.Adapter.SelectCommand = this.CommandCollection[0];
  8068. if ((this.ClearBeforeFill == true)) {
  8069. dataTable.Clear();
  8070. }
  8071. int returnValue = this.Adapter.Fill(dataTable);
  8072. return returnValue;
  8073. }
  8074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8076. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8077. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8078. public virtual ИсследованияБиоматериалаDataSet.АдминистраторDataTable GetData() {
  8079. this.Adapter.SelectCommand = this.CommandCollection[0];
  8080. ИсследованияБиоматериалаDataSet.АдминистраторDataTable dataTable = new ИсследованияБиоматериалаDataSet.АдминистраторDataTable();
  8081. this.Adapter.Fill(dataTable);
  8082. return dataTable;
  8083. }
  8084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8086. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8087. public virtual int Update(ИсследованияБиоматериалаDataSet.АдминистраторDataTable dataTable) {
  8088. return this.Adapter.Update(dataTable);
  8089. }
  8090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8092. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8093. public virtual int Update(ИсследованияБиоматериалаDataSet dataSet) {
  8094. return this.Adapter.Update(dataSet, "Администратор");
  8095. }
  8096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8098. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8099. public virtual int Update(global::System.Data.DataRow dataRow) {
  8100. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8101. dataRow});
  8102. }
  8103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8105. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8106. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8107. return this.Adapter.Update(dataRows);
  8108. }
  8109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8111. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8112. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8113. public virtual int Delete(long Original_ID_Администратора, string Original_Логин, string Original_Пароль) {
  8114. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID_Администратора));
  8115. if ((Original_Логин == null)) {
  8116. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8117. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8118. }
  8119. else {
  8120. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8121. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Логин));
  8122. }
  8123. if ((Original_Пароль == null)) {
  8124. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8125. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8126. }
  8127. else {
  8128. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8129. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Пароль));
  8130. }
  8131. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8132. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8133. != global::System.Data.ConnectionState.Open)) {
  8134. this.Adapter.DeleteCommand.Connection.Open();
  8135. }
  8136. try {
  8137. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8138. return returnValue;
  8139. }
  8140. finally {
  8141. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8142. this.Adapter.DeleteCommand.Connection.Close();
  8143. }
  8144. }
  8145. }
  8146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8148. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8149. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8150. public virtual int Insert(long ID_Администратора, string Логин, string Пароль) {
  8151. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ID_Администратора));
  8152. if ((Логин == null)) {
  8153. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8154. }
  8155. else {
  8156. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Логин));
  8157. }
  8158. if ((Пароль == null)) {
  8159. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8160. }
  8161. else {
  8162. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Пароль));
  8163. }
  8164. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8165. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8166. != global::System.Data.ConnectionState.Open)) {
  8167. this.Adapter.InsertCommand.Connection.Open();
  8168. }
  8169. try {
  8170. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8171. return returnValue;
  8172. }
  8173. finally {
  8174. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8175. this.Adapter.InsertCommand.Connection.Close();
  8176. }
  8177. }
  8178. }
  8179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8181. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8182. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8183. public virtual int Update(long ID_Администратора, string Логин, string Пароль, long Original_ID_Администратора, string Original_Логин, string Original_Пароль) {
  8184. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ID_Администратора));
  8185. if ((Логин == null)) {
  8186. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8187. }
  8188. else {
  8189. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Логин));
  8190. }
  8191. if ((Пароль == null)) {
  8192. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8193. }
  8194. else {
  8195. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Пароль));
  8196. }
  8197. this.Adapter.UpdateCommand.Parameters[3].Value = ((long)(Original_ID_Администратора));
  8198. if ((Original_Логин == null)) {
  8199. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  8200. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8201. }
  8202. else {
  8203. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  8204. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Логин));
  8205. }
  8206. if ((Original_Пароль == null)) {
  8207. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  8208. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  8209. }
  8210. else {
  8211. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  8212. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Пароль));
  8213. }
  8214. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8215. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8216. != global::System.Data.ConnectionState.Open)) {
  8217. this.Adapter.UpdateCommand.Connection.Open();
  8218. }
  8219. try {
  8220. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8221. return returnValue;
  8222. }
  8223. finally {
  8224. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8225. this.Adapter.UpdateCommand.Connection.Close();
  8226. }
  8227. }
  8228. }
  8229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8231. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8232. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8233. public virtual int Update(string Логин, string Пароль, long Original_ID_Администратора, string Original_Логин, string Original_Пароль) {
  8234. return this.Update(Original_ID_Администратора, Логин, Пароль, Original_ID_Администратора, Original_Логин, Original_Пароль);
  8235. }
  8236. }
  8237. /// <summary>
  8238. ///Represents the connection and commands used to retrieve and save data.
  8239. ///</summary>
  8240. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8241. [global::System.ComponentModel.ToolboxItem(true)]
  8242. [global::System.ComponentModel.DataObjectAttribute(true)]
  8243. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8244. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8245. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8246. public partial class АнализаторTableAdapter : global::System.ComponentModel.Component {
  8247. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8248. private global::System.Data.SqlClient.SqlConnection _connection;
  8249. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8250. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8251. private bool _clearBeforeFill;
  8252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8254. public АнализаторTableAdapter() {
  8255. this.ClearBeforeFill = true;
  8256. }
  8257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8259. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8260. get {
  8261. if ((this._adapter == null)) {
  8262. this.InitAdapter();
  8263. }
  8264. return this._adapter;
  8265. }
  8266. }
  8267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8269. internal global::System.Data.SqlClient.SqlConnection Connection {
  8270. get {
  8271. if ((this._connection == null)) {
  8272. this.InitConnection();
  8273. }
  8274. return this._connection;
  8275. }
  8276. set {
  8277. this._connection = value;
  8278. if ((this.Adapter.InsertCommand != null)) {
  8279. this.Adapter.InsertCommand.Connection = value;
  8280. }
  8281. if ((this.Adapter.DeleteCommand != null)) {
  8282. this.Adapter.DeleteCommand.Connection = value;
  8283. }
  8284. if ((this.Adapter.UpdateCommand != null)) {
  8285. this.Adapter.UpdateCommand.Connection = value;
  8286. }
  8287. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8288. if ((this.CommandCollection[i] != null)) {
  8289. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8290. }
  8291. }
  8292. }
  8293. }
  8294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8296. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8297. get {
  8298. return this._transaction;
  8299. }
  8300. set {
  8301. this._transaction = value;
  8302. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8303. this.CommandCollection[i].Transaction = this._transaction;
  8304. }
  8305. if (((this.Adapter != null)
  8306. && (this.Adapter.DeleteCommand != null))) {
  8307. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8308. }
  8309. if (((this.Adapter != null)
  8310. && (this.Adapter.InsertCommand != null))) {
  8311. this.Adapter.InsertCommand.Transaction = this._transaction;
  8312. }
  8313. if (((this.Adapter != null)
  8314. && (this.Adapter.UpdateCommand != null))) {
  8315. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8316. }
  8317. }
  8318. }
  8319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8321. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8322. get {
  8323. if ((this._commandCollection == null)) {
  8324. this.InitCommandCollection();
  8325. }
  8326. return this._commandCollection;
  8327. }
  8328. }
  8329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8331. public bool ClearBeforeFill {
  8332. get {
  8333. return this._clearBeforeFill;
  8334. }
  8335. set {
  8336. this._clearBeforeFill = value;
  8337. }
  8338. }
  8339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8341. private void InitAdapter() {
  8342. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8343. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8344. tableMapping.SourceTable = "Table";
  8345. tableMapping.DataSetTable = "Анализатор";
  8346. tableMapping.ColumnMappings.Add("ID_Анализатора", "ID_Анализатора");
  8347. this._adapter.TableMappings.Add(tableMapping);
  8348. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8349. this._adapter.DeleteCommand.Connection = this.Connection;
  8350. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Анализатор] WHERE (([ID_Анализатора] = @Original_ID_Анализатор" +
  8351. "а))";
  8352. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8353. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Анализатора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Анализатора", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8354. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8355. this._adapter.InsertCommand.Connection = this.Connection;
  8356. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Анализатор] ([ID_Анализатора]) VALUES (@ID_Анализатора);\r\nSELE" +
  8357. "CT ID_Анализатора FROM Анализатор WHERE (ID_Анализатора = @ID_Анализатора)";
  8358. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8359. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Анализатора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Анализатора", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8360. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8361. this._adapter.UpdateCommand.Connection = this.Connection;
  8362. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Анализатор] SET [ID_Анализатора] = @ID_Анализатора WHERE (([ID_Анал" +
  8363. "изатора] = @Original_ID_Анализатора));\r\nSELECT ID_Анализатора FROM Анализатор WH" +
  8364. "ERE (ID_Анализатора = @ID_Анализатора)";
  8365. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8366. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Анализатора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Анализатора", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8367. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Анализатора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Анализатора", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8368. }
  8369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8371. private void InitConnection() {
  8372. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8373. this._connection.ConnectionString = global::Laboratoria.Properties.Settings.Default.ИсследованияБиоматериалаConnectionString;
  8374. }
  8375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8377. private void InitCommandCollection() {
  8378. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8379. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8380. this._commandCollection[0].Connection = this.Connection;
  8381. this._commandCollection[0].CommandText = "SELECT ID_Анализатора FROM dbo.Анализатор";
  8382. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8383. }
  8384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8386. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8387. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8388. public virtual int Fill(ИсследованияБиоматериалаDataSet.АнализаторDataTable dataTable) {
  8389. this.Adapter.SelectCommand = this.CommandCollection[0];
  8390. if ((this.ClearBeforeFill == true)) {
  8391. dataTable.Clear();
  8392. }
  8393. int returnValue = this.Adapter.Fill(dataTable);
  8394. return returnValue;
  8395. }
  8396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8398. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8399. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8400. public virtual ИсследованияБиоматериалаDataSet.АнализаторDataTable GetData() {
  8401. this.Adapter.SelectCommand = this.CommandCollection[0];
  8402. ИсследованияБиоматериалаDataSet.АнализаторDataTable dataTable = new ИсследованияБиоматериалаDataSet.АнализаторDataTable();
  8403. this.Adapter.Fill(dataTable);
  8404. return dataTable;
  8405. }
  8406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8408. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8409. public virtual int Update(ИсследованияБиоматериалаDataSet.АнализаторDataTable dataTable) {
  8410. return this.Adapter.Update(dataTable);
  8411. }
  8412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8414. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8415. public virtual int Update(ИсследованияБиоматериалаDataSet dataSet) {
  8416. return this.Adapter.Update(dataSet, "Анализатор");
  8417. }
  8418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8420. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8421. public virtual int Update(global::System.Data.DataRow dataRow) {
  8422. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8423. dataRow});
  8424. }
  8425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8427. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8428. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8429. return this.Adapter.Update(dataRows);
  8430. }
  8431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8433. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8434. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8435. public virtual int Delete(long Original_ID_Анализатора) {
  8436. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID_Анализатора));
  8437. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8438. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8439. != global::System.Data.ConnectionState.Open)) {
  8440. this.Adapter.DeleteCommand.Connection.Open();
  8441. }
  8442. try {
  8443. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8444. return returnValue;
  8445. }
  8446. finally {
  8447. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8448. this.Adapter.DeleteCommand.Connection.Close();
  8449. }
  8450. }
  8451. }
  8452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8454. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8455. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8456. public virtual int Insert(long ID_Анализатора) {
  8457. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ID_Анализатора));
  8458. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8459. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8460. != global::System.Data.ConnectionState.Open)) {
  8461. this.Adapter.InsertCommand.Connection.Open();
  8462. }
  8463. try {
  8464. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8465. return returnValue;
  8466. }
  8467. finally {
  8468. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8469. this.Adapter.InsertCommand.Connection.Close();
  8470. }
  8471. }
  8472. }
  8473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8475. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8476. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8477. public virtual int Update(long ID_Анализатора, long Original_ID_Анализатора) {
  8478. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ID_Анализатора));
  8479. this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(Original_ID_Анализатора));
  8480. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8481. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8482. != global::System.Data.ConnectionState.Open)) {
  8483. this.Adapter.UpdateCommand.Connection.Open();
  8484. }
  8485. try {
  8486. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8487. return returnValue;
  8488. }
  8489. finally {
  8490. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8491. this.Adapter.UpdateCommand.Connection.Close();
  8492. }
  8493. }
  8494. }
  8495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8497. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8498. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8499. public virtual int Update(long Original_ID_Анализатора) {
  8500. return this.Update(Original_ID_Анализатора, Original_ID_Анализатора);
  8501. }
  8502. }
  8503. /// <summary>
  8504. ///Represents the connection and commands used to retrieve and save data.
  8505. ///</summary>
  8506. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8507. [global::System.ComponentModel.ToolboxItem(true)]
  8508. [global::System.ComponentModel.DataObjectAttribute(true)]
  8509. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8510. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8511. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8512. public partial class БухгалтерTableAdapter : global::System.ComponentModel.Component {
  8513. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8514. private global::System.Data.SqlClient.SqlConnection _connection;
  8515. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8516. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8517. private bool _clearBeforeFill;
  8518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8520. public БухгалтерTableAdapter() {
  8521. this.ClearBeforeFill = true;
  8522. }
  8523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8525. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8526. get {
  8527. if ((this._adapter == null)) {
  8528. this.InitAdapter();
  8529. }
  8530. return this._adapter;
  8531. }
  8532. }
  8533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8535. internal global::System.Data.SqlClient.SqlConnection Connection {
  8536. get {
  8537. if ((this._connection == null)) {
  8538. this.InitConnection();
  8539. }
  8540. return this._connection;
  8541. }
  8542. set {
  8543. this._connection = value;
  8544. if ((this.Adapter.InsertCommand != null)) {
  8545. this.Adapter.InsertCommand.Connection = value;
  8546. }
  8547. if ((this.Adapter.DeleteCommand != null)) {
  8548. this.Adapter.DeleteCommand.Connection = value;
  8549. }
  8550. if ((this.Adapter.UpdateCommand != null)) {
  8551. this.Adapter.UpdateCommand.Connection = value;
  8552. }
  8553. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8554. if ((this.CommandCollection[i] != null)) {
  8555. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8556. }
  8557. }
  8558. }
  8559. }
  8560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8562. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8563. get {
  8564. return this._transaction;
  8565. }
  8566. set {
  8567. this._transaction = value;
  8568. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8569. this.CommandCollection[i].Transaction = this._transaction;
  8570. }
  8571. if (((this.Adapter != null)
  8572. && (this.Adapter.DeleteCommand != null))) {
  8573. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8574. }
  8575. if (((this.Adapter != null)
  8576. && (this.Adapter.InsertCommand != null))) {
  8577. this.Adapter.InsertCommand.Transaction = this._transaction;
  8578. }
  8579. if (((this.Adapter != null)
  8580. && (this.Adapter.UpdateCommand != null))) {
  8581. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8582. }
  8583. }
  8584. }
  8585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8587. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8588. get {
  8589. if ((this._commandCollection == null)) {
  8590. this.InitCommandCollection();
  8591. }
  8592. return this._commandCollection;
  8593. }
  8594. }
  8595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8597. public bool ClearBeforeFill {
  8598. get {
  8599. return this._clearBeforeFill;
  8600. }
  8601. set {
  8602. this._clearBeforeFill = value;
  8603. }
  8604. }
  8605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8607. private void InitAdapter() {
  8608. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8609. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8610. tableMapping.SourceTable = "Table";
  8611. tableMapping.DataSetTable = "Бухгалтер";
  8612. tableMapping.ColumnMappings.Add("ID_Бухгалтера", "ID_Бухгалтера");
  8613. tableMapping.ColumnMappings.Add("ID_Услуги", "ID_Услуги");
  8614. this._adapter.TableMappings.Add(tableMapping);
  8615. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8616. this._adapter.DeleteCommand.Connection = this.Connection;
  8617. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Бухгалтер] WHERE (([ID_Бухгалтера] = @Original_ID_Бухгалтера) " +
  8618. "AND ([ID_Услуги] = @Original_ID_Услуги))";
  8619. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8620. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Бухгалтера", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Бухгалтера", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8621. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Услуги", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8622. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8623. this._adapter.InsertCommand.Connection = this.Connection;
  8624. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Бухгалтер] ([ID_Бухгалтера], [ID_Услуги]) VALUES (@ID_Бухгалте" +
  8625. "ра, @ID_Услуги);\r\nSELECT ID_Бухгалтера, ID_Услуги FROM Бухгалтер WHERE (ID_Бухга" +
  8626. "лтера = @ID_Бухгалтера)";
  8627. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8628. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Бухгалтера", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Бухгалтера", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8629. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Услуги", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8630. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8631. this._adapter.UpdateCommand.Connection = this.Connection;
  8632. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Бухгалтер] SET [ID_Бухгалтера] = @ID_Бухгалтера, [ID_Услуги] = @ID_Услуги WHERE (([ID_Бухгалтера] = @Original_ID_Бухгалтера) AND ([ID_Услуги] = @Original_ID_Услуги));
  8633. SELECT ID_Бухгалтера, ID_Услуги FROM Бухгалтер WHERE (ID_Бухгалтера = @ID_Бухгалтера)";
  8634. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8635. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Бухгалтера", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Бухгалтера", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8636. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Услуги", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8637. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Бухгалтера", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Бухгалтера", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8638. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Услуги", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8639. }
  8640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8642. private void InitConnection() {
  8643. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8644. this._connection.ConnectionString = global::Laboratoria.Properties.Settings.Default.ИсследованияБиоматериалаConnectionString;
  8645. }
  8646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8648. private void InitCommandCollection() {
  8649. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8650. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8651. this._commandCollection[0].Connection = this.Connection;
  8652. this._commandCollection[0].CommandText = "SELECT ID_Бухгалтера, ID_Услуги FROM dbo.Бухгалтер";
  8653. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8654. }
  8655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8657. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8658. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8659. public virtual int Fill(ИсследованияБиоматериалаDataSet.БухгалтерDataTable dataTable) {
  8660. this.Adapter.SelectCommand = this.CommandCollection[0];
  8661. if ((this.ClearBeforeFill == true)) {
  8662. dataTable.Clear();
  8663. }
  8664. int returnValue = this.Adapter.Fill(dataTable);
  8665. return returnValue;
  8666. }
  8667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8669. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8670. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8671. public virtual ИсследованияБиоматериалаDataSet.БухгалтерDataTable GetData() {
  8672. this.Adapter.SelectCommand = this.CommandCollection[0];
  8673. ИсследованияБиоматериалаDataSet.БухгалтерDataTable dataTable = new ИсследованияБиоматериалаDataSet.БухгалтерDataTable();
  8674. this.Adapter.Fill(dataTable);
  8675. return dataTable;
  8676. }
  8677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8679. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8680. public virtual int Update(ИсследованияБиоматериалаDataSet.БухгалтерDataTable dataTable) {
  8681. return this.Adapter.Update(dataTable);
  8682. }
  8683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8685. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8686. public virtual int Update(ИсследованияБиоматериалаDataSet dataSet) {
  8687. return this.Adapter.Update(dataSet, "Бухгалтер");
  8688. }
  8689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8691. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8692. public virtual int Update(global::System.Data.DataRow dataRow) {
  8693. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8694. dataRow});
  8695. }
  8696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8698. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8699. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8700. return this.Adapter.Update(dataRows);
  8701. }
  8702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8704. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8705. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8706. public virtual int Delete(long Original_ID_Бухгалтера, long Original_ID_Услуги) {
  8707. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID_Бухгалтера));
  8708. this.Adapter.DeleteCommand.Parameters[1].Value = ((long)(Original_ID_Услуги));
  8709. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8710. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8711. != global::System.Data.ConnectionState.Open)) {
  8712. this.Adapter.DeleteCommand.Connection.Open();
  8713. }
  8714. try {
  8715. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8716. return returnValue;
  8717. }
  8718. finally {
  8719. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8720. this.Adapter.DeleteCommand.Connection.Close();
  8721. }
  8722. }
  8723. }
  8724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8726. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8727. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8728. public virtual int Insert(long ID_Бухгалтера, long ID_Услуги) {
  8729. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ID_Бухгалтера));
  8730. this.Adapter.InsertCommand.Parameters[1].Value = ((long)(ID_Услуги));
  8731. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8732. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8733. != global::System.Data.ConnectionState.Open)) {
  8734. this.Adapter.InsertCommand.Connection.Open();
  8735. }
  8736. try {
  8737. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8738. return returnValue;
  8739. }
  8740. finally {
  8741. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8742. this.Adapter.InsertCommand.Connection.Close();
  8743. }
  8744. }
  8745. }
  8746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8748. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8749. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8750. public virtual int Update(long ID_Бухгалтера, long ID_Услуги, long Original_ID_Бухгалтера, long Original_ID_Услуги) {
  8751. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ID_Бухгалтера));
  8752. this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(ID_Услуги));
  8753. this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(Original_ID_Бухгалтера));
  8754. this.Adapter.UpdateCommand.Parameters[3].Value = ((long)(Original_ID_Услуги));
  8755. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8756. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8757. != global::System.Data.ConnectionState.Open)) {
  8758. this.Adapter.UpdateCommand.Connection.Open();
  8759. }
  8760. try {
  8761. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8762. return returnValue;
  8763. }
  8764. finally {
  8765. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8766. this.Adapter.UpdateCommand.Connection.Close();
  8767. }
  8768. }
  8769. }
  8770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8772. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8773. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8774. public virtual int Update(long ID_Услуги, long Original_ID_Бухгалтера, long Original_ID_Услуги) {
  8775. return this.Update(Original_ID_Бухгалтера, ID_Услуги, Original_ID_Бухгалтера, Original_ID_Услуги);
  8776. }
  8777. }
  8778. /// <summary>
  8779. ///Represents the connection and commands used to retrieve and save data.
  8780. ///</summary>
  8781. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8782. [global::System.ComponentModel.ToolboxItem(true)]
  8783. [global::System.ComponentModel.DataObjectAttribute(true)]
  8784. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8785. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8786. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8787. public partial class ДанныеПациентовTableAdapter : global::System.ComponentModel.Component {
  8788. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8789. private global::System.Data.SqlClient.SqlConnection _connection;
  8790. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8791. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8792. private bool _clearBeforeFill;
  8793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8795. public ДанныеПациентовTableAdapter() {
  8796. this.ClearBeforeFill = true;
  8797. }
  8798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8800. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8801. get {
  8802. if ((this._adapter == null)) {
  8803. this.InitAdapter();
  8804. }
  8805. return this._adapter;
  8806. }
  8807. }
  8808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8810. internal global::System.Data.SqlClient.SqlConnection Connection {
  8811. get {
  8812. if ((this._connection == null)) {
  8813. this.InitConnection();
  8814. }
  8815. return this._connection;
  8816. }
  8817. set {
  8818. this._connection = value;
  8819. if ((this.Adapter.InsertCommand != null)) {
  8820. this.Adapter.InsertCommand.Connection = value;
  8821. }
  8822. if ((this.Adapter.DeleteCommand != null)) {
  8823. this.Adapter.DeleteCommand.Connection = value;
  8824. }
  8825. if ((this.Adapter.UpdateCommand != null)) {
  8826. this.Adapter.UpdateCommand.Connection = value;
  8827. }
  8828. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8829. if ((this.CommandCollection[i] != null)) {
  8830. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8831. }
  8832. }
  8833. }
  8834. }
  8835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8837. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8838. get {
  8839. return this._transaction;
  8840. }
  8841. set {
  8842. this._transaction = value;
  8843. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8844. this.CommandCollection[i].Transaction = this._transaction;
  8845. }
  8846. if (((this.Adapter != null)
  8847. && (this.Adapter.DeleteCommand != null))) {
  8848. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8849. }
  8850. if (((this.Adapter != null)
  8851. && (this.Adapter.InsertCommand != null))) {
  8852. this.Adapter.InsertCommand.Transaction = this._transaction;
  8853. }
  8854. if (((this.Adapter != null)
  8855. && (this.Adapter.UpdateCommand != null))) {
  8856. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8857. }
  8858. }
  8859. }
  8860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8862. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8863. get {
  8864. if ((this._commandCollection == null)) {
  8865. this.InitCommandCollection();
  8866. }
  8867. return this._commandCollection;
  8868. }
  8869. }
  8870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8872. public bool ClearBeforeFill {
  8873. get {
  8874. return this._clearBeforeFill;
  8875. }
  8876. set {
  8877. this._clearBeforeFill = value;
  8878. }
  8879. }
  8880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8882. private void InitAdapter() {
  8883. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8884. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8885. tableMapping.SourceTable = "Table";
  8886. tableMapping.DataSetTable = "ДанныеПациентов";
  8887. tableMapping.ColumnMappings.Add("ID_Пациент", "ID_Пациент");
  8888. tableMapping.ColumnMappings.Add("логин", "логин");
  8889. tableMapping.ColumnMappings.Add("пароль", "пароль");
  8890. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  8891. tableMapping.ColumnMappings.Add("Имя", "Имя");
  8892. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  8893. tableMapping.ColumnMappings.Add("ДатаРождения", "ДатаРождения");
  8894. tableMapping.ColumnMappings.Add("СерияИНомер_паспорта", "СерияИНомер_паспорта");
  8895. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  8896. tableMapping.ColumnMappings.Add("e-mail", "e-mail");
  8897. tableMapping.ColumnMappings.Add("НомерСтраховогоПолиса", "НомерСтраховогоПолиса");
  8898. tableMapping.ColumnMappings.Add("ТипСтраховогоПолиса", "ТипСтраховогоПолиса");
  8899. tableMapping.ColumnMappings.Add("ID_Компании", "ID_Компании");
  8900. this._adapter.TableMappings.Add(tableMapping);
  8901. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8902. this._adapter.DeleteCommand.Connection = this.Connection;
  8903. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ДанныеПациентов] WHERE (([ID_Пациент] = @Original_ID_Пациент) AND ((@IsNull_логин = 1 AND [логин] IS NULL) OR ([логин] = @Original_логин)) AND ((@IsNull_пароль = 1 AND [пароль] IS NULL) OR ([пароль] = @Original_пароль)) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)) AND ((@IsNull_Отчество = 1 AND [Отчество] IS NULL) OR ([Отчество] = @Original_Отчество)) AND ((@IsNull_ДатаРождения = 1 AND [ДатаРождения] IS NULL) OR ([ДатаРождения] = @Original_ДатаРождения)) AND ((@IsNull_СерияИНомер_паспорта = 1 AND [СерияИНомер_паспорта] IS NULL) OR ([СерияИНомер_паспорта] = @Original_СерияИНомер_паспорта)) AND ((@IsNull_Телефон = 1 AND [Телефон] IS NULL) OR ([Телефон] = @Original_Телефон)) AND ((@p3 = 1 AND [e-mail] IS NULL) OR ([e-mail] = @p2)) AND ((@IsNull_НомерСтраховогоПолиса = 1 AND [НомерСтраховогоПолиса] IS NULL) OR ([НомерСтраховогоПолиса] = @Original_НомерСтраховогоПолиса)) AND ((@IsNull_ТипСтраховогоПолиса = 1 AND [ТипСтраховогоПолиса] IS NULL) OR ([ТипСтраховогоПолиса] = @Original_ТипСтраховогоПолиса)) AND ((@IsNull_ID_Компании = 1 AND [ID_Компании] IS NULL) OR ([ID_Компании] = @Original_ID_Компании)))";
  8904. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8905. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Пациент", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Пациент", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8906. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_логин", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "логин", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8907. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "логин", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8908. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_пароль", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "пароль", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8909. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "пароль", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8910. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Фамилия", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8911. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8912. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Имя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8913. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8914. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Отчество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8915. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8916. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДатаРождения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРождения", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8917. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаРождения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРождения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8918. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_СерияИНомер_паспорта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СерияИНомер_паспорта", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8919. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_СерияИНомер_паспорта", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СерияИНомер_паспорта", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8920. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Телефон", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8921. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8922. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "e-mail", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8923. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "e-mail", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8924. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_НомерСтраховогоПолиса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НомерСтраховогоПолиса", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8925. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_НомерСтраховогоПолиса", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НомерСтраховогоПолиса", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8926. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ТипСтраховогоПолиса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ТипСтраховогоПолиса", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8927. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ТипСтраховогоПолиса", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ТипСтраховогоПолиса", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8928. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Компании", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Компании", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8929. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Компании", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Компании", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8930. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8931. this._adapter.InsertCommand.Connection = this.Connection;
  8932. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ДанныеПациентов] ([ID_Пациент], [логин], [пароль], [Фамилия], [Имя], [Отчество], [ДатаРождения], [СерияИНомер_паспорта], [Телефон], [e-mail], [НомерСтраховогоПолиса], [ТипСтраховогоПолиса], [ID_Компании]) VALUES (@ID_Пациент, @логин, @пароль, @Фамилия, @Имя, @Отчество, @ДатаРождения, @СерияИНомер_паспорта, @Телефон, @p1, @НомерСтраховогоПолиса, @ТипСтраховогоПолиса, @ID_Компании);
  8933. SELECT ID_Пациент, логин, пароль, Фамилия, Имя, Отчество, ДатаРождения, СерияИНомер_паспорта, Телефон, [e-mail], НомерСтраховогоПолиса, ТипСтраховогоПолиса, ID_Компании FROM ДанныеПациентов WHERE (ID_Пациент = @ID_Пациент)";
  8934. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8935. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Пациент", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Пациент", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8936. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "логин", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8937. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "пароль", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8938. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8939. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8940. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8941. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаРождения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРождения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8942. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@СерияИНомер_паспорта", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СерияИНомер_паспорта", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8943. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8944. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "e-mail", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8945. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@НомерСтраховогоПолиса", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НомерСтраховогоПолиса", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8946. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ТипСтраховогоПолиса", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ТипСтраховогоПолиса", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8947. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Компании", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Компании", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8948. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8949. this._adapter.UpdateCommand.Connection = this.Connection;
  8950. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[ДанныеПациентов] SET [ID_Пациент] = @ID_Пациент, [логин] = @логин, " +
  8951. "[пароль] = @пароль, [Фамилия] = @Фамилия, [Имя] = @Имя, [Отчество] = @Отчество, " +
  8952. "[ДатаРождения] = @ДатаРождения, [СерияИНомер_паспорта] = @СерияИНомер_паспорта, " +
  8953. "[Телефон] = @Телефон, [e-mail] = @p1, [НомерСтраховогоПолиса] = @НомерСтрахового" +
  8954. "Полиса, [ТипСтраховогоПолиса] = @ТипСтраховогоПолиса, [ID_Компании] = @ID_Компан" +
  8955. "ии WHERE (([ID_Пациент] = @Original_ID_Пациент) AND ((@IsNull_логин = 1 AND [лог" +
  8956. "ин] IS NULL) OR ([логин] = @Original_логин)) AND ((@IsNull_пароль = 1 AND [парол" +
  8957. "ь] IS NULL) OR ([пароль] = @Original_пароль)) AND ((@IsNull_Фамилия = 1 AND [Фам" +
  8958. "илия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_Имя = 1 AND [Им" +
  8959. "я] IS NULL) OR ([Имя] = @Original_Имя)) AND ((@IsNull_Отчество = 1 AND [Отчество" +
  8960. "] IS NULL) OR ([Отчество] = @Original_Отчество)) AND ((@IsNull_ДатаРождения = 1 " +
  8961. "AND [ДатаРождения] IS NULL) OR ([ДатаРождения] = @Original_ДатаРождения)) AND ((" +
  8962. "@IsNull_СерияИНомер_паспорта = 1 AND [СерияИНомер_паспорта] IS NULL) OR ([СерияИ" +
  8963. "Номер_паспорта] = @Original_СерияИНомер_паспорта)) AND ((@IsNull_Телефон = 1 AND" +
  8964. " [Телефон] IS NULL) OR ([Телефон] = @Original_Телефон)) AND ((@p3 = 1 AND [e-mai" +
  8965. "l] IS NULL) OR ([e-mail] = @p2)) AND ((@IsNull_НомерСтраховогоПолиса = 1 AND [Но" +
  8966. "мерСтраховогоПолиса] IS NULL) OR ([НомерСтраховогоПолиса] = @Original_НомерСтрах" +
  8967. "овогоПолиса)) AND ((@IsNull_ТипСтраховогоПолиса = 1 AND [ТипСтраховогоПолиса] IS" +
  8968. " NULL) OR ([ТипСтраховогоПолиса] = @Original_ТипСтраховогоПолиса)) AND ((@IsNull" +
  8969. "_ID_Компании = 1 AND [ID_Компании] IS NULL) OR ([ID_Компании] = @Original_ID_Ком" +
  8970. "пании)));\r\nSELECT ID_Пациент, логин, пароль, Фамилия, Имя, Отчество, ДатаРождени" +
  8971. "я, СерияИНомер_паспорта, Телефон, [e-mail], НомерСтраховогоПолиса, ТипСтрахового" +
  8972. "Полиса, ID_Компании FROM ДанныеПациентов WHERE (ID_Пациент = @ID_Пациент)";
  8973. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8974. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Пациент", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Пациент", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8975. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "логин", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8976. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "пароль", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8977. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8978. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8979. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8980. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаРождения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРождения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8981. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@СерияИНомер_паспорта", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СерияИНомер_паспорта", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8982. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8983. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "e-mail", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8984. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@НомерСтраховогоПолиса", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НомерСтраховогоПолиса", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8985. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ТипСтраховогоПолиса", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ТипСтраховогоПолиса", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8986. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Компании", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Компании", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8987. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Пациент", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Пациент", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8988. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_логин", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "логин", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8989. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "логин", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8990. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_пароль", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "пароль", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8991. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "пароль", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8992. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Фамилия", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8993. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8994. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Имя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8995. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8996. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Отчество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8997. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8998. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДатаРождения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРождения", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8999. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаРождения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРождения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9000. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_СерияИНомер_паспорта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СерияИНомер_паспорта", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9001. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_СерияИНомер_паспорта", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СерияИНомер_паспорта", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9002. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Телефон", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9003. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9004. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "e-mail", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9005. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "e-mail", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9006. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_НомерСтраховогоПолиса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НомерСтраховогоПолиса", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9007. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_НомерСтраховогоПолиса", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НомерСтраховогоПолиса", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9008. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ТипСтраховогоПолиса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ТипСтраховогоПолиса", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9009. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ТипСтраховогоПолиса", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ТипСтраховогоПолиса", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9010. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Компании", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Компании", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9011. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Компании", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Компании", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9012. }
  9013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9015. private void InitConnection() {
  9016. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9017. this._connection.ConnectionString = global::Laboratoria.Properties.Settings.Default.ИсследованияБиоматериалаConnectionString;
  9018. }
  9019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9021. private void InitCommandCollection() {
  9022. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9023. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9024. this._commandCollection[0].Connection = this.Connection;
  9025. this._commandCollection[0].CommandText = "SELECT ID_Пациент, логин, пароль, Фамилия, Имя, Отчество, ДатаРождения, СерияИНом" +
  9026. "ер_паспорта, Телефон, [e-mail], НомерСтраховогоПолиса, ТипСтраховогоПолиса, ID_К" +
  9027. "омпании FROM dbo.ДанныеПациентов";
  9028. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9029. }
  9030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9032. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9033. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9034. public virtual int Fill(ИсследованияБиоматериалаDataSet.ДанныеПациентовDataTable dataTable) {
  9035. this.Adapter.SelectCommand = this.CommandCollection[0];
  9036. if ((this.ClearBeforeFill == true)) {
  9037. dataTable.Clear();
  9038. }
  9039. int returnValue = this.Adapter.Fill(dataTable);
  9040. return returnValue;
  9041. }
  9042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9044. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9045. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9046. public virtual ИсследованияБиоматериалаDataSet.ДанныеПациентовDataTable GetData() {
  9047. this.Adapter.SelectCommand = this.CommandCollection[0];
  9048. ИсследованияБиоматериалаDataSet.ДанныеПациентовDataTable dataTable = new ИсследованияБиоматериалаDataSet.ДанныеПациентовDataTable();
  9049. this.Adapter.Fill(dataTable);
  9050. return dataTable;
  9051. }
  9052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9054. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9055. public virtual int Update(ИсследованияБиоматериалаDataSet.ДанныеПациентовDataTable dataTable) {
  9056. return this.Adapter.Update(dataTable);
  9057. }
  9058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9060. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9061. public virtual int Update(ИсследованияБиоматериалаDataSet dataSet) {
  9062. return this.Adapter.Update(dataSet, "ДанныеПациентов");
  9063. }
  9064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9066. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9067. public virtual int Update(global::System.Data.DataRow dataRow) {
  9068. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9069. dataRow});
  9070. }
  9071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9073. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9074. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9075. return this.Adapter.Update(dataRows);
  9076. }
  9077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9079. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9080. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9081. public virtual int Delete(long Original_ID_Пациент, string Original_логин, string Original_пароль, string Original_Фамилия, string Original_Имя, string Original_Отчество, global::System.Nullable<global::System.DateTime> Original_ДатаРождения, string Original_СерияИНомер_паспорта, string Original_Телефон, string p2, string Original_НомерСтраховогоПолиса, string Original_ТипСтраховогоПолиса, global::System.Nullable<long> Original_ID_Компании) {
  9082. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID_Пациент));
  9083. if ((Original_логин == null)) {
  9084. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9085. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9086. }
  9087. else {
  9088. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9089. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_логин));
  9090. }
  9091. if ((Original_пароль == null)) {
  9092. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  9093. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  9094. }
  9095. else {
  9096. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  9097. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_пароль));
  9098. }
  9099. if ((Original_Фамилия == null)) {
  9100. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  9101. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  9102. }
  9103. else {
  9104. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  9105. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Фамилия));
  9106. }
  9107. if ((Original_Имя == null)) {
  9108. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  9109. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  9110. }
  9111. else {
  9112. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  9113. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Имя));
  9114. }
  9115. if ((Original_Отчество == null)) {
  9116. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  9117. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  9118. }
  9119. else {
  9120. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  9121. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Отчество));
  9122. }
  9123. if ((Original_ДатаРождения.HasValue == true)) {
  9124. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  9125. this.Adapter.DeleteCommand.Parameters[12].Value = ((System.DateTime)(Original_ДатаРождения.Value));
  9126. }
  9127. else {
  9128. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  9129. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  9130. }
  9131. if ((Original_СерияИНомер_паспорта == null)) {
  9132. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  9133. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  9134. }
  9135. else {
  9136. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  9137. this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_СерияИНомер_паспорта));
  9138. }
  9139. if ((Original_Телефон == null)) {
  9140. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
  9141. this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
  9142. }
  9143. else {
  9144. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
  9145. this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_Телефон));
  9146. }
  9147. if ((p2 == null)) {
  9148. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
  9149. this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
  9150. }
  9151. else {
  9152. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
  9153. this.Adapter.DeleteCommand.Parameters[18].Value = ((string)(p2));
  9154. }
  9155. if ((Original_НомерСтраховогоПолиса == null)) {
  9156. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
  9157. this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
  9158. }
  9159. else {
  9160. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
  9161. this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_НомерСтраховогоПолиса));
  9162. }
  9163. if ((Original_ТипСтраховогоПолиса == null)) {
  9164. this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
  9165. this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
  9166. }
  9167. else {
  9168. this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
  9169. this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_ТипСтраховогоПолиса));
  9170. }
  9171. if ((Original_ID_Компании.HasValue == true)) {
  9172. this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0));
  9173. this.Adapter.DeleteCommand.Parameters[24].Value = ((long)(Original_ID_Компании.Value));
  9174. }
  9175. else {
  9176. this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1));
  9177. this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value;
  9178. }
  9179. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9180. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9181. != global::System.Data.ConnectionState.Open)) {
  9182. this.Adapter.DeleteCommand.Connection.Open();
  9183. }
  9184. try {
  9185. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9186. return returnValue;
  9187. }
  9188. finally {
  9189. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9190. this.Adapter.DeleteCommand.Connection.Close();
  9191. }
  9192. }
  9193. }
  9194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9196. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9197. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9198. public virtual int Insert(long ID_Пациент, string логин, string пароль, string Фамилия, string Имя, string Отчество, global::System.Nullable<global::System.DateTime> ДатаРождения, string СерияИНомер_паспорта, string Телефон, string p1, string НомерСтраховогоПолиса, string ТипСтраховогоПолиса, global::System.Nullable<long> ID_Компании) {
  9199. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ID_Пациент));
  9200. if ((логин == null)) {
  9201. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9202. }
  9203. else {
  9204. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(логин));
  9205. }
  9206. if ((пароль == null)) {
  9207. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  9208. }
  9209. else {
  9210. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(пароль));
  9211. }
  9212. if ((Фамилия == null)) {
  9213. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9214. }
  9215. else {
  9216. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Фамилия));
  9217. }
  9218. if ((Имя == null)) {
  9219. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  9220. }
  9221. else {
  9222. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Имя));
  9223. }
  9224. if ((Отчество == null)) {
  9225. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  9226. }
  9227. else {
  9228. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Отчество));
  9229. }
  9230. if ((ДатаРождения.HasValue == true)) {
  9231. this.Adapter.InsertCommand.Parameters[6].Value = ((System.DateTime)(ДатаРождения.Value));
  9232. }
  9233. else {
  9234. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  9235. }
  9236. if ((СерияИНомер_паспорта == null)) {
  9237. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  9238. }
  9239. else {
  9240. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(СерияИНомер_паспорта));
  9241. }
  9242. if ((Телефон == null)) {
  9243. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  9244. }
  9245. else {
  9246. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(Телефон));
  9247. }
  9248. if ((p1 == null)) {
  9249. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  9250. }
  9251. else {
  9252. this.Adapter.InsertCommand.Parameters[9].Value = ((string)(p1));
  9253. }
  9254. if ((НомерСтраховогоПолиса == null)) {
  9255. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  9256. }
  9257. else {
  9258. this.Adapter.InsertCommand.Parameters[10].Value = ((string)(НомерСтраховогоПолиса));
  9259. }
  9260. if ((ТипСтраховогоПолиса == null)) {
  9261. this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
  9262. }
  9263. else {
  9264. this.Adapter.InsertCommand.Parameters[11].Value = ((string)(ТипСтраховогоПолиса));
  9265. }
  9266. if ((ID_Компании.HasValue == true)) {
  9267. this.Adapter.InsertCommand.Parameters[12].Value = ((long)(ID_Компании.Value));
  9268. }
  9269. else {
  9270. this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
  9271. }
  9272. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9273. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9274. != global::System.Data.ConnectionState.Open)) {
  9275. this.Adapter.InsertCommand.Connection.Open();
  9276. }
  9277. try {
  9278. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9279. return returnValue;
  9280. }
  9281. finally {
  9282. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9283. this.Adapter.InsertCommand.Connection.Close();
  9284. }
  9285. }
  9286. }
  9287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9289. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9290. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9291. public virtual int Update(
  9292. long ID_Пациент,
  9293. string логин,
  9294. string пароль,
  9295. string Фамилия,
  9296. string Имя,
  9297. string Отчество,
  9298. global::System.Nullable<global::System.DateTime> ДатаРождения,
  9299. string СерияИНомер_паспорта,
  9300. string Телефон,
  9301. string p1,
  9302. string НомерСтраховогоПолиса,
  9303. string ТипСтраховогоПолиса,
  9304. global::System.Nullable<long> ID_Компании,
  9305. long Original_ID_Пациент,
  9306. string Original_логин,
  9307. string Original_пароль,
  9308. string Original_Фамилия,
  9309. string Original_Имя,
  9310. string Original_Отчество,
  9311. global::System.Nullable<global::System.DateTime> Original_ДатаРождения,
  9312. string Original_СерияИНомер_паспорта,
  9313. string Original_Телефон,
  9314. string p2,
  9315. string Original_НомерСтраховогоПолиса,
  9316. string Original_ТипСтраховогоПолиса,
  9317. global::System.Nullable<long> Original_ID_Компании) {
  9318. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ID_Пациент));
  9319. if ((логин == null)) {
  9320. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9321. }
  9322. else {
  9323. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(логин));
  9324. }
  9325. if ((пароль == null)) {
  9326. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  9327. }
  9328. else {
  9329. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(пароль));
  9330. }
  9331. if ((Фамилия == null)) {
  9332. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9333. }
  9334. else {
  9335. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Фамилия));
  9336. }
  9337. if ((Имя == null)) {
  9338. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9339. }
  9340. else {
  9341. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Имя));
  9342. }
  9343. if ((Отчество == null)) {
  9344. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  9345. }
  9346. else {
  9347. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Отчество));
  9348. }
  9349. if ((ДатаРождения.HasValue == true)) {
  9350. this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(ДатаРождения.Value));
  9351. }
  9352. else {
  9353. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  9354. }
  9355. if ((СерияИНомер_паспорта == null)) {
  9356. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  9357. }
  9358. else {
  9359. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(СерияИНомер_паспорта));
  9360. }
  9361. if ((Телефон == null)) {
  9362. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  9363. }
  9364. else {
  9365. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Телефон));
  9366. }
  9367. if ((p1 == null)) {
  9368. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  9369. }
  9370. else {
  9371. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(p1));
  9372. }
  9373. if ((НомерСтраховогоПолиса == null)) {
  9374. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  9375. }
  9376. else {
  9377. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(НомерСтраховогоПолиса));
  9378. }
  9379. if ((ТипСтраховогоПолиса == null)) {
  9380. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  9381. }
  9382. else {
  9383. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(ТипСтраховогоПолиса));
  9384. }
  9385. if ((ID_Компании.HasValue == true)) {
  9386. this.Adapter.UpdateCommand.Parameters[12].Value = ((long)(ID_Компании.Value));
  9387. }
  9388. else {
  9389. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  9390. }
  9391. this.Adapter.UpdateCommand.Parameters[13].Value = ((long)(Original_ID_Пациент));
  9392. if ((Original_логин == null)) {
  9393. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  9394. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  9395. }
  9396. else {
  9397. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  9398. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_логин));
  9399. }
  9400. if ((Original_пароль == null)) {
  9401. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  9402. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  9403. }
  9404. else {
  9405. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  9406. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_пароль));
  9407. }
  9408. if ((Original_Фамилия == null)) {
  9409. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  9410. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  9411. }
  9412. else {
  9413. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  9414. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Фамилия));
  9415. }
  9416. if ((Original_Имя == null)) {
  9417. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  9418. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  9419. }
  9420. else {
  9421. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  9422. this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_Имя));
  9423. }
  9424. if ((Original_Отчество == null)) {
  9425. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
  9426. this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
  9427. }
  9428. else {
  9429. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
  9430. this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_Отчество));
  9431. }
  9432. if ((Original_ДатаРождения.HasValue == true)) {
  9433. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
  9434. this.Adapter.UpdateCommand.Parameters[25].Value = ((System.DateTime)(Original_ДатаРождения.Value));
  9435. }
  9436. else {
  9437. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
  9438. this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
  9439. }
  9440. if ((Original_СерияИНомер_паспорта == null)) {
  9441. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
  9442. this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
  9443. }
  9444. else {
  9445. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
  9446. this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_СерияИНомер_паспорта));
  9447. }
  9448. if ((Original_Телефон == null)) {
  9449. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
  9450. this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
  9451. }
  9452. else {
  9453. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
  9454. this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_Телефон));
  9455. }
  9456. if ((p2 == null)) {
  9457. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
  9458. this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
  9459. }
  9460. else {
  9461. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
  9462. this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(p2));
  9463. }
  9464. if ((Original_НомерСтраховогоПолиса == null)) {
  9465. this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
  9466. this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
  9467. }
  9468. else {
  9469. this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
  9470. this.Adapter.UpdateCommand.Parameters[33].Value = ((string)(Original_НомерСтраховогоПолиса));
  9471. }
  9472. if ((Original_ТипСтраховогоПолиса == null)) {
  9473. this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1));
  9474. this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
  9475. }
  9476. else {
  9477. this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
  9478. this.Adapter.UpdateCommand.Parameters[35].Value = ((string)(Original_ТипСтраховогоПолиса));
  9479. }
  9480. if ((Original_ID_Компании.HasValue == true)) {
  9481. this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0));
  9482. this.Adapter.UpdateCommand.Parameters[37].Value = ((long)(Original_ID_Компании.Value));
  9483. }
  9484. else {
  9485. this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1));
  9486. this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value;
  9487. }
  9488. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9489. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9490. != global::System.Data.ConnectionState.Open)) {
  9491. this.Adapter.UpdateCommand.Connection.Open();
  9492. }
  9493. try {
  9494. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9495. return returnValue;
  9496. }
  9497. finally {
  9498. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9499. this.Adapter.UpdateCommand.Connection.Close();
  9500. }
  9501. }
  9502. }
  9503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9505. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9506. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9507. public virtual int Update(
  9508. string логин,
  9509. string пароль,
  9510. string Фамилия,
  9511. string Имя,
  9512. string Отчество,
  9513. global::System.Nullable<global::System.DateTime> ДатаРождения,
  9514. string СерияИНомер_паспорта,
  9515. string Телефон,
  9516. string p1,
  9517. string НомерСтраховогоПолиса,
  9518. string ТипСтраховогоПолиса,
  9519. global::System.Nullable<long> ID_Компании,
  9520. long Original_ID_Пациент,
  9521. string Original_логин,
  9522. string Original_пароль,
  9523. string Original_Фамилия,
  9524. string Original_Имя,
  9525. string Original_Отчество,
  9526. global::System.Nullable<global::System.DateTime> Original_ДатаРождения,
  9527. string Original_СерияИНомер_паспорта,
  9528. string Original_Телефон,
  9529. string p2,
  9530. string Original_НомерСтраховогоПолиса,
  9531. string Original_ТипСтраховогоПолиса,
  9532. global::System.Nullable<long> Original_ID_Компании) {
  9533. return this.Update(Original_ID_Пациент, логин, пароль, Фамилия, Имя, Отчество, ДатаРождения, СерияИНомер_паспорта, Телефон, p1, НомерСтраховогоПолиса, ТипСтраховогоПолиса, ID_Компании, Original_ID_Пациент, Original_логин, Original_пароль, Original_Фамилия, Original_Имя, Original_Отчество, Original_ДатаРождения, Original_СерияИНомер_паспорта, Original_Телефон, p2, Original_НомерСтраховогоПолиса, Original_ТипСтраховогоПолиса, Original_ID_Компании);
  9534. }
  9535. }
  9536. /// <summary>
  9537. ///Represents the connection and commands used to retrieve and save data.
  9538. ///</summary>
  9539. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9540. [global::System.ComponentModel.ToolboxItem(true)]
  9541. [global::System.ComponentModel.DataObjectAttribute(true)]
  9542. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9543. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9544. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9545. public partial class ЗаказTableAdapter : global::System.ComponentModel.Component {
  9546. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9547. private global::System.Data.SqlClient.SqlConnection _connection;
  9548. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9549. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9550. private bool _clearBeforeFill;
  9551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9553. public ЗаказTableAdapter() {
  9554. this.ClearBeforeFill = true;
  9555. }
  9556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9558. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9559. get {
  9560. if ((this._adapter == null)) {
  9561. this.InitAdapter();
  9562. }
  9563. return this._adapter;
  9564. }
  9565. }
  9566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9568. internal global::System.Data.SqlClient.SqlConnection Connection {
  9569. get {
  9570. if ((this._connection == null)) {
  9571. this.InitConnection();
  9572. }
  9573. return this._connection;
  9574. }
  9575. set {
  9576. this._connection = value;
  9577. if ((this.Adapter.InsertCommand != null)) {
  9578. this.Adapter.InsertCommand.Connection = value;
  9579. }
  9580. if ((this.Adapter.DeleteCommand != null)) {
  9581. this.Adapter.DeleteCommand.Connection = value;
  9582. }
  9583. if ((this.Adapter.UpdateCommand != null)) {
  9584. this.Adapter.UpdateCommand.Connection = value;
  9585. }
  9586. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9587. if ((this.CommandCollection[i] != null)) {
  9588. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9589. }
  9590. }
  9591. }
  9592. }
  9593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9595. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9596. get {
  9597. return this._transaction;
  9598. }
  9599. set {
  9600. this._transaction = value;
  9601. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9602. this.CommandCollection[i].Transaction = this._transaction;
  9603. }
  9604. if (((this.Adapter != null)
  9605. && (this.Adapter.DeleteCommand != null))) {
  9606. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9607. }
  9608. if (((this.Adapter != null)
  9609. && (this.Adapter.InsertCommand != null))) {
  9610. this.Adapter.InsertCommand.Transaction = this._transaction;
  9611. }
  9612. if (((this.Adapter != null)
  9613. && (this.Adapter.UpdateCommand != null))) {
  9614. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9615. }
  9616. }
  9617. }
  9618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9620. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9621. get {
  9622. if ((this._commandCollection == null)) {
  9623. this.InitCommandCollection();
  9624. }
  9625. return this._commandCollection;
  9626. }
  9627. }
  9628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9630. public bool ClearBeforeFill {
  9631. get {
  9632. return this._clearBeforeFill;
  9633. }
  9634. set {
  9635. this._clearBeforeFill = value;
  9636. }
  9637. }
  9638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9640. private void InitAdapter() {
  9641. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9642. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9643. tableMapping.SourceTable = "Table";
  9644. tableMapping.DataSetTable = "Заказ";
  9645. tableMapping.ColumnMappings.Add("ID_Заказа", "ID_Заказа");
  9646. tableMapping.ColumnMappings.Add("ДатаСоздания", "ДатаСоздания");
  9647. tableMapping.ColumnMappings.Add("СтатусЗаказа", "СтатусЗаказа");
  9648. tableMapping.ColumnMappings.Add("СтатусУслуги", "СтатусУслуги");
  9649. tableMapping.ColumnMappings.Add("ВремяВыполнения", "ВремяВыполнения");
  9650. tableMapping.ColumnMappings.Add("ID_Счета", "ID_Счета");
  9651. this._adapter.TableMappings.Add(tableMapping);
  9652. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9653. this._adapter.DeleteCommand.Connection = this.Connection;
  9654. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Заказ] WHERE (([ID_Заказа] = @Original_ID_Заказа) AND ((@IsNull_ДатаСоздания = 1 AND [ДатаСоздания] IS NULL) OR ([ДатаСоздания] = @Original_ДатаСоздания)) AND ((@IsNull_СтатусЗаказа = 1 AND [СтатусЗаказа] IS NULL) OR ([СтатусЗаказа] = @Original_СтатусЗаказа)) AND ((@IsNull_СтатусУслуги = 1 AND [СтатусУслуги] IS NULL) OR ([СтатусУслуги] = @Original_СтатусУслуги)) AND ((@IsNull_ВремяВыполнения = 1 AND [ВремяВыполнения] IS NULL) OR ([ВремяВыполнения] = @Original_ВремяВыполнения)) AND ((@IsNull_ID_Счета = 1 AND [ID_Счета] IS NULL) OR ([ID_Счета] = @Original_ID_Счета)))";
  9655. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9656. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Заказа", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9657. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДатаСоздания", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаСоздания", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9658. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаСоздания", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаСоздания", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9659. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_СтатусЗаказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СтатусЗаказа", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9660. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_СтатусЗаказа", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СтатусЗаказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9661. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_СтатусУслуги", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СтатусУслуги", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9662. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_СтатусУслуги", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СтатусУслуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9663. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ВремяВыполнения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ВремяВыполнения", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9664. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ВремяВыполнения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ВремяВыполнения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9665. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Счета", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Счета", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9666. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Счета", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Счета", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9667. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9668. this._adapter.InsertCommand.Connection = this.Connection;
  9669. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Заказ] ([ID_Заказа], [ДатаСоздания], [СтатусЗаказа], [СтатусУслуги], [ВремяВыполнения], [ID_Счета]) VALUES (@ID_Заказа, @ДатаСоздания, @СтатусЗаказа, @СтатусУслуги, @ВремяВыполнения, @ID_Счета);
  9670. SELECT ID_Заказа, ДатаСоздания, СтатусЗаказа, СтатусУслуги, ВремяВыполнения, ID_Счета FROM Заказ WHERE (ID_Заказа = @ID_Заказа)";
  9671. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9672. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Заказа", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9673. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаСоздания", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаСоздания", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9674. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@СтатусЗаказа", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СтатусЗаказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9675. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@СтатусУслуги", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СтатусУслуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9676. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ВремяВыполнения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ВремяВыполнения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9677. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Счета", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Счета", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9678. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9679. this._adapter.UpdateCommand.Connection = this.Connection;
  9680. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Заказ] SET [ID_Заказа] = @ID_Заказа, [ДатаСоздания] = @ДатаСоздания, [СтатусЗаказа] = @СтатусЗаказа, [СтатусУслуги] = @СтатусУслуги, [ВремяВыполнения] = @ВремяВыполнения, [ID_Счета] = @ID_Счета WHERE (([ID_Заказа] = @Original_ID_Заказа) AND ((@IsNull_ДатаСоздания = 1 AND [ДатаСоздания] IS NULL) OR ([ДатаСоздания] = @Original_ДатаСоздания)) AND ((@IsNull_СтатусЗаказа = 1 AND [СтатусЗаказа] IS NULL) OR ([СтатусЗаказа] = @Original_СтатусЗаказа)) AND ((@IsNull_СтатусУслуги = 1 AND [СтатусУслуги] IS NULL) OR ([СтатусУслуги] = @Original_СтатусУслуги)) AND ((@IsNull_ВремяВыполнения = 1 AND [ВремяВыполнения] IS NULL) OR ([ВремяВыполнения] = @Original_ВремяВыполнения)) AND ((@IsNull_ID_Счета = 1 AND [ID_Счета] IS NULL) OR ([ID_Счета] = @Original_ID_Счета)));
  9681. SELECT ID_Заказа, ДатаСоздания, СтатусЗаказа, СтатусУслуги, ВремяВыполнения, ID_Счета FROM Заказ WHERE (ID_Заказа = @ID_Заказа)";
  9682. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9683. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Заказа", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9684. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаСоздания", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаСоздания", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9685. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@СтатусЗаказа", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СтатусЗаказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9686. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@СтатусУслуги", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СтатусУслуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9687. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ВремяВыполнения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ВремяВыполнения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9688. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Счета", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Счета", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9689. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Заказа", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9690. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДатаСоздания", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаСоздания", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9691. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаСоздания", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаСоздания", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9692. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_СтатусЗаказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СтатусЗаказа", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9693. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_СтатусЗаказа", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СтатусЗаказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9694. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_СтатусУслуги", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СтатусУслуги", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9695. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_СтатусУслуги", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СтатусУслуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9696. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ВремяВыполнения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ВремяВыполнения", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9697. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ВремяВыполнения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ВремяВыполнения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9698. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Счета", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Счета", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9699. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Счета", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Счета", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9700. }
  9701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9703. private void InitConnection() {
  9704. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9705. this._connection.ConnectionString = global::Laboratoria.Properties.Settings.Default.ИсследованияБиоматериалаConnectionString;
  9706. }
  9707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9709. private void InitCommandCollection() {
  9710. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9711. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9712. this._commandCollection[0].Connection = this.Connection;
  9713. this._commandCollection[0].CommandText = "SELECT ID_Заказа, ДатаСоздания, СтатусЗаказа, СтатусУслуги, ВремяВыполнения, ID_С" +
  9714. "чета FROM dbo.Заказ";
  9715. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9716. }
  9717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9719. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9720. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9721. public virtual int Fill(ИсследованияБиоматериалаDataSet.ЗаказDataTable dataTable) {
  9722. this.Adapter.SelectCommand = this.CommandCollection[0];
  9723. if ((this.ClearBeforeFill == true)) {
  9724. dataTable.Clear();
  9725. }
  9726. int returnValue = this.Adapter.Fill(dataTable);
  9727. return returnValue;
  9728. }
  9729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9731. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9732. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9733. public virtual ИсследованияБиоматериалаDataSet.ЗаказDataTable GetData() {
  9734. this.Adapter.SelectCommand = this.CommandCollection[0];
  9735. ИсследованияБиоматериалаDataSet.ЗаказDataTable dataTable = new ИсследованияБиоматериалаDataSet.ЗаказDataTable();
  9736. this.Adapter.Fill(dataTable);
  9737. return dataTable;
  9738. }
  9739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9741. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9742. public virtual int Update(ИсследованияБиоматериалаDataSet.ЗаказDataTable dataTable) {
  9743. return this.Adapter.Update(dataTable);
  9744. }
  9745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9747. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9748. public virtual int Update(ИсследованияБиоматериалаDataSet dataSet) {
  9749. return this.Adapter.Update(dataSet, "Заказ");
  9750. }
  9751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9753. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9754. public virtual int Update(global::System.Data.DataRow dataRow) {
  9755. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9756. dataRow});
  9757. }
  9758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9760. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9761. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9762. return this.Adapter.Update(dataRows);
  9763. }
  9764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9766. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9767. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9768. public virtual int Delete(long Original_ID_Заказа, global::System.Nullable<global::System.DateTime> Original_ДатаСоздания, string Original_СтатусЗаказа, string Original_СтатусУслуги, global::System.Nullable<int> Original_ВремяВыполнения, global::System.Nullable<long> Original_ID_Счета) {
  9769. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID_Заказа));
  9770. if ((Original_ДатаСоздания.HasValue == true)) {
  9771. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9772. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_ДатаСоздания.Value));
  9773. }
  9774. else {
  9775. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9776. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9777. }
  9778. if ((Original_СтатусЗаказа == null)) {
  9779. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  9780. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  9781. }
  9782. else {
  9783. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  9784. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_СтатусЗаказа));
  9785. }
  9786. if ((Original_СтатусУслуги == null)) {
  9787. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  9788. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  9789. }
  9790. else {
  9791. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  9792. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_СтатусУслуги));
  9793. }
  9794. if ((Original_ВремяВыполнения.HasValue == true)) {
  9795. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  9796. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_ВремяВыполнения.Value));
  9797. }
  9798. else {
  9799. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  9800. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  9801. }
  9802. if ((Original_ID_Счета.HasValue == true)) {
  9803. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  9804. this.Adapter.DeleteCommand.Parameters[10].Value = ((long)(Original_ID_Счета.Value));
  9805. }
  9806. else {
  9807. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  9808. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  9809. }
  9810. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9811. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9812. != global::System.Data.ConnectionState.Open)) {
  9813. this.Adapter.DeleteCommand.Connection.Open();
  9814. }
  9815. try {
  9816. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9817. return returnValue;
  9818. }
  9819. finally {
  9820. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9821. this.Adapter.DeleteCommand.Connection.Close();
  9822. }
  9823. }
  9824. }
  9825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9827. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9828. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9829. public virtual int Insert(long ID_Заказа, global::System.Nullable<global::System.DateTime> ДатаСоздания, string СтатусЗаказа, string СтатусУслуги, global::System.Nullable<int> ВремяВыполнения, global::System.Nullable<long> ID_Счета) {
  9830. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ID_Заказа));
  9831. if ((ДатаСоздания.HasValue == true)) {
  9832. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(ДатаСоздания.Value));
  9833. }
  9834. else {
  9835. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9836. }
  9837. if ((СтатусЗаказа == null)) {
  9838. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  9839. }
  9840. else {
  9841. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(СтатусЗаказа));
  9842. }
  9843. if ((СтатусУслуги == null)) {
  9844. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9845. }
  9846. else {
  9847. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(СтатусУслуги));
  9848. }
  9849. if ((ВремяВыполнения.HasValue == true)) {
  9850. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(ВремяВыполнения.Value));
  9851. }
  9852. else {
  9853. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  9854. }
  9855. if ((ID_Счета.HasValue == true)) {
  9856. this.Adapter.InsertCommand.Parameters[5].Value = ((long)(ID_Счета.Value));
  9857. }
  9858. else {
  9859. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  9860. }
  9861. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9862. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9863. != global::System.Data.ConnectionState.Open)) {
  9864. this.Adapter.InsertCommand.Connection.Open();
  9865. }
  9866. try {
  9867. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9868. return returnValue;
  9869. }
  9870. finally {
  9871. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9872. this.Adapter.InsertCommand.Connection.Close();
  9873. }
  9874. }
  9875. }
  9876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9878. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9879. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9880. public virtual int Update(long ID_Заказа, global::System.Nullable<global::System.DateTime> ДатаСоздания, string СтатусЗаказа, string СтатусУслуги, global::System.Nullable<int> ВремяВыполнения, global::System.Nullable<long> ID_Счета, long Original_ID_Заказа, global::System.Nullable<global::System.DateTime> Original_ДатаСоздания, string Original_СтатусЗаказа, string Original_СтатусУслуги, global::System.Nullable<int> Original_ВремяВыполнения, global::System.Nullable<long> Original_ID_Счета) {
  9881. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ID_Заказа));
  9882. if ((ДатаСоздания.HasValue == true)) {
  9883. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(ДатаСоздания.Value));
  9884. }
  9885. else {
  9886. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9887. }
  9888. if ((СтатусЗаказа == null)) {
  9889. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  9890. }
  9891. else {
  9892. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(СтатусЗаказа));
  9893. }
  9894. if ((СтатусУслуги == null)) {
  9895. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9896. }
  9897. else {
  9898. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(СтатусУслуги));
  9899. }
  9900. if ((ВремяВыполнения.HasValue == true)) {
  9901. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(ВремяВыполнения.Value));
  9902. }
  9903. else {
  9904. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9905. }
  9906. if ((ID_Счета.HasValue == true)) {
  9907. this.Adapter.UpdateCommand.Parameters[5].Value = ((long)(ID_Счета.Value));
  9908. }
  9909. else {
  9910. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  9911. }
  9912. this.Adapter.UpdateCommand.Parameters[6].Value = ((long)(Original_ID_Заказа));
  9913. if ((Original_ДатаСоздания.HasValue == true)) {
  9914. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  9915. this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_ДатаСоздания.Value));
  9916. }
  9917. else {
  9918. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  9919. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  9920. }
  9921. if ((Original_СтатусЗаказа == null)) {
  9922. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  9923. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  9924. }
  9925. else {
  9926. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  9927. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_СтатусЗаказа));
  9928. }
  9929. if ((Original_СтатусУслуги == null)) {
  9930. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  9931. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  9932. }
  9933. else {
  9934. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  9935. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_СтатусУслуги));
  9936. }
  9937. if ((Original_ВремяВыполнения.HasValue == true)) {
  9938. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  9939. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_ВремяВыполнения.Value));
  9940. }
  9941. else {
  9942. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  9943. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  9944. }
  9945. if ((Original_ID_Счета.HasValue == true)) {
  9946. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  9947. this.Adapter.UpdateCommand.Parameters[16].Value = ((long)(Original_ID_Счета.Value));
  9948. }
  9949. else {
  9950. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  9951. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  9952. }
  9953. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9954. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9955. != global::System.Data.ConnectionState.Open)) {
  9956. this.Adapter.UpdateCommand.Connection.Open();
  9957. }
  9958. try {
  9959. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9960. return returnValue;
  9961. }
  9962. finally {
  9963. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9964. this.Adapter.UpdateCommand.Connection.Close();
  9965. }
  9966. }
  9967. }
  9968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9970. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9971. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9972. public virtual int Update(global::System.Nullable<global::System.DateTime> ДатаСоздания, string СтатусЗаказа, string СтатусУслуги, global::System.Nullable<int> ВремяВыполнения, global::System.Nullable<long> ID_Счета, long Original_ID_Заказа, global::System.Nullable<global::System.DateTime> Original_ДатаСоздания, string Original_СтатусЗаказа, string Original_СтатусУслуги, global::System.Nullable<int> Original_ВремяВыполнения, global::System.Nullable<long> Original_ID_Счета) {
  9973. return this.Update(Original_ID_Заказа, ДатаСоздания, СтатусЗаказа, СтатусУслуги, ВремяВыполнения, ID_Счета, Original_ID_Заказа, Original_ДатаСоздания, Original_СтатусЗаказа, Original_СтатусУслуги, Original_ВремяВыполнения, Original_ID_Счета);
  9974. }
  9975. }
  9976. /// <summary>
  9977. ///Represents the connection and commands used to retrieve and save data.
  9978. ///</summary>
  9979. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9980. [global::System.ComponentModel.ToolboxItem(true)]
  9981. [global::System.ComponentModel.DataObjectAttribute(true)]
  9982. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9983. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9984. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9985. public partial class ЛаборантTableAdapter : global::System.ComponentModel.Component {
  9986. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9987. private global::System.Data.SqlClient.SqlConnection _connection;
  9988. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9989. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9990. private bool _clearBeforeFill;
  9991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9993. public ЛаборантTableAdapter() {
  9994. this.ClearBeforeFill = true;
  9995. }
  9996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9998. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9999. get {
  10000. if ((this._adapter == null)) {
  10001. this.InitAdapter();
  10002. }
  10003. return this._adapter;
  10004. }
  10005. }
  10006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10008. internal global::System.Data.SqlClient.SqlConnection Connection {
  10009. get {
  10010. if ((this._connection == null)) {
  10011. this.InitConnection();
  10012. }
  10013. return this._connection;
  10014. }
  10015. set {
  10016. this._connection = value;
  10017. if ((this.Adapter.InsertCommand != null)) {
  10018. this.Adapter.InsertCommand.Connection = value;
  10019. }
  10020. if ((this.Adapter.DeleteCommand != null)) {
  10021. this.Adapter.DeleteCommand.Connection = value;
  10022. }
  10023. if ((this.Adapter.UpdateCommand != null)) {
  10024. this.Adapter.UpdateCommand.Connection = value;
  10025. }
  10026. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10027. if ((this.CommandCollection[i] != null)) {
  10028. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10029. }
  10030. }
  10031. }
  10032. }
  10033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10035. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10036. get {
  10037. return this._transaction;
  10038. }
  10039. set {
  10040. this._transaction = value;
  10041. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10042. this.CommandCollection[i].Transaction = this._transaction;
  10043. }
  10044. if (((this.Adapter != null)
  10045. && (this.Adapter.DeleteCommand != null))) {
  10046. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10047. }
  10048. if (((this.Adapter != null)
  10049. && (this.Adapter.InsertCommand != null))) {
  10050. this.Adapter.InsertCommand.Transaction = this._transaction;
  10051. }
  10052. if (((this.Adapter != null)
  10053. && (this.Adapter.UpdateCommand != null))) {
  10054. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10055. }
  10056. }
  10057. }
  10058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10060. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10061. get {
  10062. if ((this._commandCollection == null)) {
  10063. this.InitCommandCollection();
  10064. }
  10065. return this._commandCollection;
  10066. }
  10067. }
  10068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10070. public bool ClearBeforeFill {
  10071. get {
  10072. return this._clearBeforeFill;
  10073. }
  10074. set {
  10075. this._clearBeforeFill = value;
  10076. }
  10077. }
  10078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10080. private void InitAdapter() {
  10081. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10082. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10083. tableMapping.SourceTable = "Table";
  10084. tableMapping.DataSetTable = "Лаборант";
  10085. tableMapping.ColumnMappings.Add("ID_Лаборанта", "ID_Лаборанта");
  10086. tableMapping.ColumnMappings.Add("Логин", "Логин");
  10087. tableMapping.ColumnMappings.Add("Пароль", "Пароль");
  10088. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  10089. tableMapping.ColumnMappings.Add("Имя", "Имя");
  10090. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  10091. tableMapping.ColumnMappings.Add("ПоследняяДатаИВремяВхода", "ПоследняяДатаИВремяВхода");
  10092. this._adapter.TableMappings.Add(tableMapping);
  10093. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10094. this._adapter.DeleteCommand.Connection = this.Connection;
  10095. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Лаборант] WHERE (([ID_Лаборанта] = @Original_ID_Лаборанта) AND ((@IsNull_Логин = 1 AND [Логин] IS NULL) OR ([Логин] = @Original_Логин)) AND ((@IsNull_Пароль = 1 AND [Пароль] IS NULL) OR ([Пароль] = @Original_Пароль)) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)) AND ((@IsNull_Отчество = 1 AND [Отчество] IS NULL) OR ([Отчество] = @Original_Отчество)) AND ((@IsNull_ПоследняяДатаИВремяВхода = 1 AND [ПоследняяДатаИВремяВхода] IS NULL) OR ([ПоследняяДатаИВремяВхода] = @Original_ПоследняяДатаИВремяВхода)))";
  10096. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10097. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Лаборанта", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Лаборанта", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10098. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Логин", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10099. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10100. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Пароль", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10101. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10102. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Фамилия", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10103. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10104. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Имя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10105. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10106. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Отчество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10107. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10108. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ПоследняяДатаИВремяВхода", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ПоследняяДатаИВремяВхода", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10109. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ПоследняяДатаИВремяВхода", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ПоследняяДатаИВремяВхода", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10110. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10111. this._adapter.InsertCommand.Connection = this.Connection;
  10112. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Лаборант] ([ID_Лаборанта], [Логин], [Пароль], [Фамилия], [Имя], [Отчество], [ПоследняяДатаИВремяВхода]) VALUES (@ID_Лаборанта, @Логин, @Пароль, @Фамилия, @Имя, @Отчество, @ПоследняяДатаИВремяВхода);
  10113. SELECT ID_Лаборанта, Логин, Пароль, Фамилия, Имя, Отчество, ПоследняяДатаИВремяВхода FROM Лаборант WHERE (ID_Лаборанта = @ID_Лаборанта)";
  10114. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10115. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Лаборанта", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Лаборанта", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10116. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10117. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10118. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10119. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10120. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10121. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ПоследняяДатаИВремяВхода", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ПоследняяДатаИВремяВхода", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10122. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10123. this._adapter.UpdateCommand.Connection = this.Connection;
  10124. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Лаборант] SET [ID_Лаборанта] = @ID_Лаборанта, [Логин] = @Логин, [Пароль] = @Пароль, [Фамилия] = @Фамилия, [Имя] = @Имя, [Отчество] = @Отчество, [ПоследняяДатаИВремяВхода] = @ПоследняяДатаИВремяВхода WHERE (([ID_Лаборанта] = @Original_ID_Лаборанта) AND ((@IsNull_Логин = 1 AND [Логин] IS NULL) OR ([Логин] = @Original_Логин)) AND ((@IsNull_Пароль = 1 AND [Пароль] IS NULL) OR ([Пароль] = @Original_Пароль)) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)) AND ((@IsNull_Отчество = 1 AND [Отчество] IS NULL) OR ([Отчество] = @Original_Отчество)) AND ((@IsNull_ПоследняяДатаИВремяВхода = 1 AND [ПоследняяДатаИВремяВхода] IS NULL) OR ([ПоследняяДатаИВремяВхода] = @Original_ПоследняяДатаИВремяВхода)));
  10125. SELECT ID_Лаборанта, Логин, Пароль, Фамилия, Имя, Отчество, ПоследняяДатаИВремяВхода FROM Лаборант WHERE (ID_Лаборанта = @ID_Лаборанта)";
  10126. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10127. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Лаборанта", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Лаборанта", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10128. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10129. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10130. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10131. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10132. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10133. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ПоследняяДатаИВремяВхода", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ПоследняяДатаИВремяВхода", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10134. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Лаборанта", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Лаборанта", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10135. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Логин", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10136. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10137. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Пароль", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10138. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10139. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Фамилия", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10140. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10141. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Имя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10142. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10143. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Отчество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10144. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10145. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ПоследняяДатаИВремяВхода", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ПоследняяДатаИВремяВхода", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10146. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ПоследняяДатаИВремяВхода", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ПоследняяДатаИВремяВхода", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10147. }
  10148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10150. private void InitConnection() {
  10151. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10152. this._connection.ConnectionString = global::Laboratoria.Properties.Settings.Default.ИсследованияБиоматериалаConnectionString;
  10153. }
  10154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10156. private void InitCommandCollection() {
  10157. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10158. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10159. this._commandCollection[0].Connection = this.Connection;
  10160. this._commandCollection[0].CommandText = "SELECT ID_Лаборанта, Логин, Пароль, Фамилия, Имя, Отчество, ПоследняяДатаИВремяВх" +
  10161. "ода FROM dbo.Лаборант";
  10162. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10163. }
  10164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10166. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10167. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10168. public virtual int Fill(ИсследованияБиоматериалаDataSet.ЛаборантDataTable dataTable) {
  10169. this.Adapter.SelectCommand = this.CommandCollection[0];
  10170. if ((this.ClearBeforeFill == true)) {
  10171. dataTable.Clear();
  10172. }
  10173. int returnValue = this.Adapter.Fill(dataTable);
  10174. return returnValue;
  10175. }
  10176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10178. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10179. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10180. public virtual ИсследованияБиоматериалаDataSet.ЛаборантDataTable GetData() {
  10181. this.Adapter.SelectCommand = this.CommandCollection[0];
  10182. ИсследованияБиоматериалаDataSet.ЛаборантDataTable dataTable = new ИсследованияБиоматериалаDataSet.ЛаборантDataTable();
  10183. this.Adapter.Fill(dataTable);
  10184. return dataTable;
  10185. }
  10186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10188. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10189. public virtual int Update(ИсследованияБиоматериалаDataSet.ЛаборантDataTable dataTable) {
  10190. return this.Adapter.Update(dataTable);
  10191. }
  10192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10194. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10195. public virtual int Update(ИсследованияБиоматериалаDataSet dataSet) {
  10196. return this.Adapter.Update(dataSet, "Лаборант");
  10197. }
  10198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10200. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10201. public virtual int Update(global::System.Data.DataRow dataRow) {
  10202. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10203. dataRow});
  10204. }
  10205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10207. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10208. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10209. return this.Adapter.Update(dataRows);
  10210. }
  10211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10213. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10214. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10215. public virtual int Delete(long Original_ID_Лаборанта, string Original_Логин, string Original_Пароль, string Original_Фамилия, string Original_Имя, string Original_Отчество, global::System.Nullable<global::System.DateTime> Original_ПоследняяДатаИВремяВхода) {
  10216. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID_Лаборанта));
  10217. if ((Original_Логин == null)) {
  10218. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  10219. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  10220. }
  10221. else {
  10222. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  10223. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Логин));
  10224. }
  10225. if ((Original_Пароль == null)) {
  10226. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  10227. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  10228. }
  10229. else {
  10230. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  10231. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Пароль));
  10232. }
  10233. if ((Original_Фамилия == null)) {
  10234. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  10235. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  10236. }
  10237. else {
  10238. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  10239. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Фамилия));
  10240. }
  10241. if ((Original_Имя == null)) {
  10242. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  10243. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  10244. }
  10245. else {
  10246. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  10247. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Имя));
  10248. }
  10249. if ((Original_Отчество == null)) {
  10250. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  10251. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  10252. }
  10253. else {
  10254. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  10255. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Отчество));
  10256. }
  10257. if ((Original_ПоследняяДатаИВремяВхода.HasValue == true)) {
  10258. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  10259. this.Adapter.DeleteCommand.Parameters[12].Value = ((System.DateTime)(Original_ПоследняяДатаИВремяВхода.Value));
  10260. }
  10261. else {
  10262. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  10263. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  10264. }
  10265. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10266. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10267. != global::System.Data.ConnectionState.Open)) {
  10268. this.Adapter.DeleteCommand.Connection.Open();
  10269. }
  10270. try {
  10271. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10272. return returnValue;
  10273. }
  10274. finally {
  10275. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10276. this.Adapter.DeleteCommand.Connection.Close();
  10277. }
  10278. }
  10279. }
  10280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10282. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10283. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10284. public virtual int Insert(long ID_Лаборанта, string Логин, string Пароль, string Фамилия, string Имя, string Отчество, global::System.Nullable<global::System.DateTime> ПоследняяДатаИВремяВхода) {
  10285. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ID_Лаборанта));
  10286. if ((Логин == null)) {
  10287. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  10288. }
  10289. else {
  10290. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Логин));
  10291. }
  10292. if ((Пароль == null)) {
  10293. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  10294. }
  10295. else {
  10296. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Пароль));
  10297. }
  10298. if ((Фамилия == null)) {
  10299. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  10300. }
  10301. else {
  10302. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Фамилия));
  10303. }
  10304. if ((Имя == null)) {
  10305. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  10306. }
  10307. else {
  10308. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Имя));
  10309. }
  10310. if ((Отчество == null)) {
  10311. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  10312. }
  10313. else {
  10314. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Отчество));
  10315. }
  10316. if ((ПоследняяДатаИВремяВхода.HasValue == true)) {
  10317. this.Adapter.InsertCommand.Parameters[6].Value = ((System.DateTime)(ПоследняяДатаИВремяВхода.Value));
  10318. }
  10319. else {
  10320. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  10321. }
  10322. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10323. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10324. != global::System.Data.ConnectionState.Open)) {
  10325. this.Adapter.InsertCommand.Connection.Open();
  10326. }
  10327. try {
  10328. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10329. return returnValue;
  10330. }
  10331. finally {
  10332. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10333. this.Adapter.InsertCommand.Connection.Close();
  10334. }
  10335. }
  10336. }
  10337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10339. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10340. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10341. public virtual int Update(long ID_Лаборанта, string Логин, string Пароль, string Фамилия, string Имя, string Отчество, global::System.Nullable<global::System.DateTime> ПоследняяДатаИВремяВхода, long Original_ID_Лаборанта, string Original_Логин, string Original_Пароль, string Original_Фамилия, string Original_Имя, string Original_Отчество, global::System.Nullable<global::System.DateTime> Original_ПоследняяДатаИВремяВхода) {
  10342. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ID_Лаборанта));
  10343. if ((Логин == null)) {
  10344. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  10345. }
  10346. else {
  10347. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Логин));
  10348. }
  10349. if ((Пароль == null)) {
  10350. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  10351. }
  10352. else {
  10353. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Пароль));
  10354. }
  10355. if ((Фамилия == null)) {
  10356. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  10357. }
  10358. else {
  10359. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Фамилия));
  10360. }
  10361. if ((Имя == null)) {
  10362. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  10363. }
  10364. else {
  10365. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Имя));
  10366. }
  10367. if ((Отчество == null)) {
  10368. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  10369. }
  10370. else {
  10371. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Отчество));
  10372. }
  10373. if ((ПоследняяДатаИВремяВхода.HasValue == true)) {
  10374. this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(ПоследняяДатаИВремяВхода.Value));
  10375. }
  10376. else {
  10377. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  10378. }
  10379. this.Adapter.UpdateCommand.Parameters[7].Value = ((long)(Original_ID_Лаборанта));
  10380. if ((Original_Логин == null)) {
  10381. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  10382. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  10383. }
  10384. else {
  10385. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  10386. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Логин));
  10387. }
  10388. if ((Original_Пароль == null)) {
  10389. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  10390. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  10391. }
  10392. else {
  10393. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  10394. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Пароль));
  10395. }
  10396. if ((Original_Фамилия == null)) {
  10397. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  10398. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  10399. }
  10400. else {
  10401. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  10402. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Фамилия));
  10403. }
  10404. if ((Original_Имя == null)) {
  10405. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  10406. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  10407. }
  10408. else {
  10409. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  10410. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Имя));
  10411. }
  10412. if ((Original_Отчество == null)) {
  10413. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  10414. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  10415. }
  10416. else {
  10417. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  10418. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Отчество));
  10419. }
  10420. if ((Original_ПоследняяДатаИВремяВхода.HasValue == true)) {
  10421. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  10422. this.Adapter.UpdateCommand.Parameters[19].Value = ((System.DateTime)(Original_ПоследняяДатаИВремяВхода.Value));
  10423. }
  10424. else {
  10425. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  10426. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  10427. }
  10428. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10429. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10430. != global::System.Data.ConnectionState.Open)) {
  10431. this.Adapter.UpdateCommand.Connection.Open();
  10432. }
  10433. try {
  10434. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10435. return returnValue;
  10436. }
  10437. finally {
  10438. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10439. this.Adapter.UpdateCommand.Connection.Close();
  10440. }
  10441. }
  10442. }
  10443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10445. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10446. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10447. public virtual int Update(string Логин, string Пароль, string Фамилия, string Имя, string Отчество, global::System.Nullable<global::System.DateTime> ПоследняяДатаИВремяВхода, long Original_ID_Лаборанта, string Original_Логин, string Original_Пароль, string Original_Фамилия, string Original_Имя, string Original_Отчество, global::System.Nullable<global::System.DateTime> Original_ПоследняяДатаИВремяВхода) {
  10448. return this.Update(Original_ID_Лаборанта, Логин, Пароль, Фамилия, Имя, Отчество, ПоследняяДатаИВремяВхода, Original_ID_Лаборанта, Original_Логин, Original_Пароль, Original_Фамилия, Original_Имя, Original_Отчество, Original_ПоследняяДатаИВремяВхода);
  10449. }
  10450. }
  10451. /// <summary>
  10452. ///Represents the connection and commands used to retrieve and save data.
  10453. ///</summary>
  10454. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10455. [global::System.ComponentModel.ToolboxItem(true)]
  10456. [global::System.ComponentModel.DataObjectAttribute(true)]
  10457. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10458. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10459. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10460. public partial class ОказанныеУслугиTableAdapter : global::System.ComponentModel.Component {
  10461. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10462. private global::System.Data.SqlClient.SqlConnection _connection;
  10463. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10464. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10465. private bool _clearBeforeFill;
  10466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10468. public ОказанныеУслугиTableAdapter() {
  10469. this.ClearBeforeFill = true;
  10470. }
  10471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10473. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10474. get {
  10475. if ((this._adapter == null)) {
  10476. this.InitAdapter();
  10477. }
  10478. return this._adapter;
  10479. }
  10480. }
  10481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10483. internal global::System.Data.SqlClient.SqlConnection Connection {
  10484. get {
  10485. if ((this._connection == null)) {
  10486. this.InitConnection();
  10487. }
  10488. return this._connection;
  10489. }
  10490. set {
  10491. this._connection = value;
  10492. if ((this.Adapter.InsertCommand != null)) {
  10493. this.Adapter.InsertCommand.Connection = value;
  10494. }
  10495. if ((this.Adapter.DeleteCommand != null)) {
  10496. this.Adapter.DeleteCommand.Connection = value;
  10497. }
  10498. if ((this.Adapter.UpdateCommand != null)) {
  10499. this.Adapter.UpdateCommand.Connection = value;
  10500. }
  10501. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10502. if ((this.CommandCollection[i] != null)) {
  10503. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10504. }
  10505. }
  10506. }
  10507. }
  10508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10510. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10511. get {
  10512. return this._transaction;
  10513. }
  10514. set {
  10515. this._transaction = value;
  10516. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10517. this.CommandCollection[i].Transaction = this._transaction;
  10518. }
  10519. if (((this.Adapter != null)
  10520. && (this.Adapter.DeleteCommand != null))) {
  10521. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10522. }
  10523. if (((this.Adapter != null)
  10524. && (this.Adapter.InsertCommand != null))) {
  10525. this.Adapter.InsertCommand.Transaction = this._transaction;
  10526. }
  10527. if (((this.Adapter != null)
  10528. && (this.Adapter.UpdateCommand != null))) {
  10529. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10530. }
  10531. }
  10532. }
  10533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10535. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10536. get {
  10537. if ((this._commandCollection == null)) {
  10538. this.InitCommandCollection();
  10539. }
  10540. return this._commandCollection;
  10541. }
  10542. }
  10543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10545. public bool ClearBeforeFill {
  10546. get {
  10547. return this._clearBeforeFill;
  10548. }
  10549. set {
  10550. this._clearBeforeFill = value;
  10551. }
  10552. }
  10553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10555. private void InitAdapter() {
  10556. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10557. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10558. tableMapping.SourceTable = "Table";
  10559. tableMapping.DataSetTable = "ОказанныеУслуги";
  10560. tableMapping.ColumnMappings.Add("ID_ОказанныхУслуг", "ID_ОказанныхУслуг");
  10561. tableMapping.ColumnMappings.Add("ID_Услуги", "ID_Услуги");
  10562. tableMapping.ColumnMappings.Add("ID_Заказа", "ID_Заказа");
  10563. tableMapping.ColumnMappings.Add("ID_Лаборанта", "ID_Лаборанта");
  10564. tableMapping.ColumnMappings.Add("ID_Анализатора", "ID_Анализатора");
  10565. tableMapping.ColumnMappings.Add("ID_Пациент", "ID_Пациент");
  10566. this._adapter.TableMappings.Add(tableMapping);
  10567. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10568. this._adapter.DeleteCommand.Connection = this.Connection;
  10569. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ОказанныеУслуги] WHERE (([ID_ОказанныхУслуг] = @Original_ID_ОказанныхУслуг) AND ((@IsNull_ID_Услуги = 1 AND [ID_Услуги] IS NULL) OR ([ID_Услуги] = @Original_ID_Услуги)) AND ((@IsNull_ID_Заказа = 1 AND [ID_Заказа] IS NULL) OR ([ID_Заказа] = @Original_ID_Заказа)) AND ((@IsNull_ID_Лаборанта = 1 AND [ID_Лаборанта] IS NULL) OR ([ID_Лаборанта] = @Original_ID_Лаборанта)) AND ((@IsNull_ID_Анализатора = 1 AND [ID_Анализатора] IS NULL) OR ([ID_Анализатора] = @Original_ID_Анализатора)) AND ((@IsNull_ID_Пациент = 1 AND [ID_Пациент] IS NULL) OR ([ID_Пациент] = @Original_ID_Пациент)))";
  10570. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10571. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_ОказанныхУслуг", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_ОказанныхУслуг", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10572. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Услуги", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Услуги", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10573. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Услуги", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10574. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Заказа", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10575. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Заказа", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10576. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Лаборанта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Лаборанта", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10577. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Лаборанта", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Лаборанта", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10578. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Анализатора", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Анализатора", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10579. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Анализатора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Анализатора", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10580. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Пациент", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Пациент", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10581. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Пациент", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Пациент", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10582. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10583. this._adapter.InsertCommand.Connection = this.Connection;
  10584. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ОказанныеУслуги] ([ID_ОказанныхУслуг], [ID_Услуги], [ID_Заказа], [ID_Лаборанта], [ID_Анализатора], [ID_Пациент]) VALUES (@ID_ОказанныхУслуг, @ID_Услуги, @ID_Заказа, @ID_Лаборанта, @ID_Анализатора, @ID_Пациент);
  10585. SELECT ID_ОказанныхУслуг, ID_Услуги, ID_Заказа, ID_Лаборанта, ID_Анализатора, ID_Пациент FROM ОказанныеУслуги WHERE (ID_ОказанныхУслуг = @ID_ОказанныхУслуг)";
  10586. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10587. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_ОказанныхУслуг", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_ОказанныхУслуг", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10588. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Услуги", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10589. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Заказа", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10590. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Лаборанта", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Лаборанта", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10591. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Анализатора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Анализатора", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10592. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Пациент", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Пациент", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10593. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10594. this._adapter.UpdateCommand.Connection = this.Connection;
  10595. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ОказанныеУслуги] SET [ID_ОказанныхУслуг] = @ID_ОказанныхУслуг, [ID_Услуги] = @ID_Услуги, [ID_Заказа] = @ID_Заказа, [ID_Лаборанта] = @ID_Лаборанта, [ID_Анализатора] = @ID_Анализатора, [ID_Пациент] = @ID_Пациент WHERE (([ID_ОказанныхУслуг] = @Original_ID_ОказанныхУслуг) AND ((@IsNull_ID_Услуги = 1 AND [ID_Услуги] IS NULL) OR ([ID_Услуги] = @Original_ID_Услуги)) AND ((@IsNull_ID_Заказа = 1 AND [ID_Заказа] IS NULL) OR ([ID_Заказа] = @Original_ID_Заказа)) AND ((@IsNull_ID_Лаборанта = 1 AND [ID_Лаборанта] IS NULL) OR ([ID_Лаборанта] = @Original_ID_Лаборанта)) AND ((@IsNull_ID_Анализатора = 1 AND [ID_Анализатора] IS NULL) OR ([ID_Анализатора] = @Original_ID_Анализатора)) AND ((@IsNull_ID_Пациент = 1 AND [ID_Пациент] IS NULL) OR ([ID_Пациент] = @Original_ID_Пациент)));
  10596. SELECT ID_ОказанныхУслуг, ID_Услуги, ID_Заказа, ID_Лаборанта, ID_Анализатора, ID_Пациент FROM ОказанныеУслуги WHERE (ID_ОказанныхУслуг = @ID_ОказанныхУслуг)";
  10597. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10598. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_ОказанныхУслуг", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_ОказанныхУслуг", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10599. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Услуги", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10600. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Заказа", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10601. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Лаборанта", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Лаборанта", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10602. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Анализатора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Анализатора", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10603. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Пациент", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Пациент", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10604. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_ОказанныхУслуг", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_ОказанныхУслуг", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10605. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Услуги", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Услуги", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10606. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Услуги", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10607. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Заказа", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10608. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Заказа", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10609. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Лаборанта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Лаборанта", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10610. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Лаборанта", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Лаборанта", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10611. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Анализатора", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Анализатора", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10612. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Анализатора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Анализатора", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10613. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Пациент", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Пациент", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10614. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Пациент", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Пациент", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10615. }
  10616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10618. private void InitConnection() {
  10619. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10620. this._connection.ConnectionString = global::Laboratoria.Properties.Settings.Default.ИсследованияБиоматериалаConnectionString;
  10621. }
  10622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10624. private void InitCommandCollection() {
  10625. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10626. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10627. this._commandCollection[0].Connection = this.Connection;
  10628. this._commandCollection[0].CommandText = "SELECT ID_ОказанныхУслуг, ID_Услуги, ID_Заказа, ID_Лаборанта, ID_Анализатора, ID_" +
  10629. "Пациент FROM dbo.ОказанныеУслуги";
  10630. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10631. }
  10632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10634. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10635. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10636. public virtual int Fill(ИсследованияБиоматериалаDataSet.ОказанныеУслугиDataTable dataTable) {
  10637. this.Adapter.SelectCommand = this.CommandCollection[0];
  10638. if ((this.ClearBeforeFill == true)) {
  10639. dataTable.Clear();
  10640. }
  10641. int returnValue = this.Adapter.Fill(dataTable);
  10642. return returnValue;
  10643. }
  10644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10646. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10647. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10648. public virtual ИсследованияБиоматериалаDataSet.ОказанныеУслугиDataTable GetData() {
  10649. this.Adapter.SelectCommand = this.CommandCollection[0];
  10650. ИсследованияБиоматериалаDataSet.ОказанныеУслугиDataTable dataTable = new ИсследованияБиоматериалаDataSet.ОказанныеУслугиDataTable();
  10651. this.Adapter.Fill(dataTable);
  10652. return dataTable;
  10653. }
  10654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10656. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10657. public virtual int Update(ИсследованияБиоматериалаDataSet.ОказанныеУслугиDataTable dataTable) {
  10658. return this.Adapter.Update(dataTable);
  10659. }
  10660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10662. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10663. public virtual int Update(ИсследованияБиоматериалаDataSet dataSet) {
  10664. return this.Adapter.Update(dataSet, "ОказанныеУслуги");
  10665. }
  10666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10668. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10669. public virtual int Update(global::System.Data.DataRow dataRow) {
  10670. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10671. dataRow});
  10672. }
  10673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10675. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10676. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10677. return this.Adapter.Update(dataRows);
  10678. }
  10679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10681. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10682. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10683. public virtual int Delete(long Original_ID_ОказанныхУслуг, global::System.Nullable<long> Original_ID_Услуги, global::System.Nullable<long> Original_ID_Заказа, global::System.Nullable<long> Original_ID_Лаборанта, global::System.Nullable<long> Original_ID_Анализатора, global::System.Nullable<long> Original_ID_Пациент) {
  10684. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID_ОказанныхУслуг));
  10685. if ((Original_ID_Услуги.HasValue == true)) {
  10686. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  10687. this.Adapter.DeleteCommand.Parameters[2].Value = ((long)(Original_ID_Услуги.Value));
  10688. }
  10689. else {
  10690. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  10691. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  10692. }
  10693. if ((Original_ID_Заказа.HasValue == true)) {
  10694. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  10695. this.Adapter.DeleteCommand.Parameters[4].Value = ((long)(Original_ID_Заказа.Value));
  10696. }
  10697. else {
  10698. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  10699. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  10700. }
  10701. if ((Original_ID_Лаборанта.HasValue == true)) {
  10702. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  10703. this.Adapter.DeleteCommand.Parameters[6].Value = ((long)(Original_ID_Лаборанта.Value));
  10704. }
  10705. else {
  10706. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  10707. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  10708. }
  10709. if ((Original_ID_Анализатора.HasValue == true)) {
  10710. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  10711. this.Adapter.DeleteCommand.Parameters[8].Value = ((long)(Original_ID_Анализатора.Value));
  10712. }
  10713. else {
  10714. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  10715. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  10716. }
  10717. if ((Original_ID_Пациент.HasValue == true)) {
  10718. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  10719. this.Adapter.DeleteCommand.Parameters[10].Value = ((long)(Original_ID_Пациент.Value));
  10720. }
  10721. else {
  10722. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  10723. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  10724. }
  10725. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10726. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10727. != global::System.Data.ConnectionState.Open)) {
  10728. this.Adapter.DeleteCommand.Connection.Open();
  10729. }
  10730. try {
  10731. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10732. return returnValue;
  10733. }
  10734. finally {
  10735. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10736. this.Adapter.DeleteCommand.Connection.Close();
  10737. }
  10738. }
  10739. }
  10740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10742. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10743. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10744. public virtual int Insert(long ID_ОказанныхУслуг, global::System.Nullable<long> ID_Услуги, global::System.Nullable<long> ID_Заказа, global::System.Nullable<long> ID_Лаборанта, global::System.Nullable<long> ID_Анализатора, global::System.Nullable<long> ID_Пациент) {
  10745. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ID_ОказанныхУслуг));
  10746. if ((ID_Услуги.HasValue == true)) {
  10747. this.Adapter.InsertCommand.Parameters[1].Value = ((long)(ID_Услуги.Value));
  10748. }
  10749. else {
  10750. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  10751. }
  10752. if ((ID_Заказа.HasValue == true)) {
  10753. this.Adapter.InsertCommand.Parameters[2].Value = ((long)(ID_Заказа.Value));
  10754. }
  10755. else {
  10756. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  10757. }
  10758. if ((ID_Лаборанта.HasValue == true)) {
  10759. this.Adapter.InsertCommand.Parameters[3].Value = ((long)(ID_Лаборанта.Value));
  10760. }
  10761. else {
  10762. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  10763. }
  10764. if ((ID_Анализатора.HasValue == true)) {
  10765. this.Adapter.InsertCommand.Parameters[4].Value = ((long)(ID_Анализатора.Value));
  10766. }
  10767. else {
  10768. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  10769. }
  10770. if ((ID_Пациент.HasValue == true)) {
  10771. this.Adapter.InsertCommand.Parameters[5].Value = ((long)(ID_Пациент.Value));
  10772. }
  10773. else {
  10774. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  10775. }
  10776. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10777. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10778. != global::System.Data.ConnectionState.Open)) {
  10779. this.Adapter.InsertCommand.Connection.Open();
  10780. }
  10781. try {
  10782. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10783. return returnValue;
  10784. }
  10785. finally {
  10786. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10787. this.Adapter.InsertCommand.Connection.Close();
  10788. }
  10789. }
  10790. }
  10791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10793. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10794. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10795. public virtual int Update(long ID_ОказанныхУслуг, global::System.Nullable<long> ID_Услуги, global::System.Nullable<long> ID_Заказа, global::System.Nullable<long> ID_Лаборанта, global::System.Nullable<long> ID_Анализатора, global::System.Nullable<long> ID_Пациент, long Original_ID_ОказанныхУслуг, global::System.Nullable<long> Original_ID_Услуги, global::System.Nullable<long> Original_ID_Заказа, global::System.Nullable<long> Original_ID_Лаборанта, global::System.Nullable<long> Original_ID_Анализатора, global::System.Nullable<long> Original_ID_Пациент) {
  10796. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ID_ОказанныхУслуг));
  10797. if ((ID_Услуги.HasValue == true)) {
  10798. this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(ID_Услуги.Value));
  10799. }
  10800. else {
  10801. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  10802. }
  10803. if ((ID_Заказа.HasValue == true)) {
  10804. this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(ID_Заказа.Value));
  10805. }
  10806. else {
  10807. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  10808. }
  10809. if ((ID_Лаборанта.HasValue == true)) {
  10810. this.Adapter.UpdateCommand.Parameters[3].Value = ((long)(ID_Лаборанта.Value));
  10811. }
  10812. else {
  10813. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  10814. }
  10815. if ((ID_Анализатора.HasValue == true)) {
  10816. this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(ID_Анализатора.Value));
  10817. }
  10818. else {
  10819. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  10820. }
  10821. if ((ID_Пациент.HasValue == true)) {
  10822. this.Adapter.UpdateCommand.Parameters[5].Value = ((long)(ID_Пациент.Value));
  10823. }
  10824. else {
  10825. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  10826. }
  10827. this.Adapter.UpdateCommand.Parameters[6].Value = ((long)(Original_ID_ОказанныхУслуг));
  10828. if ((Original_ID_Услуги.HasValue == true)) {
  10829. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  10830. this.Adapter.UpdateCommand.Parameters[8].Value = ((long)(Original_ID_Услуги.Value));
  10831. }
  10832. else {
  10833. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  10834. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  10835. }
  10836. if ((Original_ID_Заказа.HasValue == true)) {
  10837. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  10838. this.Adapter.UpdateCommand.Parameters[10].Value = ((long)(Original_ID_Заказа.Value));
  10839. }
  10840. else {
  10841. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  10842. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  10843. }
  10844. if ((Original_ID_Лаборанта.HasValue == true)) {
  10845. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  10846. this.Adapter.UpdateCommand.Parameters[12].Value = ((long)(Original_ID_Лаборанта.Value));
  10847. }
  10848. else {
  10849. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  10850. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  10851. }
  10852. if ((Original_ID_Анализатора.HasValue == true)) {
  10853. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  10854. this.Adapter.UpdateCommand.Parameters[14].Value = ((long)(Original_ID_Анализатора.Value));
  10855. }
  10856. else {
  10857. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  10858. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  10859. }
  10860. if ((Original_ID_Пациент.HasValue == true)) {
  10861. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  10862. this.Adapter.UpdateCommand.Parameters[16].Value = ((long)(Original_ID_Пациент.Value));
  10863. }
  10864. else {
  10865. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  10866. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  10867. }
  10868. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10869. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10870. != global::System.Data.ConnectionState.Open)) {
  10871. this.Adapter.UpdateCommand.Connection.Open();
  10872. }
  10873. try {
  10874. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10875. return returnValue;
  10876. }
  10877. finally {
  10878. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10879. this.Adapter.UpdateCommand.Connection.Close();
  10880. }
  10881. }
  10882. }
  10883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10885. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10886. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10887. public virtual int Update(global::System.Nullable<long> ID_Услуги, global::System.Nullable<long> ID_Заказа, global::System.Nullable<long> ID_Лаборанта, global::System.Nullable<long> ID_Анализатора, global::System.Nullable<long> ID_Пациент, long Original_ID_ОказанныхУслуг, global::System.Nullable<long> Original_ID_Услуги, global::System.Nullable<long> Original_ID_Заказа, global::System.Nullable<long> Original_ID_Лаборанта, global::System.Nullable<long> Original_ID_Анализатора, global::System.Nullable<long> Original_ID_Пациент) {
  10888. return this.Update(Original_ID_ОказанныхУслуг, ID_Услуги, ID_Заказа, ID_Лаборанта, ID_Анализатора, ID_Пациент, Original_ID_ОказанныхУслуг, Original_ID_Услуги, Original_ID_Заказа, Original_ID_Лаборанта, Original_ID_Анализатора, Original_ID_Пациент);
  10889. }
  10890. }
  10891. /// <summary>
  10892. ///Represents the connection and commands used to retrieve and save data.
  10893. ///</summary>
  10894. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10895. [global::System.ComponentModel.ToolboxItem(true)]
  10896. [global::System.ComponentModel.DataObjectAttribute(true)]
  10897. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10898. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10899. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10900. public partial class РаботаАнализатораTableAdapter : global::System.ComponentModel.Component {
  10901. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10902. private global::System.Data.SqlClient.SqlConnection _connection;
  10903. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10904. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10905. private bool _clearBeforeFill;
  10906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10908. public РаботаАнализатораTableAdapter() {
  10909. this.ClearBeforeFill = true;
  10910. }
  10911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10913. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10914. get {
  10915. if ((this._adapter == null)) {
  10916. this.InitAdapter();
  10917. }
  10918. return this._adapter;
  10919. }
  10920. }
  10921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10923. internal global::System.Data.SqlClient.SqlConnection Connection {
  10924. get {
  10925. if ((this._connection == null)) {
  10926. this.InitConnection();
  10927. }
  10928. return this._connection;
  10929. }
  10930. set {
  10931. this._connection = value;
  10932. if ((this.Adapter.InsertCommand != null)) {
  10933. this.Adapter.InsertCommand.Connection = value;
  10934. }
  10935. if ((this.Adapter.DeleteCommand != null)) {
  10936. this.Adapter.DeleteCommand.Connection = value;
  10937. }
  10938. if ((this.Adapter.UpdateCommand != null)) {
  10939. this.Adapter.UpdateCommand.Connection = value;
  10940. }
  10941. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10942. if ((this.CommandCollection[i] != null)) {
  10943. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10944. }
  10945. }
  10946. }
  10947. }
  10948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10950. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10951. get {
  10952. return this._transaction;
  10953. }
  10954. set {
  10955. this._transaction = value;
  10956. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10957. this.CommandCollection[i].Transaction = this._transaction;
  10958. }
  10959. if (((this.Adapter != null)
  10960. && (this.Adapter.DeleteCommand != null))) {
  10961. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10962. }
  10963. if (((this.Adapter != null)
  10964. && (this.Adapter.InsertCommand != null))) {
  10965. this.Adapter.InsertCommand.Transaction = this._transaction;
  10966. }
  10967. if (((this.Adapter != null)
  10968. && (this.Adapter.UpdateCommand != null))) {
  10969. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10970. }
  10971. }
  10972. }
  10973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10975. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10976. get {
  10977. if ((this._commandCollection == null)) {
  10978. this.InitCommandCollection();
  10979. }
  10980. return this._commandCollection;
  10981. }
  10982. }
  10983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10985. public bool ClearBeforeFill {
  10986. get {
  10987. return this._clearBeforeFill;
  10988. }
  10989. set {
  10990. this._clearBeforeFill = value;
  10991. }
  10992. }
  10993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10995. private void InitAdapter() {
  10996. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10997. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10998. tableMapping.SourceTable = "Table";
  10999. tableMapping.DataSetTable = "РаботаАнализатора";
  11000. tableMapping.ColumnMappings.Add("ID_РаботАнализатора", "ID_РаботАнализатора");
  11001. tableMapping.ColumnMappings.Add("ID_Анализатора", "ID_Анализатора");
  11002. tableMapping.ColumnMappings.Add("ID_ОказанныхУслуг", "ID_ОказанныхУслуг");
  11003. tableMapping.ColumnMappings.Add("ДатаИВремяПоступленияЗаказа", "ДатаИВремяПоступленияЗаказа");
  11004. this._adapter.TableMappings.Add(tableMapping);
  11005. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11006. this._adapter.DeleteCommand.Connection = this.Connection;
  11007. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[РаботаАнализатора] WHERE (([ID_РаботАнализатора] = @Original_ID_РаботАнализатора) AND ((@IsNull_ID_Анализатора = 1 AND [ID_Анализатора] IS NULL) OR ([ID_Анализатора] = @Original_ID_Анализатора)) AND ((@IsNull_ID_ОказанныхУслуг = 1 AND [ID_ОказанныхУслуг] IS NULL) OR ([ID_ОказанныхУслуг] = @Original_ID_ОказанныхУслуг)) AND ((@IsNull_ДатаИВремяПоступленияЗаказа = 1 AND [ДатаИВремяПоступленияЗаказа] IS NULL) OR ([ДатаИВремяПоступленияЗаказа] = @Original_ДатаИВремяПоступленияЗаказа)))";
  11008. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11009. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_РаботАнализатора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_РаботАнализатора", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11010. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Анализатора", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Анализатора", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11011. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Анализатора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Анализатора", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11012. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_ОказанныхУслуг", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_ОказанныхУслуг", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11013. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_ОказанныхУслуг", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_ОказанныхУслуг", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11014. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДатаИВремяПоступленияЗаказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаИВремяПоступленияЗаказа", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11015. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаИВремяПоступленияЗаказа", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаИВремяПоступленияЗаказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11016. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11017. this._adapter.InsertCommand.Connection = this.Connection;
  11018. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[РаботаАнализатора] ([ID_РаботАнализатора], [ID_Анализатора], [ID_ОказанныхУслуг], [ДатаИВремяПоступленияЗаказа]) VALUES (@ID_РаботАнализатора, @ID_Анализатора, @ID_ОказанныхУслуг, @ДатаИВремяПоступленияЗаказа);
  11019. SELECT ID_РаботАнализатора, ID_Анализатора, ID_ОказанныхУслуг, ДатаИВремяПоступленияЗаказа FROM РаботаАнализатора WHERE (ID_РаботАнализатора = @ID_РаботАнализатора)";
  11020. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11021. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_РаботАнализатора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_РаботАнализатора", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11022. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Анализатора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Анализатора", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11023. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_ОказанныхУслуг", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_ОказанныхУслуг", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11024. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаИВремяПоступленияЗаказа", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаИВремяПоступленияЗаказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11025. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11026. this._adapter.UpdateCommand.Connection = this.Connection;
  11027. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[РаботаАнализатора] SET [ID_РаботАнализатора] = @ID_РаботАнализатора, [ID_Анализатора] = @ID_Анализатора, [ID_ОказанныхУслуг] = @ID_ОказанныхУслуг, [ДатаИВремяПоступленияЗаказа] = @ДатаИВремяПоступленияЗаказа WHERE (([ID_РаботАнализатора] = @Original_ID_РаботАнализатора) AND ((@IsNull_ID_Анализатора = 1 AND [ID_Анализатора] IS NULL) OR ([ID_Анализатора] = @Original_ID_Анализатора)) AND ((@IsNull_ID_ОказанныхУслуг = 1 AND [ID_ОказанныхУслуг] IS NULL) OR ([ID_ОказанныхУслуг] = @Original_ID_ОказанныхУслуг)) AND ((@IsNull_ДатаИВремяПоступленияЗаказа = 1 AND [ДатаИВремяПоступленияЗаказа] IS NULL) OR ([ДатаИВремяПоступленияЗаказа] = @Original_ДатаИВремяПоступленияЗаказа)));
  11028. SELECT ID_РаботАнализатора, ID_Анализатора, ID_ОказанныхУслуг, ДатаИВремяПоступленияЗаказа FROM РаботаАнализатора WHERE (ID_РаботАнализатора = @ID_РаботАнализатора)";
  11029. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11030. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_РаботАнализатора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_РаботАнализатора", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11031. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Анализатора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Анализатора", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11032. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_ОказанныхУслуг", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_ОказанныхУслуг", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11033. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаИВремяПоступленияЗаказа", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаИВремяПоступленияЗаказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11034. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_РаботАнализатора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_РаботАнализатора", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11035. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Анализатора", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Анализатора", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11036. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Анализатора", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Анализатора", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11037. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_ОказанныхУслуг", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_ОказанныхУслуг", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11038. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_ОказанныхУслуг", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_ОказанныхУслуг", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11039. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДатаИВремяПоступленияЗаказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаИВремяПоступленияЗаказа", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11040. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаИВремяПоступленияЗаказа", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаИВремяПоступленияЗаказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11041. }
  11042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11044. private void InitConnection() {
  11045. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11046. this._connection.ConnectionString = global::Laboratoria.Properties.Settings.Default.ИсследованияБиоматериалаConnectionString;
  11047. }
  11048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11050. private void InitCommandCollection() {
  11051. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11052. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11053. this._commandCollection[0].Connection = this.Connection;
  11054. this._commandCollection[0].CommandText = "SELECT ID_РаботАнализатора, ID_Анализатора, ID_ОказанныхУслуг, ДатаИВремяПоступле" +
  11055. "нияЗаказа FROM dbo.РаботаАнализатора";
  11056. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11057. }
  11058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11060. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11061. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11062. public virtual int Fill(ИсследованияБиоматериалаDataSet.РаботаАнализатораDataTable dataTable) {
  11063. this.Adapter.SelectCommand = this.CommandCollection[0];
  11064. if ((this.ClearBeforeFill == true)) {
  11065. dataTable.Clear();
  11066. }
  11067. int returnValue = this.Adapter.Fill(dataTable);
  11068. return returnValue;
  11069. }
  11070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11072. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11073. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11074. public virtual ИсследованияБиоматериалаDataSet.РаботаАнализатораDataTable GetData() {
  11075. this.Adapter.SelectCommand = this.CommandCollection[0];
  11076. ИсследованияБиоматериалаDataSet.РаботаАнализатораDataTable dataTable = new ИсследованияБиоматериалаDataSet.РаботаАнализатораDataTable();
  11077. this.Adapter.Fill(dataTable);
  11078. return dataTable;
  11079. }
  11080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11082. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11083. public virtual int Update(ИсследованияБиоматериалаDataSet.РаботаАнализатораDataTable dataTable) {
  11084. return this.Adapter.Update(dataTable);
  11085. }
  11086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11088. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11089. public virtual int Update(ИсследованияБиоматериалаDataSet dataSet) {
  11090. return this.Adapter.Update(dataSet, "РаботаАнализатора");
  11091. }
  11092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11094. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11095. public virtual int Update(global::System.Data.DataRow dataRow) {
  11096. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11097. dataRow});
  11098. }
  11099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11101. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11102. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11103. return this.Adapter.Update(dataRows);
  11104. }
  11105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11107. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11108. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11109. public virtual int Delete(long Original_ID_РаботАнализатора, global::System.Nullable<long> Original_ID_Анализатора, global::System.Nullable<long> Original_ID_ОказанныхУслуг, string Original_ДатаИВремяПоступленияЗаказа) {
  11110. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID_РаботАнализатора));
  11111. if ((Original_ID_Анализатора.HasValue == true)) {
  11112. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  11113. this.Adapter.DeleteCommand.Parameters[2].Value = ((long)(Original_ID_Анализатора.Value));
  11114. }
  11115. else {
  11116. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  11117. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  11118. }
  11119. if ((Original_ID_ОказанныхУслуг.HasValue == true)) {
  11120. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  11121. this.Adapter.DeleteCommand.Parameters[4].Value = ((long)(Original_ID_ОказанныхУслуг.Value));
  11122. }
  11123. else {
  11124. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  11125. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  11126. }
  11127. if ((Original_ДатаИВремяПоступленияЗаказа == null)) {
  11128. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  11129. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  11130. }
  11131. else {
  11132. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  11133. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_ДатаИВремяПоступленияЗаказа));
  11134. }
  11135. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11136. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11137. != global::System.Data.ConnectionState.Open)) {
  11138. this.Adapter.DeleteCommand.Connection.Open();
  11139. }
  11140. try {
  11141. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11142. return returnValue;
  11143. }
  11144. finally {
  11145. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11146. this.Adapter.DeleteCommand.Connection.Close();
  11147. }
  11148. }
  11149. }
  11150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11152. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11153. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11154. public virtual int Insert(long ID_РаботАнализатора, global::System.Nullable<long> ID_Анализатора, global::System.Nullable<long> ID_ОказанныхУслуг, string ДатаИВремяПоступленияЗаказа) {
  11155. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ID_РаботАнализатора));
  11156. if ((ID_Анализатора.HasValue == true)) {
  11157. this.Adapter.InsertCommand.Parameters[1].Value = ((long)(ID_Анализатора.Value));
  11158. }
  11159. else {
  11160. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  11161. }
  11162. if ((ID_ОказанныхУслуг.HasValue == true)) {
  11163. this.Adapter.InsertCommand.Parameters[2].Value = ((long)(ID_ОказанныхУслуг.Value));
  11164. }
  11165. else {
  11166. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  11167. }
  11168. if ((ДатаИВремяПоступленияЗаказа == null)) {
  11169. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  11170. }
  11171. else {
  11172. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(ДатаИВремяПоступленияЗаказа));
  11173. }
  11174. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11175. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11176. != global::System.Data.ConnectionState.Open)) {
  11177. this.Adapter.InsertCommand.Connection.Open();
  11178. }
  11179. try {
  11180. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11181. return returnValue;
  11182. }
  11183. finally {
  11184. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11185. this.Adapter.InsertCommand.Connection.Close();
  11186. }
  11187. }
  11188. }
  11189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11191. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11192. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11193. public virtual int Update(long ID_РаботАнализатора, global::System.Nullable<long> ID_Анализатора, global::System.Nullable<long> ID_ОказанныхУслуг, string ДатаИВремяПоступленияЗаказа, long Original_ID_РаботАнализатора, global::System.Nullable<long> Original_ID_Анализатора, global::System.Nullable<long> Original_ID_ОказанныхУслуг, string Original_ДатаИВремяПоступленияЗаказа) {
  11194. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ID_РаботАнализатора));
  11195. if ((ID_Анализатора.HasValue == true)) {
  11196. this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(ID_Анализатора.Value));
  11197. }
  11198. else {
  11199. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  11200. }
  11201. if ((ID_ОказанныхУслуг.HasValue == true)) {
  11202. this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(ID_ОказанныхУслуг.Value));
  11203. }
  11204. else {
  11205. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  11206. }
  11207. if ((ДатаИВремяПоступленияЗаказа == null)) {
  11208. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  11209. }
  11210. else {
  11211. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(ДатаИВремяПоступленияЗаказа));
  11212. }
  11213. this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(Original_ID_РаботАнализатора));
  11214. if ((Original_ID_Анализатора.HasValue == true)) {
  11215. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  11216. this.Adapter.UpdateCommand.Parameters[6].Value = ((long)(Original_ID_Анализатора.Value));
  11217. }
  11218. else {
  11219. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  11220. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  11221. }
  11222. if ((Original_ID_ОказанныхУслуг.HasValue == true)) {
  11223. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  11224. this.Adapter.UpdateCommand.Parameters[8].Value = ((long)(Original_ID_ОказанныхУслуг.Value));
  11225. }
  11226. else {
  11227. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  11228. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  11229. }
  11230. if ((Original_ДатаИВремяПоступленияЗаказа == null)) {
  11231. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  11232. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  11233. }
  11234. else {
  11235. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  11236. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_ДатаИВремяПоступленияЗаказа));
  11237. }
  11238. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11239. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11240. != global::System.Data.ConnectionState.Open)) {
  11241. this.Adapter.UpdateCommand.Connection.Open();
  11242. }
  11243. try {
  11244. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11245. return returnValue;
  11246. }
  11247. finally {
  11248. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11249. this.Adapter.UpdateCommand.Connection.Close();
  11250. }
  11251. }
  11252. }
  11253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11255. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11256. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11257. public virtual int Update(global::System.Nullable<long> ID_Анализатора, global::System.Nullable<long> ID_ОказанныхУслуг, string ДатаИВремяПоступленияЗаказа, long Original_ID_РаботАнализатора, global::System.Nullable<long> Original_ID_Анализатора, global::System.Nullable<long> Original_ID_ОказанныхУслуг, string Original_ДатаИВремяПоступленияЗаказа) {
  11258. return this.Update(Original_ID_РаботАнализатора, ID_Анализатора, ID_ОказанныхУслуг, ДатаИВремяПоступленияЗаказа, Original_ID_РаботАнализатора, Original_ID_Анализатора, Original_ID_ОказанныхУслуг, Original_ДатаИВремяПоступленияЗаказа);
  11259. }
  11260. }
  11261. /// <summary>
  11262. ///Represents the connection and commands used to retrieve and save data.
  11263. ///</summary>
  11264. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11265. [global::System.ComponentModel.ToolboxItem(true)]
  11266. [global::System.ComponentModel.DataObjectAttribute(true)]
  11267. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11268. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11269. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11270. public partial class СтраховаяКомпанияTableAdapter : global::System.ComponentModel.Component {
  11271. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11272. private global::System.Data.SqlClient.SqlConnection _connection;
  11273. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11274. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11275. private bool _clearBeforeFill;
  11276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11278. public СтраховаяКомпанияTableAdapter() {
  11279. this.ClearBeforeFill = true;
  11280. }
  11281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11283. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11284. get {
  11285. if ((this._adapter == null)) {
  11286. this.InitAdapter();
  11287. }
  11288. return this._adapter;
  11289. }
  11290. }
  11291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11293. internal global::System.Data.SqlClient.SqlConnection Connection {
  11294. get {
  11295. if ((this._connection == null)) {
  11296. this.InitConnection();
  11297. }
  11298. return this._connection;
  11299. }
  11300. set {
  11301. this._connection = value;
  11302. if ((this.Adapter.InsertCommand != null)) {
  11303. this.Adapter.InsertCommand.Connection = value;
  11304. }
  11305. if ((this.Adapter.DeleteCommand != null)) {
  11306. this.Adapter.DeleteCommand.Connection = value;
  11307. }
  11308. if ((this.Adapter.UpdateCommand != null)) {
  11309. this.Adapter.UpdateCommand.Connection = value;
  11310. }
  11311. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11312. if ((this.CommandCollection[i] != null)) {
  11313. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11314. }
  11315. }
  11316. }
  11317. }
  11318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11320. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11321. get {
  11322. return this._transaction;
  11323. }
  11324. set {
  11325. this._transaction = value;
  11326. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11327. this.CommandCollection[i].Transaction = this._transaction;
  11328. }
  11329. if (((this.Adapter != null)
  11330. && (this.Adapter.DeleteCommand != null))) {
  11331. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11332. }
  11333. if (((this.Adapter != null)
  11334. && (this.Adapter.InsertCommand != null))) {
  11335. this.Adapter.InsertCommand.Transaction = this._transaction;
  11336. }
  11337. if (((this.Adapter != null)
  11338. && (this.Adapter.UpdateCommand != null))) {
  11339. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11340. }
  11341. }
  11342. }
  11343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11345. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11346. get {
  11347. if ((this._commandCollection == null)) {
  11348. this.InitCommandCollection();
  11349. }
  11350. return this._commandCollection;
  11351. }
  11352. }
  11353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11355. public bool ClearBeforeFill {
  11356. get {
  11357. return this._clearBeforeFill;
  11358. }
  11359. set {
  11360. this._clearBeforeFill = value;
  11361. }
  11362. }
  11363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11365. private void InitAdapter() {
  11366. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11367. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11368. tableMapping.SourceTable = "Table";
  11369. tableMapping.DataSetTable = "СтраховаяКомпания";
  11370. tableMapping.ColumnMappings.Add("ID_Компании", "ID_Компании");
  11371. tableMapping.ColumnMappings.Add("Название", "Название");
  11372. tableMapping.ColumnMappings.Add("Адрес", "Адрес");
  11373. tableMapping.ColumnMappings.Add("ИНН", "ИНН");
  11374. tableMapping.ColumnMappings.Add("PC", "PC");
  11375. tableMapping.ColumnMappings.Add("БИК", "БИК");
  11376. this._adapter.TableMappings.Add(tableMapping);
  11377. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11378. this._adapter.DeleteCommand.Connection = this.Connection;
  11379. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[СтраховаяКомпания] WHERE (([ID_Компании] = @Original_ID_Компании) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Адрес = 1 AND [Адрес] IS NULL) OR ([Адрес] = @Original_Адрес)) AND ((@IsNull_ИНН = 1 AND [ИНН] IS NULL) OR ([ИНН] = @Original_ИНН)) AND ((@IsNull_PC = 1 AND [PC] IS NULL) OR ([PC] = @Original_PC)) AND ((@IsNull_БИК = 1 AND [БИК] IS NULL) OR ([БИК] = @Original_БИК)))";
  11380. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11381. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Компании", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Компании", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11382. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11383. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11384. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Адрес", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Адрес", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11385. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Адрес", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Адрес", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11386. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ИНН", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ИНН", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11387. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ИНН", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ИНН", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11388. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PC", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11389. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11390. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_БИК", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "БИК", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11391. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_БИК", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "БИК", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11392. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11393. this._adapter.InsertCommand.Connection = this.Connection;
  11394. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[СтраховаяКомпания] ([ID_Компании], [Название], [Адрес], [ИНН], [PC], [БИК]) VALUES (@ID_Компании, @Название, @Адрес, @ИНН, @PC, @БИК);
  11395. SELECT ID_Компании, Название, Адрес, ИНН, PC, БИК FROM СтраховаяКомпания WHERE (ID_Компании = @ID_Компании)";
  11396. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11397. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Компании", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Компании", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11398. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11399. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Адрес", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Адрес", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11400. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ИНН", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ИНН", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11401. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11402. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@БИК", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "БИК", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11403. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11404. this._adapter.UpdateCommand.Connection = this.Connection;
  11405. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[СтраховаяКомпания] SET [ID_Компании] = @ID_Компании, [Название] = @Название, [Адрес] = @Адрес, [ИНН] = @ИНН, [PC] = @PC, [БИК] = @БИК WHERE (([ID_Компании] = @Original_ID_Компании) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Адрес = 1 AND [Адрес] IS NULL) OR ([Адрес] = @Original_Адрес)) AND ((@IsNull_ИНН = 1 AND [ИНН] IS NULL) OR ([ИНН] = @Original_ИНН)) AND ((@IsNull_PC = 1 AND [PC] IS NULL) OR ([PC] = @Original_PC)) AND ((@IsNull_БИК = 1 AND [БИК] IS NULL) OR ([БИК] = @Original_БИК)));
  11406. SELECT ID_Компании, Название, Адрес, ИНН, PC, БИК FROM СтраховаяКомпания WHERE (ID_Компании = @ID_Компании)";
  11407. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11408. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Компании", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Компании", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11409. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11410. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Адрес", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Адрес", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11411. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ИНН", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ИНН", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11412. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11413. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@БИК", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "БИК", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11414. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Компании", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Компании", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11415. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11416. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11417. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Адрес", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Адрес", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11418. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Адрес", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Адрес", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11419. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ИНН", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ИНН", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11420. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ИНН", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ИНН", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11421. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PC", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11422. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11423. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_БИК", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "БИК", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11424. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_БИК", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "БИК", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11425. }
  11426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11428. private void InitConnection() {
  11429. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11430. this._connection.ConnectionString = global::Laboratoria.Properties.Settings.Default.ИсследованияБиоматериалаConnectionString;
  11431. }
  11432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11434. private void InitCommandCollection() {
  11435. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11436. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11437. this._commandCollection[0].Connection = this.Connection;
  11438. this._commandCollection[0].CommandText = "SELECT ID_Компании, Название, Адрес, ИНН, PC, БИК FROM dbo.СтраховаяКомпания";
  11439. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11440. }
  11441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11443. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11444. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11445. public virtual int Fill(ИсследованияБиоматериалаDataSet.СтраховаяКомпанияDataTable dataTable) {
  11446. this.Adapter.SelectCommand = this.CommandCollection[0];
  11447. if ((this.ClearBeforeFill == true)) {
  11448. dataTable.Clear();
  11449. }
  11450. int returnValue = this.Adapter.Fill(dataTable);
  11451. return returnValue;
  11452. }
  11453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11455. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11456. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11457. public virtual ИсследованияБиоматериалаDataSet.СтраховаяКомпанияDataTable GetData() {
  11458. this.Adapter.SelectCommand = this.CommandCollection[0];
  11459. ИсследованияБиоматериалаDataSet.СтраховаяКомпанияDataTable dataTable = new ИсследованияБиоматериалаDataSet.СтраховаяКомпанияDataTable();
  11460. this.Adapter.Fill(dataTable);
  11461. return dataTable;
  11462. }
  11463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11465. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11466. public virtual int Update(ИсследованияБиоматериалаDataSet.СтраховаяКомпанияDataTable dataTable) {
  11467. return this.Adapter.Update(dataTable);
  11468. }
  11469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11471. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11472. public virtual int Update(ИсследованияБиоматериалаDataSet dataSet) {
  11473. return this.Adapter.Update(dataSet, "СтраховаяКомпания");
  11474. }
  11475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11477. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11478. public virtual int Update(global::System.Data.DataRow dataRow) {
  11479. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11480. dataRow});
  11481. }
  11482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11484. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11485. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11486. return this.Adapter.Update(dataRows);
  11487. }
  11488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11490. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11491. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11492. public virtual int Delete(long Original_ID_Компании, string Original_Название, string Original_Адрес, global::System.Nullable<int> Original_ИНН, string Original_PC, string Original_БИК) {
  11493. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID_Компании));
  11494. if ((Original_Название == null)) {
  11495. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  11496. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  11497. }
  11498. else {
  11499. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  11500. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название));
  11501. }
  11502. if ((Original_Адрес == null)) {
  11503. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  11504. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  11505. }
  11506. else {
  11507. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  11508. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Адрес));
  11509. }
  11510. if ((Original_ИНН.HasValue == true)) {
  11511. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  11512. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_ИНН.Value));
  11513. }
  11514. else {
  11515. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  11516. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  11517. }
  11518. if ((Original_PC == null)) {
  11519. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  11520. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  11521. }
  11522. else {
  11523. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  11524. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_PC));
  11525. }
  11526. if ((Original_БИК == null)) {
  11527. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  11528. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  11529. }
  11530. else {
  11531. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  11532. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_БИК));
  11533. }
  11534. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11535. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11536. != global::System.Data.ConnectionState.Open)) {
  11537. this.Adapter.DeleteCommand.Connection.Open();
  11538. }
  11539. try {
  11540. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11541. return returnValue;
  11542. }
  11543. finally {
  11544. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11545. this.Adapter.DeleteCommand.Connection.Close();
  11546. }
  11547. }
  11548. }
  11549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11551. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11552. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11553. public virtual int Insert(long ID_Компании, string Название, string Адрес, global::System.Nullable<int> ИНН, string PC, string БИК) {
  11554. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ID_Компании));
  11555. if ((Название == null)) {
  11556. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  11557. }
  11558. else {
  11559. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Название));
  11560. }
  11561. if ((Адрес == null)) {
  11562. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  11563. }
  11564. else {
  11565. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Адрес));
  11566. }
  11567. if ((ИНН.HasValue == true)) {
  11568. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(ИНН.Value));
  11569. }
  11570. else {
  11571. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  11572. }
  11573. if ((PC == null)) {
  11574. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  11575. }
  11576. else {
  11577. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(PC));
  11578. }
  11579. if ((БИК == null)) {
  11580. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  11581. }
  11582. else {
  11583. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(БИК));
  11584. }
  11585. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11586. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11587. != global::System.Data.ConnectionState.Open)) {
  11588. this.Adapter.InsertCommand.Connection.Open();
  11589. }
  11590. try {
  11591. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11592. return returnValue;
  11593. }
  11594. finally {
  11595. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11596. this.Adapter.InsertCommand.Connection.Close();
  11597. }
  11598. }
  11599. }
  11600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11602. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11603. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11604. public virtual int Update(long ID_Компании, string Название, string Адрес, global::System.Nullable<int> ИНН, string PC, string БИК, long Original_ID_Компании, string Original_Название, string Original_Адрес, global::System.Nullable<int> Original_ИНН, string Original_PC, string Original_БИК) {
  11605. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ID_Компании));
  11606. if ((Название == null)) {
  11607. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  11608. }
  11609. else {
  11610. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Название));
  11611. }
  11612. if ((Адрес == null)) {
  11613. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  11614. }
  11615. else {
  11616. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Адрес));
  11617. }
  11618. if ((ИНН.HasValue == true)) {
  11619. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ИНН.Value));
  11620. }
  11621. else {
  11622. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  11623. }
  11624. if ((PC == null)) {
  11625. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  11626. }
  11627. else {
  11628. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(PC));
  11629. }
  11630. if ((БИК == null)) {
  11631. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  11632. }
  11633. else {
  11634. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(БИК));
  11635. }
  11636. this.Adapter.UpdateCommand.Parameters[6].Value = ((long)(Original_ID_Компании));
  11637. if ((Original_Название == null)) {
  11638. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  11639. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  11640. }
  11641. else {
  11642. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  11643. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Название));
  11644. }
  11645. if ((Original_Адрес == null)) {
  11646. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  11647. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  11648. }
  11649. else {
  11650. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  11651. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Адрес));
  11652. }
  11653. if ((Original_ИНН.HasValue == true)) {
  11654. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  11655. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_ИНН.Value));
  11656. }
  11657. else {
  11658. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  11659. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  11660. }
  11661. if ((Original_PC == null)) {
  11662. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  11663. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  11664. }
  11665. else {
  11666. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  11667. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_PC));
  11668. }
  11669. if ((Original_БИК == null)) {
  11670. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  11671. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  11672. }
  11673. else {
  11674. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  11675. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_БИК));
  11676. }
  11677. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11678. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11679. != global::System.Data.ConnectionState.Open)) {
  11680. this.Adapter.UpdateCommand.Connection.Open();
  11681. }
  11682. try {
  11683. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11684. return returnValue;
  11685. }
  11686. finally {
  11687. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11688. this.Adapter.UpdateCommand.Connection.Close();
  11689. }
  11690. }
  11691. }
  11692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11694. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11695. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11696. public virtual int Update(string Название, string Адрес, global::System.Nullable<int> ИНН, string PC, string БИК, long Original_ID_Компании, string Original_Название, string Original_Адрес, global::System.Nullable<int> Original_ИНН, string Original_PC, string Original_БИК) {
  11697. return this.Update(Original_ID_Компании, Название, Адрес, ИНН, PC, БИК, Original_ID_Компании, Original_Название, Original_Адрес, Original_ИНН, Original_PC, Original_БИК);
  11698. }
  11699. }
  11700. /// <summary>
  11701. ///Represents the connection and commands used to retrieve and save data.
  11702. ///</summary>
  11703. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11704. [global::System.ComponentModel.ToolboxItem(true)]
  11705. [global::System.ComponentModel.DataObjectAttribute(true)]
  11706. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11707. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11708. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11709. public partial class СчетаTableAdapter : global::System.ComponentModel.Component {
  11710. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11711. private global::System.Data.SqlClient.SqlConnection _connection;
  11712. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11713. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11714. private bool _clearBeforeFill;
  11715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11717. public СчетаTableAdapter() {
  11718. this.ClearBeforeFill = true;
  11719. }
  11720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11722. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11723. get {
  11724. if ((this._adapter == null)) {
  11725. this.InitAdapter();
  11726. }
  11727. return this._adapter;
  11728. }
  11729. }
  11730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11732. internal global::System.Data.SqlClient.SqlConnection Connection {
  11733. get {
  11734. if ((this._connection == null)) {
  11735. this.InitConnection();
  11736. }
  11737. return this._connection;
  11738. }
  11739. set {
  11740. this._connection = value;
  11741. if ((this.Adapter.InsertCommand != null)) {
  11742. this.Adapter.InsertCommand.Connection = value;
  11743. }
  11744. if ((this.Adapter.DeleteCommand != null)) {
  11745. this.Adapter.DeleteCommand.Connection = value;
  11746. }
  11747. if ((this.Adapter.UpdateCommand != null)) {
  11748. this.Adapter.UpdateCommand.Connection = value;
  11749. }
  11750. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11751. if ((this.CommandCollection[i] != null)) {
  11752. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11753. }
  11754. }
  11755. }
  11756. }
  11757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11759. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11760. get {
  11761. return this._transaction;
  11762. }
  11763. set {
  11764. this._transaction = value;
  11765. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11766. this.CommandCollection[i].Transaction = this._transaction;
  11767. }
  11768. if (((this.Adapter != null)
  11769. && (this.Adapter.DeleteCommand != null))) {
  11770. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11771. }
  11772. if (((this.Adapter != null)
  11773. && (this.Adapter.InsertCommand != null))) {
  11774. this.Adapter.InsertCommand.Transaction = this._transaction;
  11775. }
  11776. if (((this.Adapter != null)
  11777. && (this.Adapter.UpdateCommand != null))) {
  11778. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11779. }
  11780. }
  11781. }
  11782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11784. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11785. get {
  11786. if ((this._commandCollection == null)) {
  11787. this.InitCommandCollection();
  11788. }
  11789. return this._commandCollection;
  11790. }
  11791. }
  11792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11794. public bool ClearBeforeFill {
  11795. get {
  11796. return this._clearBeforeFill;
  11797. }
  11798. set {
  11799. this._clearBeforeFill = value;
  11800. }
  11801. }
  11802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11804. private void InitAdapter() {
  11805. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11806. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11807. tableMapping.SourceTable = "Table";
  11808. tableMapping.DataSetTable = "Счета";
  11809. tableMapping.ColumnMappings.Add("ID_Счета", "ID_Счета");
  11810. tableMapping.ColumnMappings.Add("ID_Бухгалтера", "ID_Бухгалтера");
  11811. tableMapping.ColumnMappings.Add("ID_Компании", "ID_Компании");
  11812. tableMapping.ColumnMappings.Add("Сумма", "Сумма");
  11813. this._adapter.TableMappings.Add(tableMapping);
  11814. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11815. this._adapter.DeleteCommand.Connection = this.Connection;
  11816. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Счета] WHERE (([ID_Счета] = @Original_ID_Счета) AND ((@IsNull_ID_Бухгалтера = 1 AND [ID_Бухгалтера] IS NULL) OR ([ID_Бухгалтера] = @Original_ID_Бухгалтера)) AND ((@IsNull_ID_Компании = 1 AND [ID_Компании] IS NULL) OR ([ID_Компании] = @Original_ID_Компании)) AND ((@IsNull_Сумма = 1 AND [Сумма] IS NULL) OR ([Сумма] = @Original_Сумма)))";
  11817. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11818. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Счета", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Счета", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11819. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Бухгалтера", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Бухгалтера", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11820. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Бухгалтера", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Бухгалтера", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11821. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Компании", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Компании", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11822. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Компании", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Компании", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11823. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Сумма", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сумма", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11824. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Сумма", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сумма", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11825. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11826. this._adapter.InsertCommand.Connection = this.Connection;
  11827. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Счета] ([ID_Счета], [ID_Бухгалтера], [ID_Компании], [Сумма]) V" +
  11828. "ALUES (@ID_Счета, @ID_Бухгалтера, @ID_Компании, @Сумма);\r\nSELECT ID_Счета, ID_Бу" +
  11829. "хгалтера, ID_Компании, Сумма FROM Счета WHERE (ID_Счета = @ID_Счета)";
  11830. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11831. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Счета", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Счета", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11832. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Бухгалтера", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Бухгалтера", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11833. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Компании", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Компании", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11834. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Сумма", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сумма", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11835. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11836. this._adapter.UpdateCommand.Connection = this.Connection;
  11837. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Счета] SET [ID_Счета] = @ID_Счета, [ID_Бухгалтера] = @ID_Бухгалтера, [ID_Компании] = @ID_Компании, [Сумма] = @Сумма WHERE (([ID_Счета] = @Original_ID_Счета) AND ((@IsNull_ID_Бухгалтера = 1 AND [ID_Бухгалтера] IS NULL) OR ([ID_Бухгалтера] = @Original_ID_Бухгалтера)) AND ((@IsNull_ID_Компании = 1 AND [ID_Компании] IS NULL) OR ([ID_Компании] = @Original_ID_Компании)) AND ((@IsNull_Сумма = 1 AND [Сумма] IS NULL) OR ([Сумма] = @Original_Сумма)));
  11838. SELECT ID_Счета, ID_Бухгалтера, ID_Компании, Сумма FROM Счета WHERE (ID_Счета = @ID_Счета)";
  11839. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11840. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Счета", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Счета", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11841. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Бухгалтера", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Бухгалтера", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11842. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Компании", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Компании", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11843. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Сумма", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сумма", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11844. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Счета", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Счета", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11845. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Бухгалтера", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Бухгалтера", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11846. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Бухгалтера", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Бухгалтера", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11847. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Компании", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Компании", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11848. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Компании", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Компании", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11849. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Сумма", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сумма", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11850. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Сумма", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сумма", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11851. }
  11852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11854. private void InitConnection() {
  11855. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11856. this._connection.ConnectionString = global::Laboratoria.Properties.Settings.Default.ИсследованияБиоматериалаConnectionString;
  11857. }
  11858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11860. private void InitCommandCollection() {
  11861. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11862. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11863. this._commandCollection[0].Connection = this.Connection;
  11864. this._commandCollection[0].CommandText = "SELECT ID_Счета, ID_Бухгалтера, ID_Компании, Сумма FROM dbo.Счета";
  11865. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11866. }
  11867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11869. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11870. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11871. public virtual int Fill(ИсследованияБиоматериалаDataSet.СчетаDataTable dataTable) {
  11872. this.Adapter.SelectCommand = this.CommandCollection[0];
  11873. if ((this.ClearBeforeFill == true)) {
  11874. dataTable.Clear();
  11875. }
  11876. int returnValue = this.Adapter.Fill(dataTable);
  11877. return returnValue;
  11878. }
  11879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11881. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11882. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11883. public virtual ИсследованияБиоматериалаDataSet.СчетаDataTable GetData() {
  11884. this.Adapter.SelectCommand = this.CommandCollection[0];
  11885. ИсследованияБиоматериалаDataSet.СчетаDataTable dataTable = new ИсследованияБиоматериалаDataSet.СчетаDataTable();
  11886. this.Adapter.Fill(dataTable);
  11887. return dataTable;
  11888. }
  11889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11891. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11892. public virtual int Update(ИсследованияБиоматериалаDataSet.СчетаDataTable dataTable) {
  11893. return this.Adapter.Update(dataTable);
  11894. }
  11895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11897. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11898. public virtual int Update(ИсследованияБиоматериалаDataSet dataSet) {
  11899. return this.Adapter.Update(dataSet, "Счета");
  11900. }
  11901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11903. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11904. public virtual int Update(global::System.Data.DataRow dataRow) {
  11905. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11906. dataRow});
  11907. }
  11908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11910. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11911. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11912. return this.Adapter.Update(dataRows);
  11913. }
  11914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11916. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11917. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11918. public virtual int Delete(long Original_ID_Счета, global::System.Nullable<long> Original_ID_Бухгалтера, global::System.Nullable<long> Original_ID_Компании, global::System.Nullable<decimal> Original_Сумма) {
  11919. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID_Счета));
  11920. if ((Original_ID_Бухгалтера.HasValue == true)) {
  11921. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  11922. this.Adapter.DeleteCommand.Parameters[2].Value = ((long)(Original_ID_Бухгалтера.Value));
  11923. }
  11924. else {
  11925. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  11926. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  11927. }
  11928. if ((Original_ID_Компании.HasValue == true)) {
  11929. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  11930. this.Adapter.DeleteCommand.Parameters[4].Value = ((long)(Original_ID_Компании.Value));
  11931. }
  11932. else {
  11933. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  11934. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  11935. }
  11936. if ((Original_Сумма.HasValue == true)) {
  11937. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  11938. this.Adapter.DeleteCommand.Parameters[6].Value = ((decimal)(Original_Сумма.Value));
  11939. }
  11940. else {
  11941. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  11942. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  11943. }
  11944. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11945. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11946. != global::System.Data.ConnectionState.Open)) {
  11947. this.Adapter.DeleteCommand.Connection.Open();
  11948. }
  11949. try {
  11950. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11951. return returnValue;
  11952. }
  11953. finally {
  11954. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11955. this.Adapter.DeleteCommand.Connection.Close();
  11956. }
  11957. }
  11958. }
  11959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11961. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11962. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11963. public virtual int Insert(long ID_Счета, global::System.Nullable<long> ID_Бухгалтера, global::System.Nullable<long> ID_Компании, global::System.Nullable<decimal> Сумма) {
  11964. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ID_Счета));
  11965. if ((ID_Бухгалтера.HasValue == true)) {
  11966. this.Adapter.InsertCommand.Parameters[1].Value = ((long)(ID_Бухгалтера.Value));
  11967. }
  11968. else {
  11969. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  11970. }
  11971. if ((ID_Компании.HasValue == true)) {
  11972. this.Adapter.InsertCommand.Parameters[2].Value = ((long)(ID_Компании.Value));
  11973. }
  11974. else {
  11975. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  11976. }
  11977. if ((Сумма.HasValue == true)) {
  11978. this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(Сумма.Value));
  11979. }
  11980. else {
  11981. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  11982. }
  11983. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11984. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11985. != global::System.Data.ConnectionState.Open)) {
  11986. this.Adapter.InsertCommand.Connection.Open();
  11987. }
  11988. try {
  11989. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11990. return returnValue;
  11991. }
  11992. finally {
  11993. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11994. this.Adapter.InsertCommand.Connection.Close();
  11995. }
  11996. }
  11997. }
  11998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12000. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12001. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12002. public virtual int Update(long ID_Счета, global::System.Nullable<long> ID_Бухгалтера, global::System.Nullable<long> ID_Компании, global::System.Nullable<decimal> Сумма, long Original_ID_Счета, global::System.Nullable<long> Original_ID_Бухгалтера, global::System.Nullable<long> Original_ID_Компании, global::System.Nullable<decimal> Original_Сумма) {
  12003. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ID_Счета));
  12004. if ((ID_Бухгалтера.HasValue == true)) {
  12005. this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(ID_Бухгалтера.Value));
  12006. }
  12007. else {
  12008. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  12009. }
  12010. if ((ID_Компании.HasValue == true)) {
  12011. this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(ID_Компании.Value));
  12012. }
  12013. else {
  12014. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  12015. }
  12016. if ((Сумма.HasValue == true)) {
  12017. this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(Сумма.Value));
  12018. }
  12019. else {
  12020. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  12021. }
  12022. this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(Original_ID_Счета));
  12023. if ((Original_ID_Бухгалтера.HasValue == true)) {
  12024. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  12025. this.Adapter.UpdateCommand.Parameters[6].Value = ((long)(Original_ID_Бухгалтера.Value));
  12026. }
  12027. else {
  12028. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  12029. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  12030. }
  12031. if ((Original_ID_Компании.HasValue == true)) {
  12032. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  12033. this.Adapter.UpdateCommand.Parameters[8].Value = ((long)(Original_ID_Компании.Value));
  12034. }
  12035. else {
  12036. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  12037. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  12038. }
  12039. if ((Original_Сумма.HasValue == true)) {
  12040. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  12041. this.Adapter.UpdateCommand.Parameters[10].Value = ((decimal)(Original_Сумма.Value));
  12042. }
  12043. else {
  12044. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  12045. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  12046. }
  12047. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  12048. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12049. != global::System.Data.ConnectionState.Open)) {
  12050. this.Adapter.UpdateCommand.Connection.Open();
  12051. }
  12052. try {
  12053. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  12054. return returnValue;
  12055. }
  12056. finally {
  12057. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12058. this.Adapter.UpdateCommand.Connection.Close();
  12059. }
  12060. }
  12061. }
  12062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12064. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12065. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12066. public virtual int Update(global::System.Nullable<long> ID_Бухгалтера, global::System.Nullable<long> ID_Компании, global::System.Nullable<decimal> Сумма, long Original_ID_Счета, global::System.Nullable<long> Original_ID_Бухгалтера, global::System.Nullable<long> Original_ID_Компании, global::System.Nullable<decimal> Original_Сумма) {
  12067. return this.Update(Original_ID_Счета, ID_Бухгалтера, ID_Компании, Сумма, Original_ID_Счета, Original_ID_Бухгалтера, Original_ID_Компании, Original_Сумма);
  12068. }
  12069. }
  12070. /// <summary>
  12071. ///Represents the connection and commands used to retrieve and save data.
  12072. ///</summary>
  12073. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  12074. [global::System.ComponentModel.ToolboxItem(true)]
  12075. [global::System.ComponentModel.DataObjectAttribute(true)]
  12076. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  12077. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  12078. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12079. public partial class УслугиЛабораторииTableAdapter : global::System.ComponentModel.Component {
  12080. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  12081. private global::System.Data.SqlClient.SqlConnection _connection;
  12082. private global::System.Data.SqlClient.SqlTransaction _transaction;
  12083. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  12084. private bool _clearBeforeFill;
  12085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12087. public УслугиЛабораторииTableAdapter() {
  12088. this.ClearBeforeFill = true;
  12089. }
  12090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12092. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  12093. get {
  12094. if ((this._adapter == null)) {
  12095. this.InitAdapter();
  12096. }
  12097. return this._adapter;
  12098. }
  12099. }
  12100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12102. internal global::System.Data.SqlClient.SqlConnection Connection {
  12103. get {
  12104. if ((this._connection == null)) {
  12105. this.InitConnection();
  12106. }
  12107. return this._connection;
  12108. }
  12109. set {
  12110. this._connection = value;
  12111. if ((this.Adapter.InsertCommand != null)) {
  12112. this.Adapter.InsertCommand.Connection = value;
  12113. }
  12114. if ((this.Adapter.DeleteCommand != null)) {
  12115. this.Adapter.DeleteCommand.Connection = value;
  12116. }
  12117. if ((this.Adapter.UpdateCommand != null)) {
  12118. this.Adapter.UpdateCommand.Connection = value;
  12119. }
  12120. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12121. if ((this.CommandCollection[i] != null)) {
  12122. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  12123. }
  12124. }
  12125. }
  12126. }
  12127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12129. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  12130. get {
  12131. return this._transaction;
  12132. }
  12133. set {
  12134. this._transaction = value;
  12135. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12136. this.CommandCollection[i].Transaction = this._transaction;
  12137. }
  12138. if (((this.Adapter != null)
  12139. && (this.Adapter.DeleteCommand != null))) {
  12140. this.Adapter.DeleteCommand.Transaction = this._transaction;
  12141. }
  12142. if (((this.Adapter != null)
  12143. && (this.Adapter.InsertCommand != null))) {
  12144. this.Adapter.InsertCommand.Transaction = this._transaction;
  12145. }
  12146. if (((this.Adapter != null)
  12147. && (this.Adapter.UpdateCommand != null))) {
  12148. this.Adapter.UpdateCommand.Transaction = this._transaction;
  12149. }
  12150. }
  12151. }
  12152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12154. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  12155. get {
  12156. if ((this._commandCollection == null)) {
  12157. this.InitCommandCollection();
  12158. }
  12159. return this._commandCollection;
  12160. }
  12161. }
  12162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12164. public bool ClearBeforeFill {
  12165. get {
  12166. return this._clearBeforeFill;
  12167. }
  12168. set {
  12169. this._clearBeforeFill = value;
  12170. }
  12171. }
  12172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12174. private void InitAdapter() {
  12175. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  12176. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  12177. tableMapping.SourceTable = "Table";
  12178. tableMapping.DataSetTable = "УслугиЛаборатории";
  12179. tableMapping.ColumnMappings.Add("ID_Услуги", "ID_Услуги");
  12180. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  12181. tableMapping.ColumnMappings.Add("Стоимость", "Стоимость");
  12182. tableMapping.ColumnMappings.Add("СрокВыполнения", "СрокВыполнения");
  12183. tableMapping.ColumnMappings.Add("СреднееОтклонение", "СреднееОтклонение");
  12184. this._adapter.TableMappings.Add(tableMapping);
  12185. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  12186. this._adapter.DeleteCommand.Connection = this.Connection;
  12187. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[УслугиЛаборатории] WHERE (([ID_Услуги] = @Original_ID_Услуги) AND ((@IsNull_Наименование = 1 AND [Наименование] IS NULL) OR ([Наименование] = @Original_Наименование)) AND ((@IsNull_Стоимость = 1 AND [Стоимость] IS NULL) OR ([Стоимость] = @Original_Стоимость)) AND ((@IsNull_СрокВыполнения = 1 AND [СрокВыполнения] IS NULL) OR ([СрокВыполнения] = @Original_СрокВыполнения)) AND ((@IsNull_СреднееОтклонение = 1 AND [СреднееОтклонение] IS NULL) OR ([СреднееОтклонение] = @Original_СреднееОтклонение)))";
  12188. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  12189. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Услуги", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12190. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Наименование", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12191. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12192. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Стоимость", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12193. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12194. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_СрокВыполнения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СрокВыполнения", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12195. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_СрокВыполнения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СрокВыполнения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12196. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_СреднееОтклонение", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СреднееОтклонение", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12197. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_СреднееОтклонение", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СреднееОтклонение", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12198. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  12199. this._adapter.InsertCommand.Connection = this.Connection;
  12200. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[УслугиЛаборатории] ([ID_Услуги], [Наименование], [Стоимость], [СрокВыполнения], [СреднееОтклонение]) VALUES (@ID_Услуги, @Наименование, @Стоимость, @СрокВыполнения, @СреднееОтклонение);
  12201. SELECT ID_Услуги, Наименование, Стоимость, СрокВыполнения, СреднееОтклонение FROM УслугиЛаборатории WHERE (ID_Услуги = @ID_Услуги)";
  12202. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  12203. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Услуги", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12204. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12205. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12206. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@СрокВыполнения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СрокВыполнения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12207. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@СреднееОтклонение", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СреднееОтклонение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12208. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  12209. this._adapter.UpdateCommand.Connection = this.Connection;
  12210. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[УслугиЛаборатории] SET [ID_Услуги] = @ID_Услуги, [Наименование] = @Наименование, [Стоимость] = @Стоимость, [СрокВыполнения] = @СрокВыполнения, [СреднееОтклонение] = @СреднееОтклонение WHERE (([ID_Услуги] = @Original_ID_Услуги) AND ((@IsNull_Наименование = 1 AND [Наименование] IS NULL) OR ([Наименование] = @Original_Наименование)) AND ((@IsNull_Стоимость = 1 AND [Стоимость] IS NULL) OR ([Стоимость] = @Original_Стоимость)) AND ((@IsNull_СрокВыполнения = 1 AND [СрокВыполнения] IS NULL) OR ([СрокВыполнения] = @Original_СрокВыполнения)) AND ((@IsNull_СреднееОтклонение = 1 AND [СреднееОтклонение] IS NULL) OR ([СреднееОтклонение] = @Original_СреднееОтклонение)));
  12211. SELECT ID_Услуги, Наименование, Стоимость, СрокВыполнения, СреднееОтклонение FROM УслугиЛаборатории WHERE (ID_Услуги = @ID_Услуги)";
  12212. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  12213. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Услуги", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12214. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12215. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12216. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@СрокВыполнения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СрокВыполнения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12217. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@СреднееОтклонение", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СреднееОтклонение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12218. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Услуги", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12219. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Наименование", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12220. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12221. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Стоимость", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12222. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12223. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_СрокВыполнения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СрокВыполнения", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12224. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_СрокВыполнения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СрокВыполнения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12225. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_СреднееОтклонение", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СреднееОтклонение", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12226. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_СреднееОтклонение", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СреднееОтклонение", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12227. }
  12228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12230. private void InitConnection() {
  12231. this._connection = new global::System.Data.SqlClient.SqlConnection();
  12232. this._connection.ConnectionString = global::Laboratoria.Properties.Settings.Default.ИсследованияБиоматериалаConnectionString;
  12233. }
  12234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12236. private void InitCommandCollection() {
  12237. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  12238. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  12239. this._commandCollection[0].Connection = this.Connection;
  12240. this._commandCollection[0].CommandText = "SELECT ID_Услуги, Наименование, Стоимость, СрокВыполнения, СреднееОтклонение FROM" +
  12241. " dbo.УслугиЛаборатории";
  12242. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  12243. }
  12244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12246. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12247. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  12248. public virtual int Fill(ИсследованияБиоматериалаDataSet.УслугиЛабораторииDataTable dataTable) {
  12249. this.Adapter.SelectCommand = this.CommandCollection[0];
  12250. if ((this.ClearBeforeFill == true)) {
  12251. dataTable.Clear();
  12252. }
  12253. int returnValue = this.Adapter.Fill(dataTable);
  12254. return returnValue;
  12255. }
  12256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12258. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12259. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  12260. public virtual ИсследованияБиоматериалаDataSet.УслугиЛабораторииDataTable GetData() {
  12261. this.Adapter.SelectCommand = this.CommandCollection[0];
  12262. ИсследованияБиоматериалаDataSet.УслугиЛабораторииDataTable dataTable = new ИсследованияБиоматериалаDataSet.УслугиЛабораторииDataTable();
  12263. this.Adapter.Fill(dataTable);
  12264. return dataTable;
  12265. }
  12266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12268. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12269. public virtual int Update(ИсследованияБиоматериалаDataSet.УслугиЛабораторииDataTable dataTable) {
  12270. return this.Adapter.Update(dataTable);
  12271. }
  12272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12274. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12275. public virtual int Update(ИсследованияБиоматериалаDataSet dataSet) {
  12276. return this.Adapter.Update(dataSet, "УслугиЛаборатории");
  12277. }
  12278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12280. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12281. public virtual int Update(global::System.Data.DataRow dataRow) {
  12282. return this.Adapter.Update(new global::System.Data.DataRow[] {
  12283. dataRow});
  12284. }
  12285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12287. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12288. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  12289. return this.Adapter.Update(dataRows);
  12290. }
  12291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12293. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12294. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  12295. public virtual int Delete(long Original_ID_Услуги, string Original_Наименование, global::System.Nullable<decimal> Original_Стоимость, global::System.Nullable<global::System.DateTime> Original_СрокВыполнения, global::System.Nullable<decimal> Original_СреднееОтклонение) {
  12296. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID_Услуги));
  12297. if ((Original_Наименование == null)) {
  12298. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  12299. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  12300. }
  12301. else {
  12302. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  12303. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Наименование));
  12304. }
  12305. if ((Original_Стоимость.HasValue == true)) {
  12306. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  12307. this.Adapter.DeleteCommand.Parameters[4].Value = ((decimal)(Original_Стоимость.Value));
  12308. }
  12309. else {
  12310. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  12311. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  12312. }
  12313. if ((Original_СрокВыполнения.HasValue == true)) {
  12314. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  12315. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_СрокВыполнения.Value));
  12316. }
  12317. else {
  12318. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  12319. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  12320. }
  12321. if ((Original_СреднееОтклонение.HasValue == true)) {
  12322. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  12323. this.Adapter.DeleteCommand.Parameters[8].Value = ((decimal)(Original_СреднееОтклонение.Value));
  12324. }
  12325. else {
  12326. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  12327. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  12328. }
  12329. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  12330. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12331. != global::System.Data.ConnectionState.Open)) {
  12332. this.Adapter.DeleteCommand.Connection.Open();
  12333. }
  12334. try {
  12335. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  12336. return returnValue;
  12337. }
  12338. finally {
  12339. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12340. this.Adapter.DeleteCommand.Connection.Close();
  12341. }
  12342. }
  12343. }
  12344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12346. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12347. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  12348. public virtual int Insert(long ID_Услуги, string Наименование, global::System.Nullable<decimal> Стоимость, global::System.Nullable<global::System.DateTime> СрокВыполнения, global::System.Nullable<decimal> СреднееОтклонение) {
  12349. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ID_Услуги));
  12350. if ((Наименование == null)) {
  12351. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  12352. }
  12353. else {
  12354. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  12355. }
  12356. if ((Стоимость.HasValue == true)) {
  12357. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(Стоимость.Value));
  12358. }
  12359. else {
  12360. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  12361. }
  12362. if ((СрокВыполнения.HasValue == true)) {
  12363. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(СрокВыполнения.Value));
  12364. }
  12365. else {
  12366. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  12367. }
  12368. if ((СреднееОтклонение.HasValue == true)) {
  12369. this.Adapter.InsertCommand.Parameters[4].Value = ((decimal)(СреднееОтклонение.Value));
  12370. }
  12371. else {
  12372. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  12373. }
  12374. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  12375. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12376. != global::System.Data.ConnectionState.Open)) {
  12377. this.Adapter.InsertCommand.Connection.Open();
  12378. }
  12379. try {
  12380. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  12381. return returnValue;
  12382. }
  12383. finally {
  12384. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12385. this.Adapter.InsertCommand.Connection.Close();
  12386. }
  12387. }
  12388. }
  12389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12391. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12392. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12393. public virtual int Update(long ID_Услуги, string Наименование, global::System.Nullable<decimal> Стоимость, global::System.Nullable<global::System.DateTime> СрокВыполнения, global::System.Nullable<decimal> СреднееОтклонение, long Original_ID_Услуги, string Original_Наименование, global::System.Nullable<decimal> Original_Стоимость, global::System.Nullable<global::System.DateTime> Original_СрокВыполнения, global::System.Nullable<decimal> Original_СреднееОтклонение) {
  12394. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ID_Услуги));
  12395. if ((Наименование == null)) {
  12396. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  12397. }
  12398. else {
  12399. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование));
  12400. }
  12401. if ((Стоимость.HasValue == true)) {
  12402. this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(Стоимость.Value));
  12403. }
  12404. else {
  12405. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  12406. }
  12407. if ((СрокВыполнения.HasValue == true)) {
  12408. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(СрокВыполнения.Value));
  12409. }
  12410. else {
  12411. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  12412. }
  12413. if ((СреднееОтклонение.HasValue == true)) {
  12414. this.Adapter.UpdateCommand.Parameters[4].Value = ((decimal)(СреднееОтклонение.Value));
  12415. }
  12416. else {
  12417. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  12418. }
  12419. this.Adapter.UpdateCommand.Parameters[5].Value = ((long)(Original_ID_Услуги));
  12420. if ((Original_Наименование == null)) {
  12421. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  12422. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  12423. }
  12424. else {
  12425. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  12426. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Наименование));
  12427. }
  12428. if ((Original_Стоимость.HasValue == true)) {
  12429. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  12430. this.Adapter.UpdateCommand.Parameters[9].Value = ((decimal)(Original_Стоимость.Value));
  12431. }
  12432. else {
  12433. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  12434. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  12435. }
  12436. if ((Original_СрокВыполнения.HasValue == true)) {
  12437. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  12438. this.Adapter.UpdateCommand.Parameters[11].Value = ((System.DateTime)(Original_СрокВыполнения.Value));
  12439. }
  12440. else {
  12441. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  12442. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  12443. }
  12444. if ((Original_СреднееОтклонение.HasValue == true)) {
  12445. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  12446. this.Adapter.UpdateCommand.Parameters[13].Value = ((decimal)(Original_СреднееОтклонение.Value));
  12447. }
  12448. else {
  12449. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  12450. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  12451. }
  12452. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  12453. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12454. != global::System.Data.ConnectionState.Open)) {
  12455. this.Adapter.UpdateCommand.Connection.Open();
  12456. }
  12457. try {
  12458. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  12459. return returnValue;
  12460. }
  12461. finally {
  12462. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12463. this.Adapter.UpdateCommand.Connection.Close();
  12464. }
  12465. }
  12466. }
  12467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12469. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12470. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12471. public virtual int Update(string Наименование, global::System.Nullable<decimal> Стоимость, global::System.Nullable<global::System.DateTime> СрокВыполнения, global::System.Nullable<decimal> СреднееОтклонение, long Original_ID_Услуги, string Original_Наименование, global::System.Nullable<decimal> Original_Стоимость, global::System.Nullable<global::System.DateTime> Original_СрокВыполнения, global::System.Nullable<decimal> Original_СреднееОтклонение) {
  12472. return this.Update(Original_ID_Услуги, Наименование, Стоимость, СрокВыполнения, СреднееОтклонение, Original_ID_Услуги, Original_Наименование, Original_Стоимость, Original_СрокВыполнения, Original_СреднееОтклонение);
  12473. }
  12474. }
  12475. /// <summary>
  12476. ///Represents the connection and commands used to retrieve and save data.
  12477. ///</summary>
  12478. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  12479. [global::System.ComponentModel.ToolboxItem(true)]
  12480. [global::System.ComponentModel.DataObjectAttribute(true)]
  12481. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  12482. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  12483. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12484. public partial class отчётTableAdapter : global::System.ComponentModel.Component {
  12485. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  12486. private global::System.Data.SqlClient.SqlConnection _connection;
  12487. private global::System.Data.SqlClient.SqlTransaction _transaction;
  12488. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  12489. private bool _clearBeforeFill;
  12490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12492. public отчётTableAdapter() {
  12493. this.ClearBeforeFill = true;
  12494. }
  12495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12497. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  12498. get {
  12499. if ((this._adapter == null)) {
  12500. this.InitAdapter();
  12501. }
  12502. return this._adapter;
  12503. }
  12504. }
  12505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12507. internal global::System.Data.SqlClient.SqlConnection Connection {
  12508. get {
  12509. if ((this._connection == null)) {
  12510. this.InitConnection();
  12511. }
  12512. return this._connection;
  12513. }
  12514. set {
  12515. this._connection = value;
  12516. if ((this.Adapter.InsertCommand != null)) {
  12517. this.Adapter.InsertCommand.Connection = value;
  12518. }
  12519. if ((this.Adapter.DeleteCommand != null)) {
  12520. this.Adapter.DeleteCommand.Connection = value;
  12521. }
  12522. if ((this.Adapter.UpdateCommand != null)) {
  12523. this.Adapter.UpdateCommand.Connection = value;
  12524. }
  12525. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12526. if ((this.CommandCollection[i] != null)) {
  12527. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  12528. }
  12529. }
  12530. }
  12531. }
  12532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12534. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  12535. get {
  12536. return this._transaction;
  12537. }
  12538. set {
  12539. this._transaction = value;
  12540. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12541. this.CommandCollection[i].Transaction = this._transaction;
  12542. }
  12543. if (((this.Adapter != null)
  12544. && (this.Adapter.DeleteCommand != null))) {
  12545. this.Adapter.DeleteCommand.Transaction = this._transaction;
  12546. }
  12547. if (((this.Adapter != null)
  12548. && (this.Adapter.InsertCommand != null))) {
  12549. this.Adapter.InsertCommand.Transaction = this._transaction;
  12550. }
  12551. if (((this.Adapter != null)
  12552. && (this.Adapter.UpdateCommand != null))) {
  12553. this.Adapter.UpdateCommand.Transaction = this._transaction;
  12554. }
  12555. }
  12556. }
  12557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12559. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  12560. get {
  12561. if ((this._commandCollection == null)) {
  12562. this.InitCommandCollection();
  12563. }
  12564. return this._commandCollection;
  12565. }
  12566. }
  12567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12569. public bool ClearBeforeFill {
  12570. get {
  12571. return this._clearBeforeFill;
  12572. }
  12573. set {
  12574. this._clearBeforeFill = value;
  12575. }
  12576. }
  12577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12579. private void InitAdapter() {
  12580. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  12581. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  12582. tableMapping.SourceTable = "Table";
  12583. tableMapping.DataSetTable = "отчёт";
  12584. tableMapping.ColumnMappings.Add("ID_Пациент", "ID_Пациент");
  12585. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  12586. tableMapping.ColumnMappings.Add("Имя", "Имя");
  12587. tableMapping.ColumnMappings.Add("ДатаРождения", "ДатаРождения");
  12588. tableMapping.ColumnMappings.Add("ID_Компании", "ID_Компании");
  12589. tableMapping.ColumnMappings.Add("ID_Лаборанта", "ID_Лаборанта");
  12590. tableMapping.ColumnMappings.Add("ID_Услуги", "ID_Услуги");
  12591. tableMapping.ColumnMappings.Add("ID_Заказа", "ID_Заказа");
  12592. this._adapter.TableMappings.Add(tableMapping);
  12593. }
  12594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12596. private void InitConnection() {
  12597. this._connection = new global::System.Data.SqlClient.SqlConnection();
  12598. this._connection.ConnectionString = global::Laboratoria.Properties.Settings.Default.ИсследованияБиоматериалаConnectionString;
  12599. }
  12600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12602. private void InitCommandCollection() {
  12603. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  12604. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  12605. this._commandCollection[0].Connection = this.Connection;
  12606. this._commandCollection[0].CommandText = "SELECT ID_Пациент, Фамилия, Имя, ДатаРождения, ID_Компании, ID_Лаборанта, ID_Услу" +
  12607. "ги, ID_Заказа FROM dbo.отчёт";
  12608. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  12609. }
  12610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12612. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12613. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  12614. public virtual int Fill(ИсследованияБиоматериалаDataSet.отчётDataTable dataTable) {
  12615. this.Adapter.SelectCommand = this.CommandCollection[0];
  12616. if ((this.ClearBeforeFill == true)) {
  12617. dataTable.Clear();
  12618. }
  12619. int returnValue = this.Adapter.Fill(dataTable);
  12620. return returnValue;
  12621. }
  12622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12624. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12625. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  12626. public virtual ИсследованияБиоматериалаDataSet.отчётDataTable GetData() {
  12627. this.Adapter.SelectCommand = this.CommandCollection[0];
  12628. ИсследованияБиоматериалаDataSet.отчётDataTable dataTable = new ИсследованияБиоматериалаDataSet.отчётDataTable();
  12629. this.Adapter.Fill(dataTable);
  12630. return dataTable;
  12631. }
  12632. }
  12633. /// <summary>
  12634. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  12635. ///</summary>
  12636. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  12637. [global::System.ComponentModel.ToolboxItem(true)]
  12638. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  12639. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  12640. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  12641. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  12642. private UpdateOrderOption _updateOrder;
  12643. private services___копияTableAdapter _services___копияTableAdapter;
  12644. private users___копияTableAdapter _users___копияTableAdapter;
  12645. private АдминистраторTableAdapter _администраторTableAdapter;
  12646. private АнализаторTableAdapter _анализаторTableAdapter;
  12647. private БухгалтерTableAdapter _бухгалтерTableAdapter;
  12648. private ДанныеПациентовTableAdapter _данныеПациентовTableAdapter;
  12649. private ЗаказTableAdapter _заказTableAdapter;
  12650. private ЛаборантTableAdapter _лаборантTableAdapter;
  12651. private ОказанныеУслугиTableAdapter _оказанныеУслугиTableAdapter;
  12652. private РаботаАнализатораTableAdapter _работаАнализатораTableAdapter;
  12653. private СтраховаяКомпанияTableAdapter _страховаяКомпанияTableAdapter;
  12654. private СчетаTableAdapter _счетаTableAdapter;
  12655. private УслугиЛабораторииTableAdapter _услугиЛабораторииTableAdapter;
  12656. private bool _backupDataSetBeforeUpdate;
  12657. private global::System.Data.IDbConnection _connection;
  12658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12660. public UpdateOrderOption UpdateOrder {
  12661. get {
  12662. return this._updateOrder;
  12663. }
  12664. set {
  12665. this._updateOrder = value;
  12666. }
  12667. }
  12668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12670. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12671. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12672. "a", "System.Drawing.Design.UITypeEditor")]
  12673. public services___копияTableAdapter services___копияTableAdapter {
  12674. get {
  12675. return this._services___копияTableAdapter;
  12676. }
  12677. set {
  12678. this._services___копияTableAdapter = value;
  12679. }
  12680. }
  12681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12683. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12684. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12685. "a", "System.Drawing.Design.UITypeEditor")]
  12686. public users___копияTableAdapter users___копияTableAdapter {
  12687. get {
  12688. return this._users___копияTableAdapter;
  12689. }
  12690. set {
  12691. this._users___копияTableAdapter = value;
  12692. }
  12693. }
  12694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12696. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12697. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12698. "a", "System.Drawing.Design.UITypeEditor")]
  12699. public АдминистраторTableAdapter АдминистраторTableAdapter {
  12700. get {
  12701. return this._администраторTableAdapter;
  12702. }
  12703. set {
  12704. this._администраторTableAdapter = value;
  12705. }
  12706. }
  12707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12709. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12710. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12711. "a", "System.Drawing.Design.UITypeEditor")]
  12712. public АнализаторTableAdapter АнализаторTableAdapter {
  12713. get {
  12714. return this._анализаторTableAdapter;
  12715. }
  12716. set {
  12717. this._анализаторTableAdapter = value;
  12718. }
  12719. }
  12720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12722. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12723. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12724. "a", "System.Drawing.Design.UITypeEditor")]
  12725. public БухгалтерTableAdapter БухгалтерTableAdapter {
  12726. get {
  12727. return this._бухгалтерTableAdapter;
  12728. }
  12729. set {
  12730. this._бухгалтерTableAdapter = value;
  12731. }
  12732. }
  12733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12735. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12736. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12737. "a", "System.Drawing.Design.UITypeEditor")]
  12738. public ДанныеПациентовTableAdapter ДанныеПациентовTableAdapter {
  12739. get {
  12740. return this._данныеПациентовTableAdapter;
  12741. }
  12742. set {
  12743. this._данныеПациентовTableAdapter = value;
  12744. }
  12745. }
  12746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12748. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12749. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12750. "a", "System.Drawing.Design.UITypeEditor")]
  12751. public ЗаказTableAdapter ЗаказTableAdapter {
  12752. get {
  12753. return this._заказTableAdapter;
  12754. }
  12755. set {
  12756. this._заказTableAdapter = value;
  12757. }
  12758. }
  12759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12761. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12762. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12763. "a", "System.Drawing.Design.UITypeEditor")]
  12764. public ЛаборантTableAdapter ЛаборантTableAdapter {
  12765. get {
  12766. return this._лаборантTableAdapter;
  12767. }
  12768. set {
  12769. this._лаборантTableAdapter = value;
  12770. }
  12771. }
  12772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12774. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12775. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12776. "a", "System.Drawing.Design.UITypeEditor")]
  12777. public ОказанныеУслугиTableAdapter ОказанныеУслугиTableAdapter {
  12778. get {
  12779. return this._оказанныеУслугиTableAdapter;
  12780. }
  12781. set {
  12782. this._оказанныеУслугиTableAdapter = value;
  12783. }
  12784. }
  12785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12787. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12788. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12789. "a", "System.Drawing.Design.UITypeEditor")]
  12790. public РаботаАнализатораTableAdapter РаботаАнализатораTableAdapter {
  12791. get {
  12792. return this._работаАнализатораTableAdapter;
  12793. }
  12794. set {
  12795. this._работаАнализатораTableAdapter = value;
  12796. }
  12797. }
  12798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12800. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12801. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12802. "a", "System.Drawing.Design.UITypeEditor")]
  12803. public СтраховаяКомпанияTableAdapter СтраховаяКомпанияTableAdapter {
  12804. get {
  12805. return this._страховаяКомпанияTableAdapter;
  12806. }
  12807. set {
  12808. this._страховаяКомпанияTableAdapter = value;
  12809. }
  12810. }
  12811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12813. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12814. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12815. "a", "System.Drawing.Design.UITypeEditor")]
  12816. public СчетаTableAdapter СчетаTableAdapter {
  12817. get {
  12818. return this._счетаTableAdapter;
  12819. }
  12820. set {
  12821. this._счетаTableAdapter = value;
  12822. }
  12823. }
  12824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12826. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12827. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12828. "a", "System.Drawing.Design.UITypeEditor")]
  12829. public УслугиЛабораторииTableAdapter УслугиЛабораторииTableAdapter {
  12830. get {
  12831. return this._услугиЛабораторииTableAdapter;
  12832. }
  12833. set {
  12834. this._услугиЛабораторииTableAdapter = value;
  12835. }
  12836. }
  12837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12839. public bool BackupDataSetBeforeUpdate {
  12840. get {
  12841. return this._backupDataSetBeforeUpdate;
  12842. }
  12843. set {
  12844. this._backupDataSetBeforeUpdate = value;
  12845. }
  12846. }
  12847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12849. [global::System.ComponentModel.Browsable(false)]
  12850. public global::System.Data.IDbConnection Connection {
  12851. get {
  12852. if ((this._connection != null)) {
  12853. return this._connection;
  12854. }
  12855. if (((this._services___копияTableAdapter != null)
  12856. && (this._services___копияTableAdapter.Connection != null))) {
  12857. return this._services___копияTableAdapter.Connection;
  12858. }
  12859. if (((this._users___копияTableAdapter != null)
  12860. && (this._users___копияTableAdapter.Connection != null))) {
  12861. return this._users___копияTableAdapter.Connection;
  12862. }
  12863. if (((this._администраторTableAdapter != null)
  12864. && (this._администраторTableAdapter.Connection != null))) {
  12865. return this._администраторTableAdapter.Connection;
  12866. }
  12867. if (((this._анализаторTableAdapter != null)
  12868. && (this._анализаторTableAdapter.Connection != null))) {
  12869. return this._анализаторTableAdapter.Connection;
  12870. }
  12871. if (((this._бухгалтерTableAdapter != null)
  12872. && (this._бухгалтерTableAdapter.Connection != null))) {
  12873. return this._бухгалтерTableAdapter.Connection;
  12874. }
  12875. if (((this._данныеПациентовTableAdapter != null)
  12876. && (this._данныеПациентовTableAdapter.Connection != null))) {
  12877. return this._данныеПациентовTableAdapter.Connection;
  12878. }
  12879. if (((this._заказTableAdapter != null)
  12880. && (this._заказTableAdapter.Connection != null))) {
  12881. return this._заказTableAdapter.Connection;
  12882. }
  12883. if (((this._лаборантTableAdapter != null)
  12884. && (this._лаборантTableAdapter.Connection != null))) {
  12885. return this._лаборантTableAdapter.Connection;
  12886. }
  12887. if (((this._оказанныеУслугиTableAdapter != null)
  12888. && (this._оказанныеУслугиTableAdapter.Connection != null))) {
  12889. return this._оказанныеУслугиTableAdapter.Connection;
  12890. }
  12891. if (((this._работаАнализатораTableAdapter != null)
  12892. && (this._работаАнализатораTableAdapter.Connection != null))) {
  12893. return this._работаАнализатораTableAdapter.Connection;
  12894. }
  12895. if (((this._страховаяКомпанияTableAdapter != null)
  12896. && (this._страховаяКомпанияTableAdapter.Connection != null))) {
  12897. return this._страховаяКомпанияTableAdapter.Connection;
  12898. }
  12899. if (((this._счетаTableAdapter != null)
  12900. && (this._счетаTableAdapter.Connection != null))) {
  12901. return this._счетаTableAdapter.Connection;
  12902. }
  12903. if (((this._услугиЛабораторииTableAdapter != null)
  12904. && (this._услугиЛабораторииTableAdapter.Connection != null))) {
  12905. return this._услугиЛабораторииTableAdapter.Connection;
  12906. }
  12907. return null;
  12908. }
  12909. set {
  12910. this._connection = value;
  12911. }
  12912. }
  12913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12915. [global::System.ComponentModel.Browsable(false)]
  12916. public int TableAdapterInstanceCount {
  12917. get {
  12918. int count = 0;
  12919. if ((this._services___копияTableAdapter != null)) {
  12920. count = (count + 1);
  12921. }
  12922. if ((this._users___копияTableAdapter != null)) {
  12923. count = (count + 1);
  12924. }
  12925. if ((this._администраторTableAdapter != null)) {
  12926. count = (count + 1);
  12927. }
  12928. if ((this._анализаторTableAdapter != null)) {
  12929. count = (count + 1);
  12930. }
  12931. if ((this._бухгалтерTableAdapter != null)) {
  12932. count = (count + 1);
  12933. }
  12934. if ((this._данныеПациентовTableAdapter != null)) {
  12935. count = (count + 1);
  12936. }
  12937. if ((this._заказTableAdapter != null)) {
  12938. count = (count + 1);
  12939. }
  12940. if ((this._лаборантTableAdapter != null)) {
  12941. count = (count + 1);
  12942. }
  12943. if ((this._оказанныеУслугиTableAdapter != null)) {
  12944. count = (count + 1);
  12945. }
  12946. if ((this._работаАнализатораTableAdapter != null)) {
  12947. count = (count + 1);
  12948. }
  12949. if ((this._страховаяКомпанияTableAdapter != null)) {
  12950. count = (count + 1);
  12951. }
  12952. if ((this._счетаTableAdapter != null)) {
  12953. count = (count + 1);
  12954. }
  12955. if ((this._услугиЛабораторииTableAdapter != null)) {
  12956. count = (count + 1);
  12957. }
  12958. return count;
  12959. }
  12960. }
  12961. /// <summary>
  12962. ///Update rows in top-down order.
  12963. ///</summary>
  12964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12966. private int UpdateUpdatedRows(ИсследованияБиоматериалаDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  12967. int result = 0;
  12968. if ((this._услугиЛабораторииTableAdapter != null)) {
  12969. global::System.Data.DataRow[] updatedRows = dataSet.УслугиЛаборатории.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12970. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12971. if (((updatedRows != null)
  12972. && (0 < updatedRows.Length))) {
  12973. result = (result + this._услугиЛабораторииTableAdapter.Update(updatedRows));
  12974. allChangedRows.AddRange(updatedRows);
  12975. }
  12976. }
  12977. if ((this._бухгалтерTableAdapter != null)) {
  12978. global::System.Data.DataRow[] updatedRows = dataSet.Бухгалтер.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12979. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12980. if (((updatedRows != null)
  12981. && (0 < updatedRows.Length))) {
  12982. result = (result + this._бухгалтерTableAdapter.Update(updatedRows));
  12983. allChangedRows.AddRange(updatedRows);
  12984. }
  12985. }
  12986. if ((this._страховаяКомпанияTableAdapter != null)) {
  12987. global::System.Data.DataRow[] updatedRows = dataSet.СтраховаяКомпания.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12988. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12989. if (((updatedRows != null)
  12990. && (0 < updatedRows.Length))) {
  12991. result = (result + this._страховаяКомпанияTableAdapter.Update(updatedRows));
  12992. allChangedRows.AddRange(updatedRows);
  12993. }
  12994. }
  12995. if ((this._счетаTableAdapter != null)) {
  12996. global::System.Data.DataRow[] updatedRows = dataSet.Счета.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12997. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12998. if (((updatedRows != null)
  12999. && (0 < updatedRows.Length))) {
  13000. result = (result + this._счетаTableAdapter.Update(updatedRows));
  13001. allChangedRows.AddRange(updatedRows);
  13002. }
  13003. }
  13004. if ((this._анализаторTableAdapter != null)) {
  13005. global::System.Data.DataRow[] updatedRows = dataSet.Анализатор.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13006. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13007. if (((updatedRows != null)
  13008. && (0 < updatedRows.Length))) {
  13009. result = (result + this._анализаторTableAdapter.Update(updatedRows));
  13010. allChangedRows.AddRange(updatedRows);
  13011. }
  13012. }
  13013. if ((this._данныеПациентовTableAdapter != null)) {
  13014. global::System.Data.DataRow[] updatedRows = dataSet.ДанныеПациентов.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13015. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13016. if (((updatedRows != null)
  13017. && (0 < updatedRows.Length))) {
  13018. result = (result + this._данныеПациентовTableAdapter.Update(updatedRows));
  13019. allChangedRows.AddRange(updatedRows);
  13020. }
  13021. }
  13022. if ((this._заказTableAdapter != null)) {
  13023. global::System.Data.DataRow[] updatedRows = dataSet.Заказ.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13024. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13025. if (((updatedRows != null)
  13026. && (0 < updatedRows.Length))) {
  13027. result = (result + this._заказTableAdapter.Update(updatedRows));
  13028. allChangedRows.AddRange(updatedRows);
  13029. }
  13030. }
  13031. if ((this._лаборантTableAdapter != null)) {
  13032. global::System.Data.DataRow[] updatedRows = dataSet.Лаборант.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13033. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13034. if (((updatedRows != null)
  13035. && (0 < updatedRows.Length))) {
  13036. result = (result + this._лаборантTableAdapter.Update(updatedRows));
  13037. allChangedRows.AddRange(updatedRows);
  13038. }
  13039. }
  13040. if ((this._оказанныеУслугиTableAdapter != null)) {
  13041. global::System.Data.DataRow[] updatedRows = dataSet.ОказанныеУслуги.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13042. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13043. if (((updatedRows != null)
  13044. && (0 < updatedRows.Length))) {
  13045. result = (result + this._оказанныеУслугиTableAdapter.Update(updatedRows));
  13046. allChangedRows.AddRange(updatedRows);
  13047. }
  13048. }
  13049. if ((this._services___копияTableAdapter != null)) {
  13050. global::System.Data.DataRow[] updatedRows = dataSet._services___копия.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13051. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13052. if (((updatedRows != null)
  13053. && (0 < updatedRows.Length))) {
  13054. result = (result + this._services___копияTableAdapter.Update(updatedRows));
  13055. allChangedRows.AddRange(updatedRows);
  13056. }
  13057. }
  13058. if ((this._users___копияTableAdapter != null)) {
  13059. global::System.Data.DataRow[] updatedRows = dataSet._users___копия.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13060. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13061. if (((updatedRows != null)
  13062. && (0 < updatedRows.Length))) {
  13063. result = (result + this._users___копияTableAdapter.Update(updatedRows));
  13064. allChangedRows.AddRange(updatedRows);
  13065. }
  13066. }
  13067. if ((this._администраторTableAdapter != null)) {
  13068. global::System.Data.DataRow[] updatedRows = dataSet.Администратор.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13069. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13070. if (((updatedRows != null)
  13071. && (0 < updatedRows.Length))) {
  13072. result = (result + this._администраторTableAdapter.Update(updatedRows));
  13073. allChangedRows.AddRange(updatedRows);
  13074. }
  13075. }
  13076. if ((this._работаАнализатораTableAdapter != null)) {
  13077. global::System.Data.DataRow[] updatedRows = dataSet.РаботаАнализатора.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13078. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13079. if (((updatedRows != null)
  13080. && (0 < updatedRows.Length))) {
  13081. result = (result + this._работаАнализатораTableAdapter.Update(updatedRows));
  13082. allChangedRows.AddRange(updatedRows);
  13083. }
  13084. }
  13085. return result;
  13086. }
  13087. /// <summary>
  13088. ///Insert rows in top-down order.
  13089. ///</summary>
  13090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13092. private int UpdateInsertedRows(ИсследованияБиоматериалаDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  13093. int result = 0;
  13094. if ((this._услугиЛабораторииTableAdapter != null)) {
  13095. global::System.Data.DataRow[] addedRows = dataSet.УслугиЛаборатории.Select(null, null, global::System.Data.DataViewRowState.Added);
  13096. if (((addedRows != null)
  13097. && (0 < addedRows.Length))) {
  13098. result = (result + this._услугиЛабораторииTableAdapter.Update(addedRows));
  13099. allAddedRows.AddRange(addedRows);
  13100. }
  13101. }
  13102. if ((this._бухгалтерTableAdapter != null)) {
  13103. global::System.Data.DataRow[] addedRows = dataSet.Бухгалтер.Select(null, null, global::System.Data.DataViewRowState.Added);
  13104. if (((addedRows != null)
  13105. && (0 < addedRows.Length))) {
  13106. result = (result + this._бухгалтерTableAdapter.Update(addedRows));
  13107. allAddedRows.AddRange(addedRows);
  13108. }
  13109. }
  13110. if ((this._страховаяКомпанияTableAdapter != null)) {
  13111. global::System.Data.DataRow[] addedRows = dataSet.СтраховаяКомпания.Select(null, null, global::System.Data.DataViewRowState.Added);
  13112. if (((addedRows != null)
  13113. && (0 < addedRows.Length))) {
  13114. result = (result + this._страховаяКомпанияTableAdapter.Update(addedRows));
  13115. allAddedRows.AddRange(addedRows);
  13116. }
  13117. }
  13118. if ((this._счетаTableAdapter != null)) {
  13119. global::System.Data.DataRow[] addedRows = dataSet.Счета.Select(null, null, global::System.Data.DataViewRowState.Added);
  13120. if (((addedRows != null)
  13121. && (0 < addedRows.Length))) {
  13122. result = (result + this._счетаTableAdapter.Update(addedRows));
  13123. allAddedRows.AddRange(addedRows);
  13124. }
  13125. }
  13126. if ((this._анализаторTableAdapter != null)) {
  13127. global::System.Data.DataRow[] addedRows = dataSet.Анализатор.Select(null, null, global::System.Data.DataViewRowState.Added);
  13128. if (((addedRows != null)
  13129. && (0 < addedRows.Length))) {
  13130. result = (result + this._анализаторTableAdapter.Update(addedRows));
  13131. allAddedRows.AddRange(addedRows);
  13132. }
  13133. }
  13134. if ((this._данныеПациентовTableAdapter != null)) {
  13135. global::System.Data.DataRow[] addedRows = dataSet.ДанныеПациентов.Select(null, null, global::System.Data.DataViewRowState.Added);
  13136. if (((addedRows != null)
  13137. && (0 < addedRows.Length))) {
  13138. result = (result + this._данныеПациентовTableAdapter.Update(addedRows));
  13139. allAddedRows.AddRange(addedRows);
  13140. }
  13141. }
  13142. if ((this._заказTableAdapter != null)) {
  13143. global::System.Data.DataRow[] addedRows = dataSet.Заказ.Select(null, null, global::System.Data.DataViewRowState.Added);
  13144. if (((addedRows != null)
  13145. && (0 < addedRows.Length))) {
  13146. result = (result + this._заказTableAdapter.Update(addedRows));
  13147. allAddedRows.AddRange(addedRows);
  13148. }
  13149. }
  13150. if ((this._лаборантTableAdapter != null)) {
  13151. global::System.Data.DataRow[] addedRows = dataSet.Лаборант.Select(null, null, global::System.Data.DataViewRowState.Added);
  13152. if (((addedRows != null)
  13153. && (0 < addedRows.Length))) {
  13154. result = (result + this._лаборантTableAdapter.Update(addedRows));
  13155. allAddedRows.AddRange(addedRows);
  13156. }
  13157. }
  13158. if ((this._оказанныеУслугиTableAdapter != null)) {
  13159. global::System.Data.DataRow[] addedRows = dataSet.ОказанныеУслуги.Select(null, null, global::System.Data.DataViewRowState.Added);
  13160. if (((addedRows != null)
  13161. && (0 < addedRows.Length))) {
  13162. result = (result + this._оказанныеУслугиTableAdapter.Update(addedRows));
  13163. allAddedRows.AddRange(addedRows);
  13164. }
  13165. }
  13166. if ((this._services___копияTableAdapter != null)) {
  13167. global::System.Data.DataRow[] addedRows = dataSet._services___копия.Select(null, null, global::System.Data.DataViewRowState.Added);
  13168. if (((addedRows != null)
  13169. && (0 < addedRows.Length))) {
  13170. result = (result + this._services___копияTableAdapter.Update(addedRows));
  13171. allAddedRows.AddRange(addedRows);
  13172. }
  13173. }
  13174. if ((this._users___копияTableAdapter != null)) {
  13175. global::System.Data.DataRow[] addedRows = dataSet._users___копия.Select(null, null, global::System.Data.DataViewRowState.Added);
  13176. if (((addedRows != null)
  13177. && (0 < addedRows.Length))) {
  13178. result = (result + this._users___копияTableAdapter.Update(addedRows));
  13179. allAddedRows.AddRange(addedRows);
  13180. }
  13181. }
  13182. if ((this._администраторTableAdapter != null)) {
  13183. global::System.Data.DataRow[] addedRows = dataSet.Администратор.Select(null, null, global::System.Data.DataViewRowState.Added);
  13184. if (((addedRows != null)
  13185. && (0 < addedRows.Length))) {
  13186. result = (result + this._администраторTableAdapter.Update(addedRows));
  13187. allAddedRows.AddRange(addedRows);
  13188. }
  13189. }
  13190. if ((this._работаАнализатораTableAdapter != null)) {
  13191. global::System.Data.DataRow[] addedRows = dataSet.РаботаАнализатора.Select(null, null, global::System.Data.DataViewRowState.Added);
  13192. if (((addedRows != null)
  13193. && (0 < addedRows.Length))) {
  13194. result = (result + this._работаАнализатораTableAdapter.Update(addedRows));
  13195. allAddedRows.AddRange(addedRows);
  13196. }
  13197. }
  13198. return result;
  13199. }
  13200. /// <summary>
  13201. ///Delete rows in bottom-up order.
  13202. ///</summary>
  13203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13205. private int UpdateDeletedRows(ИсследованияБиоматериалаDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  13206. int result = 0;
  13207. if ((this._работаАнализатораTableAdapter != null)) {
  13208. global::System.Data.DataRow[] deletedRows = dataSet.РаботаАнализатора.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13209. if (((deletedRows != null)
  13210. && (0 < deletedRows.Length))) {
  13211. result = (result + this._работаАнализатораTableAdapter.Update(deletedRows));
  13212. allChangedRows.AddRange(deletedRows);
  13213. }
  13214. }
  13215. if ((this._администраторTableAdapter != null)) {
  13216. global::System.Data.DataRow[] deletedRows = dataSet.Администратор.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13217. if (((deletedRows != null)
  13218. && (0 < deletedRows.Length))) {
  13219. result = (result + this._администраторTableAdapter.Update(deletedRows));
  13220. allChangedRows.AddRange(deletedRows);
  13221. }
  13222. }
  13223. if ((this._users___копияTableAdapter != null)) {
  13224. global::System.Data.DataRow[] deletedRows = dataSet._users___копия.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13225. if (((deletedRows != null)
  13226. && (0 < deletedRows.Length))) {
  13227. result = (result + this._users___копияTableAdapter.Update(deletedRows));
  13228. allChangedRows.AddRange(deletedRows);
  13229. }
  13230. }
  13231. if ((this._services___копияTableAdapter != null)) {
  13232. global::System.Data.DataRow[] deletedRows = dataSet._services___копия.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13233. if (((deletedRows != null)
  13234. && (0 < deletedRows.Length))) {
  13235. result = (result + this._services___копияTableAdapter.Update(deletedRows));
  13236. allChangedRows.AddRange(deletedRows);
  13237. }
  13238. }
  13239. if ((this._оказанныеУслугиTableAdapter != null)) {
  13240. global::System.Data.DataRow[] deletedRows = dataSet.ОказанныеУслуги.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13241. if (((deletedRows != null)
  13242. && (0 < deletedRows.Length))) {
  13243. result = (result + this._оказанныеУслугиTableAdapter.Update(deletedRows));
  13244. allChangedRows.AddRange(deletedRows);
  13245. }
  13246. }
  13247. if ((this._лаборантTableAdapter != null)) {
  13248. global::System.Data.DataRow[] deletedRows = dataSet.Лаборант.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13249. if (((deletedRows != null)
  13250. && (0 < deletedRows.Length))) {
  13251. result = (result + this._лаборантTableAdapter.Update(deletedRows));
  13252. allChangedRows.AddRange(deletedRows);
  13253. }
  13254. }
  13255. if ((this._заказTableAdapter != null)) {
  13256. global::System.Data.DataRow[] deletedRows = dataSet.Заказ.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13257. if (((deletedRows != null)
  13258. && (0 < deletedRows.Length))) {
  13259. result = (result + this._заказTableAdapter.Update(deletedRows));
  13260. allChangedRows.AddRange(deletedRows);
  13261. }
  13262. }
  13263. if ((this._данныеПациентовTableAdapter != null)) {
  13264. global::System.Data.DataRow[] deletedRows = dataSet.ДанныеПациентов.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13265. if (((deletedRows != null)
  13266. && (0 < deletedRows.Length))) {
  13267. result = (result + this._данныеПациентовTableAdapter.Update(deletedRows));
  13268. allChangedRows.AddRange(deletedRows);
  13269. }
  13270. }
  13271. if ((this._анализаторTableAdapter != null)) {
  13272. global::System.Data.DataRow[] deletedRows = dataSet.Анализатор.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13273. if (((deletedRows != null)
  13274. && (0 < deletedRows.Length))) {
  13275. result = (result + this._анализаторTableAdapter.Update(deletedRows));
  13276. allChangedRows.AddRange(deletedRows);
  13277. }
  13278. }
  13279. if ((this._счетаTableAdapter != null)) {
  13280. global::System.Data.DataRow[] deletedRows = dataSet.Счета.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13281. if (((deletedRows != null)
  13282. && (0 < deletedRows.Length))) {
  13283. result = (result + this._счетаTableAdapter.Update(deletedRows));
  13284. allChangedRows.AddRange(deletedRows);
  13285. }
  13286. }
  13287. if ((this._страховаяКомпанияTableAdapter != null)) {
  13288. global::System.Data.DataRow[] deletedRows = dataSet.СтраховаяКомпания.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13289. if (((deletedRows != null)
  13290. && (0 < deletedRows.Length))) {
  13291. result = (result + this._страховаяКомпанияTableAdapter.Update(deletedRows));
  13292. allChangedRows.AddRange(deletedRows);
  13293. }
  13294. }
  13295. if ((this._бухгалтерTableAdapter != null)) {
  13296. global::System.Data.DataRow[] deletedRows = dataSet.Бухгалтер.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13297. if (((deletedRows != null)
  13298. && (0 < deletedRows.Length))) {
  13299. result = (result + this._бухгалтерTableAdapter.Update(deletedRows));
  13300. allChangedRows.AddRange(deletedRows);
  13301. }
  13302. }
  13303. if ((this._услугиЛабораторииTableAdapter != null)) {
  13304. global::System.Data.DataRow[] deletedRows = dataSet.УслугиЛаборатории.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13305. if (((deletedRows != null)
  13306. && (0 < deletedRows.Length))) {
  13307. result = (result + this._услугиЛабораторииTableAdapter.Update(deletedRows));
  13308. allChangedRows.AddRange(deletedRows);
  13309. }
  13310. }
  13311. return result;
  13312. }
  13313. /// <summary>
  13314. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  13315. ///</summary>
  13316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13318. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  13319. if (((updatedRows == null)
  13320. || (updatedRows.Length < 1))) {
  13321. return updatedRows;
  13322. }
  13323. if (((allAddedRows == null)
  13324. || (allAddedRows.Count < 1))) {
  13325. return updatedRows;
  13326. }
  13327. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  13328. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  13329. global::System.Data.DataRow row = updatedRows[i];
  13330. if ((allAddedRows.Contains(row) == false)) {
  13331. realUpdatedRows.Add(row);
  13332. }
  13333. }
  13334. return realUpdatedRows.ToArray();
  13335. }
  13336. /// <summary>
  13337. ///Update all changes to the dataset.
  13338. ///</summary>
  13339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13341. public virtual int UpdateAll(ИсследованияБиоматериалаDataSet dataSet) {
  13342. if ((dataSet == null)) {
  13343. throw new global::System.ArgumentNullException("dataSet");
  13344. }
  13345. if ((dataSet.HasChanges() == false)) {
  13346. return 0;
  13347. }
  13348. if (((this._services___копияTableAdapter != null)
  13349. && (this.MatchTableAdapterConnection(this._services___копияTableAdapter.Connection) == false))) {
  13350. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13351. "r, должны использовать одинаковую строку подключения.");
  13352. }
  13353. if (((this._users___копияTableAdapter != null)
  13354. && (this.MatchTableAdapterConnection(this._users___копияTableAdapter.Connection) == false))) {
  13355. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13356. "r, должны использовать одинаковую строку подключения.");
  13357. }
  13358. if (((this._администраторTableAdapter != null)
  13359. && (this.MatchTableAdapterConnection(this._администраторTableAdapter.Connection) == false))) {
  13360. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13361. "r, должны использовать одинаковую строку подключения.");
  13362. }
  13363. if (((this._анализаторTableAdapter != null)
  13364. && (this.MatchTableAdapterConnection(this._анализаторTableAdapter.Connection) == false))) {
  13365. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13366. "r, должны использовать одинаковую строку подключения.");
  13367. }
  13368. if (((this._бухгалтерTableAdapter != null)
  13369. && (this.MatchTableAdapterConnection(this._бухгалтерTableAdapter.Connection) == false))) {
  13370. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13371. "r, должны использовать одинаковую строку подключения.");
  13372. }
  13373. if (((this._данныеПациентовTableAdapter != null)
  13374. && (this.MatchTableAdapterConnection(this._данныеПациентовTableAdapter.Connection) == false))) {
  13375. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13376. "r, должны использовать одинаковую строку подключения.");
  13377. }
  13378. if (((this._заказTableAdapter != null)
  13379. && (this.MatchTableAdapterConnection(this._заказTableAdapter.Connection) == false))) {
  13380. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13381. "r, должны использовать одинаковую строку подключения.");
  13382. }
  13383. if (((this._лаборантTableAdapter != null)
  13384. && (this.MatchTableAdapterConnection(this._лаборантTableAdapter.Connection) == false))) {
  13385. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13386. "r, должны использовать одинаковую строку подключения.");
  13387. }
  13388. if (((this._оказанныеУслугиTableAdapter != null)
  13389. && (this.MatchTableAdapterConnection(this._оказанныеУслугиTableAdapter.Connection) == false))) {
  13390. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13391. "r, должны использовать одинаковую строку подключения.");
  13392. }
  13393. if (((this._работаАнализатораTableAdapter != null)
  13394. && (this.MatchTableAdapterConnection(this._работаАнализатораTableAdapter.Connection) == false))) {
  13395. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13396. "r, должны использовать одинаковую строку подключения.");
  13397. }
  13398. if (((this._страховаяКомпанияTableAdapter != null)
  13399. && (this.MatchTableAdapterConnection(this._страховаяКомпанияTableAdapter.Connection) == false))) {
  13400. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13401. "r, должны использовать одинаковую строку подключения.");
  13402. }
  13403. if (((this._счетаTableAdapter != null)
  13404. && (this.MatchTableAdapterConnection(this._счетаTableAdapter.Connection) == false))) {
  13405. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13406. "r, должны использовать одинаковую строку подключения.");
  13407. }
  13408. if (((this._услугиЛабораторииTableAdapter != null)
  13409. && (this.MatchTableAdapterConnection(this._услугиЛабораторииTableAdapter.Connection) == false))) {
  13410. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13411. "r, должны использовать одинаковую строку подключения.");
  13412. }
  13413. global::System.Data.IDbConnection workConnection = this.Connection;
  13414. if ((workConnection == null)) {
  13415. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  13416. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  13417. }
  13418. bool workConnOpened = false;
  13419. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  13420. == global::System.Data.ConnectionState.Broken)) {
  13421. workConnection.Close();
  13422. }
  13423. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  13424. workConnection.Open();
  13425. workConnOpened = true;
  13426. }
  13427. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  13428. if ((workTransaction == null)) {
  13429. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  13430. "и или текущее состояние не позволяет начать транзакцию.");
  13431. }
  13432. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  13433. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  13434. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  13435. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  13436. int result = 0;
  13437. global::System.Data.DataSet backupDataSet = null;
  13438. if (this.BackupDataSetBeforeUpdate) {
  13439. backupDataSet = new global::System.Data.DataSet();
  13440. backupDataSet.Merge(dataSet);
  13441. }
  13442. try {
  13443. // ---- Prepare for update -----------
  13444. //
  13445. if ((this._services___копияTableAdapter != null)) {
  13446. revertConnections.Add(this._services___копияTableAdapter, this._services___копияTableAdapter.Connection);
  13447. this._services___копияTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13448. this._services___копияTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13449. if (this._services___копияTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13450. this._services___копияTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13451. adaptersWithAcceptChangesDuringUpdate.Add(this._services___копияTableAdapter.Adapter);
  13452. }
  13453. }
  13454. if ((this._users___копияTableAdapter != null)) {
  13455. revertConnections.Add(this._users___копияTableAdapter, this._users___копияTableAdapter.Connection);
  13456. this._users___копияTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13457. this._users___копияTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13458. if (this._users___копияTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13459. this._users___копияTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13460. adaptersWithAcceptChangesDuringUpdate.Add(this._users___копияTableAdapter.Adapter);
  13461. }
  13462. }
  13463. if ((this._администраторTableAdapter != null)) {
  13464. revertConnections.Add(this._администраторTableAdapter, this._администраторTableAdapter.Connection);
  13465. this._администраторTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13466. this._администраторTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13467. if (this._администраторTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13468. this._администраторTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13469. adaptersWithAcceptChangesDuringUpdate.Add(this._администраторTableAdapter.Adapter);
  13470. }
  13471. }
  13472. if ((this._анализаторTableAdapter != null)) {
  13473. revertConnections.Add(this._анализаторTableAdapter, this._анализаторTableAdapter.Connection);
  13474. this._анализаторTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13475. this._анализаторTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13476. if (this._анализаторTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13477. this._анализаторTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13478. adaptersWithAcceptChangesDuringUpdate.Add(this._анализаторTableAdapter.Adapter);
  13479. }
  13480. }
  13481. if ((this._бухгалтерTableAdapter != null)) {
  13482. revertConnections.Add(this._бухгалтерTableAdapter, this._бухгалтерTableAdapter.Connection);
  13483. this._бухгалтерTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13484. this._бухгалтерTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13485. if (this._бухгалтерTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13486. this._бухгалтерTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13487. adaptersWithAcceptChangesDuringUpdate.Add(this._бухгалтерTableAdapter.Adapter);
  13488. }
  13489. }
  13490. if ((this._данныеПациентовTableAdapter != null)) {
  13491. revertConnections.Add(this._данныеПациентовTableAdapter, this._данныеПациентовTableAdapter.Connection);
  13492. this._данныеПациентовTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13493. this._данныеПациентовTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13494. if (this._данныеПациентовTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13495. this._данныеПациентовTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13496. adaptersWithAcceptChangesDuringUpdate.Add(this._данныеПациентовTableAdapter.Adapter);
  13497. }
  13498. }
  13499. if ((this._заказTableAdapter != null)) {
  13500. revertConnections.Add(this._заказTableAdapter, this._заказTableAdapter.Connection);
  13501. this._заказTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13502. this._заказTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13503. if (this._заказTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13504. this._заказTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13505. adaptersWithAcceptChangesDuringUpdate.Add(this._заказTableAdapter.Adapter);
  13506. }
  13507. }
  13508. if ((this._лаборантTableAdapter != null)) {
  13509. revertConnections.Add(this._лаборантTableAdapter, this._лаборантTableAdapter.Connection);
  13510. this._лаборантTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13511. this._лаборантTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13512. if (this._лаборантTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13513. this._лаборантTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13514. adaptersWithAcceptChangesDuringUpdate.Add(this._лаборантTableAdapter.Adapter);
  13515. }
  13516. }
  13517. if ((this._оказанныеУслугиTableAdapter != null)) {
  13518. revertConnections.Add(this._оказанныеУслугиTableAdapter, this._оказанныеУслугиTableAdapter.Connection);
  13519. this._оказанныеУслугиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13520. this._оказанныеУслугиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13521. if (this._оказанныеУслугиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13522. this._оказанныеУслугиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13523. adaptersWithAcceptChangesDuringUpdate.Add(this._оказанныеУслугиTableAdapter.Adapter);
  13524. }
  13525. }
  13526. if ((this._работаАнализатораTableAdapter != null)) {
  13527. revertConnections.Add(this._работаАнализатораTableAdapter, this._работаАнализатораTableAdapter.Connection);
  13528. this._работаАнализатораTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13529. this._работаАнализатораTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13530. if (this._работаАнализатораTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13531. this._работаАнализатораTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13532. adaptersWithAcceptChangesDuringUpdate.Add(this._работаАнализатораTableAdapter.Adapter);
  13533. }
  13534. }
  13535. if ((this._страховаяКомпанияTableAdapter != null)) {
  13536. revertConnections.Add(this._страховаяКомпанияTableAdapter, this._страховаяКомпанияTableAdapter.Connection);
  13537. this._страховаяКомпанияTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13538. this._страховаяКомпанияTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13539. if (this._страховаяКомпанияTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13540. this._страховаяКомпанияTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13541. adaptersWithAcceptChangesDuringUpdate.Add(this._страховаяКомпанияTableAdapter.Adapter);
  13542. }
  13543. }
  13544. if ((this._счетаTableAdapter != null)) {
  13545. revertConnections.Add(this._счетаTableAdapter, this._счетаTableAdapter.Connection);
  13546. this._счетаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13547. this._счетаTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13548. if (this._счетаTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13549. this._счетаTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13550. adaptersWithAcceptChangesDuringUpdate.Add(this._счетаTableAdapter.Adapter);
  13551. }
  13552. }
  13553. if ((this._услугиЛабораторииTableAdapter != null)) {
  13554. revertConnections.Add(this._услугиЛабораторииTableAdapter, this._услугиЛабораторииTableAdapter.Connection);
  13555. this._услугиЛабораторииTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13556. this._услугиЛабораторииTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13557. if (this._услугиЛабораторииTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13558. this._услугиЛабораторииTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13559. adaptersWithAcceptChangesDuringUpdate.Add(this._услугиЛабораторииTableAdapter.Adapter);
  13560. }
  13561. }
  13562. //
  13563. //---- Perform updates -----------
  13564. //
  13565. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  13566. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  13567. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  13568. }
  13569. else {
  13570. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  13571. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  13572. }
  13573. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  13574. //
  13575. //---- Commit updates -----------
  13576. //
  13577. workTransaction.Commit();
  13578. if ((0 < allAddedRows.Count)) {
  13579. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  13580. allAddedRows.CopyTo(rows);
  13581. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  13582. global::System.Data.DataRow row = rows[i];
  13583. row.AcceptChanges();
  13584. }
  13585. }
  13586. if ((0 < allChangedRows.Count)) {
  13587. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  13588. allChangedRows.CopyTo(rows);
  13589. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  13590. global::System.Data.DataRow row = rows[i];
  13591. row.AcceptChanges();
  13592. }
  13593. }
  13594. }
  13595. catch (global::System.Exception ex) {
  13596. workTransaction.Rollback();
  13597. // ---- Restore the dataset -----------
  13598. if (this.BackupDataSetBeforeUpdate) {
  13599. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  13600. dataSet.Clear();
  13601. dataSet.Merge(backupDataSet);
  13602. }
  13603. else {
  13604. if ((0 < allAddedRows.Count)) {
  13605. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  13606. allAddedRows.CopyTo(rows);
  13607. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  13608. global::System.Data.DataRow row = rows[i];
  13609. row.AcceptChanges();
  13610. row.SetAdded();
  13611. }
  13612. }
  13613. }
  13614. throw ex;
  13615. }
  13616. finally {
  13617. if (workConnOpened) {
  13618. workConnection.Close();
  13619. }
  13620. if ((this._services___копияTableAdapter != null)) {
  13621. this._services___копияTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._services___копияTableAdapter]));
  13622. this._services___копияTableAdapter.Transaction = null;
  13623. }
  13624. if ((this._users___копияTableAdapter != null)) {
  13625. this._users___копияTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._users___копияTableAdapter]));
  13626. this._users___копияTableAdapter.Transaction = null;
  13627. }
  13628. if ((this._администраторTableAdapter != null)) {
  13629. this._администраторTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._администраторTableAdapter]));
  13630. this._администраторTableAdapter.Transaction = null;
  13631. }
  13632. if ((this._анализаторTableAdapter != null)) {
  13633. this._анализаторTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._анализаторTableAdapter]));
  13634. this._анализаторTableAdapter.Transaction = null;
  13635. }
  13636. if ((this._бухгалтерTableAdapter != null)) {
  13637. this._бухгалтерTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._бухгалтерTableAdapter]));
  13638. this._бухгалтерTableAdapter.Transaction = null;
  13639. }
  13640. if ((this._данныеПациентовTableAdapter != null)) {
  13641. this._данныеПациентовTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._данныеПациентовTableAdapter]));
  13642. this._данныеПациентовTableAdapter.Transaction = null;
  13643. }
  13644. if ((this._заказTableAdapter != null)) {
  13645. this._заказTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._заказTableAdapter]));
  13646. this._заказTableAdapter.Transaction = null;
  13647. }
  13648. if ((this._лаборантTableAdapter != null)) {
  13649. this._лаборантTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._лаборантTableAdapter]));
  13650. this._лаборантTableAdapter.Transaction = null;
  13651. }
  13652. if ((this._оказанныеУслугиTableAdapter != null)) {
  13653. this._оказанныеУслугиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._оказанныеУслугиTableAdapter]));
  13654. this._оказанныеУслугиTableAdapter.Transaction = null;
  13655. }
  13656. if ((this._работаАнализатораTableAdapter != null)) {
  13657. this._работаАнализатораTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._работаАнализатораTableAdapter]));
  13658. this._работаАнализатораTableAdapter.Transaction = null;
  13659. }
  13660. if ((this._страховаяКомпанияTableAdapter != null)) {
  13661. this._страховаяКомпанияTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._страховаяКомпанияTableAdapter]));
  13662. this._страховаяКомпанияTableAdapter.Transaction = null;
  13663. }
  13664. if ((this._счетаTableAdapter != null)) {
  13665. this._счетаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._счетаTableAdapter]));
  13666. this._счетаTableAdapter.Transaction = null;
  13667. }
  13668. if ((this._услугиЛабораторииTableAdapter != null)) {
  13669. this._услугиЛабораторииTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._услугиЛабораторииTableAdapter]));
  13670. this._услугиЛабораторииTableAdapter.Transaction = null;
  13671. }
  13672. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  13673. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  13674. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  13675. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  13676. global::System.Data.Common.DataAdapter adapter = adapters[i];
  13677. adapter.AcceptChangesDuringUpdate = true;
  13678. }
  13679. }
  13680. }
  13681. return result;
  13682. }
  13683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13685. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  13686. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  13687. }
  13688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13690. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  13691. if ((this._connection != null)) {
  13692. return true;
  13693. }
  13694. if (((this.Connection == null)
  13695. || (inputConnection == null))) {
  13696. return true;
  13697. }
  13698. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  13699. return true;
  13700. }
  13701. return false;
  13702. }
  13703. /// <summary>
  13704. ///Update Order Option
  13705. ///</summary>
  13706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13707. public enum UpdateOrderOption {
  13708. InsertUpdateDelete = 0,
  13709. UpdateInsertDelete = 1,
  13710. }
  13711. /// <summary>
  13712. ///Used to sort self-referenced table's rows
  13713. ///</summary>
  13714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13715. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  13716. private global::System.Data.DataRelation _relation;
  13717. private int _childFirst;
  13718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13720. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  13721. this._relation = relation;
  13722. if (childFirst) {
  13723. this._childFirst = -1;
  13724. }
  13725. else {
  13726. this._childFirst = 1;
  13727. }
  13728. }
  13729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13731. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  13732. global::System.Diagnostics.Debug.Assert((row != null));
  13733. global::System.Data.DataRow root = row;
  13734. distance = 0;
  13735. 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>();
  13736. traversedRows[row] = row;
  13737. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  13738. for (
  13739. ; ((parent != null)
  13740. && (traversedRows.ContainsKey(parent) == false));
  13741. ) {
  13742. distance = (distance + 1);
  13743. root = parent;
  13744. traversedRows[parent] = parent;
  13745. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  13746. }
  13747. if ((distance == 0)) {
  13748. traversedRows.Clear();
  13749. traversedRows[row] = row;
  13750. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  13751. for (
  13752. ; ((parent != null)
  13753. && (traversedRows.ContainsKey(parent) == false));
  13754. ) {
  13755. distance = (distance + 1);
  13756. root = parent;
  13757. traversedRows[parent] = parent;
  13758. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  13759. }
  13760. }
  13761. return root;
  13762. }
  13763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13765. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  13766. if (object.ReferenceEquals(row1, row2)) {
  13767. return 0;
  13768. }
  13769. if ((row1 == null)) {
  13770. return -1;
  13771. }
  13772. if ((row2 == null)) {
  13773. return 1;
  13774. }
  13775. int distance1 = 0;
  13776. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  13777. int distance2 = 0;
  13778. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  13779. if (object.ReferenceEquals(root1, root2)) {
  13780. return (this._childFirst * distance1.CompareTo(distance2));
  13781. }
  13782. else {
  13783. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  13784. && (root2.Table != null)));
  13785. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  13786. return -1;
  13787. }
  13788. else {
  13789. return 1;
  13790. }
  13791. }
  13792. }
  13793. }
  13794. }
  13795. }
  13796. #pragma warning restore 1591