_06_muskafidi_deDataSet.Designer.cs 450 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace muskafidi_de {
  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("_06_muskafidi_deDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class _06_muskafidi_deDataSet : global::System.Data.DataSet {
  22. private ComplectDataTable tableComplect;
  23. private EdiniciIzmereniyaDataTable tableEdiniciIzmereniya;
  24. private RolesDataTable tableRoles;
  25. private StatusDataTable tableStatus;
  26. private StatusZakazaDataTable tableStatusZakaza;
  27. private usersDataTable tableusers;
  28. private ZacaziDataTable tableZacazi;
  29. private global::System.Data.DataRelation relationFK_Complect_EdiniciIzmereniya1;
  30. private global::System.Data.DataRelation relationFK_users_Roles;
  31. private global::System.Data.DataRelation relationFK_users_Status;
  32. private global::System.Data.DataRelation relationFK_Zacazi_EdiniciIzmereniya;
  33. private global::System.Data.DataRelation relationFK_Zacazi_StatusZakaza;
  34. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  35. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  36. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  37. public _06_muskafidi_deDataSet() {
  38. this.BeginInit();
  39. this.InitClass();
  40. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  41. base.Tables.CollectionChanged += schemaChangedHandler;
  42. base.Relations.CollectionChanged += schemaChangedHandler;
  43. this.EndInit();
  44. }
  45. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  46. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  47. protected _06_muskafidi_deDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  48. base(info, context, false) {
  49. if ((this.IsBinarySerialized(info, context) == true)) {
  50. this.InitVars(false);
  51. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  52. this.Tables.CollectionChanged += schemaChangedHandler1;
  53. this.Relations.CollectionChanged += schemaChangedHandler1;
  54. return;
  55. }
  56. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  57. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  58. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  59. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  60. if ((ds.Tables["Complect"] != null)) {
  61. base.Tables.Add(new ComplectDataTable(ds.Tables["Complect"]));
  62. }
  63. if ((ds.Tables["EdiniciIzmereniya"] != null)) {
  64. base.Tables.Add(new EdiniciIzmereniyaDataTable(ds.Tables["EdiniciIzmereniya"]));
  65. }
  66. if ((ds.Tables["Roles"] != null)) {
  67. base.Tables.Add(new RolesDataTable(ds.Tables["Roles"]));
  68. }
  69. if ((ds.Tables["Status"] != null)) {
  70. base.Tables.Add(new StatusDataTable(ds.Tables["Status"]));
  71. }
  72. if ((ds.Tables["StatusZakaza"] != null)) {
  73. base.Tables.Add(new StatusZakazaDataTable(ds.Tables["StatusZakaza"]));
  74. }
  75. if ((ds.Tables["users"] != null)) {
  76. base.Tables.Add(new usersDataTable(ds.Tables["users"]));
  77. }
  78. if ((ds.Tables["Zacazi"] != null)) {
  79. base.Tables.Add(new ZacaziDataTable(ds.Tables["Zacazi"]));
  80. }
  81. this.DataSetName = ds.DataSetName;
  82. this.Prefix = ds.Prefix;
  83. this.Namespace = ds.Namespace;
  84. this.Locale = ds.Locale;
  85. this.CaseSensitive = ds.CaseSensitive;
  86. this.EnforceConstraints = ds.EnforceConstraints;
  87. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  88. this.InitVars();
  89. }
  90. else {
  91. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  92. }
  93. this.GetSerializationData(info, context);
  94. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  95. base.Tables.CollectionChanged += schemaChangedHandler;
  96. this.Relations.CollectionChanged += schemaChangedHandler;
  97. }
  98. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  99. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  100. [global::System.ComponentModel.Browsable(false)]
  101. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  102. public ComplectDataTable Complect {
  103. get {
  104. return this.tableComplect;
  105. }
  106. }
  107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  109. [global::System.ComponentModel.Browsable(false)]
  110. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  111. public EdiniciIzmereniyaDataTable EdiniciIzmereniya {
  112. get {
  113. return this.tableEdiniciIzmereniya;
  114. }
  115. }
  116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  118. [global::System.ComponentModel.Browsable(false)]
  119. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  120. public RolesDataTable Roles {
  121. get {
  122. return this.tableRoles;
  123. }
  124. }
  125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  127. [global::System.ComponentModel.Browsable(false)]
  128. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  129. public StatusDataTable Status {
  130. get {
  131. return this.tableStatus;
  132. }
  133. }
  134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  136. [global::System.ComponentModel.Browsable(false)]
  137. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  138. public StatusZakazaDataTable StatusZakaza {
  139. get {
  140. return this.tableStatusZakaza;
  141. }
  142. }
  143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  145. [global::System.ComponentModel.Browsable(false)]
  146. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  147. public usersDataTable users {
  148. get {
  149. return this.tableusers;
  150. }
  151. }
  152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  154. [global::System.ComponentModel.Browsable(false)]
  155. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  156. public ZacaziDataTable Zacazi {
  157. get {
  158. return this.tableZacazi;
  159. }
  160. }
  161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  163. [global::System.ComponentModel.BrowsableAttribute(true)]
  164. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  165. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  166. get {
  167. return this._schemaSerializationMode;
  168. }
  169. set {
  170. this._schemaSerializationMode = value;
  171. }
  172. }
  173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  175. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  176. public new global::System.Data.DataTableCollection Tables {
  177. get {
  178. return base.Tables;
  179. }
  180. }
  181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  183. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  184. public new global::System.Data.DataRelationCollection Relations {
  185. get {
  186. return base.Relations;
  187. }
  188. }
  189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  191. protected override void InitializeDerivedDataSet() {
  192. this.BeginInit();
  193. this.InitClass();
  194. this.EndInit();
  195. }
  196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  198. public override global::System.Data.DataSet Clone() {
  199. _06_muskafidi_deDataSet cln = ((_06_muskafidi_deDataSet)(base.Clone()));
  200. cln.InitVars();
  201. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  202. return cln;
  203. }
  204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  206. protected override bool ShouldSerializeTables() {
  207. return false;
  208. }
  209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  211. protected override bool ShouldSerializeRelations() {
  212. return false;
  213. }
  214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  216. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  217. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  218. this.Reset();
  219. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  220. ds.ReadXml(reader);
  221. if ((ds.Tables["Complect"] != null)) {
  222. base.Tables.Add(new ComplectDataTable(ds.Tables["Complect"]));
  223. }
  224. if ((ds.Tables["EdiniciIzmereniya"] != null)) {
  225. base.Tables.Add(new EdiniciIzmereniyaDataTable(ds.Tables["EdiniciIzmereniya"]));
  226. }
  227. if ((ds.Tables["Roles"] != null)) {
  228. base.Tables.Add(new RolesDataTable(ds.Tables["Roles"]));
  229. }
  230. if ((ds.Tables["Status"] != null)) {
  231. base.Tables.Add(new StatusDataTable(ds.Tables["Status"]));
  232. }
  233. if ((ds.Tables["StatusZakaza"] != null)) {
  234. base.Tables.Add(new StatusZakazaDataTable(ds.Tables["StatusZakaza"]));
  235. }
  236. if ((ds.Tables["users"] != null)) {
  237. base.Tables.Add(new usersDataTable(ds.Tables["users"]));
  238. }
  239. if ((ds.Tables["Zacazi"] != null)) {
  240. base.Tables.Add(new ZacaziDataTable(ds.Tables["Zacazi"]));
  241. }
  242. this.DataSetName = ds.DataSetName;
  243. this.Prefix = ds.Prefix;
  244. this.Namespace = ds.Namespace;
  245. this.Locale = ds.Locale;
  246. this.CaseSensitive = ds.CaseSensitive;
  247. this.EnforceConstraints = ds.EnforceConstraints;
  248. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  249. this.InitVars();
  250. }
  251. else {
  252. this.ReadXml(reader);
  253. this.InitVars();
  254. }
  255. }
  256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  258. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  259. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  260. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  261. stream.Position = 0;
  262. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  263. }
  264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  266. internal void InitVars() {
  267. this.InitVars(true);
  268. }
  269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  271. internal void InitVars(bool initTable) {
  272. this.tableComplect = ((ComplectDataTable)(base.Tables["Complect"]));
  273. if ((initTable == true)) {
  274. if ((this.tableComplect != null)) {
  275. this.tableComplect.InitVars();
  276. }
  277. }
  278. this.tableEdiniciIzmereniya = ((EdiniciIzmereniyaDataTable)(base.Tables["EdiniciIzmereniya"]));
  279. if ((initTable == true)) {
  280. if ((this.tableEdiniciIzmereniya != null)) {
  281. this.tableEdiniciIzmereniya.InitVars();
  282. }
  283. }
  284. this.tableRoles = ((RolesDataTable)(base.Tables["Roles"]));
  285. if ((initTable == true)) {
  286. if ((this.tableRoles != null)) {
  287. this.tableRoles.InitVars();
  288. }
  289. }
  290. this.tableStatus = ((StatusDataTable)(base.Tables["Status"]));
  291. if ((initTable == true)) {
  292. if ((this.tableStatus != null)) {
  293. this.tableStatus.InitVars();
  294. }
  295. }
  296. this.tableStatusZakaza = ((StatusZakazaDataTable)(base.Tables["StatusZakaza"]));
  297. if ((initTable == true)) {
  298. if ((this.tableStatusZakaza != null)) {
  299. this.tableStatusZakaza.InitVars();
  300. }
  301. }
  302. this.tableusers = ((usersDataTable)(base.Tables["users"]));
  303. if ((initTable == true)) {
  304. if ((this.tableusers != null)) {
  305. this.tableusers.InitVars();
  306. }
  307. }
  308. this.tableZacazi = ((ZacaziDataTable)(base.Tables["Zacazi"]));
  309. if ((initTable == true)) {
  310. if ((this.tableZacazi != null)) {
  311. this.tableZacazi.InitVars();
  312. }
  313. }
  314. this.relationFK_Complect_EdiniciIzmereniya1 = this.Relations["FK_Complect_EdiniciIzmereniya1"];
  315. this.relationFK_users_Roles = this.Relations["FK_users_Roles"];
  316. this.relationFK_users_Status = this.Relations["FK_users_Status"];
  317. this.relationFK_Zacazi_EdiniciIzmereniya = this.Relations["FK_Zacazi_EdiniciIzmereniya"];
  318. this.relationFK_Zacazi_StatusZakaza = this.Relations["FK_Zacazi_StatusZakaza"];
  319. }
  320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  322. private void InitClass() {
  323. this.DataSetName = "_06_muskafidi_deDataSet";
  324. this.Prefix = "";
  325. this.Namespace = "http://tempuri.org/_06_muskafidi_deDataSet.xsd";
  326. this.EnforceConstraints = true;
  327. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  328. this.tableComplect = new ComplectDataTable();
  329. base.Tables.Add(this.tableComplect);
  330. this.tableEdiniciIzmereniya = new EdiniciIzmereniyaDataTable();
  331. base.Tables.Add(this.tableEdiniciIzmereniya);
  332. this.tableRoles = new RolesDataTable();
  333. base.Tables.Add(this.tableRoles);
  334. this.tableStatus = new StatusDataTable();
  335. base.Tables.Add(this.tableStatus);
  336. this.tableStatusZakaza = new StatusZakazaDataTable();
  337. base.Tables.Add(this.tableStatusZakaza);
  338. this.tableusers = new usersDataTable();
  339. base.Tables.Add(this.tableusers);
  340. this.tableZacazi = new ZacaziDataTable();
  341. base.Tables.Add(this.tableZacazi);
  342. this.relationFK_Complect_EdiniciIzmereniya1 = new global::System.Data.DataRelation("FK_Complect_EdiniciIzmereniya1", new global::System.Data.DataColumn[] {
  343. this.tableEdiniciIzmereniya.idColumn}, new global::System.Data.DataColumn[] {
  344. this.tableComplect.Единица_измеренияColumn}, false);
  345. this.Relations.Add(this.relationFK_Complect_EdiniciIzmereniya1);
  346. this.relationFK_users_Roles = new global::System.Data.DataRelation("FK_users_Roles", new global::System.Data.DataColumn[] {
  347. this.tableRoles.idColumn}, new global::System.Data.DataColumn[] {
  348. this.tableusers.РольColumn}, false);
  349. this.Relations.Add(this.relationFK_users_Roles);
  350. this.relationFK_users_Status = new global::System.Data.DataRelation("FK_users_Status", new global::System.Data.DataColumn[] {
  351. this.tableStatus.idColumn}, new global::System.Data.DataColumn[] {
  352. this.tableusers.СтатусColumn}, false);
  353. this.Relations.Add(this.relationFK_users_Status);
  354. this.relationFK_Zacazi_EdiniciIzmereniya = new global::System.Data.DataRelation("FK_Zacazi_EdiniciIzmereniya", new global::System.Data.DataColumn[] {
  355. this.tableEdiniciIzmereniya.idColumn}, new global::System.Data.DataColumn[] {
  356. this.tableZacazi.Единица_измеренияColumn}, false);
  357. this.Relations.Add(this.relationFK_Zacazi_EdiniciIzmereniya);
  358. this.relationFK_Zacazi_StatusZakaza = new global::System.Data.DataRelation("FK_Zacazi_StatusZakaza", new global::System.Data.DataColumn[] {
  359. this.tableStatusZakaza.idColumn}, new global::System.Data.DataColumn[] {
  360. this.tableZacazi.СтатусColumn}, false);
  361. this.Relations.Add(this.relationFK_Zacazi_StatusZakaza);
  362. }
  363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  365. private bool ShouldSerializeComplect() {
  366. return false;
  367. }
  368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  370. private bool ShouldSerializeEdiniciIzmereniya() {
  371. return false;
  372. }
  373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  375. private bool ShouldSerializeRoles() {
  376. return false;
  377. }
  378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  380. private bool ShouldSerializeStatus() {
  381. return false;
  382. }
  383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  385. private bool ShouldSerializeStatusZakaza() {
  386. return false;
  387. }
  388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  390. private bool ShouldSerializeusers() {
  391. return false;
  392. }
  393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  395. private bool ShouldSerializeZacazi() {
  396. return false;
  397. }
  398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  400. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  401. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  402. this.InitVars();
  403. }
  404. }
  405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  407. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  408. _06_muskafidi_deDataSet ds = new _06_muskafidi_deDataSet();
  409. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  410. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  411. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  412. any.Namespace = ds.Namespace;
  413. sequence.Items.Add(any);
  414. type.Particle = sequence;
  415. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  416. if (xs.Contains(dsSchema.TargetNamespace)) {
  417. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  418. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  419. try {
  420. global::System.Xml.Schema.XmlSchema schema = null;
  421. dsSchema.Write(s1);
  422. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  423. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  424. s2.SetLength(0);
  425. schema.Write(s2);
  426. if ((s1.Length == s2.Length)) {
  427. s1.Position = 0;
  428. s2.Position = 0;
  429. for (; ((s1.Position != s1.Length)
  430. && (s1.ReadByte() == s2.ReadByte())); ) {
  431. ;
  432. }
  433. if ((s1.Position == s1.Length)) {
  434. return type;
  435. }
  436. }
  437. }
  438. }
  439. finally {
  440. if ((s1 != null)) {
  441. s1.Close();
  442. }
  443. if ((s2 != null)) {
  444. s2.Close();
  445. }
  446. }
  447. }
  448. xs.Add(dsSchema);
  449. return type;
  450. }
  451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  452. public delegate void ComplectRowChangeEventHandler(object sender, ComplectRowChangeEvent e);
  453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  454. public delegate void EdiniciIzmereniyaRowChangeEventHandler(object sender, EdiniciIzmereniyaRowChangeEvent e);
  455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  456. public delegate void RolesRowChangeEventHandler(object sender, RolesRowChangeEvent e);
  457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  458. public delegate void StatusRowChangeEventHandler(object sender, StatusRowChangeEvent e);
  459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  460. public delegate void StatusZakazaRowChangeEventHandler(object sender, StatusZakazaRowChangeEvent e);
  461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  462. public delegate void usersRowChangeEventHandler(object sender, usersRowChangeEvent e);
  463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  464. public delegate void ZacaziRowChangeEventHandler(object sender, ZacaziRowChangeEvent e);
  465. /// <summary>
  466. ///Represents the strongly named DataTable class.
  467. ///</summary>
  468. [global::System.Serializable()]
  469. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  470. public partial class ComplectDataTable : global::System.Data.TypedTableBase<ComplectRow> {
  471. private global::System.Data.DataColumn columnid;
  472. private global::System.Data.DataColumn columnНаименование;
  473. private global::System.Data.DataColumn columnКоличество;
  474. private global::System.Data.DataColumn columnЕдиница_измерения;
  475. private global::System.Data.DataColumn columnТип_материала;
  476. private global::System.Data.DataColumn columnЦена;
  477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  479. public ComplectDataTable() {
  480. this.TableName = "Complect";
  481. this.BeginInit();
  482. this.InitClass();
  483. this.EndInit();
  484. }
  485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  487. internal ComplectDataTable(global::System.Data.DataTable table) {
  488. this.TableName = table.TableName;
  489. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  490. this.CaseSensitive = table.CaseSensitive;
  491. }
  492. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  493. this.Locale = table.Locale;
  494. }
  495. if ((table.Namespace != table.DataSet.Namespace)) {
  496. this.Namespace = table.Namespace;
  497. }
  498. this.Prefix = table.Prefix;
  499. this.MinimumCapacity = table.MinimumCapacity;
  500. }
  501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  503. protected ComplectDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  504. base(info, context) {
  505. this.InitVars();
  506. }
  507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  509. public global::System.Data.DataColumn idColumn {
  510. get {
  511. return this.columnid;
  512. }
  513. }
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  516. public global::System.Data.DataColumn НаименованиеColumn {
  517. get {
  518. return this.columnНаименование;
  519. }
  520. }
  521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  523. public global::System.Data.DataColumn КоличествоColumn {
  524. get {
  525. return this.columnКоличество;
  526. }
  527. }
  528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  530. public global::System.Data.DataColumn Единица_измеренияColumn {
  531. get {
  532. return this.columnЕдиница_измерения;
  533. }
  534. }
  535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  537. public global::System.Data.DataColumn Тип_материалаColumn {
  538. get {
  539. return this.columnТип_материала;
  540. }
  541. }
  542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  544. public global::System.Data.DataColumn ЦенаColumn {
  545. get {
  546. return this.columnЦена;
  547. }
  548. }
  549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  551. [global::System.ComponentModel.Browsable(false)]
  552. public int Count {
  553. get {
  554. return this.Rows.Count;
  555. }
  556. }
  557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  559. public ComplectRow this[int index] {
  560. get {
  561. return ((ComplectRow)(this.Rows[index]));
  562. }
  563. }
  564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  565. public event ComplectRowChangeEventHandler ComplectRowChanging;
  566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  567. public event ComplectRowChangeEventHandler ComplectRowChanged;
  568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  569. public event ComplectRowChangeEventHandler ComplectRowDeleting;
  570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  571. public event ComplectRowChangeEventHandler ComplectRowDeleted;
  572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  574. public void AddComplectRow(ComplectRow row) {
  575. this.Rows.Add(row);
  576. }
  577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  579. public ComplectRow AddComplectRow(int id, string Наименование, string Количество, EdiniciIzmereniyaRow parentEdiniciIzmereniyaRowByFK_Complect_EdiniciIzmereniya1, string Тип_материала, string Цена) {
  580. ComplectRow rowComplectRow = ((ComplectRow)(this.NewRow()));
  581. object[] columnValuesArray = new object[] {
  582. id,
  583. Наименование,
  584. Количество,
  585. null,
  586. Тип_материала,
  587. Цена};
  588. if ((parentEdiniciIzmereniyaRowByFK_Complect_EdiniciIzmereniya1 != null)) {
  589. columnValuesArray[3] = parentEdiniciIzmereniyaRowByFK_Complect_EdiniciIzmereniya1[0];
  590. }
  591. rowComplectRow.ItemArray = columnValuesArray;
  592. this.Rows.Add(rowComplectRow);
  593. return rowComplectRow;
  594. }
  595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  597. public ComplectRow FindByid(int id) {
  598. return ((ComplectRow)(this.Rows.Find(new object[] {
  599. id})));
  600. }
  601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  603. public override global::System.Data.DataTable Clone() {
  604. ComplectDataTable cln = ((ComplectDataTable)(base.Clone()));
  605. cln.InitVars();
  606. return cln;
  607. }
  608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  610. protected override global::System.Data.DataTable CreateInstance() {
  611. return new ComplectDataTable();
  612. }
  613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  615. internal void InitVars() {
  616. this.columnid = base.Columns["id"];
  617. this.columnНаименование = base.Columns["Наименование"];
  618. this.columnКоличество = base.Columns["Количество"];
  619. this.columnЕдиница_измерения = base.Columns["Единица измерения"];
  620. this.columnТип_материала = base.Columns["Тип материала"];
  621. this.columnЦена = base.Columns["Цена"];
  622. }
  623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  625. private void InitClass() {
  626. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  627. base.Columns.Add(this.columnid);
  628. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  629. base.Columns.Add(this.columnНаименование);
  630. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(string), null, global::System.Data.MappingType.Element);
  631. base.Columns.Add(this.columnКоличество);
  632. this.columnЕдиница_измерения = new global::System.Data.DataColumn("Единица измерения", typeof(int), null, global::System.Data.MappingType.Element);
  633. base.Columns.Add(this.columnЕдиница_измерения);
  634. this.columnТип_материала = new global::System.Data.DataColumn("Тип материала", typeof(string), null, global::System.Data.MappingType.Element);
  635. base.Columns.Add(this.columnТип_материала);
  636. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(string), null, global::System.Data.MappingType.Element);
  637. base.Columns.Add(this.columnЦена);
  638. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  639. this.columnid}, true));
  640. this.columnid.AllowDBNull = false;
  641. this.columnid.Unique = true;
  642. this.columnНаименование.MaxLength = 50;
  643. this.columnКоличество.MaxLength = 50;
  644. this.columnТип_материала.MaxLength = 50;
  645. this.columnЦена.MaxLength = 50;
  646. }
  647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  649. public ComplectRow NewComplectRow() {
  650. return ((ComplectRow)(this.NewRow()));
  651. }
  652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  654. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  655. return new ComplectRow(builder);
  656. }
  657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  659. protected override global::System.Type GetRowType() {
  660. return typeof(ComplectRow);
  661. }
  662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  664. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  665. base.OnRowChanged(e);
  666. if ((this.ComplectRowChanged != null)) {
  667. this.ComplectRowChanged(this, new ComplectRowChangeEvent(((ComplectRow)(e.Row)), e.Action));
  668. }
  669. }
  670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  672. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  673. base.OnRowChanging(e);
  674. if ((this.ComplectRowChanging != null)) {
  675. this.ComplectRowChanging(this, new ComplectRowChangeEvent(((ComplectRow)(e.Row)), e.Action));
  676. }
  677. }
  678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  680. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  681. base.OnRowDeleted(e);
  682. if ((this.ComplectRowDeleted != null)) {
  683. this.ComplectRowDeleted(this, new ComplectRowChangeEvent(((ComplectRow)(e.Row)), e.Action));
  684. }
  685. }
  686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  688. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  689. base.OnRowDeleting(e);
  690. if ((this.ComplectRowDeleting != null)) {
  691. this.ComplectRowDeleting(this, new ComplectRowChangeEvent(((ComplectRow)(e.Row)), e.Action));
  692. }
  693. }
  694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  696. public void RemoveComplectRow(ComplectRow row) {
  697. this.Rows.Remove(row);
  698. }
  699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  701. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  702. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  703. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  704. _06_muskafidi_deDataSet ds = new _06_muskafidi_deDataSet();
  705. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  706. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  707. any1.MinOccurs = new decimal(0);
  708. any1.MaxOccurs = decimal.MaxValue;
  709. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  710. sequence.Items.Add(any1);
  711. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  712. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  713. any2.MinOccurs = new decimal(1);
  714. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  715. sequence.Items.Add(any2);
  716. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  717. attribute1.Name = "namespace";
  718. attribute1.FixedValue = ds.Namespace;
  719. type.Attributes.Add(attribute1);
  720. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  721. attribute2.Name = "tableTypeName";
  722. attribute2.FixedValue = "ComplectDataTable";
  723. type.Attributes.Add(attribute2);
  724. type.Particle = sequence;
  725. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  726. if (xs.Contains(dsSchema.TargetNamespace)) {
  727. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  728. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  729. try {
  730. global::System.Xml.Schema.XmlSchema schema = null;
  731. dsSchema.Write(s1);
  732. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  733. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  734. s2.SetLength(0);
  735. schema.Write(s2);
  736. if ((s1.Length == s2.Length)) {
  737. s1.Position = 0;
  738. s2.Position = 0;
  739. for (; ((s1.Position != s1.Length)
  740. && (s1.ReadByte() == s2.ReadByte())); ) {
  741. ;
  742. }
  743. if ((s1.Position == s1.Length)) {
  744. return type;
  745. }
  746. }
  747. }
  748. }
  749. finally {
  750. if ((s1 != null)) {
  751. s1.Close();
  752. }
  753. if ((s2 != null)) {
  754. s2.Close();
  755. }
  756. }
  757. }
  758. xs.Add(dsSchema);
  759. return type;
  760. }
  761. }
  762. /// <summary>
  763. ///Represents the strongly named DataTable class.
  764. ///</summary>
  765. [global::System.Serializable()]
  766. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  767. public partial class EdiniciIzmereniyaDataTable : global::System.Data.TypedTableBase<EdiniciIzmereniyaRow> {
  768. private global::System.Data.DataColumn columnid;
  769. private global::System.Data.DataColumn columnНаименование;
  770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  772. public EdiniciIzmereniyaDataTable() {
  773. this.TableName = "EdiniciIzmereniya";
  774. this.BeginInit();
  775. this.InitClass();
  776. this.EndInit();
  777. }
  778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  780. internal EdiniciIzmereniyaDataTable(global::System.Data.DataTable table) {
  781. this.TableName = table.TableName;
  782. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  783. this.CaseSensitive = table.CaseSensitive;
  784. }
  785. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  786. this.Locale = table.Locale;
  787. }
  788. if ((table.Namespace != table.DataSet.Namespace)) {
  789. this.Namespace = table.Namespace;
  790. }
  791. this.Prefix = table.Prefix;
  792. this.MinimumCapacity = table.MinimumCapacity;
  793. }
  794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  796. protected EdiniciIzmereniyaDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  797. base(info, context) {
  798. this.InitVars();
  799. }
  800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  802. public global::System.Data.DataColumn idColumn {
  803. get {
  804. return this.columnid;
  805. }
  806. }
  807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  809. public global::System.Data.DataColumn НаименованиеColumn {
  810. get {
  811. return this.columnНаименование;
  812. }
  813. }
  814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  816. [global::System.ComponentModel.Browsable(false)]
  817. public int Count {
  818. get {
  819. return this.Rows.Count;
  820. }
  821. }
  822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  824. public EdiniciIzmereniyaRow this[int index] {
  825. get {
  826. return ((EdiniciIzmereniyaRow)(this.Rows[index]));
  827. }
  828. }
  829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  830. public event EdiniciIzmereniyaRowChangeEventHandler EdiniciIzmereniyaRowChanging;
  831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  832. public event EdiniciIzmereniyaRowChangeEventHandler EdiniciIzmereniyaRowChanged;
  833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  834. public event EdiniciIzmereniyaRowChangeEventHandler EdiniciIzmereniyaRowDeleting;
  835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  836. public event EdiniciIzmereniyaRowChangeEventHandler EdiniciIzmereniyaRowDeleted;
  837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  839. public void AddEdiniciIzmereniyaRow(EdiniciIzmereniyaRow row) {
  840. this.Rows.Add(row);
  841. }
  842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  844. public EdiniciIzmereniyaRow AddEdiniciIzmereniyaRow(int id, string Наименование) {
  845. EdiniciIzmereniyaRow rowEdiniciIzmereniyaRow = ((EdiniciIzmereniyaRow)(this.NewRow()));
  846. object[] columnValuesArray = new object[] {
  847. id,
  848. Наименование};
  849. rowEdiniciIzmereniyaRow.ItemArray = columnValuesArray;
  850. this.Rows.Add(rowEdiniciIzmereniyaRow);
  851. return rowEdiniciIzmereniyaRow;
  852. }
  853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  855. public EdiniciIzmereniyaRow FindByid(int id) {
  856. return ((EdiniciIzmereniyaRow)(this.Rows.Find(new object[] {
  857. id})));
  858. }
  859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  861. public override global::System.Data.DataTable Clone() {
  862. EdiniciIzmereniyaDataTable cln = ((EdiniciIzmereniyaDataTable)(base.Clone()));
  863. cln.InitVars();
  864. return cln;
  865. }
  866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  868. protected override global::System.Data.DataTable CreateInstance() {
  869. return new EdiniciIzmereniyaDataTable();
  870. }
  871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  873. internal void InitVars() {
  874. this.columnid = base.Columns["id"];
  875. this.columnНаименование = base.Columns["Наименование"];
  876. }
  877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  879. private void InitClass() {
  880. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  881. base.Columns.Add(this.columnid);
  882. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  883. base.Columns.Add(this.columnНаименование);
  884. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  885. this.columnid}, true));
  886. this.columnid.AllowDBNull = false;
  887. this.columnid.Unique = true;
  888. this.columnНаименование.MaxLength = 50;
  889. }
  890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  892. public EdiniciIzmereniyaRow NewEdiniciIzmereniyaRow() {
  893. return ((EdiniciIzmereniyaRow)(this.NewRow()));
  894. }
  895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  897. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  898. return new EdiniciIzmereniyaRow(builder);
  899. }
  900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  902. protected override global::System.Type GetRowType() {
  903. return typeof(EdiniciIzmereniyaRow);
  904. }
  905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  907. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  908. base.OnRowChanged(e);
  909. if ((this.EdiniciIzmereniyaRowChanged != null)) {
  910. this.EdiniciIzmereniyaRowChanged(this, new EdiniciIzmereniyaRowChangeEvent(((EdiniciIzmereniyaRow)(e.Row)), e.Action));
  911. }
  912. }
  913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  915. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  916. base.OnRowChanging(e);
  917. if ((this.EdiniciIzmereniyaRowChanging != null)) {
  918. this.EdiniciIzmereniyaRowChanging(this, new EdiniciIzmereniyaRowChangeEvent(((EdiniciIzmereniyaRow)(e.Row)), e.Action));
  919. }
  920. }
  921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  923. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  924. base.OnRowDeleted(e);
  925. if ((this.EdiniciIzmereniyaRowDeleted != null)) {
  926. this.EdiniciIzmereniyaRowDeleted(this, new EdiniciIzmereniyaRowChangeEvent(((EdiniciIzmereniyaRow)(e.Row)), e.Action));
  927. }
  928. }
  929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  931. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  932. base.OnRowDeleting(e);
  933. if ((this.EdiniciIzmereniyaRowDeleting != null)) {
  934. this.EdiniciIzmereniyaRowDeleting(this, new EdiniciIzmereniyaRowChangeEvent(((EdiniciIzmereniyaRow)(e.Row)), e.Action));
  935. }
  936. }
  937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  939. public void RemoveEdiniciIzmereniyaRow(EdiniciIzmereniyaRow row) {
  940. this.Rows.Remove(row);
  941. }
  942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  944. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  945. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  946. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  947. _06_muskafidi_deDataSet ds = new _06_muskafidi_deDataSet();
  948. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  949. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  950. any1.MinOccurs = new decimal(0);
  951. any1.MaxOccurs = decimal.MaxValue;
  952. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  953. sequence.Items.Add(any1);
  954. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  955. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  956. any2.MinOccurs = new decimal(1);
  957. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  958. sequence.Items.Add(any2);
  959. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  960. attribute1.Name = "namespace";
  961. attribute1.FixedValue = ds.Namespace;
  962. type.Attributes.Add(attribute1);
  963. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  964. attribute2.Name = "tableTypeName";
  965. attribute2.FixedValue = "EdiniciIzmereniyaDataTable";
  966. type.Attributes.Add(attribute2);
  967. type.Particle = sequence;
  968. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  969. if (xs.Contains(dsSchema.TargetNamespace)) {
  970. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  971. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  972. try {
  973. global::System.Xml.Schema.XmlSchema schema = null;
  974. dsSchema.Write(s1);
  975. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  976. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  977. s2.SetLength(0);
  978. schema.Write(s2);
  979. if ((s1.Length == s2.Length)) {
  980. s1.Position = 0;
  981. s2.Position = 0;
  982. for (; ((s1.Position != s1.Length)
  983. && (s1.ReadByte() == s2.ReadByte())); ) {
  984. ;
  985. }
  986. if ((s1.Position == s1.Length)) {
  987. return type;
  988. }
  989. }
  990. }
  991. }
  992. finally {
  993. if ((s1 != null)) {
  994. s1.Close();
  995. }
  996. if ((s2 != null)) {
  997. s2.Close();
  998. }
  999. }
  1000. }
  1001. xs.Add(dsSchema);
  1002. return type;
  1003. }
  1004. }
  1005. /// <summary>
  1006. ///Represents the strongly named DataTable class.
  1007. ///</summary>
  1008. [global::System.Serializable()]
  1009. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1010. public partial class RolesDataTable : global::System.Data.TypedTableBase<RolesRow> {
  1011. private global::System.Data.DataColumn columnid;
  1012. private global::System.Data.DataColumn columnНаименование;
  1013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1015. public RolesDataTable() {
  1016. this.TableName = "Roles";
  1017. this.BeginInit();
  1018. this.InitClass();
  1019. this.EndInit();
  1020. }
  1021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1023. internal RolesDataTable(global::System.Data.DataTable table) {
  1024. this.TableName = table.TableName;
  1025. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1026. this.CaseSensitive = table.CaseSensitive;
  1027. }
  1028. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1029. this.Locale = table.Locale;
  1030. }
  1031. if ((table.Namespace != table.DataSet.Namespace)) {
  1032. this.Namespace = table.Namespace;
  1033. }
  1034. this.Prefix = table.Prefix;
  1035. this.MinimumCapacity = table.MinimumCapacity;
  1036. }
  1037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1039. protected RolesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1040. base(info, context) {
  1041. this.InitVars();
  1042. }
  1043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1045. public global::System.Data.DataColumn idColumn {
  1046. get {
  1047. return this.columnid;
  1048. }
  1049. }
  1050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1052. public global::System.Data.DataColumn НаименованиеColumn {
  1053. get {
  1054. return this.columnНаименование;
  1055. }
  1056. }
  1057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1059. [global::System.ComponentModel.Browsable(false)]
  1060. public int Count {
  1061. get {
  1062. return this.Rows.Count;
  1063. }
  1064. }
  1065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1067. public RolesRow this[int index] {
  1068. get {
  1069. return ((RolesRow)(this.Rows[index]));
  1070. }
  1071. }
  1072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1073. public event RolesRowChangeEventHandler RolesRowChanging;
  1074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1075. public event RolesRowChangeEventHandler RolesRowChanged;
  1076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1077. public event RolesRowChangeEventHandler RolesRowDeleting;
  1078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1079. public event RolesRowChangeEventHandler RolesRowDeleted;
  1080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1082. public void AddRolesRow(RolesRow row) {
  1083. this.Rows.Add(row);
  1084. }
  1085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1087. public RolesRow AddRolesRow(int id, string Наименование) {
  1088. RolesRow rowRolesRow = ((RolesRow)(this.NewRow()));
  1089. object[] columnValuesArray = new object[] {
  1090. id,
  1091. Наименование};
  1092. rowRolesRow.ItemArray = columnValuesArray;
  1093. this.Rows.Add(rowRolesRow);
  1094. return rowRolesRow;
  1095. }
  1096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1098. public RolesRow FindByid(int id) {
  1099. return ((RolesRow)(this.Rows.Find(new object[] {
  1100. id})));
  1101. }
  1102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1104. public override global::System.Data.DataTable Clone() {
  1105. RolesDataTable cln = ((RolesDataTable)(base.Clone()));
  1106. cln.InitVars();
  1107. return cln;
  1108. }
  1109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1111. protected override global::System.Data.DataTable CreateInstance() {
  1112. return new RolesDataTable();
  1113. }
  1114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1116. internal void InitVars() {
  1117. this.columnid = base.Columns["id"];
  1118. this.columnНаименование = base.Columns["Наименование"];
  1119. }
  1120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1122. private void InitClass() {
  1123. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  1124. base.Columns.Add(this.columnid);
  1125. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  1126. base.Columns.Add(this.columnНаименование);
  1127. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1128. this.columnid}, true));
  1129. this.columnid.AllowDBNull = false;
  1130. this.columnid.Unique = true;
  1131. this.columnНаименование.MaxLength = 50;
  1132. }
  1133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1135. public RolesRow NewRolesRow() {
  1136. return ((RolesRow)(this.NewRow()));
  1137. }
  1138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1140. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1141. return new RolesRow(builder);
  1142. }
  1143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1145. protected override global::System.Type GetRowType() {
  1146. return typeof(RolesRow);
  1147. }
  1148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1150. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1151. base.OnRowChanged(e);
  1152. if ((this.RolesRowChanged != null)) {
  1153. this.RolesRowChanged(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  1154. }
  1155. }
  1156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1158. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1159. base.OnRowChanging(e);
  1160. if ((this.RolesRowChanging != null)) {
  1161. this.RolesRowChanging(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  1162. }
  1163. }
  1164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1166. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1167. base.OnRowDeleted(e);
  1168. if ((this.RolesRowDeleted != null)) {
  1169. this.RolesRowDeleted(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  1170. }
  1171. }
  1172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1174. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1175. base.OnRowDeleting(e);
  1176. if ((this.RolesRowDeleting != null)) {
  1177. this.RolesRowDeleting(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  1178. }
  1179. }
  1180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1182. public void RemoveRolesRow(RolesRow row) {
  1183. this.Rows.Remove(row);
  1184. }
  1185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1187. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1188. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1189. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1190. _06_muskafidi_deDataSet ds = new _06_muskafidi_deDataSet();
  1191. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1192. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1193. any1.MinOccurs = new decimal(0);
  1194. any1.MaxOccurs = decimal.MaxValue;
  1195. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1196. sequence.Items.Add(any1);
  1197. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1198. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1199. any2.MinOccurs = new decimal(1);
  1200. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1201. sequence.Items.Add(any2);
  1202. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1203. attribute1.Name = "namespace";
  1204. attribute1.FixedValue = ds.Namespace;
  1205. type.Attributes.Add(attribute1);
  1206. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1207. attribute2.Name = "tableTypeName";
  1208. attribute2.FixedValue = "RolesDataTable";
  1209. type.Attributes.Add(attribute2);
  1210. type.Particle = sequence;
  1211. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1212. if (xs.Contains(dsSchema.TargetNamespace)) {
  1213. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1214. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1215. try {
  1216. global::System.Xml.Schema.XmlSchema schema = null;
  1217. dsSchema.Write(s1);
  1218. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1219. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1220. s2.SetLength(0);
  1221. schema.Write(s2);
  1222. if ((s1.Length == s2.Length)) {
  1223. s1.Position = 0;
  1224. s2.Position = 0;
  1225. for (; ((s1.Position != s1.Length)
  1226. && (s1.ReadByte() == s2.ReadByte())); ) {
  1227. ;
  1228. }
  1229. if ((s1.Position == s1.Length)) {
  1230. return type;
  1231. }
  1232. }
  1233. }
  1234. }
  1235. finally {
  1236. if ((s1 != null)) {
  1237. s1.Close();
  1238. }
  1239. if ((s2 != null)) {
  1240. s2.Close();
  1241. }
  1242. }
  1243. }
  1244. xs.Add(dsSchema);
  1245. return type;
  1246. }
  1247. }
  1248. /// <summary>
  1249. ///Represents the strongly named DataTable class.
  1250. ///</summary>
  1251. [global::System.Serializable()]
  1252. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1253. public partial class StatusDataTable : global::System.Data.TypedTableBase<StatusRow> {
  1254. private global::System.Data.DataColumn columnid;
  1255. private global::System.Data.DataColumn columnНаименование;
  1256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1258. public StatusDataTable() {
  1259. this.TableName = "Status";
  1260. this.BeginInit();
  1261. this.InitClass();
  1262. this.EndInit();
  1263. }
  1264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1266. internal StatusDataTable(global::System.Data.DataTable table) {
  1267. this.TableName = table.TableName;
  1268. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1269. this.CaseSensitive = table.CaseSensitive;
  1270. }
  1271. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1272. this.Locale = table.Locale;
  1273. }
  1274. if ((table.Namespace != table.DataSet.Namespace)) {
  1275. this.Namespace = table.Namespace;
  1276. }
  1277. this.Prefix = table.Prefix;
  1278. this.MinimumCapacity = table.MinimumCapacity;
  1279. }
  1280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1282. protected StatusDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1283. base(info, context) {
  1284. this.InitVars();
  1285. }
  1286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1288. public global::System.Data.DataColumn idColumn {
  1289. get {
  1290. return this.columnid;
  1291. }
  1292. }
  1293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1295. public global::System.Data.DataColumn НаименованиеColumn {
  1296. get {
  1297. return this.columnНаименование;
  1298. }
  1299. }
  1300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1302. [global::System.ComponentModel.Browsable(false)]
  1303. public int Count {
  1304. get {
  1305. return this.Rows.Count;
  1306. }
  1307. }
  1308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1310. public StatusRow this[int index] {
  1311. get {
  1312. return ((StatusRow)(this.Rows[index]));
  1313. }
  1314. }
  1315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1316. public event StatusRowChangeEventHandler StatusRowChanging;
  1317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1318. public event StatusRowChangeEventHandler StatusRowChanged;
  1319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1320. public event StatusRowChangeEventHandler StatusRowDeleting;
  1321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1322. public event StatusRowChangeEventHandler StatusRowDeleted;
  1323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1325. public void AddStatusRow(StatusRow row) {
  1326. this.Rows.Add(row);
  1327. }
  1328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1330. public StatusRow AddStatusRow(int id, string Наименование) {
  1331. StatusRow rowStatusRow = ((StatusRow)(this.NewRow()));
  1332. object[] columnValuesArray = new object[] {
  1333. id,
  1334. Наименование};
  1335. rowStatusRow.ItemArray = columnValuesArray;
  1336. this.Rows.Add(rowStatusRow);
  1337. return rowStatusRow;
  1338. }
  1339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1341. public StatusRow FindByid(int id) {
  1342. return ((StatusRow)(this.Rows.Find(new object[] {
  1343. id})));
  1344. }
  1345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1347. public override global::System.Data.DataTable Clone() {
  1348. StatusDataTable cln = ((StatusDataTable)(base.Clone()));
  1349. cln.InitVars();
  1350. return cln;
  1351. }
  1352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1354. protected override global::System.Data.DataTable CreateInstance() {
  1355. return new StatusDataTable();
  1356. }
  1357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1359. internal void InitVars() {
  1360. this.columnid = base.Columns["id"];
  1361. this.columnНаименование = base.Columns["Наименование"];
  1362. }
  1363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1365. private void InitClass() {
  1366. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  1367. base.Columns.Add(this.columnid);
  1368. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  1369. base.Columns.Add(this.columnНаименование);
  1370. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1371. this.columnid}, true));
  1372. this.columnid.AllowDBNull = false;
  1373. this.columnid.Unique = true;
  1374. this.columnНаименование.MaxLength = 50;
  1375. }
  1376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1378. public StatusRow NewStatusRow() {
  1379. return ((StatusRow)(this.NewRow()));
  1380. }
  1381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1383. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1384. return new StatusRow(builder);
  1385. }
  1386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1388. protected override global::System.Type GetRowType() {
  1389. return typeof(StatusRow);
  1390. }
  1391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1393. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1394. base.OnRowChanged(e);
  1395. if ((this.StatusRowChanged != null)) {
  1396. this.StatusRowChanged(this, new StatusRowChangeEvent(((StatusRow)(e.Row)), e.Action));
  1397. }
  1398. }
  1399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1401. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1402. base.OnRowChanging(e);
  1403. if ((this.StatusRowChanging != null)) {
  1404. this.StatusRowChanging(this, new StatusRowChangeEvent(((StatusRow)(e.Row)), e.Action));
  1405. }
  1406. }
  1407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1409. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1410. base.OnRowDeleted(e);
  1411. if ((this.StatusRowDeleted != null)) {
  1412. this.StatusRowDeleted(this, new StatusRowChangeEvent(((StatusRow)(e.Row)), e.Action));
  1413. }
  1414. }
  1415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1417. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1418. base.OnRowDeleting(e);
  1419. if ((this.StatusRowDeleting != null)) {
  1420. this.StatusRowDeleting(this, new StatusRowChangeEvent(((StatusRow)(e.Row)), e.Action));
  1421. }
  1422. }
  1423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1425. public void RemoveStatusRow(StatusRow row) {
  1426. this.Rows.Remove(row);
  1427. }
  1428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1430. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1431. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1432. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1433. _06_muskafidi_deDataSet ds = new _06_muskafidi_deDataSet();
  1434. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1435. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1436. any1.MinOccurs = new decimal(0);
  1437. any1.MaxOccurs = decimal.MaxValue;
  1438. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1439. sequence.Items.Add(any1);
  1440. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1441. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1442. any2.MinOccurs = new decimal(1);
  1443. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1444. sequence.Items.Add(any2);
  1445. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1446. attribute1.Name = "namespace";
  1447. attribute1.FixedValue = ds.Namespace;
  1448. type.Attributes.Add(attribute1);
  1449. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1450. attribute2.Name = "tableTypeName";
  1451. attribute2.FixedValue = "StatusDataTable";
  1452. type.Attributes.Add(attribute2);
  1453. type.Particle = sequence;
  1454. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1455. if (xs.Contains(dsSchema.TargetNamespace)) {
  1456. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1457. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1458. try {
  1459. global::System.Xml.Schema.XmlSchema schema = null;
  1460. dsSchema.Write(s1);
  1461. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1462. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1463. s2.SetLength(0);
  1464. schema.Write(s2);
  1465. if ((s1.Length == s2.Length)) {
  1466. s1.Position = 0;
  1467. s2.Position = 0;
  1468. for (; ((s1.Position != s1.Length)
  1469. && (s1.ReadByte() == s2.ReadByte())); ) {
  1470. ;
  1471. }
  1472. if ((s1.Position == s1.Length)) {
  1473. return type;
  1474. }
  1475. }
  1476. }
  1477. }
  1478. finally {
  1479. if ((s1 != null)) {
  1480. s1.Close();
  1481. }
  1482. if ((s2 != null)) {
  1483. s2.Close();
  1484. }
  1485. }
  1486. }
  1487. xs.Add(dsSchema);
  1488. return type;
  1489. }
  1490. }
  1491. /// <summary>
  1492. ///Represents the strongly named DataTable class.
  1493. ///</summary>
  1494. [global::System.Serializable()]
  1495. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1496. public partial class StatusZakazaDataTable : global::System.Data.TypedTableBase<StatusZakazaRow> {
  1497. private global::System.Data.DataColumn columnid;
  1498. private global::System.Data.DataColumn columnНаименование;
  1499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1501. public StatusZakazaDataTable() {
  1502. this.TableName = "StatusZakaza";
  1503. this.BeginInit();
  1504. this.InitClass();
  1505. this.EndInit();
  1506. }
  1507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1509. internal StatusZakazaDataTable(global::System.Data.DataTable table) {
  1510. this.TableName = table.TableName;
  1511. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1512. this.CaseSensitive = table.CaseSensitive;
  1513. }
  1514. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1515. this.Locale = table.Locale;
  1516. }
  1517. if ((table.Namespace != table.DataSet.Namespace)) {
  1518. this.Namespace = table.Namespace;
  1519. }
  1520. this.Prefix = table.Prefix;
  1521. this.MinimumCapacity = table.MinimumCapacity;
  1522. }
  1523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1525. protected StatusZakazaDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1526. base(info, context) {
  1527. this.InitVars();
  1528. }
  1529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1531. public global::System.Data.DataColumn idColumn {
  1532. get {
  1533. return this.columnid;
  1534. }
  1535. }
  1536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1538. public global::System.Data.DataColumn НаименованиеColumn {
  1539. get {
  1540. return this.columnНаименование;
  1541. }
  1542. }
  1543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1545. [global::System.ComponentModel.Browsable(false)]
  1546. public int Count {
  1547. get {
  1548. return this.Rows.Count;
  1549. }
  1550. }
  1551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1553. public StatusZakazaRow this[int index] {
  1554. get {
  1555. return ((StatusZakazaRow)(this.Rows[index]));
  1556. }
  1557. }
  1558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1559. public event StatusZakazaRowChangeEventHandler StatusZakazaRowChanging;
  1560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1561. public event StatusZakazaRowChangeEventHandler StatusZakazaRowChanged;
  1562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1563. public event StatusZakazaRowChangeEventHandler StatusZakazaRowDeleting;
  1564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1565. public event StatusZakazaRowChangeEventHandler StatusZakazaRowDeleted;
  1566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1568. public void AddStatusZakazaRow(StatusZakazaRow row) {
  1569. this.Rows.Add(row);
  1570. }
  1571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1573. public StatusZakazaRow AddStatusZakazaRow(int id, string Наименование) {
  1574. StatusZakazaRow rowStatusZakazaRow = ((StatusZakazaRow)(this.NewRow()));
  1575. object[] columnValuesArray = new object[] {
  1576. id,
  1577. Наименование};
  1578. rowStatusZakazaRow.ItemArray = columnValuesArray;
  1579. this.Rows.Add(rowStatusZakazaRow);
  1580. return rowStatusZakazaRow;
  1581. }
  1582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1584. public StatusZakazaRow FindByid(int id) {
  1585. return ((StatusZakazaRow)(this.Rows.Find(new object[] {
  1586. id})));
  1587. }
  1588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1590. public override global::System.Data.DataTable Clone() {
  1591. StatusZakazaDataTable cln = ((StatusZakazaDataTable)(base.Clone()));
  1592. cln.InitVars();
  1593. return cln;
  1594. }
  1595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1597. protected override global::System.Data.DataTable CreateInstance() {
  1598. return new StatusZakazaDataTable();
  1599. }
  1600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1602. internal void InitVars() {
  1603. this.columnid = base.Columns["id"];
  1604. this.columnНаименование = base.Columns["Наименование"];
  1605. }
  1606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1608. private void InitClass() {
  1609. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  1610. base.Columns.Add(this.columnid);
  1611. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  1612. base.Columns.Add(this.columnНаименование);
  1613. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1614. this.columnid}, true));
  1615. this.columnid.AllowDBNull = false;
  1616. this.columnid.Unique = true;
  1617. this.columnНаименование.MaxLength = 50;
  1618. }
  1619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1621. public StatusZakazaRow NewStatusZakazaRow() {
  1622. return ((StatusZakazaRow)(this.NewRow()));
  1623. }
  1624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1626. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1627. return new StatusZakazaRow(builder);
  1628. }
  1629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1631. protected override global::System.Type GetRowType() {
  1632. return typeof(StatusZakazaRow);
  1633. }
  1634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1636. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1637. base.OnRowChanged(e);
  1638. if ((this.StatusZakazaRowChanged != null)) {
  1639. this.StatusZakazaRowChanged(this, new StatusZakazaRowChangeEvent(((StatusZakazaRow)(e.Row)), e.Action));
  1640. }
  1641. }
  1642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1644. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1645. base.OnRowChanging(e);
  1646. if ((this.StatusZakazaRowChanging != null)) {
  1647. this.StatusZakazaRowChanging(this, new StatusZakazaRowChangeEvent(((StatusZakazaRow)(e.Row)), e.Action));
  1648. }
  1649. }
  1650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1652. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1653. base.OnRowDeleted(e);
  1654. if ((this.StatusZakazaRowDeleted != null)) {
  1655. this.StatusZakazaRowDeleted(this, new StatusZakazaRowChangeEvent(((StatusZakazaRow)(e.Row)), e.Action));
  1656. }
  1657. }
  1658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1660. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1661. base.OnRowDeleting(e);
  1662. if ((this.StatusZakazaRowDeleting != null)) {
  1663. this.StatusZakazaRowDeleting(this, new StatusZakazaRowChangeEvent(((StatusZakazaRow)(e.Row)), e.Action));
  1664. }
  1665. }
  1666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1668. public void RemoveStatusZakazaRow(StatusZakazaRow row) {
  1669. this.Rows.Remove(row);
  1670. }
  1671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1673. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1674. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1675. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1676. _06_muskafidi_deDataSet ds = new _06_muskafidi_deDataSet();
  1677. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1678. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1679. any1.MinOccurs = new decimal(0);
  1680. any1.MaxOccurs = decimal.MaxValue;
  1681. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1682. sequence.Items.Add(any1);
  1683. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1684. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1685. any2.MinOccurs = new decimal(1);
  1686. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1687. sequence.Items.Add(any2);
  1688. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1689. attribute1.Name = "namespace";
  1690. attribute1.FixedValue = ds.Namespace;
  1691. type.Attributes.Add(attribute1);
  1692. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1693. attribute2.Name = "tableTypeName";
  1694. attribute2.FixedValue = "StatusZakazaDataTable";
  1695. type.Attributes.Add(attribute2);
  1696. type.Particle = sequence;
  1697. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1698. if (xs.Contains(dsSchema.TargetNamespace)) {
  1699. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1700. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1701. try {
  1702. global::System.Xml.Schema.XmlSchema schema = null;
  1703. dsSchema.Write(s1);
  1704. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1705. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1706. s2.SetLength(0);
  1707. schema.Write(s2);
  1708. if ((s1.Length == s2.Length)) {
  1709. s1.Position = 0;
  1710. s2.Position = 0;
  1711. for (; ((s1.Position != s1.Length)
  1712. && (s1.ReadByte() == s2.ReadByte())); ) {
  1713. ;
  1714. }
  1715. if ((s1.Position == s1.Length)) {
  1716. return type;
  1717. }
  1718. }
  1719. }
  1720. }
  1721. finally {
  1722. if ((s1 != null)) {
  1723. s1.Close();
  1724. }
  1725. if ((s2 != null)) {
  1726. s2.Close();
  1727. }
  1728. }
  1729. }
  1730. xs.Add(dsSchema);
  1731. return type;
  1732. }
  1733. }
  1734. /// <summary>
  1735. ///Represents the strongly named DataTable class.
  1736. ///</summary>
  1737. [global::System.Serializable()]
  1738. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1739. public partial class usersDataTable : global::System.Data.TypedTableBase<usersRow> {
  1740. private global::System.Data.DataColumn columnid;
  1741. private global::System.Data.DataColumn columnФИО;
  1742. private global::System.Data.DataColumn columnusername;
  1743. private global::System.Data.DataColumn columnpassword;
  1744. private global::System.Data.DataColumn columnРоль;
  1745. private global::System.Data.DataColumn columnСтатус;
  1746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1748. public usersDataTable() {
  1749. this.TableName = "users";
  1750. this.BeginInit();
  1751. this.InitClass();
  1752. this.EndInit();
  1753. }
  1754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1756. internal usersDataTable(global::System.Data.DataTable table) {
  1757. this.TableName = table.TableName;
  1758. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1759. this.CaseSensitive = table.CaseSensitive;
  1760. }
  1761. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1762. this.Locale = table.Locale;
  1763. }
  1764. if ((table.Namespace != table.DataSet.Namespace)) {
  1765. this.Namespace = table.Namespace;
  1766. }
  1767. this.Prefix = table.Prefix;
  1768. this.MinimumCapacity = table.MinimumCapacity;
  1769. }
  1770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1772. protected usersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1773. base(info, context) {
  1774. this.InitVars();
  1775. }
  1776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1778. public global::System.Data.DataColumn idColumn {
  1779. get {
  1780. return this.columnid;
  1781. }
  1782. }
  1783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1785. public global::System.Data.DataColumn ФИОColumn {
  1786. get {
  1787. return this.columnФИО;
  1788. }
  1789. }
  1790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1792. public global::System.Data.DataColumn usernameColumn {
  1793. get {
  1794. return this.columnusername;
  1795. }
  1796. }
  1797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1799. public global::System.Data.DataColumn passwordColumn {
  1800. get {
  1801. return this.columnpassword;
  1802. }
  1803. }
  1804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1806. public global::System.Data.DataColumn РольColumn {
  1807. get {
  1808. return this.columnРоль;
  1809. }
  1810. }
  1811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1813. public global::System.Data.DataColumn СтатусColumn {
  1814. get {
  1815. return this.columnСтатус;
  1816. }
  1817. }
  1818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1820. [global::System.ComponentModel.Browsable(false)]
  1821. public int Count {
  1822. get {
  1823. return this.Rows.Count;
  1824. }
  1825. }
  1826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1828. public usersRow this[int index] {
  1829. get {
  1830. return ((usersRow)(this.Rows[index]));
  1831. }
  1832. }
  1833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1834. public event usersRowChangeEventHandler usersRowChanging;
  1835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1836. public event usersRowChangeEventHandler usersRowChanged;
  1837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1838. public event usersRowChangeEventHandler usersRowDeleting;
  1839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1840. public event usersRowChangeEventHandler usersRowDeleted;
  1841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1843. public void AddusersRow(usersRow row) {
  1844. this.Rows.Add(row);
  1845. }
  1846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1848. public usersRow AddusersRow(int id, string ФИО, string username, string password, RolesRow parentRolesRowByFK_users_Roles, StatusRow parentStatusRowByFK_users_Status) {
  1849. usersRow rowusersRow = ((usersRow)(this.NewRow()));
  1850. object[] columnValuesArray = new object[] {
  1851. id,
  1852. ФИО,
  1853. username,
  1854. password,
  1855. null,
  1856. null};
  1857. if ((parentRolesRowByFK_users_Roles != null)) {
  1858. columnValuesArray[4] = parentRolesRowByFK_users_Roles[0];
  1859. }
  1860. if ((parentStatusRowByFK_users_Status != null)) {
  1861. columnValuesArray[5] = parentStatusRowByFK_users_Status[0];
  1862. }
  1863. rowusersRow.ItemArray = columnValuesArray;
  1864. this.Rows.Add(rowusersRow);
  1865. return rowusersRow;
  1866. }
  1867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1869. public usersRow FindByid(int id) {
  1870. return ((usersRow)(this.Rows.Find(new object[] {
  1871. id})));
  1872. }
  1873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1875. public override global::System.Data.DataTable Clone() {
  1876. usersDataTable cln = ((usersDataTable)(base.Clone()));
  1877. cln.InitVars();
  1878. return cln;
  1879. }
  1880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1882. protected override global::System.Data.DataTable CreateInstance() {
  1883. return new usersDataTable();
  1884. }
  1885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1887. internal void InitVars() {
  1888. this.columnid = base.Columns["id"];
  1889. this.columnФИО = base.Columns["ФИО"];
  1890. this.columnusername = base.Columns["username"];
  1891. this.columnpassword = base.Columns["password"];
  1892. this.columnРоль = base.Columns["Роль"];
  1893. this.columnСтатус = base.Columns["Статус"];
  1894. }
  1895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1897. private void InitClass() {
  1898. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  1899. base.Columns.Add(this.columnid);
  1900. this.columnФИО = new global::System.Data.DataColumn("ФИО", typeof(string), null, global::System.Data.MappingType.Element);
  1901. base.Columns.Add(this.columnФИО);
  1902. this.columnusername = new global::System.Data.DataColumn("username", typeof(string), null, global::System.Data.MappingType.Element);
  1903. base.Columns.Add(this.columnusername);
  1904. this.columnpassword = new global::System.Data.DataColumn("password", typeof(string), null, global::System.Data.MappingType.Element);
  1905. base.Columns.Add(this.columnpassword);
  1906. this.columnРоль = new global::System.Data.DataColumn("Роль", typeof(int), null, global::System.Data.MappingType.Element);
  1907. base.Columns.Add(this.columnРоль);
  1908. this.columnСтатус = new global::System.Data.DataColumn("Статус", typeof(int), null, global::System.Data.MappingType.Element);
  1909. base.Columns.Add(this.columnСтатус);
  1910. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1911. this.columnid}, true));
  1912. this.columnid.AllowDBNull = false;
  1913. this.columnid.Unique = true;
  1914. this.columnФИО.MaxLength = 50;
  1915. this.columnusername.MaxLength = 50;
  1916. this.columnpassword.MaxLength = 50;
  1917. }
  1918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1920. public usersRow NewusersRow() {
  1921. return ((usersRow)(this.NewRow()));
  1922. }
  1923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1925. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1926. return new usersRow(builder);
  1927. }
  1928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1930. protected override global::System.Type GetRowType() {
  1931. return typeof(usersRow);
  1932. }
  1933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1935. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1936. base.OnRowChanged(e);
  1937. if ((this.usersRowChanged != null)) {
  1938. this.usersRowChanged(this, new usersRowChangeEvent(((usersRow)(e.Row)), e.Action));
  1939. }
  1940. }
  1941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1943. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1944. base.OnRowChanging(e);
  1945. if ((this.usersRowChanging != null)) {
  1946. this.usersRowChanging(this, new usersRowChangeEvent(((usersRow)(e.Row)), e.Action));
  1947. }
  1948. }
  1949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1951. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1952. base.OnRowDeleted(e);
  1953. if ((this.usersRowDeleted != null)) {
  1954. this.usersRowDeleted(this, new usersRowChangeEvent(((usersRow)(e.Row)), e.Action));
  1955. }
  1956. }
  1957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1959. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1960. base.OnRowDeleting(e);
  1961. if ((this.usersRowDeleting != null)) {
  1962. this.usersRowDeleting(this, new usersRowChangeEvent(((usersRow)(e.Row)), e.Action));
  1963. }
  1964. }
  1965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1967. public void RemoveusersRow(usersRow row) {
  1968. this.Rows.Remove(row);
  1969. }
  1970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1972. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1973. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1974. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1975. _06_muskafidi_deDataSet ds = new _06_muskafidi_deDataSet();
  1976. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1977. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1978. any1.MinOccurs = new decimal(0);
  1979. any1.MaxOccurs = decimal.MaxValue;
  1980. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1981. sequence.Items.Add(any1);
  1982. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1983. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1984. any2.MinOccurs = new decimal(1);
  1985. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1986. sequence.Items.Add(any2);
  1987. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1988. attribute1.Name = "namespace";
  1989. attribute1.FixedValue = ds.Namespace;
  1990. type.Attributes.Add(attribute1);
  1991. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1992. attribute2.Name = "tableTypeName";
  1993. attribute2.FixedValue = "usersDataTable";
  1994. type.Attributes.Add(attribute2);
  1995. type.Particle = sequence;
  1996. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1997. if (xs.Contains(dsSchema.TargetNamespace)) {
  1998. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1999. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2000. try {
  2001. global::System.Xml.Schema.XmlSchema schema = null;
  2002. dsSchema.Write(s1);
  2003. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2004. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2005. s2.SetLength(0);
  2006. schema.Write(s2);
  2007. if ((s1.Length == s2.Length)) {
  2008. s1.Position = 0;
  2009. s2.Position = 0;
  2010. for (; ((s1.Position != s1.Length)
  2011. && (s1.ReadByte() == s2.ReadByte())); ) {
  2012. ;
  2013. }
  2014. if ((s1.Position == s1.Length)) {
  2015. return type;
  2016. }
  2017. }
  2018. }
  2019. }
  2020. finally {
  2021. if ((s1 != null)) {
  2022. s1.Close();
  2023. }
  2024. if ((s2 != null)) {
  2025. s2.Close();
  2026. }
  2027. }
  2028. }
  2029. xs.Add(dsSchema);
  2030. return type;
  2031. }
  2032. }
  2033. /// <summary>
  2034. ///Represents the strongly named DataTable class.
  2035. ///</summary>
  2036. [global::System.Serializable()]
  2037. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2038. public partial class ZacaziDataTable : global::System.Data.TypedTableBase<ZacaziRow> {
  2039. private global::System.Data.DataColumn columnid;
  2040. private global::System.Data.DataColumn columnНаименование;
  2041. private global::System.Data.DataColumn columnЕдиница_измерения;
  2042. private global::System.Data.DataColumn columnТип_материала;
  2043. private global::System.Data.DataColumn columnЦена;
  2044. private global::System.Data.DataColumn columnСтатус;
  2045. private global::System.Data.DataColumn columnДата;
  2046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2048. public ZacaziDataTable() {
  2049. this.TableName = "Zacazi";
  2050. this.BeginInit();
  2051. this.InitClass();
  2052. this.EndInit();
  2053. }
  2054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2056. internal ZacaziDataTable(global::System.Data.DataTable table) {
  2057. this.TableName = table.TableName;
  2058. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2059. this.CaseSensitive = table.CaseSensitive;
  2060. }
  2061. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2062. this.Locale = table.Locale;
  2063. }
  2064. if ((table.Namespace != table.DataSet.Namespace)) {
  2065. this.Namespace = table.Namespace;
  2066. }
  2067. this.Prefix = table.Prefix;
  2068. this.MinimumCapacity = table.MinimumCapacity;
  2069. }
  2070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2072. protected ZacaziDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2073. base(info, context) {
  2074. this.InitVars();
  2075. }
  2076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2078. public global::System.Data.DataColumn idColumn {
  2079. get {
  2080. return this.columnid;
  2081. }
  2082. }
  2083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2085. public global::System.Data.DataColumn НаименованиеColumn {
  2086. get {
  2087. return this.columnНаименование;
  2088. }
  2089. }
  2090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2092. public global::System.Data.DataColumn Единица_измеренияColumn {
  2093. get {
  2094. return this.columnЕдиница_измерения;
  2095. }
  2096. }
  2097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2099. public global::System.Data.DataColumn Тип_материалаColumn {
  2100. get {
  2101. return this.columnТип_материала;
  2102. }
  2103. }
  2104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2106. public global::System.Data.DataColumn ЦенаColumn {
  2107. get {
  2108. return this.columnЦена;
  2109. }
  2110. }
  2111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2113. public global::System.Data.DataColumn СтатусColumn {
  2114. get {
  2115. return this.columnСтатус;
  2116. }
  2117. }
  2118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2120. public global::System.Data.DataColumn ДатаColumn {
  2121. get {
  2122. return this.columnДата;
  2123. }
  2124. }
  2125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2127. [global::System.ComponentModel.Browsable(false)]
  2128. public int Count {
  2129. get {
  2130. return this.Rows.Count;
  2131. }
  2132. }
  2133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2135. public ZacaziRow this[int index] {
  2136. get {
  2137. return ((ZacaziRow)(this.Rows[index]));
  2138. }
  2139. }
  2140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2141. public event ZacaziRowChangeEventHandler ZacaziRowChanging;
  2142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2143. public event ZacaziRowChangeEventHandler ZacaziRowChanged;
  2144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2145. public event ZacaziRowChangeEventHandler ZacaziRowDeleting;
  2146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2147. public event ZacaziRowChangeEventHandler ZacaziRowDeleted;
  2148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2150. public void AddZacaziRow(ZacaziRow row) {
  2151. this.Rows.Add(row);
  2152. }
  2153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2155. public ZacaziRow AddZacaziRow(int id, string Наименование, EdiniciIzmereniyaRow parentEdiniciIzmereniyaRowByFK_Zacazi_EdiniciIzmereniya, string Тип_материала, string Цена, StatusZakazaRow parentStatusZakazaRowByFK_Zacazi_StatusZakaza, System.DateTime Дата) {
  2156. ZacaziRow rowZacaziRow = ((ZacaziRow)(this.NewRow()));
  2157. object[] columnValuesArray = new object[] {
  2158. id,
  2159. Наименование,
  2160. null,
  2161. Тип_материала,
  2162. Цена,
  2163. null,
  2164. Дата};
  2165. if ((parentEdiniciIzmereniyaRowByFK_Zacazi_EdiniciIzmereniya != null)) {
  2166. columnValuesArray[2] = parentEdiniciIzmereniyaRowByFK_Zacazi_EdiniciIzmereniya[0];
  2167. }
  2168. if ((parentStatusZakazaRowByFK_Zacazi_StatusZakaza != null)) {
  2169. columnValuesArray[5] = parentStatusZakazaRowByFK_Zacazi_StatusZakaza[0];
  2170. }
  2171. rowZacaziRow.ItemArray = columnValuesArray;
  2172. this.Rows.Add(rowZacaziRow);
  2173. return rowZacaziRow;
  2174. }
  2175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2177. public ZacaziRow FindByid(int id) {
  2178. return ((ZacaziRow)(this.Rows.Find(new object[] {
  2179. id})));
  2180. }
  2181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2183. public override global::System.Data.DataTable Clone() {
  2184. ZacaziDataTable cln = ((ZacaziDataTable)(base.Clone()));
  2185. cln.InitVars();
  2186. return cln;
  2187. }
  2188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2190. protected override global::System.Data.DataTable CreateInstance() {
  2191. return new ZacaziDataTable();
  2192. }
  2193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2195. internal void InitVars() {
  2196. this.columnid = base.Columns["id"];
  2197. this.columnНаименование = base.Columns["Наименование"];
  2198. this.columnЕдиница_измерения = base.Columns["Единица измерения"];
  2199. this.columnТип_материала = base.Columns["Тип материала"];
  2200. this.columnЦена = base.Columns["Цена"];
  2201. this.columnСтатус = base.Columns["Статус"];
  2202. this.columnДата = base.Columns["Дата"];
  2203. }
  2204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2206. private void InitClass() {
  2207. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  2208. base.Columns.Add(this.columnid);
  2209. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  2210. base.Columns.Add(this.columnНаименование);
  2211. this.columnЕдиница_измерения = new global::System.Data.DataColumn("Единица измерения", typeof(int), null, global::System.Data.MappingType.Element);
  2212. base.Columns.Add(this.columnЕдиница_измерения);
  2213. this.columnТип_материала = new global::System.Data.DataColumn("Тип материала", typeof(string), null, global::System.Data.MappingType.Element);
  2214. base.Columns.Add(this.columnТип_материала);
  2215. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(string), null, global::System.Data.MappingType.Element);
  2216. base.Columns.Add(this.columnЦена);
  2217. this.columnСтатус = new global::System.Data.DataColumn("Статус", typeof(int), null, global::System.Data.MappingType.Element);
  2218. base.Columns.Add(this.columnСтатус);
  2219. this.columnДата = new global::System.Data.DataColumn("Дата", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2220. base.Columns.Add(this.columnДата);
  2221. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2222. this.columnid}, true));
  2223. this.columnid.AllowDBNull = false;
  2224. this.columnid.Unique = true;
  2225. this.columnНаименование.MaxLength = 50;
  2226. this.columnТип_материала.MaxLength = 50;
  2227. this.columnЦена.MaxLength = 50;
  2228. }
  2229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2231. public ZacaziRow NewZacaziRow() {
  2232. return ((ZacaziRow)(this.NewRow()));
  2233. }
  2234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2236. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2237. return new ZacaziRow(builder);
  2238. }
  2239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2241. protected override global::System.Type GetRowType() {
  2242. return typeof(ZacaziRow);
  2243. }
  2244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2246. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2247. base.OnRowChanged(e);
  2248. if ((this.ZacaziRowChanged != null)) {
  2249. this.ZacaziRowChanged(this, new ZacaziRowChangeEvent(((ZacaziRow)(e.Row)), e.Action));
  2250. }
  2251. }
  2252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2254. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2255. base.OnRowChanging(e);
  2256. if ((this.ZacaziRowChanging != null)) {
  2257. this.ZacaziRowChanging(this, new ZacaziRowChangeEvent(((ZacaziRow)(e.Row)), e.Action));
  2258. }
  2259. }
  2260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2262. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2263. base.OnRowDeleted(e);
  2264. if ((this.ZacaziRowDeleted != null)) {
  2265. this.ZacaziRowDeleted(this, new ZacaziRowChangeEvent(((ZacaziRow)(e.Row)), e.Action));
  2266. }
  2267. }
  2268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2270. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2271. base.OnRowDeleting(e);
  2272. if ((this.ZacaziRowDeleting != null)) {
  2273. this.ZacaziRowDeleting(this, new ZacaziRowChangeEvent(((ZacaziRow)(e.Row)), e.Action));
  2274. }
  2275. }
  2276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2278. public void RemoveZacaziRow(ZacaziRow row) {
  2279. this.Rows.Remove(row);
  2280. }
  2281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2283. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2284. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2285. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2286. _06_muskafidi_deDataSet ds = new _06_muskafidi_deDataSet();
  2287. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2288. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2289. any1.MinOccurs = new decimal(0);
  2290. any1.MaxOccurs = decimal.MaxValue;
  2291. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2292. sequence.Items.Add(any1);
  2293. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2294. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2295. any2.MinOccurs = new decimal(1);
  2296. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2297. sequence.Items.Add(any2);
  2298. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2299. attribute1.Name = "namespace";
  2300. attribute1.FixedValue = ds.Namespace;
  2301. type.Attributes.Add(attribute1);
  2302. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2303. attribute2.Name = "tableTypeName";
  2304. attribute2.FixedValue = "ZacaziDataTable";
  2305. type.Attributes.Add(attribute2);
  2306. type.Particle = sequence;
  2307. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2308. if (xs.Contains(dsSchema.TargetNamespace)) {
  2309. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2310. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2311. try {
  2312. global::System.Xml.Schema.XmlSchema schema = null;
  2313. dsSchema.Write(s1);
  2314. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2315. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2316. s2.SetLength(0);
  2317. schema.Write(s2);
  2318. if ((s1.Length == s2.Length)) {
  2319. s1.Position = 0;
  2320. s2.Position = 0;
  2321. for (; ((s1.Position != s1.Length)
  2322. && (s1.ReadByte() == s2.ReadByte())); ) {
  2323. ;
  2324. }
  2325. if ((s1.Position == s1.Length)) {
  2326. return type;
  2327. }
  2328. }
  2329. }
  2330. }
  2331. finally {
  2332. if ((s1 != null)) {
  2333. s1.Close();
  2334. }
  2335. if ((s2 != null)) {
  2336. s2.Close();
  2337. }
  2338. }
  2339. }
  2340. xs.Add(dsSchema);
  2341. return type;
  2342. }
  2343. }
  2344. /// <summary>
  2345. ///Represents strongly named DataRow class.
  2346. ///</summary>
  2347. public partial class ComplectRow : global::System.Data.DataRow {
  2348. private ComplectDataTable tableComplect;
  2349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2351. internal ComplectRow(global::System.Data.DataRowBuilder rb) :
  2352. base(rb) {
  2353. this.tableComplect = ((ComplectDataTable)(this.Table));
  2354. }
  2355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2357. public int id {
  2358. get {
  2359. return ((int)(this[this.tableComplect.idColumn]));
  2360. }
  2361. set {
  2362. this[this.tableComplect.idColumn] = value;
  2363. }
  2364. }
  2365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2367. public string Наименование {
  2368. get {
  2369. try {
  2370. return ((string)(this[this.tableComplect.НаименованиеColumn]));
  2371. }
  2372. catch (global::System.InvalidCastException e) {
  2373. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Complect\' равно DBNull.", e);
  2374. }
  2375. }
  2376. set {
  2377. this[this.tableComplect.НаименованиеColumn] = value;
  2378. }
  2379. }
  2380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2382. public string Количество {
  2383. get {
  2384. try {
  2385. return ((string)(this[this.tableComplect.КоличествоColumn]));
  2386. }
  2387. catch (global::System.InvalidCastException e) {
  2388. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'Complect\' равно DBNull.", e);
  2389. }
  2390. }
  2391. set {
  2392. this[this.tableComplect.КоличествоColumn] = value;
  2393. }
  2394. }
  2395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2397. public int Единица_измерения {
  2398. get {
  2399. try {
  2400. return ((int)(this[this.tableComplect.Единица_измеренияColumn]));
  2401. }
  2402. catch (global::System.InvalidCastException e) {
  2403. throw new global::System.Data.StrongTypingException("Значение для столбца \'Единица измерения\' в таблице \'Complect\' равно DBNull.", e);
  2404. }
  2405. }
  2406. set {
  2407. this[this.tableComplect.Единица_измеренияColumn] = value;
  2408. }
  2409. }
  2410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2412. public string Тип_материала {
  2413. get {
  2414. try {
  2415. return ((string)(this[this.tableComplect.Тип_материалаColumn]));
  2416. }
  2417. catch (global::System.InvalidCastException e) {
  2418. throw new global::System.Data.StrongTypingException("Значение для столбца \'Тип материала\' в таблице \'Complect\' равно DBNull.", e);
  2419. }
  2420. }
  2421. set {
  2422. this[this.tableComplect.Тип_материалаColumn] = value;
  2423. }
  2424. }
  2425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2427. public string Цена {
  2428. get {
  2429. try {
  2430. return ((string)(this[this.tableComplect.ЦенаColumn]));
  2431. }
  2432. catch (global::System.InvalidCastException e) {
  2433. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Complect\' равно DBNull.", e);
  2434. }
  2435. }
  2436. set {
  2437. this[this.tableComplect.ЦенаColumn] = value;
  2438. }
  2439. }
  2440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2442. public EdiniciIzmereniyaRow EdiniciIzmereniyaRow {
  2443. get {
  2444. return ((EdiniciIzmereniyaRow)(this.GetParentRow(this.Table.ParentRelations["FK_Complect_EdiniciIzmereniya1"])));
  2445. }
  2446. set {
  2447. this.SetParentRow(value, this.Table.ParentRelations["FK_Complect_EdiniciIzmereniya1"]);
  2448. }
  2449. }
  2450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2452. public bool IsНаименованиеNull() {
  2453. return this.IsNull(this.tableComplect.НаименованиеColumn);
  2454. }
  2455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2457. public void SetНаименованиеNull() {
  2458. this[this.tableComplect.НаименованиеColumn] = global::System.Convert.DBNull;
  2459. }
  2460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2462. public bool IsКоличествоNull() {
  2463. return this.IsNull(this.tableComplect.КоличествоColumn);
  2464. }
  2465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2467. public void SetКоличествоNull() {
  2468. this[this.tableComplect.КоличествоColumn] = global::System.Convert.DBNull;
  2469. }
  2470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2472. public bool IsЕдиница_измеренияNull() {
  2473. return this.IsNull(this.tableComplect.Единица_измеренияColumn);
  2474. }
  2475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2477. public void SetЕдиница_измеренияNull() {
  2478. this[this.tableComplect.Единица_измеренияColumn] = global::System.Convert.DBNull;
  2479. }
  2480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2482. public bool IsТип_материалаNull() {
  2483. return this.IsNull(this.tableComplect.Тип_материалаColumn);
  2484. }
  2485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2487. public void SetТип_материалаNull() {
  2488. this[this.tableComplect.Тип_материалаColumn] = global::System.Convert.DBNull;
  2489. }
  2490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2492. public bool IsЦенаNull() {
  2493. return this.IsNull(this.tableComplect.ЦенаColumn);
  2494. }
  2495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2497. public void SetЦенаNull() {
  2498. this[this.tableComplect.ЦенаColumn] = global::System.Convert.DBNull;
  2499. }
  2500. }
  2501. /// <summary>
  2502. ///Represents strongly named DataRow class.
  2503. ///</summary>
  2504. public partial class EdiniciIzmereniyaRow : global::System.Data.DataRow {
  2505. private EdiniciIzmereniyaDataTable tableEdiniciIzmereniya;
  2506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2508. internal EdiniciIzmereniyaRow(global::System.Data.DataRowBuilder rb) :
  2509. base(rb) {
  2510. this.tableEdiniciIzmereniya = ((EdiniciIzmereniyaDataTable)(this.Table));
  2511. }
  2512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2514. public int id {
  2515. get {
  2516. return ((int)(this[this.tableEdiniciIzmereniya.idColumn]));
  2517. }
  2518. set {
  2519. this[this.tableEdiniciIzmereniya.idColumn] = value;
  2520. }
  2521. }
  2522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2524. public string Наименование {
  2525. get {
  2526. try {
  2527. return ((string)(this[this.tableEdiniciIzmereniya.НаименованиеColumn]));
  2528. }
  2529. catch (global::System.InvalidCastException e) {
  2530. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'EdiniciIzmereniya\' равно DBNull.", e);
  2531. }
  2532. }
  2533. set {
  2534. this[this.tableEdiniciIzmereniya.НаименованиеColumn] = value;
  2535. }
  2536. }
  2537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2539. public bool IsНаименованиеNull() {
  2540. return this.IsNull(this.tableEdiniciIzmereniya.НаименованиеColumn);
  2541. }
  2542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2544. public void SetНаименованиеNull() {
  2545. this[this.tableEdiniciIzmereniya.НаименованиеColumn] = global::System.Convert.DBNull;
  2546. }
  2547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2549. public ComplectRow[] GetComplectRows() {
  2550. if ((this.Table.ChildRelations["FK_Complect_EdiniciIzmereniya1"] == null)) {
  2551. return new ComplectRow[0];
  2552. }
  2553. else {
  2554. return ((ComplectRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Complect_EdiniciIzmereniya1"])));
  2555. }
  2556. }
  2557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2559. public ZacaziRow[] GetZacaziRows() {
  2560. if ((this.Table.ChildRelations["FK_Zacazi_EdiniciIzmereniya"] == null)) {
  2561. return new ZacaziRow[0];
  2562. }
  2563. else {
  2564. return ((ZacaziRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Zacazi_EdiniciIzmereniya"])));
  2565. }
  2566. }
  2567. }
  2568. /// <summary>
  2569. ///Represents strongly named DataRow class.
  2570. ///</summary>
  2571. public partial class RolesRow : global::System.Data.DataRow {
  2572. private RolesDataTable tableRoles;
  2573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2575. internal RolesRow(global::System.Data.DataRowBuilder rb) :
  2576. base(rb) {
  2577. this.tableRoles = ((RolesDataTable)(this.Table));
  2578. }
  2579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2581. public int id {
  2582. get {
  2583. return ((int)(this[this.tableRoles.idColumn]));
  2584. }
  2585. set {
  2586. this[this.tableRoles.idColumn] = value;
  2587. }
  2588. }
  2589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2591. public string Наименование {
  2592. get {
  2593. try {
  2594. return ((string)(this[this.tableRoles.НаименованиеColumn]));
  2595. }
  2596. catch (global::System.InvalidCastException e) {
  2597. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Roles\' равно DBNull.", e);
  2598. }
  2599. }
  2600. set {
  2601. this[this.tableRoles.НаименованиеColumn] = value;
  2602. }
  2603. }
  2604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2606. public bool IsНаименованиеNull() {
  2607. return this.IsNull(this.tableRoles.НаименованиеColumn);
  2608. }
  2609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2611. public void SetНаименованиеNull() {
  2612. this[this.tableRoles.НаименованиеColumn] = global::System.Convert.DBNull;
  2613. }
  2614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2616. public usersRow[] GetusersRows() {
  2617. if ((this.Table.ChildRelations["FK_users_Roles"] == null)) {
  2618. return new usersRow[0];
  2619. }
  2620. else {
  2621. return ((usersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_users_Roles"])));
  2622. }
  2623. }
  2624. }
  2625. /// <summary>
  2626. ///Represents strongly named DataRow class.
  2627. ///</summary>
  2628. public partial class StatusRow : global::System.Data.DataRow {
  2629. private StatusDataTable tableStatus;
  2630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2632. internal StatusRow(global::System.Data.DataRowBuilder rb) :
  2633. base(rb) {
  2634. this.tableStatus = ((StatusDataTable)(this.Table));
  2635. }
  2636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2638. public int id {
  2639. get {
  2640. return ((int)(this[this.tableStatus.idColumn]));
  2641. }
  2642. set {
  2643. this[this.tableStatus.idColumn] = value;
  2644. }
  2645. }
  2646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2648. public string Наименование {
  2649. get {
  2650. try {
  2651. return ((string)(this[this.tableStatus.НаименованиеColumn]));
  2652. }
  2653. catch (global::System.InvalidCastException e) {
  2654. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Status\' равно DBNull.", e);
  2655. }
  2656. }
  2657. set {
  2658. this[this.tableStatus.НаименованиеColumn] = value;
  2659. }
  2660. }
  2661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2663. public bool IsНаименованиеNull() {
  2664. return this.IsNull(this.tableStatus.НаименованиеColumn);
  2665. }
  2666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2668. public void SetНаименованиеNull() {
  2669. this[this.tableStatus.НаименованиеColumn] = global::System.Convert.DBNull;
  2670. }
  2671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2673. public usersRow[] GetusersRows() {
  2674. if ((this.Table.ChildRelations["FK_users_Status"] == null)) {
  2675. return new usersRow[0];
  2676. }
  2677. else {
  2678. return ((usersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_users_Status"])));
  2679. }
  2680. }
  2681. }
  2682. /// <summary>
  2683. ///Represents strongly named DataRow class.
  2684. ///</summary>
  2685. public partial class StatusZakazaRow : global::System.Data.DataRow {
  2686. private StatusZakazaDataTable tableStatusZakaza;
  2687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2689. internal StatusZakazaRow(global::System.Data.DataRowBuilder rb) :
  2690. base(rb) {
  2691. this.tableStatusZakaza = ((StatusZakazaDataTable)(this.Table));
  2692. }
  2693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2695. public int id {
  2696. get {
  2697. return ((int)(this[this.tableStatusZakaza.idColumn]));
  2698. }
  2699. set {
  2700. this[this.tableStatusZakaza.idColumn] = value;
  2701. }
  2702. }
  2703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2705. public string Наименование {
  2706. get {
  2707. try {
  2708. return ((string)(this[this.tableStatusZakaza.НаименованиеColumn]));
  2709. }
  2710. catch (global::System.InvalidCastException e) {
  2711. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'StatusZakaza\' равно DBNull.", e);
  2712. }
  2713. }
  2714. set {
  2715. this[this.tableStatusZakaza.НаименованиеColumn] = value;
  2716. }
  2717. }
  2718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2720. public bool IsНаименованиеNull() {
  2721. return this.IsNull(this.tableStatusZakaza.НаименованиеColumn);
  2722. }
  2723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2725. public void SetНаименованиеNull() {
  2726. this[this.tableStatusZakaza.НаименованиеColumn] = global::System.Convert.DBNull;
  2727. }
  2728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2730. public ZacaziRow[] GetZacaziRows() {
  2731. if ((this.Table.ChildRelations["FK_Zacazi_StatusZakaza"] == null)) {
  2732. return new ZacaziRow[0];
  2733. }
  2734. else {
  2735. return ((ZacaziRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Zacazi_StatusZakaza"])));
  2736. }
  2737. }
  2738. }
  2739. /// <summary>
  2740. ///Represents strongly named DataRow class.
  2741. ///</summary>
  2742. public partial class usersRow : global::System.Data.DataRow {
  2743. private usersDataTable tableusers;
  2744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2746. internal usersRow(global::System.Data.DataRowBuilder rb) :
  2747. base(rb) {
  2748. this.tableusers = ((usersDataTable)(this.Table));
  2749. }
  2750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2752. public int id {
  2753. get {
  2754. return ((int)(this[this.tableusers.idColumn]));
  2755. }
  2756. set {
  2757. this[this.tableusers.idColumn] = value;
  2758. }
  2759. }
  2760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2762. public string ФИО {
  2763. get {
  2764. try {
  2765. return ((string)(this[this.tableusers.ФИОColumn]));
  2766. }
  2767. catch (global::System.InvalidCastException e) {
  2768. throw new global::System.Data.StrongTypingException("Значение для столбца \'ФИО\' в таблице \'users\' равно DBNull.", e);
  2769. }
  2770. }
  2771. set {
  2772. this[this.tableusers.ФИОColumn] = value;
  2773. }
  2774. }
  2775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2777. public string username {
  2778. get {
  2779. try {
  2780. return ((string)(this[this.tableusers.usernameColumn]));
  2781. }
  2782. catch (global::System.InvalidCastException e) {
  2783. throw new global::System.Data.StrongTypingException("Значение для столбца \'username\' в таблице \'users\' равно DBNull.", e);
  2784. }
  2785. }
  2786. set {
  2787. this[this.tableusers.usernameColumn] = value;
  2788. }
  2789. }
  2790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2792. public string password {
  2793. get {
  2794. try {
  2795. return ((string)(this[this.tableusers.passwordColumn]));
  2796. }
  2797. catch (global::System.InvalidCastException e) {
  2798. throw new global::System.Data.StrongTypingException("Значение для столбца \'password\' в таблице \'users\' равно DBNull.", e);
  2799. }
  2800. }
  2801. set {
  2802. this[this.tableusers.passwordColumn] = value;
  2803. }
  2804. }
  2805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2807. public int Роль {
  2808. get {
  2809. try {
  2810. return ((int)(this[this.tableusers.РольColumn]));
  2811. }
  2812. catch (global::System.InvalidCastException e) {
  2813. throw new global::System.Data.StrongTypingException("Значение для столбца \'Роль\' в таблице \'users\' равно DBNull.", e);
  2814. }
  2815. }
  2816. set {
  2817. this[this.tableusers.РольColumn] = value;
  2818. }
  2819. }
  2820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2822. public int Статус {
  2823. get {
  2824. try {
  2825. return ((int)(this[this.tableusers.СтатусColumn]));
  2826. }
  2827. catch (global::System.InvalidCastException e) {
  2828. throw new global::System.Data.StrongTypingException("Значение для столбца \'Статус\' в таблице \'users\' равно DBNull.", e);
  2829. }
  2830. }
  2831. set {
  2832. this[this.tableusers.СтатусColumn] = value;
  2833. }
  2834. }
  2835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2837. public RolesRow RolesRow {
  2838. get {
  2839. return ((RolesRow)(this.GetParentRow(this.Table.ParentRelations["FK_users_Roles"])));
  2840. }
  2841. set {
  2842. this.SetParentRow(value, this.Table.ParentRelations["FK_users_Roles"]);
  2843. }
  2844. }
  2845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2847. public StatusRow StatusRow {
  2848. get {
  2849. return ((StatusRow)(this.GetParentRow(this.Table.ParentRelations["FK_users_Status"])));
  2850. }
  2851. set {
  2852. this.SetParentRow(value, this.Table.ParentRelations["FK_users_Status"]);
  2853. }
  2854. }
  2855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2857. public bool IsФИОNull() {
  2858. return this.IsNull(this.tableusers.ФИОColumn);
  2859. }
  2860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2862. public void SetФИОNull() {
  2863. this[this.tableusers.ФИОColumn] = global::System.Convert.DBNull;
  2864. }
  2865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2867. public bool IsusernameNull() {
  2868. return this.IsNull(this.tableusers.usernameColumn);
  2869. }
  2870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2872. public void SetusernameNull() {
  2873. this[this.tableusers.usernameColumn] = global::System.Convert.DBNull;
  2874. }
  2875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2877. public bool IspasswordNull() {
  2878. return this.IsNull(this.tableusers.passwordColumn);
  2879. }
  2880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2882. public void SetpasswordNull() {
  2883. this[this.tableusers.passwordColumn] = global::System.Convert.DBNull;
  2884. }
  2885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2887. public bool IsРольNull() {
  2888. return this.IsNull(this.tableusers.РольColumn);
  2889. }
  2890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2892. public void SetРольNull() {
  2893. this[this.tableusers.РольColumn] = global::System.Convert.DBNull;
  2894. }
  2895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2897. public bool IsСтатусNull() {
  2898. return this.IsNull(this.tableusers.СтатусColumn);
  2899. }
  2900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2902. public void SetСтатусNull() {
  2903. this[this.tableusers.СтатусColumn] = global::System.Convert.DBNull;
  2904. }
  2905. }
  2906. /// <summary>
  2907. ///Represents strongly named DataRow class.
  2908. ///</summary>
  2909. public partial class ZacaziRow : global::System.Data.DataRow {
  2910. private ZacaziDataTable tableZacazi;
  2911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2913. internal ZacaziRow(global::System.Data.DataRowBuilder rb) :
  2914. base(rb) {
  2915. this.tableZacazi = ((ZacaziDataTable)(this.Table));
  2916. }
  2917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2919. public int id {
  2920. get {
  2921. return ((int)(this[this.tableZacazi.idColumn]));
  2922. }
  2923. set {
  2924. this[this.tableZacazi.idColumn] = value;
  2925. }
  2926. }
  2927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2929. public string Наименование {
  2930. get {
  2931. try {
  2932. return ((string)(this[this.tableZacazi.НаименованиеColumn]));
  2933. }
  2934. catch (global::System.InvalidCastException e) {
  2935. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Zacazi\' равно DBNull.", e);
  2936. }
  2937. }
  2938. set {
  2939. this[this.tableZacazi.НаименованиеColumn] = value;
  2940. }
  2941. }
  2942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2944. public int Единица_измерения {
  2945. get {
  2946. try {
  2947. return ((int)(this[this.tableZacazi.Единица_измеренияColumn]));
  2948. }
  2949. catch (global::System.InvalidCastException e) {
  2950. throw new global::System.Data.StrongTypingException("Значение для столбца \'Единица измерения\' в таблице \'Zacazi\' равно DBNull.", e);
  2951. }
  2952. }
  2953. set {
  2954. this[this.tableZacazi.Единица_измеренияColumn] = value;
  2955. }
  2956. }
  2957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2959. public string Тип_материала {
  2960. get {
  2961. try {
  2962. return ((string)(this[this.tableZacazi.Тип_материалаColumn]));
  2963. }
  2964. catch (global::System.InvalidCastException e) {
  2965. throw new global::System.Data.StrongTypingException("Значение для столбца \'Тип материала\' в таблице \'Zacazi\' равно DBNull.", e);
  2966. }
  2967. }
  2968. set {
  2969. this[this.tableZacazi.Тип_материалаColumn] = value;
  2970. }
  2971. }
  2972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2974. public string Цена {
  2975. get {
  2976. try {
  2977. return ((string)(this[this.tableZacazi.ЦенаColumn]));
  2978. }
  2979. catch (global::System.InvalidCastException e) {
  2980. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Zacazi\' равно DBNull.", e);
  2981. }
  2982. }
  2983. set {
  2984. this[this.tableZacazi.ЦенаColumn] = value;
  2985. }
  2986. }
  2987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2989. public int Статус {
  2990. get {
  2991. try {
  2992. return ((int)(this[this.tableZacazi.СтатусColumn]));
  2993. }
  2994. catch (global::System.InvalidCastException e) {
  2995. throw new global::System.Data.StrongTypingException("Значение для столбца \'Статус\' в таблице \'Zacazi\' равно DBNull.", e);
  2996. }
  2997. }
  2998. set {
  2999. this[this.tableZacazi.СтатусColumn] = value;
  3000. }
  3001. }
  3002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3004. public System.DateTime Дата {
  3005. get {
  3006. try {
  3007. return ((global::System.DateTime)(this[this.tableZacazi.ДатаColumn]));
  3008. }
  3009. catch (global::System.InvalidCastException e) {
  3010. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата\' в таблице \'Zacazi\' равно DBNull.", e);
  3011. }
  3012. }
  3013. set {
  3014. this[this.tableZacazi.ДатаColumn] = value;
  3015. }
  3016. }
  3017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3019. public EdiniciIzmereniyaRow EdiniciIzmereniyaRow {
  3020. get {
  3021. return ((EdiniciIzmereniyaRow)(this.GetParentRow(this.Table.ParentRelations["FK_Zacazi_EdiniciIzmereniya"])));
  3022. }
  3023. set {
  3024. this.SetParentRow(value, this.Table.ParentRelations["FK_Zacazi_EdiniciIzmereniya"]);
  3025. }
  3026. }
  3027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3029. public StatusZakazaRow StatusZakazaRow {
  3030. get {
  3031. return ((StatusZakazaRow)(this.GetParentRow(this.Table.ParentRelations["FK_Zacazi_StatusZakaza"])));
  3032. }
  3033. set {
  3034. this.SetParentRow(value, this.Table.ParentRelations["FK_Zacazi_StatusZakaza"]);
  3035. }
  3036. }
  3037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3039. public bool IsНаименованиеNull() {
  3040. return this.IsNull(this.tableZacazi.НаименованиеColumn);
  3041. }
  3042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3044. public void SetНаименованиеNull() {
  3045. this[this.tableZacazi.НаименованиеColumn] = global::System.Convert.DBNull;
  3046. }
  3047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3049. public bool IsЕдиница_измеренияNull() {
  3050. return this.IsNull(this.tableZacazi.Единица_измеренияColumn);
  3051. }
  3052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3054. public void SetЕдиница_измеренияNull() {
  3055. this[this.tableZacazi.Единица_измеренияColumn] = global::System.Convert.DBNull;
  3056. }
  3057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3059. public bool IsТип_материалаNull() {
  3060. return this.IsNull(this.tableZacazi.Тип_материалаColumn);
  3061. }
  3062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3064. public void SetТип_материалаNull() {
  3065. this[this.tableZacazi.Тип_материалаColumn] = global::System.Convert.DBNull;
  3066. }
  3067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3069. public bool IsЦенаNull() {
  3070. return this.IsNull(this.tableZacazi.ЦенаColumn);
  3071. }
  3072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3074. public void SetЦенаNull() {
  3075. this[this.tableZacazi.ЦенаColumn] = global::System.Convert.DBNull;
  3076. }
  3077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3079. public bool IsСтатусNull() {
  3080. return this.IsNull(this.tableZacazi.СтатусColumn);
  3081. }
  3082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3084. public void SetСтатусNull() {
  3085. this[this.tableZacazi.СтатусColumn] = global::System.Convert.DBNull;
  3086. }
  3087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3089. public bool IsДатаNull() {
  3090. return this.IsNull(this.tableZacazi.ДатаColumn);
  3091. }
  3092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3094. public void SetДатаNull() {
  3095. this[this.tableZacazi.ДатаColumn] = global::System.Convert.DBNull;
  3096. }
  3097. }
  3098. /// <summary>
  3099. ///Row event argument class
  3100. ///</summary>
  3101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3102. public class ComplectRowChangeEvent : global::System.EventArgs {
  3103. private ComplectRow eventRow;
  3104. private global::System.Data.DataRowAction eventAction;
  3105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3107. public ComplectRowChangeEvent(ComplectRow row, global::System.Data.DataRowAction action) {
  3108. this.eventRow = row;
  3109. this.eventAction = action;
  3110. }
  3111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3113. public ComplectRow Row {
  3114. get {
  3115. return this.eventRow;
  3116. }
  3117. }
  3118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3120. public global::System.Data.DataRowAction Action {
  3121. get {
  3122. return this.eventAction;
  3123. }
  3124. }
  3125. }
  3126. /// <summary>
  3127. ///Row event argument class
  3128. ///</summary>
  3129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3130. public class EdiniciIzmereniyaRowChangeEvent : global::System.EventArgs {
  3131. private EdiniciIzmereniyaRow eventRow;
  3132. private global::System.Data.DataRowAction eventAction;
  3133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3135. public EdiniciIzmereniyaRowChangeEvent(EdiniciIzmereniyaRow row, global::System.Data.DataRowAction action) {
  3136. this.eventRow = row;
  3137. this.eventAction = action;
  3138. }
  3139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3141. public EdiniciIzmereniyaRow Row {
  3142. get {
  3143. return this.eventRow;
  3144. }
  3145. }
  3146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3148. public global::System.Data.DataRowAction Action {
  3149. get {
  3150. return this.eventAction;
  3151. }
  3152. }
  3153. }
  3154. /// <summary>
  3155. ///Row event argument class
  3156. ///</summary>
  3157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3158. public class RolesRowChangeEvent : global::System.EventArgs {
  3159. private RolesRow eventRow;
  3160. private global::System.Data.DataRowAction eventAction;
  3161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3163. public RolesRowChangeEvent(RolesRow row, global::System.Data.DataRowAction action) {
  3164. this.eventRow = row;
  3165. this.eventAction = action;
  3166. }
  3167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3169. public RolesRow Row {
  3170. get {
  3171. return this.eventRow;
  3172. }
  3173. }
  3174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3176. public global::System.Data.DataRowAction Action {
  3177. get {
  3178. return this.eventAction;
  3179. }
  3180. }
  3181. }
  3182. /// <summary>
  3183. ///Row event argument class
  3184. ///</summary>
  3185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3186. public class StatusRowChangeEvent : global::System.EventArgs {
  3187. private StatusRow eventRow;
  3188. private global::System.Data.DataRowAction eventAction;
  3189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3191. public StatusRowChangeEvent(StatusRow row, global::System.Data.DataRowAction action) {
  3192. this.eventRow = row;
  3193. this.eventAction = action;
  3194. }
  3195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3197. public StatusRow Row {
  3198. get {
  3199. return this.eventRow;
  3200. }
  3201. }
  3202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3204. public global::System.Data.DataRowAction Action {
  3205. get {
  3206. return this.eventAction;
  3207. }
  3208. }
  3209. }
  3210. /// <summary>
  3211. ///Row event argument class
  3212. ///</summary>
  3213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3214. public class StatusZakazaRowChangeEvent : global::System.EventArgs {
  3215. private StatusZakazaRow eventRow;
  3216. private global::System.Data.DataRowAction eventAction;
  3217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3219. public StatusZakazaRowChangeEvent(StatusZakazaRow row, global::System.Data.DataRowAction action) {
  3220. this.eventRow = row;
  3221. this.eventAction = action;
  3222. }
  3223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3225. public StatusZakazaRow Row {
  3226. get {
  3227. return this.eventRow;
  3228. }
  3229. }
  3230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3232. public global::System.Data.DataRowAction Action {
  3233. get {
  3234. return this.eventAction;
  3235. }
  3236. }
  3237. }
  3238. /// <summary>
  3239. ///Row event argument class
  3240. ///</summary>
  3241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3242. public class usersRowChangeEvent : global::System.EventArgs {
  3243. private usersRow eventRow;
  3244. private global::System.Data.DataRowAction eventAction;
  3245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3247. public usersRowChangeEvent(usersRow row, global::System.Data.DataRowAction action) {
  3248. this.eventRow = row;
  3249. this.eventAction = action;
  3250. }
  3251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3253. public usersRow Row {
  3254. get {
  3255. return this.eventRow;
  3256. }
  3257. }
  3258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3260. public global::System.Data.DataRowAction Action {
  3261. get {
  3262. return this.eventAction;
  3263. }
  3264. }
  3265. }
  3266. /// <summary>
  3267. ///Row event argument class
  3268. ///</summary>
  3269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3270. public class ZacaziRowChangeEvent : global::System.EventArgs {
  3271. private ZacaziRow eventRow;
  3272. private global::System.Data.DataRowAction eventAction;
  3273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3275. public ZacaziRowChangeEvent(ZacaziRow row, global::System.Data.DataRowAction action) {
  3276. this.eventRow = row;
  3277. this.eventAction = action;
  3278. }
  3279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3281. public ZacaziRow Row {
  3282. get {
  3283. return this.eventRow;
  3284. }
  3285. }
  3286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3288. public global::System.Data.DataRowAction Action {
  3289. get {
  3290. return this.eventAction;
  3291. }
  3292. }
  3293. }
  3294. }
  3295. }
  3296. namespace muskafidi_de._06_muskafidi_deDataSetTableAdapters {
  3297. /// <summary>
  3298. ///Represents the connection and commands used to retrieve and save data.
  3299. ///</summary>
  3300. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3301. [global::System.ComponentModel.ToolboxItem(true)]
  3302. [global::System.ComponentModel.DataObjectAttribute(true)]
  3303. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3304. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3305. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3306. public partial class ComplectTableAdapter : global::System.ComponentModel.Component {
  3307. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3308. private global::System.Data.SqlClient.SqlConnection _connection;
  3309. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3310. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3311. private bool _clearBeforeFill;
  3312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3314. public ComplectTableAdapter() {
  3315. this.ClearBeforeFill = true;
  3316. }
  3317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3319. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3320. get {
  3321. if ((this._adapter == null)) {
  3322. this.InitAdapter();
  3323. }
  3324. return this._adapter;
  3325. }
  3326. }
  3327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3329. internal global::System.Data.SqlClient.SqlConnection Connection {
  3330. get {
  3331. if ((this._connection == null)) {
  3332. this.InitConnection();
  3333. }
  3334. return this._connection;
  3335. }
  3336. set {
  3337. this._connection = value;
  3338. if ((this.Adapter.InsertCommand != null)) {
  3339. this.Adapter.InsertCommand.Connection = value;
  3340. }
  3341. if ((this.Adapter.DeleteCommand != null)) {
  3342. this.Adapter.DeleteCommand.Connection = value;
  3343. }
  3344. if ((this.Adapter.UpdateCommand != null)) {
  3345. this.Adapter.UpdateCommand.Connection = value;
  3346. }
  3347. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3348. if ((this.CommandCollection[i] != null)) {
  3349. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3350. }
  3351. }
  3352. }
  3353. }
  3354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3356. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3357. get {
  3358. return this._transaction;
  3359. }
  3360. set {
  3361. this._transaction = value;
  3362. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3363. this.CommandCollection[i].Transaction = this._transaction;
  3364. }
  3365. if (((this.Adapter != null)
  3366. && (this.Adapter.DeleteCommand != null))) {
  3367. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3368. }
  3369. if (((this.Adapter != null)
  3370. && (this.Adapter.InsertCommand != null))) {
  3371. this.Adapter.InsertCommand.Transaction = this._transaction;
  3372. }
  3373. if (((this.Adapter != null)
  3374. && (this.Adapter.UpdateCommand != null))) {
  3375. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3376. }
  3377. }
  3378. }
  3379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3381. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3382. get {
  3383. if ((this._commandCollection == null)) {
  3384. this.InitCommandCollection();
  3385. }
  3386. return this._commandCollection;
  3387. }
  3388. }
  3389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3391. public bool ClearBeforeFill {
  3392. get {
  3393. return this._clearBeforeFill;
  3394. }
  3395. set {
  3396. this._clearBeforeFill = value;
  3397. }
  3398. }
  3399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3401. private void InitAdapter() {
  3402. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3403. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3404. tableMapping.SourceTable = "Table";
  3405. tableMapping.DataSetTable = "Complect";
  3406. tableMapping.ColumnMappings.Add("id", "id");
  3407. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  3408. tableMapping.ColumnMappings.Add("Количество", "Количество");
  3409. tableMapping.ColumnMappings.Add("Единица измерения", "Единица измерения");
  3410. tableMapping.ColumnMappings.Add("Тип материала", "Тип материала");
  3411. tableMapping.ColumnMappings.Add("Цена", "Цена");
  3412. this._adapter.TableMappings.Add(tableMapping);
  3413. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3414. this._adapter.DeleteCommand.Connection = this.Connection;
  3415. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Complect] 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_Цена)))";
  3416. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3417. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3418. 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, "", "", ""));
  3419. 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, "", "", ""));
  3420. 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, "", "", ""));
  3421. 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, "", "", ""));
  3422. 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, "", "", ""));
  3423. 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, "", "", ""));
  3424. 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, "", "", ""));
  3425. 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, "", "", ""));
  3426. 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, "", "", ""));
  3427. 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, "", "", ""));
  3428. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3429. this._adapter.InsertCommand.Connection = this.Connection;
  3430. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Complect] ([id], [Наименование], [Количество], [Единица измерения], [Тип материала], [Цена]) VALUES (@id, @Наименование, @Количество, @Единица_измерения, @Тип_материала, @Цена);
  3431. SELECT id, Наименование, Количество, [Единица измерения], [Тип материала], Цена FROM Complect WHERE (id = @id)";
  3432. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3433. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3434. 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, "", "", ""));
  3435. 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, "", "", ""));
  3436. 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, "", "", ""));
  3437. 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, "", "", ""));
  3438. 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, "", "", ""));
  3439. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3440. this._adapter.UpdateCommand.Connection = this.Connection;
  3441. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Complect] 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_Цена)));
  3442. SELECT id, Наименование, Количество, [Единица измерения], [Тип материала], Цена FROM Complect WHERE (id = @id)";
  3443. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3444. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3445. 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, "", "", ""));
  3446. 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, "", "", ""));
  3447. 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, "", "", ""));
  3448. 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, "", "", ""));
  3449. 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, "", "", ""));
  3450. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3451. 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, "", "", ""));
  3452. 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, "", "", ""));
  3453. 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, "", "", ""));
  3454. 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, "", "", ""));
  3455. 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, "", "", ""));
  3456. 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, "", "", ""));
  3457. 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, "", "", ""));
  3458. 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, "", "", ""));
  3459. 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, "", "", ""));
  3460. 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, "", "", ""));
  3461. }
  3462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3464. private void InitConnection() {
  3465. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3466. this._connection.ConnectionString = global::muskafidi_de.Properties.Settings.Default._06_muskafidi_deConnectionString;
  3467. }
  3468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3470. private void InitCommandCollection() {
  3471. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3472. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3473. this._commandCollection[0].Connection = this.Connection;
  3474. this._commandCollection[0].CommandText = "SELECT id, Наименование, Количество, [Единица измерения], [Тип материала], Цена F" +
  3475. "ROM dbo.Complect";
  3476. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3477. }
  3478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3480. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3481. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3482. public virtual int Fill(_06_muskafidi_deDataSet.ComplectDataTable dataTable) {
  3483. this.Adapter.SelectCommand = this.CommandCollection[0];
  3484. if ((this.ClearBeforeFill == true)) {
  3485. dataTable.Clear();
  3486. }
  3487. int returnValue = this.Adapter.Fill(dataTable);
  3488. return returnValue;
  3489. }
  3490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3492. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3493. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3494. public virtual _06_muskafidi_deDataSet.ComplectDataTable GetData() {
  3495. this.Adapter.SelectCommand = this.CommandCollection[0];
  3496. _06_muskafidi_deDataSet.ComplectDataTable dataTable = new _06_muskafidi_deDataSet.ComplectDataTable();
  3497. this.Adapter.Fill(dataTable);
  3498. return dataTable;
  3499. }
  3500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3502. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3503. public virtual int Update(_06_muskafidi_deDataSet.ComplectDataTable dataTable) {
  3504. return this.Adapter.Update(dataTable);
  3505. }
  3506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3508. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3509. public virtual int Update(_06_muskafidi_deDataSet dataSet) {
  3510. return this.Adapter.Update(dataSet, "Complect");
  3511. }
  3512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3514. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3515. public virtual int Update(global::System.Data.DataRow dataRow) {
  3516. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3517. dataRow});
  3518. }
  3519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3521. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3522. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3523. return this.Adapter.Update(dataRows);
  3524. }
  3525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3527. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3528. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3529. public virtual int Delete(int Original_id, string Original_Наименование, string Original_Количество, global::System.Nullable<int> Original_Единица_измерения, string Original_Тип_материала, string Original_Цена) {
  3530. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  3531. if ((Original_Наименование == null)) {
  3532. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3533. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3534. }
  3535. else {
  3536. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3537. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Наименование));
  3538. }
  3539. if ((Original_Количество == null)) {
  3540. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  3541. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  3542. }
  3543. else {
  3544. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  3545. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Количество));
  3546. }
  3547. if ((Original_Единица_измерения.HasValue == true)) {
  3548. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  3549. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Единица_измерения.Value));
  3550. }
  3551. else {
  3552. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  3553. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  3554. }
  3555. if ((Original_Тип_материала == null)) {
  3556. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  3557. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  3558. }
  3559. else {
  3560. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  3561. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Тип_материала));
  3562. }
  3563. if ((Original_Цена == null)) {
  3564. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  3565. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  3566. }
  3567. else {
  3568. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  3569. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Цена));
  3570. }
  3571. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3572. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3573. != global::System.Data.ConnectionState.Open)) {
  3574. this.Adapter.DeleteCommand.Connection.Open();
  3575. }
  3576. try {
  3577. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3578. return returnValue;
  3579. }
  3580. finally {
  3581. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3582. this.Adapter.DeleteCommand.Connection.Close();
  3583. }
  3584. }
  3585. }
  3586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3588. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3589. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3590. public virtual int Insert(int id, string Наименование, string Количество, global::System.Nullable<int> Единица_измерения, string Тип_материала, string Цена) {
  3591. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id));
  3592. if ((Наименование == null)) {
  3593. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3594. }
  3595. else {
  3596. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  3597. }
  3598. if ((Количество == null)) {
  3599. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3600. }
  3601. else {
  3602. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Количество));
  3603. }
  3604. if ((Единица_измерения.HasValue == true)) {
  3605. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Единица_измерения.Value));
  3606. }
  3607. else {
  3608. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3609. }
  3610. if ((Тип_материала == null)) {
  3611. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  3612. }
  3613. else {
  3614. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Тип_материала));
  3615. }
  3616. if ((Цена == null)) {
  3617. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  3618. }
  3619. else {
  3620. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Цена));
  3621. }
  3622. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3623. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3624. != global::System.Data.ConnectionState.Open)) {
  3625. this.Adapter.InsertCommand.Connection.Open();
  3626. }
  3627. try {
  3628. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3629. return returnValue;
  3630. }
  3631. finally {
  3632. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3633. this.Adapter.InsertCommand.Connection.Close();
  3634. }
  3635. }
  3636. }
  3637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3639. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3640. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3641. public virtual int Update(int id, string Наименование, string Количество, global::System.Nullable<int> Единица_измерения, string Тип_материала, string Цена, int Original_id, string Original_Наименование, string Original_Количество, global::System.Nullable<int> Original_Единица_измерения, string Original_Тип_материала, string Original_Цена) {
  3642. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(id));
  3643. if ((Наименование == null)) {
  3644. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3645. }
  3646. else {
  3647. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование));
  3648. }
  3649. if ((Количество == null)) {
  3650. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  3651. }
  3652. else {
  3653. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Количество));
  3654. }
  3655. if ((Единица_измерения.HasValue == true)) {
  3656. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Единица_измерения.Value));
  3657. }
  3658. else {
  3659. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  3660. }
  3661. if ((Тип_материала == null)) {
  3662. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  3663. }
  3664. else {
  3665. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Тип_материала));
  3666. }
  3667. if ((Цена == null)) {
  3668. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  3669. }
  3670. else {
  3671. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Цена));
  3672. }
  3673. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_id));
  3674. if ((Original_Наименование == null)) {
  3675. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  3676. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  3677. }
  3678. else {
  3679. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  3680. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Наименование));
  3681. }
  3682. if ((Original_Количество == null)) {
  3683. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  3684. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  3685. }
  3686. else {
  3687. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  3688. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Количество));
  3689. }
  3690. if ((Original_Единица_измерения.HasValue == true)) {
  3691. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  3692. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_Единица_измерения.Value));
  3693. }
  3694. else {
  3695. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  3696. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  3697. }
  3698. if ((Original_Тип_материала == null)) {
  3699. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  3700. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  3701. }
  3702. else {
  3703. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  3704. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Тип_материала));
  3705. }
  3706. if ((Original_Цена == null)) {
  3707. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  3708. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  3709. }
  3710. else {
  3711. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  3712. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Цена));
  3713. }
  3714. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3715. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3716. != global::System.Data.ConnectionState.Open)) {
  3717. this.Adapter.UpdateCommand.Connection.Open();
  3718. }
  3719. try {
  3720. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3721. return returnValue;
  3722. }
  3723. finally {
  3724. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3725. this.Adapter.UpdateCommand.Connection.Close();
  3726. }
  3727. }
  3728. }
  3729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3731. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3732. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3733. public virtual int Update(string Наименование, string Количество, global::System.Nullable<int> Единица_измерения, string Тип_материала, string Цена, int Original_id, string Original_Наименование, string Original_Количество, global::System.Nullable<int> Original_Единица_измерения, string Original_Тип_материала, string Original_Цена) {
  3734. return this.Update(Original_id, Наименование, Количество, Единица_измерения, Тип_материала, Цена, Original_id, Original_Наименование, Original_Количество, Original_Единица_измерения, Original_Тип_материала, Original_Цена);
  3735. }
  3736. }
  3737. /// <summary>
  3738. ///Represents the connection and commands used to retrieve and save data.
  3739. ///</summary>
  3740. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3741. [global::System.ComponentModel.ToolboxItem(true)]
  3742. [global::System.ComponentModel.DataObjectAttribute(true)]
  3743. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3744. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3745. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3746. public partial class EdiniciIzmereniyaTableAdapter : global::System.ComponentModel.Component {
  3747. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3748. private global::System.Data.SqlClient.SqlConnection _connection;
  3749. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3750. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3751. private bool _clearBeforeFill;
  3752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3754. public EdiniciIzmereniyaTableAdapter() {
  3755. this.ClearBeforeFill = true;
  3756. }
  3757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3759. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3760. get {
  3761. if ((this._adapter == null)) {
  3762. this.InitAdapter();
  3763. }
  3764. return this._adapter;
  3765. }
  3766. }
  3767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3769. internal global::System.Data.SqlClient.SqlConnection Connection {
  3770. get {
  3771. if ((this._connection == null)) {
  3772. this.InitConnection();
  3773. }
  3774. return this._connection;
  3775. }
  3776. set {
  3777. this._connection = value;
  3778. if ((this.Adapter.InsertCommand != null)) {
  3779. this.Adapter.InsertCommand.Connection = value;
  3780. }
  3781. if ((this.Adapter.DeleteCommand != null)) {
  3782. this.Adapter.DeleteCommand.Connection = value;
  3783. }
  3784. if ((this.Adapter.UpdateCommand != null)) {
  3785. this.Adapter.UpdateCommand.Connection = value;
  3786. }
  3787. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3788. if ((this.CommandCollection[i] != null)) {
  3789. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3790. }
  3791. }
  3792. }
  3793. }
  3794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3796. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3797. get {
  3798. return this._transaction;
  3799. }
  3800. set {
  3801. this._transaction = value;
  3802. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3803. this.CommandCollection[i].Transaction = this._transaction;
  3804. }
  3805. if (((this.Adapter != null)
  3806. && (this.Adapter.DeleteCommand != null))) {
  3807. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3808. }
  3809. if (((this.Adapter != null)
  3810. && (this.Adapter.InsertCommand != null))) {
  3811. this.Adapter.InsertCommand.Transaction = this._transaction;
  3812. }
  3813. if (((this.Adapter != null)
  3814. && (this.Adapter.UpdateCommand != null))) {
  3815. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3816. }
  3817. }
  3818. }
  3819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3821. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3822. get {
  3823. if ((this._commandCollection == null)) {
  3824. this.InitCommandCollection();
  3825. }
  3826. return this._commandCollection;
  3827. }
  3828. }
  3829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3831. public bool ClearBeforeFill {
  3832. get {
  3833. return this._clearBeforeFill;
  3834. }
  3835. set {
  3836. this._clearBeforeFill = value;
  3837. }
  3838. }
  3839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3841. private void InitAdapter() {
  3842. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3843. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3844. tableMapping.SourceTable = "Table";
  3845. tableMapping.DataSetTable = "EdiniciIzmereniya";
  3846. tableMapping.ColumnMappings.Add("id", "id");
  3847. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  3848. this._adapter.TableMappings.Add(tableMapping);
  3849. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3850. this._adapter.DeleteCommand.Connection = this.Connection;
  3851. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[EdiniciIzmereniya] WHERE (([id] = @Original_id) AND ((@IsNull_" +
  3852. "Наименование = 1 AND [Наименование] IS NULL) OR ([Наименование] = @Original_Наим" +
  3853. "енование)))";
  3854. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3855. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3856. 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, "", "", ""));
  3857. 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, "", "", ""));
  3858. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3859. this._adapter.InsertCommand.Connection = this.Connection;
  3860. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[EdiniciIzmereniya] ([id], [Наименование]) VALUES (@id, @Наимен" +
  3861. "ование);\r\nSELECT id, Наименование FROM EdiniciIzmereniya WHERE (id = @id)";
  3862. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3863. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3864. 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, "", "", ""));
  3865. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3866. this._adapter.UpdateCommand.Connection = this.Connection;
  3867. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[EdiniciIzmereniya] SET [id] = @id, [Наименование] = @Наименование WHERE (([id] = @Original_id) AND ((@IsNull_Наименование = 1 AND [Наименование] IS NULL) OR ([Наименование] = @Original_Наименование)));
  3868. SELECT id, Наименование FROM EdiniciIzmereniya WHERE (id = @id)";
  3869. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3870. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3871. 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, "", "", ""));
  3872. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3873. 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, "", "", ""));
  3874. 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, "", "", ""));
  3875. }
  3876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3878. private void InitConnection() {
  3879. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3880. this._connection.ConnectionString = global::muskafidi_de.Properties.Settings.Default._06_muskafidi_deConnectionString;
  3881. }
  3882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3884. private void InitCommandCollection() {
  3885. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3886. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3887. this._commandCollection[0].Connection = this.Connection;
  3888. this._commandCollection[0].CommandText = "SELECT id, Наименование FROM dbo.EdiniciIzmereniya";
  3889. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3890. }
  3891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3893. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3894. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3895. public virtual int Fill(_06_muskafidi_deDataSet.EdiniciIzmereniyaDataTable dataTable) {
  3896. this.Adapter.SelectCommand = this.CommandCollection[0];
  3897. if ((this.ClearBeforeFill == true)) {
  3898. dataTable.Clear();
  3899. }
  3900. int returnValue = this.Adapter.Fill(dataTable);
  3901. return returnValue;
  3902. }
  3903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3905. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3906. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3907. public virtual _06_muskafidi_deDataSet.EdiniciIzmereniyaDataTable GetData() {
  3908. this.Adapter.SelectCommand = this.CommandCollection[0];
  3909. _06_muskafidi_deDataSet.EdiniciIzmereniyaDataTable dataTable = new _06_muskafidi_deDataSet.EdiniciIzmereniyaDataTable();
  3910. this.Adapter.Fill(dataTable);
  3911. return dataTable;
  3912. }
  3913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3915. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3916. public virtual int Update(_06_muskafidi_deDataSet.EdiniciIzmereniyaDataTable dataTable) {
  3917. return this.Adapter.Update(dataTable);
  3918. }
  3919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3921. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3922. public virtual int Update(_06_muskafidi_deDataSet dataSet) {
  3923. return this.Adapter.Update(dataSet, "EdiniciIzmereniya");
  3924. }
  3925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3927. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3928. public virtual int Update(global::System.Data.DataRow dataRow) {
  3929. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3930. dataRow});
  3931. }
  3932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3934. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3935. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3936. return this.Adapter.Update(dataRows);
  3937. }
  3938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3940. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3941. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3942. public virtual int Delete(int Original_id, string Original_Наименование) {
  3943. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  3944. if ((Original_Наименование == null)) {
  3945. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3946. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3947. }
  3948. else {
  3949. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3950. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Наименование));
  3951. }
  3952. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3953. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3954. != global::System.Data.ConnectionState.Open)) {
  3955. this.Adapter.DeleteCommand.Connection.Open();
  3956. }
  3957. try {
  3958. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3959. return returnValue;
  3960. }
  3961. finally {
  3962. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3963. this.Adapter.DeleteCommand.Connection.Close();
  3964. }
  3965. }
  3966. }
  3967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3969. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3970. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3971. public virtual int Insert(int id, string Наименование) {
  3972. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id));
  3973. if ((Наименование == null)) {
  3974. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3975. }
  3976. else {
  3977. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  3978. }
  3979. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3980. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3981. != global::System.Data.ConnectionState.Open)) {
  3982. this.Adapter.InsertCommand.Connection.Open();
  3983. }
  3984. try {
  3985. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3986. return returnValue;
  3987. }
  3988. finally {
  3989. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3990. this.Adapter.InsertCommand.Connection.Close();
  3991. }
  3992. }
  3993. }
  3994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3996. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3997. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3998. public virtual int Update(int id, string Наименование, int Original_id, string Original_Наименование) {
  3999. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(id));
  4000. if ((Наименование == null)) {
  4001. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4002. }
  4003. else {
  4004. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование));
  4005. }
  4006. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_id));
  4007. if ((Original_Наименование == null)) {
  4008. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  4009. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4010. }
  4011. else {
  4012. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  4013. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Наименование));
  4014. }
  4015. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4016. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4017. != global::System.Data.ConnectionState.Open)) {
  4018. this.Adapter.UpdateCommand.Connection.Open();
  4019. }
  4020. try {
  4021. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4022. return returnValue;
  4023. }
  4024. finally {
  4025. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4026. this.Adapter.UpdateCommand.Connection.Close();
  4027. }
  4028. }
  4029. }
  4030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4032. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4033. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4034. public virtual int Update(string Наименование, int Original_id, string Original_Наименование) {
  4035. return this.Update(Original_id, Наименование, Original_id, Original_Наименование);
  4036. }
  4037. }
  4038. /// <summary>
  4039. ///Represents the connection and commands used to retrieve and save data.
  4040. ///</summary>
  4041. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4042. [global::System.ComponentModel.ToolboxItem(true)]
  4043. [global::System.ComponentModel.DataObjectAttribute(true)]
  4044. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4045. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4046. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4047. public partial class RolesTableAdapter : global::System.ComponentModel.Component {
  4048. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4049. private global::System.Data.SqlClient.SqlConnection _connection;
  4050. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4051. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4052. private bool _clearBeforeFill;
  4053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4055. public RolesTableAdapter() {
  4056. this.ClearBeforeFill = true;
  4057. }
  4058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4060. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4061. get {
  4062. if ((this._adapter == null)) {
  4063. this.InitAdapter();
  4064. }
  4065. return this._adapter;
  4066. }
  4067. }
  4068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4070. internal global::System.Data.SqlClient.SqlConnection Connection {
  4071. get {
  4072. if ((this._connection == null)) {
  4073. this.InitConnection();
  4074. }
  4075. return this._connection;
  4076. }
  4077. set {
  4078. this._connection = value;
  4079. if ((this.Adapter.InsertCommand != null)) {
  4080. this.Adapter.InsertCommand.Connection = value;
  4081. }
  4082. if ((this.Adapter.DeleteCommand != null)) {
  4083. this.Adapter.DeleteCommand.Connection = value;
  4084. }
  4085. if ((this.Adapter.UpdateCommand != null)) {
  4086. this.Adapter.UpdateCommand.Connection = value;
  4087. }
  4088. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4089. if ((this.CommandCollection[i] != null)) {
  4090. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4091. }
  4092. }
  4093. }
  4094. }
  4095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4097. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4098. get {
  4099. return this._transaction;
  4100. }
  4101. set {
  4102. this._transaction = value;
  4103. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4104. this.CommandCollection[i].Transaction = this._transaction;
  4105. }
  4106. if (((this.Adapter != null)
  4107. && (this.Adapter.DeleteCommand != null))) {
  4108. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4109. }
  4110. if (((this.Adapter != null)
  4111. && (this.Adapter.InsertCommand != null))) {
  4112. this.Adapter.InsertCommand.Transaction = this._transaction;
  4113. }
  4114. if (((this.Adapter != null)
  4115. && (this.Adapter.UpdateCommand != null))) {
  4116. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4117. }
  4118. }
  4119. }
  4120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4122. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4123. get {
  4124. if ((this._commandCollection == null)) {
  4125. this.InitCommandCollection();
  4126. }
  4127. return this._commandCollection;
  4128. }
  4129. }
  4130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4132. public bool ClearBeforeFill {
  4133. get {
  4134. return this._clearBeforeFill;
  4135. }
  4136. set {
  4137. this._clearBeforeFill = value;
  4138. }
  4139. }
  4140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4142. private void InitAdapter() {
  4143. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4144. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4145. tableMapping.SourceTable = "Table";
  4146. tableMapping.DataSetTable = "Roles";
  4147. tableMapping.ColumnMappings.Add("id", "id");
  4148. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  4149. this._adapter.TableMappings.Add(tableMapping);
  4150. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4151. this._adapter.DeleteCommand.Connection = this.Connection;
  4152. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Roles] WHERE (([id] = @Original_id) AND ((@IsNull_Наименование" +
  4153. " = 1 AND [Наименование] IS NULL) OR ([Наименование] = @Original_Наименование)))";
  4154. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4155. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4156. 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, "", "", ""));
  4157. 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, "", "", ""));
  4158. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4159. this._adapter.InsertCommand.Connection = this.Connection;
  4160. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Roles] ([id], [Наименование]) VALUES (@id, @Наименование);\r\nSE" +
  4161. "LECT id, Наименование FROM Roles WHERE (id = @id)";
  4162. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4163. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4164. 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, "", "", ""));
  4165. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4166. this._adapter.UpdateCommand.Connection = this.Connection;
  4167. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Roles] SET [id] = @id, [Наименование] = @Наименование WHERE (([id] = @Original_id) AND ((@IsNull_Наименование = 1 AND [Наименование] IS NULL) OR ([Наименование] = @Original_Наименование)));
  4168. SELECT id, Наименование FROM Roles WHERE (id = @id)";
  4169. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4170. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4171. 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, "", "", ""));
  4172. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4173. 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, "", "", ""));
  4174. 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, "", "", ""));
  4175. }
  4176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4178. private void InitConnection() {
  4179. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4180. this._connection.ConnectionString = global::muskafidi_de.Properties.Settings.Default._06_muskafidi_deConnectionString;
  4181. }
  4182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4184. private void InitCommandCollection() {
  4185. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4186. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4187. this._commandCollection[0].Connection = this.Connection;
  4188. this._commandCollection[0].CommandText = "SELECT id, Наименование FROM dbo.Roles";
  4189. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4190. }
  4191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4193. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4194. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4195. public virtual int Fill(_06_muskafidi_deDataSet.RolesDataTable dataTable) {
  4196. this.Adapter.SelectCommand = this.CommandCollection[0];
  4197. if ((this.ClearBeforeFill == true)) {
  4198. dataTable.Clear();
  4199. }
  4200. int returnValue = this.Adapter.Fill(dataTable);
  4201. return returnValue;
  4202. }
  4203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4205. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4206. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4207. public virtual _06_muskafidi_deDataSet.RolesDataTable GetData() {
  4208. this.Adapter.SelectCommand = this.CommandCollection[0];
  4209. _06_muskafidi_deDataSet.RolesDataTable dataTable = new _06_muskafidi_deDataSet.RolesDataTable();
  4210. this.Adapter.Fill(dataTable);
  4211. return dataTable;
  4212. }
  4213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4215. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4216. public virtual int Update(_06_muskafidi_deDataSet.RolesDataTable dataTable) {
  4217. return this.Adapter.Update(dataTable);
  4218. }
  4219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4221. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4222. public virtual int Update(_06_muskafidi_deDataSet dataSet) {
  4223. return this.Adapter.Update(dataSet, "Roles");
  4224. }
  4225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4227. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4228. public virtual int Update(global::System.Data.DataRow dataRow) {
  4229. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4230. dataRow});
  4231. }
  4232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4234. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4235. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4236. return this.Adapter.Update(dataRows);
  4237. }
  4238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4240. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4241. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4242. public virtual int Delete(int Original_id, string Original_Наименование) {
  4243. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  4244. if ((Original_Наименование == null)) {
  4245. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4246. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4247. }
  4248. else {
  4249. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4250. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Наименование));
  4251. }
  4252. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4253. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4254. != global::System.Data.ConnectionState.Open)) {
  4255. this.Adapter.DeleteCommand.Connection.Open();
  4256. }
  4257. try {
  4258. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4259. return returnValue;
  4260. }
  4261. finally {
  4262. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4263. this.Adapter.DeleteCommand.Connection.Close();
  4264. }
  4265. }
  4266. }
  4267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4269. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4270. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4271. public virtual int Insert(int id, string Наименование) {
  4272. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id));
  4273. if ((Наименование == null)) {
  4274. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4275. }
  4276. else {
  4277. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  4278. }
  4279. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4280. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4281. != global::System.Data.ConnectionState.Open)) {
  4282. this.Adapter.InsertCommand.Connection.Open();
  4283. }
  4284. try {
  4285. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4286. return returnValue;
  4287. }
  4288. finally {
  4289. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4290. this.Adapter.InsertCommand.Connection.Close();
  4291. }
  4292. }
  4293. }
  4294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4296. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4297. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4298. public virtual int Update(int id, string Наименование, int Original_id, string Original_Наименование) {
  4299. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(id));
  4300. if ((Наименование == null)) {
  4301. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4302. }
  4303. else {
  4304. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование));
  4305. }
  4306. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_id));
  4307. if ((Original_Наименование == null)) {
  4308. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  4309. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4310. }
  4311. else {
  4312. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  4313. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Наименование));
  4314. }
  4315. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4316. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4317. != global::System.Data.ConnectionState.Open)) {
  4318. this.Adapter.UpdateCommand.Connection.Open();
  4319. }
  4320. try {
  4321. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4322. return returnValue;
  4323. }
  4324. finally {
  4325. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4326. this.Adapter.UpdateCommand.Connection.Close();
  4327. }
  4328. }
  4329. }
  4330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4332. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4333. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4334. public virtual int Update(string Наименование, int Original_id, string Original_Наименование) {
  4335. return this.Update(Original_id, Наименование, Original_id, Original_Наименование);
  4336. }
  4337. }
  4338. /// <summary>
  4339. ///Represents the connection and commands used to retrieve and save data.
  4340. ///</summary>
  4341. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4342. [global::System.ComponentModel.ToolboxItem(true)]
  4343. [global::System.ComponentModel.DataObjectAttribute(true)]
  4344. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4345. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4346. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4347. public partial class StatusTableAdapter : global::System.ComponentModel.Component {
  4348. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4349. private global::System.Data.SqlClient.SqlConnection _connection;
  4350. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4351. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4352. private bool _clearBeforeFill;
  4353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4355. public StatusTableAdapter() {
  4356. this.ClearBeforeFill = true;
  4357. }
  4358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4360. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4361. get {
  4362. if ((this._adapter == null)) {
  4363. this.InitAdapter();
  4364. }
  4365. return this._adapter;
  4366. }
  4367. }
  4368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4370. internal global::System.Data.SqlClient.SqlConnection Connection {
  4371. get {
  4372. if ((this._connection == null)) {
  4373. this.InitConnection();
  4374. }
  4375. return this._connection;
  4376. }
  4377. set {
  4378. this._connection = value;
  4379. if ((this.Adapter.InsertCommand != null)) {
  4380. this.Adapter.InsertCommand.Connection = value;
  4381. }
  4382. if ((this.Adapter.DeleteCommand != null)) {
  4383. this.Adapter.DeleteCommand.Connection = value;
  4384. }
  4385. if ((this.Adapter.UpdateCommand != null)) {
  4386. this.Adapter.UpdateCommand.Connection = value;
  4387. }
  4388. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4389. if ((this.CommandCollection[i] != null)) {
  4390. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4391. }
  4392. }
  4393. }
  4394. }
  4395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4397. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4398. get {
  4399. return this._transaction;
  4400. }
  4401. set {
  4402. this._transaction = value;
  4403. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4404. this.CommandCollection[i].Transaction = this._transaction;
  4405. }
  4406. if (((this.Adapter != null)
  4407. && (this.Adapter.DeleteCommand != null))) {
  4408. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4409. }
  4410. if (((this.Adapter != null)
  4411. && (this.Adapter.InsertCommand != null))) {
  4412. this.Adapter.InsertCommand.Transaction = this._transaction;
  4413. }
  4414. if (((this.Adapter != null)
  4415. && (this.Adapter.UpdateCommand != null))) {
  4416. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4417. }
  4418. }
  4419. }
  4420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4422. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4423. get {
  4424. if ((this._commandCollection == null)) {
  4425. this.InitCommandCollection();
  4426. }
  4427. return this._commandCollection;
  4428. }
  4429. }
  4430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4432. public bool ClearBeforeFill {
  4433. get {
  4434. return this._clearBeforeFill;
  4435. }
  4436. set {
  4437. this._clearBeforeFill = value;
  4438. }
  4439. }
  4440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4442. private void InitAdapter() {
  4443. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4444. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4445. tableMapping.SourceTable = "Table";
  4446. tableMapping.DataSetTable = "Status";
  4447. tableMapping.ColumnMappings.Add("id", "id");
  4448. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  4449. this._adapter.TableMappings.Add(tableMapping);
  4450. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4451. this._adapter.DeleteCommand.Connection = this.Connection;
  4452. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Status] WHERE (([id] = @Original_id) AND ((@IsNull_Наименовани" +
  4453. "е = 1 AND [Наименование] IS NULL) OR ([Наименование] = @Original_Наименование)))" +
  4454. "";
  4455. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4456. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4457. 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, "", "", ""));
  4458. 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, "", "", ""));
  4459. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4460. this._adapter.InsertCommand.Connection = this.Connection;
  4461. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Status] ([id], [Наименование]) VALUES (@id, @Наименование);\r\nS" +
  4462. "ELECT id, Наименование FROM Status WHERE (id = @id)";
  4463. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4464. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4465. 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, "", "", ""));
  4466. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4467. this._adapter.UpdateCommand.Connection = this.Connection;
  4468. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Status] SET [id] = @id, [Наименование] = @Наименование WHERE (([id] = @Original_id) AND ((@IsNull_Наименование = 1 AND [Наименование] IS NULL) OR ([Наименование] = @Original_Наименование)));
  4469. SELECT id, Наименование FROM Status WHERE (id = @id)";
  4470. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4471. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4472. 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, "", "", ""));
  4473. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4474. 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, "", "", ""));
  4475. 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, "", "", ""));
  4476. }
  4477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4479. private void InitConnection() {
  4480. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4481. this._connection.ConnectionString = global::muskafidi_de.Properties.Settings.Default._06_muskafidi_deConnectionString;
  4482. }
  4483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4485. private void InitCommandCollection() {
  4486. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4487. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4488. this._commandCollection[0].Connection = this.Connection;
  4489. this._commandCollection[0].CommandText = "SELECT id, Наименование FROM dbo.Status";
  4490. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4491. }
  4492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4494. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4495. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4496. public virtual int Fill(_06_muskafidi_deDataSet.StatusDataTable dataTable) {
  4497. this.Adapter.SelectCommand = this.CommandCollection[0];
  4498. if ((this.ClearBeforeFill == true)) {
  4499. dataTable.Clear();
  4500. }
  4501. int returnValue = this.Adapter.Fill(dataTable);
  4502. return returnValue;
  4503. }
  4504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4506. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4507. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4508. public virtual _06_muskafidi_deDataSet.StatusDataTable GetData() {
  4509. this.Adapter.SelectCommand = this.CommandCollection[0];
  4510. _06_muskafidi_deDataSet.StatusDataTable dataTable = new _06_muskafidi_deDataSet.StatusDataTable();
  4511. this.Adapter.Fill(dataTable);
  4512. return dataTable;
  4513. }
  4514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4516. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4517. public virtual int Update(_06_muskafidi_deDataSet.StatusDataTable dataTable) {
  4518. return this.Adapter.Update(dataTable);
  4519. }
  4520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4522. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4523. public virtual int Update(_06_muskafidi_deDataSet dataSet) {
  4524. return this.Adapter.Update(dataSet, "Status");
  4525. }
  4526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4528. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4529. public virtual int Update(global::System.Data.DataRow dataRow) {
  4530. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4531. dataRow});
  4532. }
  4533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4535. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4536. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4537. return this.Adapter.Update(dataRows);
  4538. }
  4539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4541. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4542. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4543. public virtual int Delete(int Original_id, string Original_Наименование) {
  4544. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  4545. if ((Original_Наименование == null)) {
  4546. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4547. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4548. }
  4549. else {
  4550. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4551. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Наименование));
  4552. }
  4553. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4554. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4555. != global::System.Data.ConnectionState.Open)) {
  4556. this.Adapter.DeleteCommand.Connection.Open();
  4557. }
  4558. try {
  4559. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4560. return returnValue;
  4561. }
  4562. finally {
  4563. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4564. this.Adapter.DeleteCommand.Connection.Close();
  4565. }
  4566. }
  4567. }
  4568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4570. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4571. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4572. public virtual int Insert(int id, string Наименование) {
  4573. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id));
  4574. if ((Наименование == null)) {
  4575. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4576. }
  4577. else {
  4578. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  4579. }
  4580. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4581. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4582. != global::System.Data.ConnectionState.Open)) {
  4583. this.Adapter.InsertCommand.Connection.Open();
  4584. }
  4585. try {
  4586. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4587. return returnValue;
  4588. }
  4589. finally {
  4590. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4591. this.Adapter.InsertCommand.Connection.Close();
  4592. }
  4593. }
  4594. }
  4595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4597. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4598. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4599. public virtual int Update(int id, string Наименование, int Original_id, string Original_Наименование) {
  4600. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(id));
  4601. if ((Наименование == null)) {
  4602. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4603. }
  4604. else {
  4605. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование));
  4606. }
  4607. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_id));
  4608. if ((Original_Наименование == null)) {
  4609. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  4610. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4611. }
  4612. else {
  4613. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  4614. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Наименование));
  4615. }
  4616. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4617. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4618. != global::System.Data.ConnectionState.Open)) {
  4619. this.Adapter.UpdateCommand.Connection.Open();
  4620. }
  4621. try {
  4622. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4623. return returnValue;
  4624. }
  4625. finally {
  4626. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4627. this.Adapter.UpdateCommand.Connection.Close();
  4628. }
  4629. }
  4630. }
  4631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4633. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4634. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4635. public virtual int Update(string Наименование, int Original_id, string Original_Наименование) {
  4636. return this.Update(Original_id, Наименование, Original_id, Original_Наименование);
  4637. }
  4638. }
  4639. /// <summary>
  4640. ///Represents the connection and commands used to retrieve and save data.
  4641. ///</summary>
  4642. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4643. [global::System.ComponentModel.ToolboxItem(true)]
  4644. [global::System.ComponentModel.DataObjectAttribute(true)]
  4645. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4646. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4647. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4648. public partial class StatusZakazaTableAdapter : global::System.ComponentModel.Component {
  4649. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4650. private global::System.Data.SqlClient.SqlConnection _connection;
  4651. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4652. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4653. private bool _clearBeforeFill;
  4654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4656. public StatusZakazaTableAdapter() {
  4657. this.ClearBeforeFill = true;
  4658. }
  4659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4661. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4662. get {
  4663. if ((this._adapter == null)) {
  4664. this.InitAdapter();
  4665. }
  4666. return this._adapter;
  4667. }
  4668. }
  4669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4671. internal global::System.Data.SqlClient.SqlConnection Connection {
  4672. get {
  4673. if ((this._connection == null)) {
  4674. this.InitConnection();
  4675. }
  4676. return this._connection;
  4677. }
  4678. set {
  4679. this._connection = value;
  4680. if ((this.Adapter.InsertCommand != null)) {
  4681. this.Adapter.InsertCommand.Connection = value;
  4682. }
  4683. if ((this.Adapter.DeleteCommand != null)) {
  4684. this.Adapter.DeleteCommand.Connection = value;
  4685. }
  4686. if ((this.Adapter.UpdateCommand != null)) {
  4687. this.Adapter.UpdateCommand.Connection = value;
  4688. }
  4689. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4690. if ((this.CommandCollection[i] != null)) {
  4691. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4692. }
  4693. }
  4694. }
  4695. }
  4696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4698. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4699. get {
  4700. return this._transaction;
  4701. }
  4702. set {
  4703. this._transaction = value;
  4704. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4705. this.CommandCollection[i].Transaction = this._transaction;
  4706. }
  4707. if (((this.Adapter != null)
  4708. && (this.Adapter.DeleteCommand != null))) {
  4709. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4710. }
  4711. if (((this.Adapter != null)
  4712. && (this.Adapter.InsertCommand != null))) {
  4713. this.Adapter.InsertCommand.Transaction = this._transaction;
  4714. }
  4715. if (((this.Adapter != null)
  4716. && (this.Adapter.UpdateCommand != null))) {
  4717. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4718. }
  4719. }
  4720. }
  4721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4723. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4724. get {
  4725. if ((this._commandCollection == null)) {
  4726. this.InitCommandCollection();
  4727. }
  4728. return this._commandCollection;
  4729. }
  4730. }
  4731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4733. public bool ClearBeforeFill {
  4734. get {
  4735. return this._clearBeforeFill;
  4736. }
  4737. set {
  4738. this._clearBeforeFill = value;
  4739. }
  4740. }
  4741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4743. private void InitAdapter() {
  4744. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4745. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4746. tableMapping.SourceTable = "Table";
  4747. tableMapping.DataSetTable = "StatusZakaza";
  4748. tableMapping.ColumnMappings.Add("id", "id");
  4749. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  4750. this._adapter.TableMappings.Add(tableMapping);
  4751. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4752. this._adapter.DeleteCommand.Connection = this.Connection;
  4753. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[StatusZakaza] WHERE (([id] = @Original_id) AND ((@IsNull_Наиме" +
  4754. "нование = 1 AND [Наименование] IS NULL) OR ([Наименование] = @Original_Наименова" +
  4755. "ние)))";
  4756. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4757. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4758. 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, "", "", ""));
  4759. 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, "", "", ""));
  4760. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4761. this._adapter.InsertCommand.Connection = this.Connection;
  4762. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[StatusZakaza] ([id], [Наименование]) VALUES (@id, @Наименовани" +
  4763. "е);\r\nSELECT id, Наименование FROM StatusZakaza WHERE (id = @id)";
  4764. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4765. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4766. 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, "", "", ""));
  4767. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4768. this._adapter.UpdateCommand.Connection = this.Connection;
  4769. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[StatusZakaza] SET [id] = @id, [Наименование] = @Наименование WHERE (([id] = @Original_id) AND ((@IsNull_Наименование = 1 AND [Наименование] IS NULL) OR ([Наименование] = @Original_Наименование)));
  4770. SELECT id, Наименование FROM StatusZakaza WHERE (id = @id)";
  4771. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4772. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4773. 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, "", "", ""));
  4774. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4775. 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, "", "", ""));
  4776. 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, "", "", ""));
  4777. }
  4778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4780. private void InitConnection() {
  4781. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4782. this._connection.ConnectionString = global::muskafidi_de.Properties.Settings.Default._06_muskafidi_deConnectionString;
  4783. }
  4784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4786. private void InitCommandCollection() {
  4787. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4788. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4789. this._commandCollection[0].Connection = this.Connection;
  4790. this._commandCollection[0].CommandText = "SELECT id, Наименование FROM dbo.StatusZakaza";
  4791. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4792. }
  4793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4795. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4796. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4797. public virtual int Fill(_06_muskafidi_deDataSet.StatusZakazaDataTable dataTable) {
  4798. this.Adapter.SelectCommand = this.CommandCollection[0];
  4799. if ((this.ClearBeforeFill == true)) {
  4800. dataTable.Clear();
  4801. }
  4802. int returnValue = this.Adapter.Fill(dataTable);
  4803. return returnValue;
  4804. }
  4805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4807. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4808. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4809. public virtual _06_muskafidi_deDataSet.StatusZakazaDataTable GetData() {
  4810. this.Adapter.SelectCommand = this.CommandCollection[0];
  4811. _06_muskafidi_deDataSet.StatusZakazaDataTable dataTable = new _06_muskafidi_deDataSet.StatusZakazaDataTable();
  4812. this.Adapter.Fill(dataTable);
  4813. return dataTable;
  4814. }
  4815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4817. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4818. public virtual int Update(_06_muskafidi_deDataSet.StatusZakazaDataTable dataTable) {
  4819. return this.Adapter.Update(dataTable);
  4820. }
  4821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4823. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4824. public virtual int Update(_06_muskafidi_deDataSet dataSet) {
  4825. return this.Adapter.Update(dataSet, "StatusZakaza");
  4826. }
  4827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4829. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4830. public virtual int Update(global::System.Data.DataRow dataRow) {
  4831. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4832. dataRow});
  4833. }
  4834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4836. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4837. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4838. return this.Adapter.Update(dataRows);
  4839. }
  4840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4842. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4843. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4844. public virtual int Delete(int Original_id, string Original_Наименование) {
  4845. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  4846. if ((Original_Наименование == null)) {
  4847. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4848. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4849. }
  4850. else {
  4851. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4852. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Наименование));
  4853. }
  4854. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4855. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4856. != global::System.Data.ConnectionState.Open)) {
  4857. this.Adapter.DeleteCommand.Connection.Open();
  4858. }
  4859. try {
  4860. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4861. return returnValue;
  4862. }
  4863. finally {
  4864. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4865. this.Adapter.DeleteCommand.Connection.Close();
  4866. }
  4867. }
  4868. }
  4869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4871. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4872. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4873. public virtual int Insert(int id, string Наименование) {
  4874. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id));
  4875. if ((Наименование == null)) {
  4876. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4877. }
  4878. else {
  4879. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  4880. }
  4881. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4882. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4883. != global::System.Data.ConnectionState.Open)) {
  4884. this.Adapter.InsertCommand.Connection.Open();
  4885. }
  4886. try {
  4887. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4888. return returnValue;
  4889. }
  4890. finally {
  4891. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4892. this.Adapter.InsertCommand.Connection.Close();
  4893. }
  4894. }
  4895. }
  4896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4898. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4899. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4900. public virtual int Update(int id, string Наименование, int Original_id, string Original_Наименование) {
  4901. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(id));
  4902. if ((Наименование == null)) {
  4903. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4904. }
  4905. else {
  4906. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование));
  4907. }
  4908. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_id));
  4909. if ((Original_Наименование == null)) {
  4910. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  4911. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4912. }
  4913. else {
  4914. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  4915. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Наименование));
  4916. }
  4917. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4918. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4919. != global::System.Data.ConnectionState.Open)) {
  4920. this.Adapter.UpdateCommand.Connection.Open();
  4921. }
  4922. try {
  4923. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4924. return returnValue;
  4925. }
  4926. finally {
  4927. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4928. this.Adapter.UpdateCommand.Connection.Close();
  4929. }
  4930. }
  4931. }
  4932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4934. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4935. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4936. public virtual int Update(string Наименование, int Original_id, string Original_Наименование) {
  4937. return this.Update(Original_id, Наименование, Original_id, Original_Наименование);
  4938. }
  4939. }
  4940. /// <summary>
  4941. ///Represents the connection and commands used to retrieve and save data.
  4942. ///</summary>
  4943. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4944. [global::System.ComponentModel.ToolboxItem(true)]
  4945. [global::System.ComponentModel.DataObjectAttribute(true)]
  4946. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4947. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4948. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4949. public partial class usersTableAdapter : global::System.ComponentModel.Component {
  4950. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4951. private global::System.Data.SqlClient.SqlConnection _connection;
  4952. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4953. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4954. private bool _clearBeforeFill;
  4955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4957. public usersTableAdapter() {
  4958. this.ClearBeforeFill = true;
  4959. }
  4960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4962. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4963. get {
  4964. if ((this._adapter == null)) {
  4965. this.InitAdapter();
  4966. }
  4967. return this._adapter;
  4968. }
  4969. }
  4970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4972. internal global::System.Data.SqlClient.SqlConnection Connection {
  4973. get {
  4974. if ((this._connection == null)) {
  4975. this.InitConnection();
  4976. }
  4977. return this._connection;
  4978. }
  4979. set {
  4980. this._connection = value;
  4981. if ((this.Adapter.InsertCommand != null)) {
  4982. this.Adapter.InsertCommand.Connection = value;
  4983. }
  4984. if ((this.Adapter.DeleteCommand != null)) {
  4985. this.Adapter.DeleteCommand.Connection = value;
  4986. }
  4987. if ((this.Adapter.UpdateCommand != null)) {
  4988. this.Adapter.UpdateCommand.Connection = value;
  4989. }
  4990. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4991. if ((this.CommandCollection[i] != null)) {
  4992. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4993. }
  4994. }
  4995. }
  4996. }
  4997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4999. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5000. get {
  5001. return this._transaction;
  5002. }
  5003. set {
  5004. this._transaction = value;
  5005. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5006. this.CommandCollection[i].Transaction = this._transaction;
  5007. }
  5008. if (((this.Adapter != null)
  5009. && (this.Adapter.DeleteCommand != null))) {
  5010. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5011. }
  5012. if (((this.Adapter != null)
  5013. && (this.Adapter.InsertCommand != null))) {
  5014. this.Adapter.InsertCommand.Transaction = this._transaction;
  5015. }
  5016. if (((this.Adapter != null)
  5017. && (this.Adapter.UpdateCommand != null))) {
  5018. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5019. }
  5020. }
  5021. }
  5022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5024. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5025. get {
  5026. if ((this._commandCollection == null)) {
  5027. this.InitCommandCollection();
  5028. }
  5029. return this._commandCollection;
  5030. }
  5031. }
  5032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5034. public bool ClearBeforeFill {
  5035. get {
  5036. return this._clearBeforeFill;
  5037. }
  5038. set {
  5039. this._clearBeforeFill = value;
  5040. }
  5041. }
  5042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5044. private void InitAdapter() {
  5045. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5046. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5047. tableMapping.SourceTable = "Table";
  5048. tableMapping.DataSetTable = "users";
  5049. tableMapping.ColumnMappings.Add("id", "id");
  5050. tableMapping.ColumnMappings.Add("ФИО", "ФИО");
  5051. tableMapping.ColumnMappings.Add("username", "username");
  5052. tableMapping.ColumnMappings.Add("password", "password");
  5053. tableMapping.ColumnMappings.Add("Роль", "Роль");
  5054. tableMapping.ColumnMappings.Add("Статус", "Статус");
  5055. this._adapter.TableMappings.Add(tableMapping);
  5056. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5057. this._adapter.DeleteCommand.Connection = this.Connection;
  5058. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[users] WHERE (([id] = @Original_id) AND ((@IsNull_ФИО = 1 AND [ФИО] IS NULL) OR ([ФИО] = @Original_ФИО)) AND ((@IsNull_username = 1 AND [username] IS NULL) OR ([username] = @Original_username)) AND ((@IsNull_password = 1 AND [password] IS NULL) OR ([password] = @Original_password)) AND ((@IsNull_Роль = 1 AND [Роль] IS NULL) OR ([Роль] = @Original_Роль)) AND ((@IsNull_Статус = 1 AND [Статус] IS NULL) OR ([Статус] = @Original_Статус)))";
  5059. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5060. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5061. 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, "", "", ""));
  5062. 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, "", "", ""));
  5063. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_username", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "username", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5064. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_username", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "username", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5065. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5066. 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, "", "", ""));
  5067. 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, "", "", ""));
  5068. 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, "", "", ""));
  5069. 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, "", "", ""));
  5070. 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, "", "", ""));
  5071. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5072. this._adapter.InsertCommand.Connection = this.Connection;
  5073. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[users] ([id], [ФИО], [username], [password], [Роль], [Статус])" +
  5074. " VALUES (@id, @ФИО, @username, @password, @Роль, @Статус);\r\nSELECT id, ФИО, user" +
  5075. "name, password, Роль, Статус FROM users WHERE (id = @id)";
  5076. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5077. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5078. 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, "", "", ""));
  5079. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@username", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "username", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5080. 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, "", "", ""));
  5081. 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, "", "", ""));
  5082. 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, "", "", ""));
  5083. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5084. this._adapter.UpdateCommand.Connection = this.Connection;
  5085. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[users] SET [id] = @id, [ФИО] = @ФИО, [username] = @username, [password] = @password, [Роль] = @Роль, [Статус] = @Статус WHERE (([id] = @Original_id) AND ((@IsNull_ФИО = 1 AND [ФИО] IS NULL) OR ([ФИО] = @Original_ФИО)) AND ((@IsNull_username = 1 AND [username] IS NULL) OR ([username] = @Original_username)) AND ((@IsNull_password = 1 AND [password] IS NULL) OR ([password] = @Original_password)) AND ((@IsNull_Роль = 1 AND [Роль] IS NULL) OR ([Роль] = @Original_Роль)) AND ((@IsNull_Статус = 1 AND [Статус] IS NULL) OR ([Статус] = @Original_Статус)));
  5086. SELECT id, ФИО, username, password, Роль, Статус FROM users WHERE (id = @id)";
  5087. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5088. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5089. 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, "", "", ""));
  5090. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@username", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "username", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5091. 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, "", "", ""));
  5092. 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, "", "", ""));
  5093. 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, "", "", ""));
  5094. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5095. 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, "", "", ""));
  5096. 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, "", "", ""));
  5097. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_username", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "username", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5098. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_username", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "username", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5099. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5100. 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, "", "", ""));
  5101. 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, "", "", ""));
  5102. 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, "", "", ""));
  5103. 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, "", "", ""));
  5104. 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, "", "", ""));
  5105. }
  5106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5108. private void InitConnection() {
  5109. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5110. this._connection.ConnectionString = global::muskafidi_de.Properties.Settings.Default._06_muskafidi_deConnectionString;
  5111. }
  5112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5114. private void InitCommandCollection() {
  5115. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5116. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5117. this._commandCollection[0].Connection = this.Connection;
  5118. this._commandCollection[0].CommandText = "SELECT id, ФИО, username, password, Роль, Статус FROM dbo.users";
  5119. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5120. }
  5121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5123. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5124. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5125. public virtual int Fill(_06_muskafidi_deDataSet.usersDataTable dataTable) {
  5126. this.Adapter.SelectCommand = this.CommandCollection[0];
  5127. if ((this.ClearBeforeFill == true)) {
  5128. dataTable.Clear();
  5129. }
  5130. int returnValue = this.Adapter.Fill(dataTable);
  5131. return returnValue;
  5132. }
  5133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5135. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5136. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5137. public virtual _06_muskafidi_deDataSet.usersDataTable GetData() {
  5138. this.Adapter.SelectCommand = this.CommandCollection[0];
  5139. _06_muskafidi_deDataSet.usersDataTable dataTable = new _06_muskafidi_deDataSet.usersDataTable();
  5140. this.Adapter.Fill(dataTable);
  5141. return dataTable;
  5142. }
  5143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5145. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5146. public virtual int Update(_06_muskafidi_deDataSet.usersDataTable dataTable) {
  5147. return this.Adapter.Update(dataTable);
  5148. }
  5149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5151. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5152. public virtual int Update(_06_muskafidi_deDataSet dataSet) {
  5153. return this.Adapter.Update(dataSet, "users");
  5154. }
  5155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5157. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5158. public virtual int Update(global::System.Data.DataRow dataRow) {
  5159. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5160. dataRow});
  5161. }
  5162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5164. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5165. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5166. return this.Adapter.Update(dataRows);
  5167. }
  5168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5170. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5171. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5172. public virtual int Delete(int Original_id, string Original_ФИО, string Original_username, string Original_password, global::System.Nullable<int> Original_Роль, global::System.Nullable<int> Original_Статус) {
  5173. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  5174. if ((Original_ФИО == null)) {
  5175. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5176. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5177. }
  5178. else {
  5179. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5180. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_ФИО));
  5181. }
  5182. if ((Original_username == null)) {
  5183. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5184. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5185. }
  5186. else {
  5187. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5188. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_username));
  5189. }
  5190. if ((Original_password == null)) {
  5191. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5192. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5193. }
  5194. else {
  5195. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5196. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_password));
  5197. }
  5198. if ((Original_Роль.HasValue == true)) {
  5199. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  5200. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_Роль.Value));
  5201. }
  5202. else {
  5203. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  5204. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  5205. }
  5206. if ((Original_Статус.HasValue == true)) {
  5207. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  5208. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_Статус.Value));
  5209. }
  5210. else {
  5211. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  5212. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  5213. }
  5214. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5215. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5216. != global::System.Data.ConnectionState.Open)) {
  5217. this.Adapter.DeleteCommand.Connection.Open();
  5218. }
  5219. try {
  5220. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5221. return returnValue;
  5222. }
  5223. finally {
  5224. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5225. this.Adapter.DeleteCommand.Connection.Close();
  5226. }
  5227. }
  5228. }
  5229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5231. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5232. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5233. public virtual int Insert(int id, string ФИО, string username, string password, global::System.Nullable<int> Роль, global::System.Nullable<int> Статус) {
  5234. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id));
  5235. if ((ФИО == null)) {
  5236. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5237. }
  5238. else {
  5239. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ФИО));
  5240. }
  5241. if ((username == null)) {
  5242. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5243. }
  5244. else {
  5245. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(username));
  5246. }
  5247. if ((password == null)) {
  5248. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5249. }
  5250. else {
  5251. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(password));
  5252. }
  5253. if ((Роль.HasValue == true)) {
  5254. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Роль.Value));
  5255. }
  5256. else {
  5257. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5258. }
  5259. if ((Статус.HasValue == true)) {
  5260. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(Статус.Value));
  5261. }
  5262. else {
  5263. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  5264. }
  5265. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5266. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5267. != global::System.Data.ConnectionState.Open)) {
  5268. this.Adapter.InsertCommand.Connection.Open();
  5269. }
  5270. try {
  5271. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5272. return returnValue;
  5273. }
  5274. finally {
  5275. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5276. this.Adapter.InsertCommand.Connection.Close();
  5277. }
  5278. }
  5279. }
  5280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5282. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5283. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5284. public virtual int Update(int id, string ФИО, string username, string password, global::System.Nullable<int> Роль, global::System.Nullable<int> Статус, int Original_id, string Original_ФИО, string Original_username, string Original_password, global::System.Nullable<int> Original_Роль, global::System.Nullable<int> Original_Статус) {
  5285. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(id));
  5286. if ((ФИО == null)) {
  5287. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5288. }
  5289. else {
  5290. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ФИО));
  5291. }
  5292. if ((username == null)) {
  5293. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5294. }
  5295. else {
  5296. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(username));
  5297. }
  5298. if ((password == null)) {
  5299. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5300. }
  5301. else {
  5302. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(password));
  5303. }
  5304. if ((Роль.HasValue == true)) {
  5305. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Роль.Value));
  5306. }
  5307. else {
  5308. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5309. }
  5310. if ((Статус.HasValue == true)) {
  5311. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Статус.Value));
  5312. }
  5313. else {
  5314. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5315. }
  5316. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_id));
  5317. if ((Original_ФИО == null)) {
  5318. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  5319. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  5320. }
  5321. else {
  5322. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  5323. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_ФИО));
  5324. }
  5325. if ((Original_username == null)) {
  5326. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  5327. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  5328. }
  5329. else {
  5330. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  5331. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_username));
  5332. }
  5333. if ((Original_password == null)) {
  5334. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  5335. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  5336. }
  5337. else {
  5338. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  5339. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_password));
  5340. }
  5341. if ((Original_Роль.HasValue == true)) {
  5342. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  5343. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_Роль.Value));
  5344. }
  5345. else {
  5346. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  5347. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  5348. }
  5349. if ((Original_Статус.HasValue == true)) {
  5350. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  5351. this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_Статус.Value));
  5352. }
  5353. else {
  5354. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  5355. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  5356. }
  5357. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5358. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5359. != global::System.Data.ConnectionState.Open)) {
  5360. this.Adapter.UpdateCommand.Connection.Open();
  5361. }
  5362. try {
  5363. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5364. return returnValue;
  5365. }
  5366. finally {
  5367. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5368. this.Adapter.UpdateCommand.Connection.Close();
  5369. }
  5370. }
  5371. }
  5372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5374. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5375. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5376. public virtual int Update(string ФИО, string username, string password, global::System.Nullable<int> Роль, global::System.Nullable<int> Статус, int Original_id, string Original_ФИО, string Original_username, string Original_password, global::System.Nullable<int> Original_Роль, global::System.Nullable<int> Original_Статус) {
  5377. return this.Update(Original_id, ФИО, username, password, Роль, Статус, Original_id, Original_ФИО, Original_username, Original_password, Original_Роль, Original_Статус);
  5378. }
  5379. }
  5380. /// <summary>
  5381. ///Represents the connection and commands used to retrieve and save data.
  5382. ///</summary>
  5383. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5384. [global::System.ComponentModel.ToolboxItem(true)]
  5385. [global::System.ComponentModel.DataObjectAttribute(true)]
  5386. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5387. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5388. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5389. public partial class ZacaziTableAdapter : global::System.ComponentModel.Component {
  5390. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5391. private global::System.Data.SqlClient.SqlConnection _connection;
  5392. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5393. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5394. private bool _clearBeforeFill;
  5395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5397. public ZacaziTableAdapter() {
  5398. this.ClearBeforeFill = true;
  5399. }
  5400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5402. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5403. get {
  5404. if ((this._adapter == null)) {
  5405. this.InitAdapter();
  5406. }
  5407. return this._adapter;
  5408. }
  5409. }
  5410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5412. internal global::System.Data.SqlClient.SqlConnection Connection {
  5413. get {
  5414. if ((this._connection == null)) {
  5415. this.InitConnection();
  5416. }
  5417. return this._connection;
  5418. }
  5419. set {
  5420. this._connection = value;
  5421. if ((this.Adapter.InsertCommand != null)) {
  5422. this.Adapter.InsertCommand.Connection = value;
  5423. }
  5424. if ((this.Adapter.DeleteCommand != null)) {
  5425. this.Adapter.DeleteCommand.Connection = value;
  5426. }
  5427. if ((this.Adapter.UpdateCommand != null)) {
  5428. this.Adapter.UpdateCommand.Connection = value;
  5429. }
  5430. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5431. if ((this.CommandCollection[i] != null)) {
  5432. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5433. }
  5434. }
  5435. }
  5436. }
  5437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5439. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5440. get {
  5441. return this._transaction;
  5442. }
  5443. set {
  5444. this._transaction = value;
  5445. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5446. this.CommandCollection[i].Transaction = this._transaction;
  5447. }
  5448. if (((this.Adapter != null)
  5449. && (this.Adapter.DeleteCommand != null))) {
  5450. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5451. }
  5452. if (((this.Adapter != null)
  5453. && (this.Adapter.InsertCommand != null))) {
  5454. this.Adapter.InsertCommand.Transaction = this._transaction;
  5455. }
  5456. if (((this.Adapter != null)
  5457. && (this.Adapter.UpdateCommand != null))) {
  5458. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5459. }
  5460. }
  5461. }
  5462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5464. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5465. get {
  5466. if ((this._commandCollection == null)) {
  5467. this.InitCommandCollection();
  5468. }
  5469. return this._commandCollection;
  5470. }
  5471. }
  5472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5474. public bool ClearBeforeFill {
  5475. get {
  5476. return this._clearBeforeFill;
  5477. }
  5478. set {
  5479. this._clearBeforeFill = value;
  5480. }
  5481. }
  5482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5484. private void InitAdapter() {
  5485. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5486. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5487. tableMapping.SourceTable = "Table";
  5488. tableMapping.DataSetTable = "Zacazi";
  5489. tableMapping.ColumnMappings.Add("id", "id");
  5490. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  5491. tableMapping.ColumnMappings.Add("Единица измерения", "Единица измерения");
  5492. tableMapping.ColumnMappings.Add("Тип материала", "Тип материала");
  5493. tableMapping.ColumnMappings.Add("Цена", "Цена");
  5494. tableMapping.ColumnMappings.Add("Статус", "Статус");
  5495. tableMapping.ColumnMappings.Add("Дата", "Дата");
  5496. this._adapter.TableMappings.Add(tableMapping);
  5497. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5498. this._adapter.DeleteCommand.Connection = this.Connection;
  5499. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Zacazi] 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_Дата)))";
  5500. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5501. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5502. 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, "", "", ""));
  5503. 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, "", "", ""));
  5504. 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, "", "", ""));
  5505. 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, "", "", ""));
  5506. 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, "", "", ""));
  5507. 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, "", "", ""));
  5508. 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, "", "", ""));
  5509. 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, "", "", ""));
  5510. 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, "", "", ""));
  5511. 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, "", "", ""));
  5512. 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, "", "", ""));
  5513. 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, "", "", ""));
  5514. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5515. this._adapter.InsertCommand.Connection = this.Connection;
  5516. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Zacazi] ([id], [Наименование], [Единица измерения], [Тип материала], [Цена], [Статус], [Дата]) VALUES (@id, @Наименование, @Единица_измерения, @Тип_материала, @Цена, @Статус, @Дата);
  5517. SELECT id, Наименование, [Единица измерения], [Тип материала], Цена, Статус, Дата FROM Zacazi WHERE (id = @id)";
  5518. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5519. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5520. 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, "", "", ""));
  5521. 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, "", "", ""));
  5522. 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, "", "", ""));
  5523. 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, "", "", ""));
  5524. 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, "", "", ""));
  5525. 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, "", "", ""));
  5526. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5527. this._adapter.UpdateCommand.Connection = this.Connection;
  5528. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Zacazi] 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_Дата)));
  5529. SELECT id, Наименование, [Единица измерения], [Тип материала], Цена, Статус, Дата FROM Zacazi WHERE (id = @id)";
  5530. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5531. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5532. 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, "", "", ""));
  5533. 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, "", "", ""));
  5534. 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, "", "", ""));
  5535. 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, "", "", ""));
  5536. 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, "", "", ""));
  5537. 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, "", "", ""));
  5538. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5539. 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, "", "", ""));
  5540. 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, "", "", ""));
  5541. 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, "", "", ""));
  5542. 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, "", "", ""));
  5543. 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, "", "", ""));
  5544. 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, "", "", ""));
  5545. 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, "", "", ""));
  5546. 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, "", "", ""));
  5547. 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, "", "", ""));
  5548. 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, "", "", ""));
  5549. 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, "", "", ""));
  5550. 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, "", "", ""));
  5551. }
  5552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5554. private void InitConnection() {
  5555. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5556. this._connection.ConnectionString = global::muskafidi_de.Properties.Settings.Default._06_muskafidi_deConnectionString;
  5557. }
  5558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5560. private void InitCommandCollection() {
  5561. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5562. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5563. this._commandCollection[0].Connection = this.Connection;
  5564. this._commandCollection[0].CommandText = "SELECT id, Наименование, [Единица измерения], [Тип материала], Цена, Статус, Дата" +
  5565. " FROM dbo.Zacazi";
  5566. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5567. }
  5568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5570. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5571. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5572. public virtual int Fill(_06_muskafidi_deDataSet.ZacaziDataTable dataTable) {
  5573. this.Adapter.SelectCommand = this.CommandCollection[0];
  5574. if ((this.ClearBeforeFill == true)) {
  5575. dataTable.Clear();
  5576. }
  5577. int returnValue = this.Adapter.Fill(dataTable);
  5578. return returnValue;
  5579. }
  5580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5582. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5583. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5584. public virtual _06_muskafidi_deDataSet.ZacaziDataTable GetData() {
  5585. this.Adapter.SelectCommand = this.CommandCollection[0];
  5586. _06_muskafidi_deDataSet.ZacaziDataTable dataTable = new _06_muskafidi_deDataSet.ZacaziDataTable();
  5587. this.Adapter.Fill(dataTable);
  5588. return dataTable;
  5589. }
  5590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5592. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5593. public virtual int Update(_06_muskafidi_deDataSet.ZacaziDataTable dataTable) {
  5594. return this.Adapter.Update(dataTable);
  5595. }
  5596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5598. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5599. public virtual int Update(_06_muskafidi_deDataSet dataSet) {
  5600. return this.Adapter.Update(dataSet, "Zacazi");
  5601. }
  5602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5604. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5605. public virtual int Update(global::System.Data.DataRow dataRow) {
  5606. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5607. dataRow});
  5608. }
  5609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5611. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5612. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5613. return this.Adapter.Update(dataRows);
  5614. }
  5615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5617. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5618. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5619. public virtual int Delete(int Original_id, string Original_Наименование, global::System.Nullable<int> Original_Единица_измерения, string Original_Тип_материала, string Original_Цена, global::System.Nullable<int> Original_Статус, global::System.Nullable<global::System.DateTime> Original_Дата) {
  5620. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  5621. if ((Original_Наименование == null)) {
  5622. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5623. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5624. }
  5625. else {
  5626. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5627. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Наименование));
  5628. }
  5629. if ((Original_Единица_измерения.HasValue == true)) {
  5630. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5631. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Единица_измерения.Value));
  5632. }
  5633. else {
  5634. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5635. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5636. }
  5637. if ((Original_Тип_материала == null)) {
  5638. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5639. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5640. }
  5641. else {
  5642. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5643. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Тип_материала));
  5644. }
  5645. if ((Original_Цена == null)) {
  5646. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  5647. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  5648. }
  5649. else {
  5650. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  5651. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Цена));
  5652. }
  5653. if ((Original_Статус.HasValue == true)) {
  5654. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  5655. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_Статус.Value));
  5656. }
  5657. else {
  5658. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  5659. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  5660. }
  5661. if ((Original_Дата.HasValue == true)) {
  5662. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  5663. this.Adapter.DeleteCommand.Parameters[12].Value = ((System.DateTime)(Original_Дата.Value));
  5664. }
  5665. else {
  5666. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  5667. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  5668. }
  5669. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5670. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5671. != global::System.Data.ConnectionState.Open)) {
  5672. this.Adapter.DeleteCommand.Connection.Open();
  5673. }
  5674. try {
  5675. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5676. return returnValue;
  5677. }
  5678. finally {
  5679. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5680. this.Adapter.DeleteCommand.Connection.Close();
  5681. }
  5682. }
  5683. }
  5684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5686. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5687. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5688. public virtual int Insert(int id, string Наименование, global::System.Nullable<int> Единица_измерения, string Тип_материала, string Цена, global::System.Nullable<int> Статус, global::System.Nullable<global::System.DateTime> Дата) {
  5689. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id));
  5690. if ((Наименование == null)) {
  5691. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5692. }
  5693. else {
  5694. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  5695. }
  5696. if ((Единица_измерения.HasValue == true)) {
  5697. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Единица_измерения.Value));
  5698. }
  5699. else {
  5700. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5701. }
  5702. if ((Тип_материала == null)) {
  5703. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5704. }
  5705. else {
  5706. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Тип_материала));
  5707. }
  5708. if ((Цена == null)) {
  5709. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5710. }
  5711. else {
  5712. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Цена));
  5713. }
  5714. if ((Статус.HasValue == true)) {
  5715. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(Статус.Value));
  5716. }
  5717. else {
  5718. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  5719. }
  5720. if ((Дата.HasValue == true)) {
  5721. this.Adapter.InsertCommand.Parameters[6].Value = ((System.DateTime)(Дата.Value));
  5722. }
  5723. else {
  5724. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  5725. }
  5726. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5727. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5728. != global::System.Data.ConnectionState.Open)) {
  5729. this.Adapter.InsertCommand.Connection.Open();
  5730. }
  5731. try {
  5732. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5733. return returnValue;
  5734. }
  5735. finally {
  5736. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5737. this.Adapter.InsertCommand.Connection.Close();
  5738. }
  5739. }
  5740. }
  5741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5743. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5744. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5745. public virtual int Update(int id, string Наименование, global::System.Nullable<int> Единица_измерения, string Тип_материала, string Цена, global::System.Nullable<int> Статус, global::System.Nullable<global::System.DateTime> Дата, int Original_id, string Original_Наименование, global::System.Nullable<int> Original_Единица_измерения, string Original_Тип_материала, string Original_Цена, global::System.Nullable<int> Original_Статус, global::System.Nullable<global::System.DateTime> Original_Дата) {
  5746. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(id));
  5747. if ((Наименование == null)) {
  5748. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5749. }
  5750. else {
  5751. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование));
  5752. }
  5753. if ((Единица_измерения.HasValue == true)) {
  5754. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Единица_измерения.Value));
  5755. }
  5756. else {
  5757. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5758. }
  5759. if ((Тип_материала == null)) {
  5760. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5761. }
  5762. else {
  5763. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Тип_материала));
  5764. }
  5765. if ((Цена == null)) {
  5766. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5767. }
  5768. else {
  5769. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Цена));
  5770. }
  5771. if ((Статус.HasValue == true)) {
  5772. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Статус.Value));
  5773. }
  5774. else {
  5775. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5776. }
  5777. if ((Дата.HasValue == true)) {
  5778. this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Дата.Value));
  5779. }
  5780. else {
  5781. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  5782. }
  5783. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_id));
  5784. if ((Original_Наименование == null)) {
  5785. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  5786. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  5787. }
  5788. else {
  5789. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  5790. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Наименование));
  5791. }
  5792. if ((Original_Единица_измерения.HasValue == true)) {
  5793. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  5794. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_Единица_измерения.Value));
  5795. }
  5796. else {
  5797. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  5798. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  5799. }
  5800. if ((Original_Тип_материала == null)) {
  5801. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  5802. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  5803. }
  5804. else {
  5805. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  5806. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Тип_материала));
  5807. }
  5808. if ((Original_Цена == null)) {
  5809. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  5810. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  5811. }
  5812. else {
  5813. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  5814. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Цена));
  5815. }
  5816. if ((Original_Статус.HasValue == true)) {
  5817. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  5818. this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_Статус.Value));
  5819. }
  5820. else {
  5821. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  5822. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  5823. }
  5824. if ((Original_Дата.HasValue == true)) {
  5825. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  5826. this.Adapter.UpdateCommand.Parameters[19].Value = ((System.DateTime)(Original_Дата.Value));
  5827. }
  5828. else {
  5829. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  5830. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  5831. }
  5832. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5833. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5834. != global::System.Data.ConnectionState.Open)) {
  5835. this.Adapter.UpdateCommand.Connection.Open();
  5836. }
  5837. try {
  5838. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5839. return returnValue;
  5840. }
  5841. finally {
  5842. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5843. this.Adapter.UpdateCommand.Connection.Close();
  5844. }
  5845. }
  5846. }
  5847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5849. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5850. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5851. public virtual int Update(string Наименование, global::System.Nullable<int> Единица_измерения, string Тип_материала, string Цена, global::System.Nullable<int> Статус, global::System.Nullable<global::System.DateTime> Дата, int Original_id, string Original_Наименование, global::System.Nullable<int> Original_Единица_измерения, string Original_Тип_материала, string Original_Цена, global::System.Nullable<int> Original_Статус, global::System.Nullable<global::System.DateTime> Original_Дата) {
  5852. return this.Update(Original_id, Наименование, Единица_измерения, Тип_материала, Цена, Статус, Дата, Original_id, Original_Наименование, Original_Единица_измерения, Original_Тип_материала, Original_Цена, Original_Статус, Original_Дата);
  5853. }
  5854. }
  5855. /// <summary>
  5856. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  5857. ///</summary>
  5858. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5859. [global::System.ComponentModel.ToolboxItem(true)]
  5860. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  5861. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5862. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  5863. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  5864. private UpdateOrderOption _updateOrder;
  5865. private ComplectTableAdapter _complectTableAdapter;
  5866. private EdiniciIzmereniyaTableAdapter _ediniciIzmereniyaTableAdapter;
  5867. private RolesTableAdapter _rolesTableAdapter;
  5868. private StatusTableAdapter _statusTableAdapter;
  5869. private StatusZakazaTableAdapter _statusZakazaTableAdapter;
  5870. private usersTableAdapter _usersTableAdapter;
  5871. private ZacaziTableAdapter _zacaziTableAdapter;
  5872. private bool _backupDataSetBeforeUpdate;
  5873. private global::System.Data.IDbConnection _connection;
  5874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5876. public UpdateOrderOption UpdateOrder {
  5877. get {
  5878. return this._updateOrder;
  5879. }
  5880. set {
  5881. this._updateOrder = value;
  5882. }
  5883. }
  5884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5886. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5887. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5888. "a", "System.Drawing.Design.UITypeEditor")]
  5889. public ComplectTableAdapter ComplectTableAdapter {
  5890. get {
  5891. return this._complectTableAdapter;
  5892. }
  5893. set {
  5894. this._complectTableAdapter = value;
  5895. }
  5896. }
  5897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5899. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5900. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5901. "a", "System.Drawing.Design.UITypeEditor")]
  5902. public EdiniciIzmereniyaTableAdapter EdiniciIzmereniyaTableAdapter {
  5903. get {
  5904. return this._ediniciIzmereniyaTableAdapter;
  5905. }
  5906. set {
  5907. this._ediniciIzmereniyaTableAdapter = value;
  5908. }
  5909. }
  5910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5912. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5913. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5914. "a", "System.Drawing.Design.UITypeEditor")]
  5915. public RolesTableAdapter RolesTableAdapter {
  5916. get {
  5917. return this._rolesTableAdapter;
  5918. }
  5919. set {
  5920. this._rolesTableAdapter = value;
  5921. }
  5922. }
  5923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5925. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5926. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5927. "a", "System.Drawing.Design.UITypeEditor")]
  5928. public StatusTableAdapter StatusTableAdapter {
  5929. get {
  5930. return this._statusTableAdapter;
  5931. }
  5932. set {
  5933. this._statusTableAdapter = value;
  5934. }
  5935. }
  5936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5938. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5939. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5940. "a", "System.Drawing.Design.UITypeEditor")]
  5941. public StatusZakazaTableAdapter StatusZakazaTableAdapter {
  5942. get {
  5943. return this._statusZakazaTableAdapter;
  5944. }
  5945. set {
  5946. this._statusZakazaTableAdapter = value;
  5947. }
  5948. }
  5949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5951. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5952. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5953. "a", "System.Drawing.Design.UITypeEditor")]
  5954. public usersTableAdapter usersTableAdapter {
  5955. get {
  5956. return this._usersTableAdapter;
  5957. }
  5958. set {
  5959. this._usersTableAdapter = value;
  5960. }
  5961. }
  5962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5964. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5965. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5966. "a", "System.Drawing.Design.UITypeEditor")]
  5967. public ZacaziTableAdapter ZacaziTableAdapter {
  5968. get {
  5969. return this._zacaziTableAdapter;
  5970. }
  5971. set {
  5972. this._zacaziTableAdapter = value;
  5973. }
  5974. }
  5975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5977. public bool BackupDataSetBeforeUpdate {
  5978. get {
  5979. return this._backupDataSetBeforeUpdate;
  5980. }
  5981. set {
  5982. this._backupDataSetBeforeUpdate = value;
  5983. }
  5984. }
  5985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5987. [global::System.ComponentModel.Browsable(false)]
  5988. public global::System.Data.IDbConnection Connection {
  5989. get {
  5990. if ((this._connection != null)) {
  5991. return this._connection;
  5992. }
  5993. if (((this._complectTableAdapter != null)
  5994. && (this._complectTableAdapter.Connection != null))) {
  5995. return this._complectTableAdapter.Connection;
  5996. }
  5997. if (((this._ediniciIzmereniyaTableAdapter != null)
  5998. && (this._ediniciIzmereniyaTableAdapter.Connection != null))) {
  5999. return this._ediniciIzmereniyaTableAdapter.Connection;
  6000. }
  6001. if (((this._rolesTableAdapter != null)
  6002. && (this._rolesTableAdapter.Connection != null))) {
  6003. return this._rolesTableAdapter.Connection;
  6004. }
  6005. if (((this._statusTableAdapter != null)
  6006. && (this._statusTableAdapter.Connection != null))) {
  6007. return this._statusTableAdapter.Connection;
  6008. }
  6009. if (((this._statusZakazaTableAdapter != null)
  6010. && (this._statusZakazaTableAdapter.Connection != null))) {
  6011. return this._statusZakazaTableAdapter.Connection;
  6012. }
  6013. if (((this._usersTableAdapter != null)
  6014. && (this._usersTableAdapter.Connection != null))) {
  6015. return this._usersTableAdapter.Connection;
  6016. }
  6017. if (((this._zacaziTableAdapter != null)
  6018. && (this._zacaziTableAdapter.Connection != null))) {
  6019. return this._zacaziTableAdapter.Connection;
  6020. }
  6021. return null;
  6022. }
  6023. set {
  6024. this._connection = value;
  6025. }
  6026. }
  6027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6029. [global::System.ComponentModel.Browsable(false)]
  6030. public int TableAdapterInstanceCount {
  6031. get {
  6032. int count = 0;
  6033. if ((this._complectTableAdapter != null)) {
  6034. count = (count + 1);
  6035. }
  6036. if ((this._ediniciIzmereniyaTableAdapter != null)) {
  6037. count = (count + 1);
  6038. }
  6039. if ((this._rolesTableAdapter != null)) {
  6040. count = (count + 1);
  6041. }
  6042. if ((this._statusTableAdapter != null)) {
  6043. count = (count + 1);
  6044. }
  6045. if ((this._statusZakazaTableAdapter != null)) {
  6046. count = (count + 1);
  6047. }
  6048. if ((this._usersTableAdapter != null)) {
  6049. count = (count + 1);
  6050. }
  6051. if ((this._zacaziTableAdapter != null)) {
  6052. count = (count + 1);
  6053. }
  6054. return count;
  6055. }
  6056. }
  6057. /// <summary>
  6058. ///Update rows in top-down order.
  6059. ///</summary>
  6060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6062. private int UpdateUpdatedRows(_06_muskafidi_deDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6063. int result = 0;
  6064. if ((this._ediniciIzmereniyaTableAdapter != null)) {
  6065. global::System.Data.DataRow[] updatedRows = dataSet.EdiniciIzmereniya.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6066. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6067. if (((updatedRows != null)
  6068. && (0 < updatedRows.Length))) {
  6069. result = (result + this._ediniciIzmereniyaTableAdapter.Update(updatedRows));
  6070. allChangedRows.AddRange(updatedRows);
  6071. }
  6072. }
  6073. if ((this._rolesTableAdapter != null)) {
  6074. global::System.Data.DataRow[] updatedRows = dataSet.Roles.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6075. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6076. if (((updatedRows != null)
  6077. && (0 < updatedRows.Length))) {
  6078. result = (result + this._rolesTableAdapter.Update(updatedRows));
  6079. allChangedRows.AddRange(updatedRows);
  6080. }
  6081. }
  6082. if ((this._statusTableAdapter != null)) {
  6083. global::System.Data.DataRow[] updatedRows = dataSet.Status.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6084. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6085. if (((updatedRows != null)
  6086. && (0 < updatedRows.Length))) {
  6087. result = (result + this._statusTableAdapter.Update(updatedRows));
  6088. allChangedRows.AddRange(updatedRows);
  6089. }
  6090. }
  6091. if ((this._statusZakazaTableAdapter != null)) {
  6092. global::System.Data.DataRow[] updatedRows = dataSet.StatusZakaza.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6093. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6094. if (((updatedRows != null)
  6095. && (0 < updatedRows.Length))) {
  6096. result = (result + this._statusZakazaTableAdapter.Update(updatedRows));
  6097. allChangedRows.AddRange(updatedRows);
  6098. }
  6099. }
  6100. if ((this._complectTableAdapter != null)) {
  6101. global::System.Data.DataRow[] updatedRows = dataSet.Complect.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6102. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6103. if (((updatedRows != null)
  6104. && (0 < updatedRows.Length))) {
  6105. result = (result + this._complectTableAdapter.Update(updatedRows));
  6106. allChangedRows.AddRange(updatedRows);
  6107. }
  6108. }
  6109. if ((this._usersTableAdapter != null)) {
  6110. global::System.Data.DataRow[] updatedRows = dataSet.users.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6111. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6112. if (((updatedRows != null)
  6113. && (0 < updatedRows.Length))) {
  6114. result = (result + this._usersTableAdapter.Update(updatedRows));
  6115. allChangedRows.AddRange(updatedRows);
  6116. }
  6117. }
  6118. if ((this._zacaziTableAdapter != null)) {
  6119. global::System.Data.DataRow[] updatedRows = dataSet.Zacazi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6120. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6121. if (((updatedRows != null)
  6122. && (0 < updatedRows.Length))) {
  6123. result = (result + this._zacaziTableAdapter.Update(updatedRows));
  6124. allChangedRows.AddRange(updatedRows);
  6125. }
  6126. }
  6127. return result;
  6128. }
  6129. /// <summary>
  6130. ///Insert rows in top-down order.
  6131. ///</summary>
  6132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6134. private int UpdateInsertedRows(_06_muskafidi_deDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6135. int result = 0;
  6136. if ((this._ediniciIzmereniyaTableAdapter != null)) {
  6137. global::System.Data.DataRow[] addedRows = dataSet.EdiniciIzmereniya.Select(null, null, global::System.Data.DataViewRowState.Added);
  6138. if (((addedRows != null)
  6139. && (0 < addedRows.Length))) {
  6140. result = (result + this._ediniciIzmereniyaTableAdapter.Update(addedRows));
  6141. allAddedRows.AddRange(addedRows);
  6142. }
  6143. }
  6144. if ((this._rolesTableAdapter != null)) {
  6145. global::System.Data.DataRow[] addedRows = dataSet.Roles.Select(null, null, global::System.Data.DataViewRowState.Added);
  6146. if (((addedRows != null)
  6147. && (0 < addedRows.Length))) {
  6148. result = (result + this._rolesTableAdapter.Update(addedRows));
  6149. allAddedRows.AddRange(addedRows);
  6150. }
  6151. }
  6152. if ((this._statusTableAdapter != null)) {
  6153. global::System.Data.DataRow[] addedRows = dataSet.Status.Select(null, null, global::System.Data.DataViewRowState.Added);
  6154. if (((addedRows != null)
  6155. && (0 < addedRows.Length))) {
  6156. result = (result + this._statusTableAdapter.Update(addedRows));
  6157. allAddedRows.AddRange(addedRows);
  6158. }
  6159. }
  6160. if ((this._statusZakazaTableAdapter != null)) {
  6161. global::System.Data.DataRow[] addedRows = dataSet.StatusZakaza.Select(null, null, global::System.Data.DataViewRowState.Added);
  6162. if (((addedRows != null)
  6163. && (0 < addedRows.Length))) {
  6164. result = (result + this._statusZakazaTableAdapter.Update(addedRows));
  6165. allAddedRows.AddRange(addedRows);
  6166. }
  6167. }
  6168. if ((this._complectTableAdapter != null)) {
  6169. global::System.Data.DataRow[] addedRows = dataSet.Complect.Select(null, null, global::System.Data.DataViewRowState.Added);
  6170. if (((addedRows != null)
  6171. && (0 < addedRows.Length))) {
  6172. result = (result + this._complectTableAdapter.Update(addedRows));
  6173. allAddedRows.AddRange(addedRows);
  6174. }
  6175. }
  6176. if ((this._usersTableAdapter != null)) {
  6177. global::System.Data.DataRow[] addedRows = dataSet.users.Select(null, null, global::System.Data.DataViewRowState.Added);
  6178. if (((addedRows != null)
  6179. && (0 < addedRows.Length))) {
  6180. result = (result + this._usersTableAdapter.Update(addedRows));
  6181. allAddedRows.AddRange(addedRows);
  6182. }
  6183. }
  6184. if ((this._zacaziTableAdapter != null)) {
  6185. global::System.Data.DataRow[] addedRows = dataSet.Zacazi.Select(null, null, global::System.Data.DataViewRowState.Added);
  6186. if (((addedRows != null)
  6187. && (0 < addedRows.Length))) {
  6188. result = (result + this._zacaziTableAdapter.Update(addedRows));
  6189. allAddedRows.AddRange(addedRows);
  6190. }
  6191. }
  6192. return result;
  6193. }
  6194. /// <summary>
  6195. ///Delete rows in bottom-up order.
  6196. ///</summary>
  6197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6199. private int UpdateDeletedRows(_06_muskafidi_deDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  6200. int result = 0;
  6201. if ((this._zacaziTableAdapter != null)) {
  6202. global::System.Data.DataRow[] deletedRows = dataSet.Zacazi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6203. if (((deletedRows != null)
  6204. && (0 < deletedRows.Length))) {
  6205. result = (result + this._zacaziTableAdapter.Update(deletedRows));
  6206. allChangedRows.AddRange(deletedRows);
  6207. }
  6208. }
  6209. if ((this._usersTableAdapter != null)) {
  6210. global::System.Data.DataRow[] deletedRows = dataSet.users.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6211. if (((deletedRows != null)
  6212. && (0 < deletedRows.Length))) {
  6213. result = (result + this._usersTableAdapter.Update(deletedRows));
  6214. allChangedRows.AddRange(deletedRows);
  6215. }
  6216. }
  6217. if ((this._complectTableAdapter != null)) {
  6218. global::System.Data.DataRow[] deletedRows = dataSet.Complect.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6219. if (((deletedRows != null)
  6220. && (0 < deletedRows.Length))) {
  6221. result = (result + this._complectTableAdapter.Update(deletedRows));
  6222. allChangedRows.AddRange(deletedRows);
  6223. }
  6224. }
  6225. if ((this._statusZakazaTableAdapter != null)) {
  6226. global::System.Data.DataRow[] deletedRows = dataSet.StatusZakaza.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6227. if (((deletedRows != null)
  6228. && (0 < deletedRows.Length))) {
  6229. result = (result + this._statusZakazaTableAdapter.Update(deletedRows));
  6230. allChangedRows.AddRange(deletedRows);
  6231. }
  6232. }
  6233. if ((this._statusTableAdapter != null)) {
  6234. global::System.Data.DataRow[] deletedRows = dataSet.Status.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6235. if (((deletedRows != null)
  6236. && (0 < deletedRows.Length))) {
  6237. result = (result + this._statusTableAdapter.Update(deletedRows));
  6238. allChangedRows.AddRange(deletedRows);
  6239. }
  6240. }
  6241. if ((this._rolesTableAdapter != null)) {
  6242. global::System.Data.DataRow[] deletedRows = dataSet.Roles.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6243. if (((deletedRows != null)
  6244. && (0 < deletedRows.Length))) {
  6245. result = (result + this._rolesTableAdapter.Update(deletedRows));
  6246. allChangedRows.AddRange(deletedRows);
  6247. }
  6248. }
  6249. if ((this._ediniciIzmereniyaTableAdapter != null)) {
  6250. global::System.Data.DataRow[] deletedRows = dataSet.EdiniciIzmereniya.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6251. if (((deletedRows != null)
  6252. && (0 < deletedRows.Length))) {
  6253. result = (result + this._ediniciIzmereniyaTableAdapter.Update(deletedRows));
  6254. allChangedRows.AddRange(deletedRows);
  6255. }
  6256. }
  6257. return result;
  6258. }
  6259. /// <summary>
  6260. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  6261. ///</summary>
  6262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6264. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6265. if (((updatedRows == null)
  6266. || (updatedRows.Length < 1))) {
  6267. return updatedRows;
  6268. }
  6269. if (((allAddedRows == null)
  6270. || (allAddedRows.Count < 1))) {
  6271. return updatedRows;
  6272. }
  6273. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6274. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  6275. global::System.Data.DataRow row = updatedRows[i];
  6276. if ((allAddedRows.Contains(row) == false)) {
  6277. realUpdatedRows.Add(row);
  6278. }
  6279. }
  6280. return realUpdatedRows.ToArray();
  6281. }
  6282. /// <summary>
  6283. ///Update all changes to the dataset.
  6284. ///</summary>
  6285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6287. public virtual int UpdateAll(_06_muskafidi_deDataSet dataSet) {
  6288. if ((dataSet == null)) {
  6289. throw new global::System.ArgumentNullException("dataSet");
  6290. }
  6291. if ((dataSet.HasChanges() == false)) {
  6292. return 0;
  6293. }
  6294. if (((this._complectTableAdapter != null)
  6295. && (this.MatchTableAdapterConnection(this._complectTableAdapter.Connection) == false))) {
  6296. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6297. "r, должны использовать одинаковую строку подключения.");
  6298. }
  6299. if (((this._ediniciIzmereniyaTableAdapter != null)
  6300. && (this.MatchTableAdapterConnection(this._ediniciIzmereniyaTableAdapter.Connection) == false))) {
  6301. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6302. "r, должны использовать одинаковую строку подключения.");
  6303. }
  6304. if (((this._rolesTableAdapter != null)
  6305. && (this.MatchTableAdapterConnection(this._rolesTableAdapter.Connection) == false))) {
  6306. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6307. "r, должны использовать одинаковую строку подключения.");
  6308. }
  6309. if (((this._statusTableAdapter != null)
  6310. && (this.MatchTableAdapterConnection(this._statusTableAdapter.Connection) == false))) {
  6311. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6312. "r, должны использовать одинаковую строку подключения.");
  6313. }
  6314. if (((this._statusZakazaTableAdapter != null)
  6315. && (this.MatchTableAdapterConnection(this._statusZakazaTableAdapter.Connection) == false))) {
  6316. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6317. "r, должны использовать одинаковую строку подключения.");
  6318. }
  6319. if (((this._usersTableAdapter != null)
  6320. && (this.MatchTableAdapterConnection(this._usersTableAdapter.Connection) == false))) {
  6321. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6322. "r, должны использовать одинаковую строку подключения.");
  6323. }
  6324. if (((this._zacaziTableAdapter != null)
  6325. && (this.MatchTableAdapterConnection(this._zacaziTableAdapter.Connection) == false))) {
  6326. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6327. "r, должны использовать одинаковую строку подключения.");
  6328. }
  6329. global::System.Data.IDbConnection workConnection = this.Connection;
  6330. if ((workConnection == null)) {
  6331. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  6332. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  6333. }
  6334. bool workConnOpened = false;
  6335. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  6336. == global::System.Data.ConnectionState.Broken)) {
  6337. workConnection.Close();
  6338. }
  6339. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  6340. workConnection.Open();
  6341. workConnOpened = true;
  6342. }
  6343. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  6344. if ((workTransaction == null)) {
  6345. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  6346. "и или текущее состояние не позволяет начать транзакцию.");
  6347. }
  6348. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6349. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6350. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  6351. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  6352. int result = 0;
  6353. global::System.Data.DataSet backupDataSet = null;
  6354. if (this.BackupDataSetBeforeUpdate) {
  6355. backupDataSet = new global::System.Data.DataSet();
  6356. backupDataSet.Merge(dataSet);
  6357. }
  6358. try {
  6359. // ---- Prepare for update -----------
  6360. //
  6361. if ((this._complectTableAdapter != null)) {
  6362. revertConnections.Add(this._complectTableAdapter, this._complectTableAdapter.Connection);
  6363. this._complectTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6364. this._complectTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6365. if (this._complectTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6366. this._complectTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6367. adaptersWithAcceptChangesDuringUpdate.Add(this._complectTableAdapter.Adapter);
  6368. }
  6369. }
  6370. if ((this._ediniciIzmereniyaTableAdapter != null)) {
  6371. revertConnections.Add(this._ediniciIzmereniyaTableAdapter, this._ediniciIzmereniyaTableAdapter.Connection);
  6372. this._ediniciIzmereniyaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6373. this._ediniciIzmereniyaTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6374. if (this._ediniciIzmereniyaTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6375. this._ediniciIzmereniyaTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6376. adaptersWithAcceptChangesDuringUpdate.Add(this._ediniciIzmereniyaTableAdapter.Adapter);
  6377. }
  6378. }
  6379. if ((this._rolesTableAdapter != null)) {
  6380. revertConnections.Add(this._rolesTableAdapter, this._rolesTableAdapter.Connection);
  6381. this._rolesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6382. this._rolesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6383. if (this._rolesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6384. this._rolesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6385. adaptersWithAcceptChangesDuringUpdate.Add(this._rolesTableAdapter.Adapter);
  6386. }
  6387. }
  6388. if ((this._statusTableAdapter != null)) {
  6389. revertConnections.Add(this._statusTableAdapter, this._statusTableAdapter.Connection);
  6390. this._statusTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6391. this._statusTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6392. if (this._statusTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6393. this._statusTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6394. adaptersWithAcceptChangesDuringUpdate.Add(this._statusTableAdapter.Adapter);
  6395. }
  6396. }
  6397. if ((this._statusZakazaTableAdapter != null)) {
  6398. revertConnections.Add(this._statusZakazaTableAdapter, this._statusZakazaTableAdapter.Connection);
  6399. this._statusZakazaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6400. this._statusZakazaTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6401. if (this._statusZakazaTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6402. this._statusZakazaTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6403. adaptersWithAcceptChangesDuringUpdate.Add(this._statusZakazaTableAdapter.Adapter);
  6404. }
  6405. }
  6406. if ((this._usersTableAdapter != null)) {
  6407. revertConnections.Add(this._usersTableAdapter, this._usersTableAdapter.Connection);
  6408. this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6409. this._usersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6410. if (this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6411. this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6412. adaptersWithAcceptChangesDuringUpdate.Add(this._usersTableAdapter.Adapter);
  6413. }
  6414. }
  6415. if ((this._zacaziTableAdapter != null)) {
  6416. revertConnections.Add(this._zacaziTableAdapter, this._zacaziTableAdapter.Connection);
  6417. this._zacaziTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6418. this._zacaziTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6419. if (this._zacaziTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6420. this._zacaziTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6421. adaptersWithAcceptChangesDuringUpdate.Add(this._zacaziTableAdapter.Adapter);
  6422. }
  6423. }
  6424. //
  6425. //---- Perform updates -----------
  6426. //
  6427. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  6428. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  6429. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  6430. }
  6431. else {
  6432. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  6433. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  6434. }
  6435. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  6436. //
  6437. //---- Commit updates -----------
  6438. //
  6439. workTransaction.Commit();
  6440. if ((0 < allAddedRows.Count)) {
  6441. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  6442. allAddedRows.CopyTo(rows);
  6443. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6444. global::System.Data.DataRow row = rows[i];
  6445. row.AcceptChanges();
  6446. }
  6447. }
  6448. if ((0 < allChangedRows.Count)) {
  6449. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  6450. allChangedRows.CopyTo(rows);
  6451. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6452. global::System.Data.DataRow row = rows[i];
  6453. row.AcceptChanges();
  6454. }
  6455. }
  6456. }
  6457. catch (global::System.Exception ex) {
  6458. workTransaction.Rollback();
  6459. // ---- Restore the dataset -----------
  6460. if (this.BackupDataSetBeforeUpdate) {
  6461. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  6462. dataSet.Clear();
  6463. dataSet.Merge(backupDataSet);
  6464. }
  6465. else {
  6466. if ((0 < allAddedRows.Count)) {
  6467. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  6468. allAddedRows.CopyTo(rows);
  6469. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6470. global::System.Data.DataRow row = rows[i];
  6471. row.AcceptChanges();
  6472. row.SetAdded();
  6473. }
  6474. }
  6475. }
  6476. throw ex;
  6477. }
  6478. finally {
  6479. if (workConnOpened) {
  6480. workConnection.Close();
  6481. }
  6482. if ((this._complectTableAdapter != null)) {
  6483. this._complectTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._complectTableAdapter]));
  6484. this._complectTableAdapter.Transaction = null;
  6485. }
  6486. if ((this._ediniciIzmereniyaTableAdapter != null)) {
  6487. this._ediniciIzmereniyaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._ediniciIzmereniyaTableAdapter]));
  6488. this._ediniciIzmereniyaTableAdapter.Transaction = null;
  6489. }
  6490. if ((this._rolesTableAdapter != null)) {
  6491. this._rolesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._rolesTableAdapter]));
  6492. this._rolesTableAdapter.Transaction = null;
  6493. }
  6494. if ((this._statusTableAdapter != null)) {
  6495. this._statusTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._statusTableAdapter]));
  6496. this._statusTableAdapter.Transaction = null;
  6497. }
  6498. if ((this._statusZakazaTableAdapter != null)) {
  6499. this._statusZakazaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._statusZakazaTableAdapter]));
  6500. this._statusZakazaTableAdapter.Transaction = null;
  6501. }
  6502. if ((this._usersTableAdapter != null)) {
  6503. this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._usersTableAdapter]));
  6504. this._usersTableAdapter.Transaction = null;
  6505. }
  6506. if ((this._zacaziTableAdapter != null)) {
  6507. this._zacaziTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._zacaziTableAdapter]));
  6508. this._zacaziTableAdapter.Transaction = null;
  6509. }
  6510. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  6511. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  6512. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  6513. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  6514. global::System.Data.Common.DataAdapter adapter = adapters[i];
  6515. adapter.AcceptChangesDuringUpdate = true;
  6516. }
  6517. }
  6518. }
  6519. return result;
  6520. }
  6521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6523. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  6524. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  6525. }
  6526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6528. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  6529. if ((this._connection != null)) {
  6530. return true;
  6531. }
  6532. if (((this.Connection == null)
  6533. || (inputConnection == null))) {
  6534. return true;
  6535. }
  6536. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  6537. return true;
  6538. }
  6539. return false;
  6540. }
  6541. /// <summary>
  6542. ///Update Order Option
  6543. ///</summary>
  6544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6545. public enum UpdateOrderOption {
  6546. InsertUpdateDelete = 0,
  6547. UpdateInsertDelete = 1,
  6548. }
  6549. /// <summary>
  6550. ///Used to sort self-referenced table's rows
  6551. ///</summary>
  6552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6553. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  6554. private global::System.Data.DataRelation _relation;
  6555. private int _childFirst;
  6556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6558. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  6559. this._relation = relation;
  6560. if (childFirst) {
  6561. this._childFirst = -1;
  6562. }
  6563. else {
  6564. this._childFirst = 1;
  6565. }
  6566. }
  6567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6569. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  6570. global::System.Diagnostics.Debug.Assert((row != null));
  6571. global::System.Data.DataRow root = row;
  6572. distance = 0;
  6573. 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>();
  6574. traversedRows[row] = row;
  6575. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  6576. for (
  6577. ; ((parent != null)
  6578. && (traversedRows.ContainsKey(parent) == false));
  6579. ) {
  6580. distance = (distance + 1);
  6581. root = parent;
  6582. traversedRows[parent] = parent;
  6583. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  6584. }
  6585. if ((distance == 0)) {
  6586. traversedRows.Clear();
  6587. traversedRows[row] = row;
  6588. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  6589. for (
  6590. ; ((parent != null)
  6591. && (traversedRows.ContainsKey(parent) == false));
  6592. ) {
  6593. distance = (distance + 1);
  6594. root = parent;
  6595. traversedRows[parent] = parent;
  6596. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  6597. }
  6598. }
  6599. return root;
  6600. }
  6601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6603. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  6604. if (object.ReferenceEquals(row1, row2)) {
  6605. return 0;
  6606. }
  6607. if ((row1 == null)) {
  6608. return -1;
  6609. }
  6610. if ((row2 == null)) {
  6611. return 1;
  6612. }
  6613. int distance1 = 0;
  6614. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  6615. int distance2 = 0;
  6616. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  6617. if (object.ReferenceEquals(root1, root2)) {
  6618. return (this._childFirst * distance1.CompareTo(distance2));
  6619. }
  6620. else {
  6621. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  6622. && (root2.Table != null)));
  6623. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  6624. return -1;
  6625. }
  6626. else {
  6627. return 1;
  6628. }
  6629. }
  6630. }
  6631. }
  6632. }
  6633. }
  6634. #pragma warning restore 1591