pracFabricaDataSet.Designer.cs 481 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. // Runtime Version:4.0.30319.42000
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace СУБД_Швейная_фабрика {
  12. /// <summary>
  13. ///Represents a strongly typed in-memory cache of data.
  14. ///</summary>
  15. [global::System.Serializable()]
  16. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  17. [global::System.ComponentModel.ToolboxItem(true)]
  18. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
  19. [global::System.Xml.Serialization.XmlRootAttribute("pracFabricaDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class pracFabricaDataSet : global::System.Data.DataSet {
  22. private ColorDataTable tableColor;
  23. private FurnituraDataTable tableFurnitura;
  24. private IzdelieDataTable tableIzdelie;
  25. private OrdersDataTable tableOrders;
  26. private RolesDataTable tableRoles;
  27. private TkanDataTable tableTkan;
  28. private UsersDataTable tableUsers;
  29. private global::System.Data.DataRelation relationFK_Orders_Furnitura;
  30. private global::System.Data.DataRelation relationFK_Orders_Izdelie;
  31. private global::System.Data.DataRelation relationFK_Orders_Tkan;
  32. private global::System.Data.DataRelation relationFK_Orders_Users1;
  33. private global::System.Data.DataRelation relationFK_Orders_Users2;
  34. private global::System.Data.DataRelation relationFK_Tkan_Color;
  35. private global::System.Data.DataRelation relationFK_Users_Roles;
  36. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  37. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  38. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  39. public pracFabricaDataSet() {
  40. this.BeginInit();
  41. this.InitClass();
  42. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  43. base.Tables.CollectionChanged += schemaChangedHandler;
  44. base.Relations.CollectionChanged += schemaChangedHandler;
  45. this.EndInit();
  46. }
  47. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  48. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  49. protected pracFabricaDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  50. base(info, context, false) {
  51. if ((this.IsBinarySerialized(info, context) == true)) {
  52. this.InitVars(false);
  53. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  54. this.Tables.CollectionChanged += schemaChangedHandler1;
  55. this.Relations.CollectionChanged += schemaChangedHandler1;
  56. return;
  57. }
  58. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  59. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  60. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  61. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  62. if ((ds.Tables["Color"] != null)) {
  63. base.Tables.Add(new ColorDataTable(ds.Tables["Color"]));
  64. }
  65. if ((ds.Tables["Furnitura"] != null)) {
  66. base.Tables.Add(new FurnituraDataTable(ds.Tables["Furnitura"]));
  67. }
  68. if ((ds.Tables["Izdelie"] != null)) {
  69. base.Tables.Add(new IzdelieDataTable(ds.Tables["Izdelie"]));
  70. }
  71. if ((ds.Tables["Orders"] != null)) {
  72. base.Tables.Add(new OrdersDataTable(ds.Tables["Orders"]));
  73. }
  74. if ((ds.Tables["Roles"] != null)) {
  75. base.Tables.Add(new RolesDataTable(ds.Tables["Roles"]));
  76. }
  77. if ((ds.Tables["Tkan"] != null)) {
  78. base.Tables.Add(new TkanDataTable(ds.Tables["Tkan"]));
  79. }
  80. if ((ds.Tables["Users"] != null)) {
  81. base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
  82. }
  83. this.DataSetName = ds.DataSetName;
  84. this.Prefix = ds.Prefix;
  85. this.Namespace = ds.Namespace;
  86. this.Locale = ds.Locale;
  87. this.CaseSensitive = ds.CaseSensitive;
  88. this.EnforceConstraints = ds.EnforceConstraints;
  89. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  90. this.InitVars();
  91. }
  92. else {
  93. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  94. }
  95. this.GetSerializationData(info, context);
  96. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  97. base.Tables.CollectionChanged += schemaChangedHandler;
  98. this.Relations.CollectionChanged += schemaChangedHandler;
  99. }
  100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  102. [global::System.ComponentModel.Browsable(false)]
  103. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  104. public ColorDataTable Color {
  105. get {
  106. return this.tableColor;
  107. }
  108. }
  109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  111. [global::System.ComponentModel.Browsable(false)]
  112. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  113. public FurnituraDataTable Furnitura {
  114. get {
  115. return this.tableFurnitura;
  116. }
  117. }
  118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  120. [global::System.ComponentModel.Browsable(false)]
  121. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  122. public IzdelieDataTable Izdelie {
  123. get {
  124. return this.tableIzdelie;
  125. }
  126. }
  127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  129. [global::System.ComponentModel.Browsable(false)]
  130. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  131. public OrdersDataTable Orders {
  132. get {
  133. return this.tableOrders;
  134. }
  135. }
  136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  138. [global::System.ComponentModel.Browsable(false)]
  139. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  140. public RolesDataTable Roles {
  141. get {
  142. return this.tableRoles;
  143. }
  144. }
  145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  147. [global::System.ComponentModel.Browsable(false)]
  148. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  149. public TkanDataTable Tkan {
  150. get {
  151. return this.tableTkan;
  152. }
  153. }
  154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  156. [global::System.ComponentModel.Browsable(false)]
  157. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  158. public UsersDataTable Users {
  159. get {
  160. return this.tableUsers;
  161. }
  162. }
  163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  165. [global::System.ComponentModel.BrowsableAttribute(true)]
  166. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  167. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  168. get {
  169. return this._schemaSerializationMode;
  170. }
  171. set {
  172. this._schemaSerializationMode = value;
  173. }
  174. }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  177. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  178. public new global::System.Data.DataTableCollection Tables {
  179. get {
  180. return base.Tables;
  181. }
  182. }
  183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  185. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  186. public new global::System.Data.DataRelationCollection Relations {
  187. get {
  188. return base.Relations;
  189. }
  190. }
  191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  193. protected override void InitializeDerivedDataSet() {
  194. this.BeginInit();
  195. this.InitClass();
  196. this.EndInit();
  197. }
  198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  200. public override global::System.Data.DataSet Clone() {
  201. pracFabricaDataSet cln = ((pracFabricaDataSet)(base.Clone()));
  202. cln.InitVars();
  203. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  204. return cln;
  205. }
  206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  208. protected override bool ShouldSerializeTables() {
  209. return false;
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  213. protected override bool ShouldSerializeRelations() {
  214. return false;
  215. }
  216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  218. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  219. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  220. this.Reset();
  221. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  222. ds.ReadXml(reader);
  223. if ((ds.Tables["Color"] != null)) {
  224. base.Tables.Add(new ColorDataTable(ds.Tables["Color"]));
  225. }
  226. if ((ds.Tables["Furnitura"] != null)) {
  227. base.Tables.Add(new FurnituraDataTable(ds.Tables["Furnitura"]));
  228. }
  229. if ((ds.Tables["Izdelie"] != null)) {
  230. base.Tables.Add(new IzdelieDataTable(ds.Tables["Izdelie"]));
  231. }
  232. if ((ds.Tables["Orders"] != null)) {
  233. base.Tables.Add(new OrdersDataTable(ds.Tables["Orders"]));
  234. }
  235. if ((ds.Tables["Roles"] != null)) {
  236. base.Tables.Add(new RolesDataTable(ds.Tables["Roles"]));
  237. }
  238. if ((ds.Tables["Tkan"] != null)) {
  239. base.Tables.Add(new TkanDataTable(ds.Tables["Tkan"]));
  240. }
  241. if ((ds.Tables["Users"] != null)) {
  242. base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
  243. }
  244. this.DataSetName = ds.DataSetName;
  245. this.Prefix = ds.Prefix;
  246. this.Namespace = ds.Namespace;
  247. this.Locale = ds.Locale;
  248. this.CaseSensitive = ds.CaseSensitive;
  249. this.EnforceConstraints = ds.EnforceConstraints;
  250. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  251. this.InitVars();
  252. }
  253. else {
  254. this.ReadXml(reader);
  255. this.InitVars();
  256. }
  257. }
  258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  260. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  261. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  262. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  263. stream.Position = 0;
  264. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  265. }
  266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  268. internal void InitVars() {
  269. this.InitVars(true);
  270. }
  271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  273. internal void InitVars(bool initTable) {
  274. this.tableColor = ((ColorDataTable)(base.Tables["Color"]));
  275. if ((initTable == true)) {
  276. if ((this.tableColor != null)) {
  277. this.tableColor.InitVars();
  278. }
  279. }
  280. this.tableFurnitura = ((FurnituraDataTable)(base.Tables["Furnitura"]));
  281. if ((initTable == true)) {
  282. if ((this.tableFurnitura != null)) {
  283. this.tableFurnitura.InitVars();
  284. }
  285. }
  286. this.tableIzdelie = ((IzdelieDataTable)(base.Tables["Izdelie"]));
  287. if ((initTable == true)) {
  288. if ((this.tableIzdelie != null)) {
  289. this.tableIzdelie.InitVars();
  290. }
  291. }
  292. this.tableOrders = ((OrdersDataTable)(base.Tables["Orders"]));
  293. if ((initTable == true)) {
  294. if ((this.tableOrders != null)) {
  295. this.tableOrders.InitVars();
  296. }
  297. }
  298. this.tableRoles = ((RolesDataTable)(base.Tables["Roles"]));
  299. if ((initTable == true)) {
  300. if ((this.tableRoles != null)) {
  301. this.tableRoles.InitVars();
  302. }
  303. }
  304. this.tableTkan = ((TkanDataTable)(base.Tables["Tkan"]));
  305. if ((initTable == true)) {
  306. if ((this.tableTkan != null)) {
  307. this.tableTkan.InitVars();
  308. }
  309. }
  310. this.tableUsers = ((UsersDataTable)(base.Tables["Users"]));
  311. if ((initTable == true)) {
  312. if ((this.tableUsers != null)) {
  313. this.tableUsers.InitVars();
  314. }
  315. }
  316. this.relationFK_Orders_Furnitura = this.Relations["FK_Orders_Furnitura"];
  317. this.relationFK_Orders_Izdelie = this.Relations["FK_Orders_Izdelie"];
  318. this.relationFK_Orders_Tkan = this.Relations["FK_Orders_Tkan"];
  319. this.relationFK_Orders_Users1 = this.Relations["FK_Orders_Users1"];
  320. this.relationFK_Orders_Users2 = this.Relations["FK_Orders_Users2"];
  321. this.relationFK_Tkan_Color = this.Relations["FK_Tkan_Color"];
  322. this.relationFK_Users_Roles = this.Relations["FK_Users_Roles"];
  323. }
  324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  326. private void InitClass() {
  327. this.DataSetName = "pracFabricaDataSet";
  328. this.Prefix = "";
  329. this.Namespace = "http://tempuri.org/pracFabricaDataSet.xsd";
  330. this.EnforceConstraints = true;
  331. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  332. this.tableColor = new ColorDataTable();
  333. base.Tables.Add(this.tableColor);
  334. this.tableFurnitura = new FurnituraDataTable();
  335. base.Tables.Add(this.tableFurnitura);
  336. this.tableIzdelie = new IzdelieDataTable();
  337. base.Tables.Add(this.tableIzdelie);
  338. this.tableOrders = new OrdersDataTable();
  339. base.Tables.Add(this.tableOrders);
  340. this.tableRoles = new RolesDataTable();
  341. base.Tables.Add(this.tableRoles);
  342. this.tableTkan = new TkanDataTable();
  343. base.Tables.Add(this.tableTkan);
  344. this.tableUsers = new UsersDataTable();
  345. base.Tables.Add(this.tableUsers);
  346. this.relationFK_Orders_Furnitura = new global::System.Data.DataRelation("FK_Orders_Furnitura", new global::System.Data.DataColumn[] {
  347. this.tableFurnitura.id_furColumn}, new global::System.Data.DataColumn[] {
  348. this.tableOrders.id_furColumn}, false);
  349. this.Relations.Add(this.relationFK_Orders_Furnitura);
  350. this.relationFK_Orders_Izdelie = new global::System.Data.DataRelation("FK_Orders_Izdelie", new global::System.Data.DataColumn[] {
  351. this.tableIzdelie.id_izdColumn}, new global::System.Data.DataColumn[] {
  352. this.tableOrders.id_izdColumn}, false);
  353. this.Relations.Add(this.relationFK_Orders_Izdelie);
  354. this.relationFK_Orders_Tkan = new global::System.Data.DataRelation("FK_Orders_Tkan", new global::System.Data.DataColumn[] {
  355. this.tableTkan.id_TkanColumn}, new global::System.Data.DataColumn[] {
  356. this.tableOrders.id_tkanColumn}, false);
  357. this.Relations.Add(this.relationFK_Orders_Tkan);
  358. this.relationFK_Orders_Users1 = new global::System.Data.DataRelation("FK_Orders_Users1", new global::System.Data.DataColumn[] {
  359. this.tableUsers.id_UserColumn}, new global::System.Data.DataColumn[] {
  360. this.tableOrders.id_menColumn}, false);
  361. this.Relations.Add(this.relationFK_Orders_Users1);
  362. this.relationFK_Orders_Users2 = new global::System.Data.DataRelation("FK_Orders_Users2", new global::System.Data.DataColumn[] {
  363. this.tableUsers.id_UserColumn}, new global::System.Data.DataColumn[] {
  364. this.tableOrders.id_zakColumn}, false);
  365. this.Relations.Add(this.relationFK_Orders_Users2);
  366. this.relationFK_Tkan_Color = new global::System.Data.DataRelation("FK_Tkan_Color", new global::System.Data.DataColumn[] {
  367. this.tableColor.id_colorsColumn}, new global::System.Data.DataColumn[] {
  368. this.tableTkan.id_colorColumn}, false);
  369. this.Relations.Add(this.relationFK_Tkan_Color);
  370. this.relationFK_Users_Roles = new global::System.Data.DataRelation("FK_Users_Roles", new global::System.Data.DataColumn[] {
  371. this.tableRoles.id_RolesColumn}, new global::System.Data.DataColumn[] {
  372. this.tableUsers.RoleColumn}, false);
  373. this.Relations.Add(this.relationFK_Users_Roles);
  374. }
  375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  377. private bool ShouldSerializeColor() {
  378. return false;
  379. }
  380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  382. private bool ShouldSerializeFurnitura() {
  383. return false;
  384. }
  385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  387. private bool ShouldSerializeIzdelie() {
  388. return false;
  389. }
  390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  392. private bool ShouldSerializeOrders() {
  393. return false;
  394. }
  395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  397. private bool ShouldSerializeRoles() {
  398. return false;
  399. }
  400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  402. private bool ShouldSerializeTkan() {
  403. return false;
  404. }
  405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  407. private bool ShouldSerializeUsers() {
  408. return false;
  409. }
  410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  412. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  413. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  414. this.InitVars();
  415. }
  416. }
  417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  419. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  420. pracFabricaDataSet ds = new pracFabricaDataSet();
  421. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  422. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  423. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  424. any.Namespace = ds.Namespace;
  425. sequence.Items.Add(any);
  426. type.Particle = sequence;
  427. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  428. if (xs.Contains(dsSchema.TargetNamespace)) {
  429. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  430. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  431. try {
  432. global::System.Xml.Schema.XmlSchema schema = null;
  433. dsSchema.Write(s1);
  434. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  435. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  436. s2.SetLength(0);
  437. schema.Write(s2);
  438. if ((s1.Length == s2.Length)) {
  439. s1.Position = 0;
  440. s2.Position = 0;
  441. for (; ((s1.Position != s1.Length)
  442. && (s1.ReadByte() == s2.ReadByte())); ) {
  443. ;
  444. }
  445. if ((s1.Position == s1.Length)) {
  446. return type;
  447. }
  448. }
  449. }
  450. }
  451. finally {
  452. if ((s1 != null)) {
  453. s1.Close();
  454. }
  455. if ((s2 != null)) {
  456. s2.Close();
  457. }
  458. }
  459. }
  460. xs.Add(dsSchema);
  461. return type;
  462. }
  463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  464. public delegate void ColorRowChangeEventHandler(object sender, ColorRowChangeEvent e);
  465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  466. public delegate void FurnituraRowChangeEventHandler(object sender, FurnituraRowChangeEvent e);
  467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  468. public delegate void IzdelieRowChangeEventHandler(object sender, IzdelieRowChangeEvent e);
  469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  470. public delegate void OrdersRowChangeEventHandler(object sender, OrdersRowChangeEvent e);
  471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  472. public delegate void RolesRowChangeEventHandler(object sender, RolesRowChangeEvent e);
  473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  474. public delegate void TkanRowChangeEventHandler(object sender, TkanRowChangeEvent e);
  475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  476. public delegate void UsersRowChangeEventHandler(object sender, UsersRowChangeEvent e);
  477. /// <summary>
  478. ///Represents the strongly named DataTable class.
  479. ///</summary>
  480. [global::System.Serializable()]
  481. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  482. public partial class ColorDataTable : global::System.Data.TypedTableBase<ColorRow> {
  483. private global::System.Data.DataColumn columnid_colors;
  484. private global::System.Data.DataColumn columnTitle;
  485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  487. public ColorDataTable() {
  488. this.TableName = "Color";
  489. this.BeginInit();
  490. this.InitClass();
  491. this.EndInit();
  492. }
  493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  495. internal ColorDataTable(global::System.Data.DataTable table) {
  496. this.TableName = table.TableName;
  497. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  498. this.CaseSensitive = table.CaseSensitive;
  499. }
  500. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  501. this.Locale = table.Locale;
  502. }
  503. if ((table.Namespace != table.DataSet.Namespace)) {
  504. this.Namespace = table.Namespace;
  505. }
  506. this.Prefix = table.Prefix;
  507. this.MinimumCapacity = table.MinimumCapacity;
  508. }
  509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  511. protected ColorDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  512. base(info, context) {
  513. this.InitVars();
  514. }
  515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  517. public global::System.Data.DataColumn id_colorsColumn {
  518. get {
  519. return this.columnid_colors;
  520. }
  521. }
  522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  524. public global::System.Data.DataColumn TitleColumn {
  525. get {
  526. return this.columnTitle;
  527. }
  528. }
  529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  531. [global::System.ComponentModel.Browsable(false)]
  532. public int Count {
  533. get {
  534. return this.Rows.Count;
  535. }
  536. }
  537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  539. public ColorRow this[int index] {
  540. get {
  541. return ((ColorRow)(this.Rows[index]));
  542. }
  543. }
  544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  545. public event ColorRowChangeEventHandler ColorRowChanging;
  546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  547. public event ColorRowChangeEventHandler ColorRowChanged;
  548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  549. public event ColorRowChangeEventHandler ColorRowDeleting;
  550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  551. public event ColorRowChangeEventHandler ColorRowDeleted;
  552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  554. public void AddColorRow(ColorRow row) {
  555. this.Rows.Add(row);
  556. }
  557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  559. public ColorRow AddColorRow(string Title) {
  560. ColorRow rowColorRow = ((ColorRow)(this.NewRow()));
  561. object[] columnValuesArray = new object[] {
  562. null,
  563. Title};
  564. rowColorRow.ItemArray = columnValuesArray;
  565. this.Rows.Add(rowColorRow);
  566. return rowColorRow;
  567. }
  568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  570. public ColorRow FindByid_colors(int id_colors) {
  571. return ((ColorRow)(this.Rows.Find(new object[] {
  572. id_colors})));
  573. }
  574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  576. public override global::System.Data.DataTable Clone() {
  577. ColorDataTable cln = ((ColorDataTable)(base.Clone()));
  578. cln.InitVars();
  579. return cln;
  580. }
  581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  583. protected override global::System.Data.DataTable CreateInstance() {
  584. return new ColorDataTable();
  585. }
  586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  588. internal void InitVars() {
  589. this.columnid_colors = base.Columns["id_colors"];
  590. this.columnTitle = base.Columns["Title"];
  591. }
  592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  594. private void InitClass() {
  595. this.columnid_colors = new global::System.Data.DataColumn("id_colors", typeof(int), null, global::System.Data.MappingType.Element);
  596. base.Columns.Add(this.columnid_colors);
  597. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  598. base.Columns.Add(this.columnTitle);
  599. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  600. this.columnid_colors}, true));
  601. this.columnid_colors.AutoIncrement = true;
  602. this.columnid_colors.AutoIncrementSeed = -1;
  603. this.columnid_colors.AutoIncrementStep = -1;
  604. this.columnid_colors.AllowDBNull = false;
  605. this.columnid_colors.ReadOnly = true;
  606. this.columnid_colors.Unique = true;
  607. this.columnTitle.MaxLength = 50;
  608. }
  609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  611. public ColorRow NewColorRow() {
  612. return ((ColorRow)(this.NewRow()));
  613. }
  614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  616. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  617. return new ColorRow(builder);
  618. }
  619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  621. protected override global::System.Type GetRowType() {
  622. return typeof(ColorRow);
  623. }
  624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  626. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  627. base.OnRowChanged(e);
  628. if ((this.ColorRowChanged != null)) {
  629. this.ColorRowChanged(this, new ColorRowChangeEvent(((ColorRow)(e.Row)), e.Action));
  630. }
  631. }
  632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  634. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  635. base.OnRowChanging(e);
  636. if ((this.ColorRowChanging != null)) {
  637. this.ColorRowChanging(this, new ColorRowChangeEvent(((ColorRow)(e.Row)), e.Action));
  638. }
  639. }
  640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  642. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  643. base.OnRowDeleted(e);
  644. if ((this.ColorRowDeleted != null)) {
  645. this.ColorRowDeleted(this, new ColorRowChangeEvent(((ColorRow)(e.Row)), e.Action));
  646. }
  647. }
  648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  650. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  651. base.OnRowDeleting(e);
  652. if ((this.ColorRowDeleting != null)) {
  653. this.ColorRowDeleting(this, new ColorRowChangeEvent(((ColorRow)(e.Row)), e.Action));
  654. }
  655. }
  656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  658. public void RemoveColorRow(ColorRow row) {
  659. this.Rows.Remove(row);
  660. }
  661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  663. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  664. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  665. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  666. pracFabricaDataSet ds = new pracFabricaDataSet();
  667. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  668. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  669. any1.MinOccurs = new decimal(0);
  670. any1.MaxOccurs = decimal.MaxValue;
  671. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  672. sequence.Items.Add(any1);
  673. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  674. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  675. any2.MinOccurs = new decimal(1);
  676. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  677. sequence.Items.Add(any2);
  678. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  679. attribute1.Name = "namespace";
  680. attribute1.FixedValue = ds.Namespace;
  681. type.Attributes.Add(attribute1);
  682. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  683. attribute2.Name = "tableTypeName";
  684. attribute2.FixedValue = "ColorDataTable";
  685. type.Attributes.Add(attribute2);
  686. type.Particle = sequence;
  687. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  688. if (xs.Contains(dsSchema.TargetNamespace)) {
  689. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  690. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  691. try {
  692. global::System.Xml.Schema.XmlSchema schema = null;
  693. dsSchema.Write(s1);
  694. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  695. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  696. s2.SetLength(0);
  697. schema.Write(s2);
  698. if ((s1.Length == s2.Length)) {
  699. s1.Position = 0;
  700. s2.Position = 0;
  701. for (; ((s1.Position != s1.Length)
  702. && (s1.ReadByte() == s2.ReadByte())); ) {
  703. ;
  704. }
  705. if ((s1.Position == s1.Length)) {
  706. return type;
  707. }
  708. }
  709. }
  710. }
  711. finally {
  712. if ((s1 != null)) {
  713. s1.Close();
  714. }
  715. if ((s2 != null)) {
  716. s2.Close();
  717. }
  718. }
  719. }
  720. xs.Add(dsSchema);
  721. return type;
  722. }
  723. }
  724. /// <summary>
  725. ///Represents the strongly named DataTable class.
  726. ///</summary>
  727. [global::System.Serializable()]
  728. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  729. public partial class FurnituraDataTable : global::System.Data.TypedTableBase<FurnituraRow> {
  730. private global::System.Data.DataColumn columnid_fur;
  731. private global::System.Data.DataColumn columnnamefur;
  732. private global::System.Data.DataColumn columnphoto;
  733. private global::System.Data.DataColumn columncountfur;
  734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  736. public FurnituraDataTable() {
  737. this.TableName = "Furnitura";
  738. this.BeginInit();
  739. this.InitClass();
  740. this.EndInit();
  741. }
  742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  744. internal FurnituraDataTable(global::System.Data.DataTable table) {
  745. this.TableName = table.TableName;
  746. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  747. this.CaseSensitive = table.CaseSensitive;
  748. }
  749. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  750. this.Locale = table.Locale;
  751. }
  752. if ((table.Namespace != table.DataSet.Namespace)) {
  753. this.Namespace = table.Namespace;
  754. }
  755. this.Prefix = table.Prefix;
  756. this.MinimumCapacity = table.MinimumCapacity;
  757. }
  758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  760. protected FurnituraDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  761. base(info, context) {
  762. this.InitVars();
  763. }
  764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  766. public global::System.Data.DataColumn id_furColumn {
  767. get {
  768. return this.columnid_fur;
  769. }
  770. }
  771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  773. public global::System.Data.DataColumn namefurColumn {
  774. get {
  775. return this.columnnamefur;
  776. }
  777. }
  778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  780. public global::System.Data.DataColumn photoColumn {
  781. get {
  782. return this.columnphoto;
  783. }
  784. }
  785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  787. public global::System.Data.DataColumn countfurColumn {
  788. get {
  789. return this.columncountfur;
  790. }
  791. }
  792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  794. [global::System.ComponentModel.Browsable(false)]
  795. public int Count {
  796. get {
  797. return this.Rows.Count;
  798. }
  799. }
  800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  802. public FurnituraRow this[int index] {
  803. get {
  804. return ((FurnituraRow)(this.Rows[index]));
  805. }
  806. }
  807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  808. public event FurnituraRowChangeEventHandler FurnituraRowChanging;
  809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  810. public event FurnituraRowChangeEventHandler FurnituraRowChanged;
  811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  812. public event FurnituraRowChangeEventHandler FurnituraRowDeleting;
  813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  814. public event FurnituraRowChangeEventHandler FurnituraRowDeleted;
  815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  817. public void AddFurnituraRow(FurnituraRow row) {
  818. this.Rows.Add(row);
  819. }
  820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  822. public FurnituraRow AddFurnituraRow(string namefur, string photo, int countfur) {
  823. FurnituraRow rowFurnituraRow = ((FurnituraRow)(this.NewRow()));
  824. object[] columnValuesArray = new object[] {
  825. null,
  826. namefur,
  827. photo,
  828. countfur};
  829. rowFurnituraRow.ItemArray = columnValuesArray;
  830. this.Rows.Add(rowFurnituraRow);
  831. return rowFurnituraRow;
  832. }
  833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  835. public FurnituraRow FindByid_fur(int id_fur) {
  836. return ((FurnituraRow)(this.Rows.Find(new object[] {
  837. id_fur})));
  838. }
  839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  841. public override global::System.Data.DataTable Clone() {
  842. FurnituraDataTable cln = ((FurnituraDataTable)(base.Clone()));
  843. cln.InitVars();
  844. return cln;
  845. }
  846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  848. protected override global::System.Data.DataTable CreateInstance() {
  849. return new FurnituraDataTable();
  850. }
  851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  853. internal void InitVars() {
  854. this.columnid_fur = base.Columns["id_fur"];
  855. this.columnnamefur = base.Columns["namefur"];
  856. this.columnphoto = base.Columns["photo"];
  857. this.columncountfur = base.Columns["countfur"];
  858. }
  859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  861. private void InitClass() {
  862. this.columnid_fur = new global::System.Data.DataColumn("id_fur", typeof(int), null, global::System.Data.MappingType.Element);
  863. base.Columns.Add(this.columnid_fur);
  864. this.columnnamefur = new global::System.Data.DataColumn("namefur", typeof(string), null, global::System.Data.MappingType.Element);
  865. base.Columns.Add(this.columnnamefur);
  866. this.columnphoto = new global::System.Data.DataColumn("photo", typeof(string), null, global::System.Data.MappingType.Element);
  867. base.Columns.Add(this.columnphoto);
  868. this.columncountfur = new global::System.Data.DataColumn("countfur", typeof(int), null, global::System.Data.MappingType.Element);
  869. base.Columns.Add(this.columncountfur);
  870. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  871. this.columnid_fur}, true));
  872. this.columnid_fur.AutoIncrement = true;
  873. this.columnid_fur.AutoIncrementSeed = -1;
  874. this.columnid_fur.AutoIncrementStep = -1;
  875. this.columnid_fur.AllowDBNull = false;
  876. this.columnid_fur.ReadOnly = true;
  877. this.columnid_fur.Unique = true;
  878. this.columnnamefur.MaxLength = 50;
  879. this.columnphoto.MaxLength = 50;
  880. }
  881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  883. public FurnituraRow NewFurnituraRow() {
  884. return ((FurnituraRow)(this.NewRow()));
  885. }
  886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  888. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  889. return new FurnituraRow(builder);
  890. }
  891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  893. protected override global::System.Type GetRowType() {
  894. return typeof(FurnituraRow);
  895. }
  896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  898. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  899. base.OnRowChanged(e);
  900. if ((this.FurnituraRowChanged != null)) {
  901. this.FurnituraRowChanged(this, new FurnituraRowChangeEvent(((FurnituraRow)(e.Row)), e.Action));
  902. }
  903. }
  904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  906. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  907. base.OnRowChanging(e);
  908. if ((this.FurnituraRowChanging != null)) {
  909. this.FurnituraRowChanging(this, new FurnituraRowChangeEvent(((FurnituraRow)(e.Row)), e.Action));
  910. }
  911. }
  912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  914. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  915. base.OnRowDeleted(e);
  916. if ((this.FurnituraRowDeleted != null)) {
  917. this.FurnituraRowDeleted(this, new FurnituraRowChangeEvent(((FurnituraRow)(e.Row)), e.Action));
  918. }
  919. }
  920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  922. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  923. base.OnRowDeleting(e);
  924. if ((this.FurnituraRowDeleting != null)) {
  925. this.FurnituraRowDeleting(this, new FurnituraRowChangeEvent(((FurnituraRow)(e.Row)), e.Action));
  926. }
  927. }
  928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  930. public void RemoveFurnituraRow(FurnituraRow row) {
  931. this.Rows.Remove(row);
  932. }
  933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  935. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  936. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  937. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  938. pracFabricaDataSet ds = new pracFabricaDataSet();
  939. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  940. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  941. any1.MinOccurs = new decimal(0);
  942. any1.MaxOccurs = decimal.MaxValue;
  943. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  944. sequence.Items.Add(any1);
  945. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  946. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  947. any2.MinOccurs = new decimal(1);
  948. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  949. sequence.Items.Add(any2);
  950. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  951. attribute1.Name = "namespace";
  952. attribute1.FixedValue = ds.Namespace;
  953. type.Attributes.Add(attribute1);
  954. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  955. attribute2.Name = "tableTypeName";
  956. attribute2.FixedValue = "FurnituraDataTable";
  957. type.Attributes.Add(attribute2);
  958. type.Particle = sequence;
  959. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  960. if (xs.Contains(dsSchema.TargetNamespace)) {
  961. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  962. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  963. try {
  964. global::System.Xml.Schema.XmlSchema schema = null;
  965. dsSchema.Write(s1);
  966. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  967. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  968. s2.SetLength(0);
  969. schema.Write(s2);
  970. if ((s1.Length == s2.Length)) {
  971. s1.Position = 0;
  972. s2.Position = 0;
  973. for (; ((s1.Position != s1.Length)
  974. && (s1.ReadByte() == s2.ReadByte())); ) {
  975. ;
  976. }
  977. if ((s1.Position == s1.Length)) {
  978. return type;
  979. }
  980. }
  981. }
  982. }
  983. finally {
  984. if ((s1 != null)) {
  985. s1.Close();
  986. }
  987. if ((s2 != null)) {
  988. s2.Close();
  989. }
  990. }
  991. }
  992. xs.Add(dsSchema);
  993. return type;
  994. }
  995. }
  996. /// <summary>
  997. ///Represents the strongly named DataTable class.
  998. ///</summary>
  999. [global::System.Serializable()]
  1000. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1001. public partial class IzdelieDataTable : global::System.Data.TypedTableBase<IzdelieRow> {
  1002. private global::System.Data.DataColumn columnid_izd;
  1003. private global::System.Data.DataColumn columnname_izd;
  1004. private global::System.Data.DataColumn columnlength;
  1005. private global::System.Data.DataColumn columnwidth;
  1006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1008. public IzdelieDataTable() {
  1009. this.TableName = "Izdelie";
  1010. this.BeginInit();
  1011. this.InitClass();
  1012. this.EndInit();
  1013. }
  1014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1016. internal IzdelieDataTable(global::System.Data.DataTable table) {
  1017. this.TableName = table.TableName;
  1018. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1019. this.CaseSensitive = table.CaseSensitive;
  1020. }
  1021. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1022. this.Locale = table.Locale;
  1023. }
  1024. if ((table.Namespace != table.DataSet.Namespace)) {
  1025. this.Namespace = table.Namespace;
  1026. }
  1027. this.Prefix = table.Prefix;
  1028. this.MinimumCapacity = table.MinimumCapacity;
  1029. }
  1030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1032. protected IzdelieDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1033. base(info, context) {
  1034. this.InitVars();
  1035. }
  1036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1038. public global::System.Data.DataColumn id_izdColumn {
  1039. get {
  1040. return this.columnid_izd;
  1041. }
  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 name_izdColumn {
  1046. get {
  1047. return this.columnname_izd;
  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 lengthColumn {
  1053. get {
  1054. return this.columnlength;
  1055. }
  1056. }
  1057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1059. public global::System.Data.DataColumn widthColumn {
  1060. get {
  1061. return this.columnwidth;
  1062. }
  1063. }
  1064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1066. [global::System.ComponentModel.Browsable(false)]
  1067. public int Count {
  1068. get {
  1069. return this.Rows.Count;
  1070. }
  1071. }
  1072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1074. public IzdelieRow this[int index] {
  1075. get {
  1076. return ((IzdelieRow)(this.Rows[index]));
  1077. }
  1078. }
  1079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1080. public event IzdelieRowChangeEventHandler IzdelieRowChanging;
  1081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1082. public event IzdelieRowChangeEventHandler IzdelieRowChanged;
  1083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1084. public event IzdelieRowChangeEventHandler IzdelieRowDeleting;
  1085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1086. public event IzdelieRowChangeEventHandler IzdelieRowDeleted;
  1087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1089. public void AddIzdelieRow(IzdelieRow row) {
  1090. this.Rows.Add(row);
  1091. }
  1092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1094. public IzdelieRow AddIzdelieRow(string name_izd, int length, int width) {
  1095. IzdelieRow rowIzdelieRow = ((IzdelieRow)(this.NewRow()));
  1096. object[] columnValuesArray = new object[] {
  1097. null,
  1098. name_izd,
  1099. length,
  1100. width};
  1101. rowIzdelieRow.ItemArray = columnValuesArray;
  1102. this.Rows.Add(rowIzdelieRow);
  1103. return rowIzdelieRow;
  1104. }
  1105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1107. public IzdelieRow FindByid_izd(int id_izd) {
  1108. return ((IzdelieRow)(this.Rows.Find(new object[] {
  1109. id_izd})));
  1110. }
  1111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1113. public override global::System.Data.DataTable Clone() {
  1114. IzdelieDataTable cln = ((IzdelieDataTable)(base.Clone()));
  1115. cln.InitVars();
  1116. return cln;
  1117. }
  1118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1120. protected override global::System.Data.DataTable CreateInstance() {
  1121. return new IzdelieDataTable();
  1122. }
  1123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1125. internal void InitVars() {
  1126. this.columnid_izd = base.Columns["id_izd"];
  1127. this.columnname_izd = base.Columns["name_izd"];
  1128. this.columnlength = base.Columns["length"];
  1129. this.columnwidth = base.Columns["width"];
  1130. }
  1131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1133. private void InitClass() {
  1134. this.columnid_izd = new global::System.Data.DataColumn("id_izd", typeof(int), null, global::System.Data.MappingType.Element);
  1135. base.Columns.Add(this.columnid_izd);
  1136. this.columnname_izd = new global::System.Data.DataColumn("name_izd", typeof(string), null, global::System.Data.MappingType.Element);
  1137. base.Columns.Add(this.columnname_izd);
  1138. this.columnlength = new global::System.Data.DataColumn("length", typeof(int), null, global::System.Data.MappingType.Element);
  1139. base.Columns.Add(this.columnlength);
  1140. this.columnwidth = new global::System.Data.DataColumn("width", typeof(int), null, global::System.Data.MappingType.Element);
  1141. base.Columns.Add(this.columnwidth);
  1142. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1143. this.columnid_izd}, true));
  1144. this.columnid_izd.AutoIncrement = true;
  1145. this.columnid_izd.AutoIncrementSeed = -1;
  1146. this.columnid_izd.AutoIncrementStep = -1;
  1147. this.columnid_izd.AllowDBNull = false;
  1148. this.columnid_izd.ReadOnly = true;
  1149. this.columnid_izd.Unique = true;
  1150. this.columnname_izd.MaxLength = 50;
  1151. }
  1152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1154. public IzdelieRow NewIzdelieRow() {
  1155. return ((IzdelieRow)(this.NewRow()));
  1156. }
  1157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1159. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1160. return new IzdelieRow(builder);
  1161. }
  1162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1164. protected override global::System.Type GetRowType() {
  1165. return typeof(IzdelieRow);
  1166. }
  1167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1169. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1170. base.OnRowChanged(e);
  1171. if ((this.IzdelieRowChanged != null)) {
  1172. this.IzdelieRowChanged(this, new IzdelieRowChangeEvent(((IzdelieRow)(e.Row)), e.Action));
  1173. }
  1174. }
  1175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1177. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1178. base.OnRowChanging(e);
  1179. if ((this.IzdelieRowChanging != null)) {
  1180. this.IzdelieRowChanging(this, new IzdelieRowChangeEvent(((IzdelieRow)(e.Row)), e.Action));
  1181. }
  1182. }
  1183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1185. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1186. base.OnRowDeleted(e);
  1187. if ((this.IzdelieRowDeleted != null)) {
  1188. this.IzdelieRowDeleted(this, new IzdelieRowChangeEvent(((IzdelieRow)(e.Row)), e.Action));
  1189. }
  1190. }
  1191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1193. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1194. base.OnRowDeleting(e);
  1195. if ((this.IzdelieRowDeleting != null)) {
  1196. this.IzdelieRowDeleting(this, new IzdelieRowChangeEvent(((IzdelieRow)(e.Row)), e.Action));
  1197. }
  1198. }
  1199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1201. public void RemoveIzdelieRow(IzdelieRow row) {
  1202. this.Rows.Remove(row);
  1203. }
  1204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1206. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1207. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1208. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1209. pracFabricaDataSet ds = new pracFabricaDataSet();
  1210. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1211. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1212. any1.MinOccurs = new decimal(0);
  1213. any1.MaxOccurs = decimal.MaxValue;
  1214. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1215. sequence.Items.Add(any1);
  1216. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1217. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1218. any2.MinOccurs = new decimal(1);
  1219. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1220. sequence.Items.Add(any2);
  1221. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1222. attribute1.Name = "namespace";
  1223. attribute1.FixedValue = ds.Namespace;
  1224. type.Attributes.Add(attribute1);
  1225. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1226. attribute2.Name = "tableTypeName";
  1227. attribute2.FixedValue = "IzdelieDataTable";
  1228. type.Attributes.Add(attribute2);
  1229. type.Particle = sequence;
  1230. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1231. if (xs.Contains(dsSchema.TargetNamespace)) {
  1232. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1233. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1234. try {
  1235. global::System.Xml.Schema.XmlSchema schema = null;
  1236. dsSchema.Write(s1);
  1237. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1238. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1239. s2.SetLength(0);
  1240. schema.Write(s2);
  1241. if ((s1.Length == s2.Length)) {
  1242. s1.Position = 0;
  1243. s2.Position = 0;
  1244. for (; ((s1.Position != s1.Length)
  1245. && (s1.ReadByte() == s2.ReadByte())); ) {
  1246. ;
  1247. }
  1248. if ((s1.Position == s1.Length)) {
  1249. return type;
  1250. }
  1251. }
  1252. }
  1253. }
  1254. finally {
  1255. if ((s1 != null)) {
  1256. s1.Close();
  1257. }
  1258. if ((s2 != null)) {
  1259. s2.Close();
  1260. }
  1261. }
  1262. }
  1263. xs.Add(dsSchema);
  1264. return type;
  1265. }
  1266. }
  1267. /// <summary>
  1268. ///Represents the strongly named DataTable class.
  1269. ///</summary>
  1270. [global::System.Serializable()]
  1271. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1272. public partial class OrdersDataTable : global::System.Data.TypedTableBase<OrdersRow> {
  1273. private global::System.Data.DataColumn columnid_order;
  1274. private global::System.Data.DataColumn columnid_izd;
  1275. private global::System.Data.DataColumn columnid_zak;
  1276. private global::System.Data.DataColumn columnid_men;
  1277. private global::System.Data.DataColumn columnid_tkan;
  1278. private global::System.Data.DataColumn columnid_fur;
  1279. private global::System.Data.DataColumn columnCountFur;
  1280. private global::System.Data.DataColumn columnCountIzd;
  1281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1283. public OrdersDataTable() {
  1284. this.TableName = "Orders";
  1285. this.BeginInit();
  1286. this.InitClass();
  1287. this.EndInit();
  1288. }
  1289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1291. internal OrdersDataTable(global::System.Data.DataTable table) {
  1292. this.TableName = table.TableName;
  1293. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1294. this.CaseSensitive = table.CaseSensitive;
  1295. }
  1296. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1297. this.Locale = table.Locale;
  1298. }
  1299. if ((table.Namespace != table.DataSet.Namespace)) {
  1300. this.Namespace = table.Namespace;
  1301. }
  1302. this.Prefix = table.Prefix;
  1303. this.MinimumCapacity = table.MinimumCapacity;
  1304. }
  1305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1307. protected OrdersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1308. base(info, context) {
  1309. this.InitVars();
  1310. }
  1311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1313. public global::System.Data.DataColumn id_orderColumn {
  1314. get {
  1315. return this.columnid_order;
  1316. }
  1317. }
  1318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1320. public global::System.Data.DataColumn id_izdColumn {
  1321. get {
  1322. return this.columnid_izd;
  1323. }
  1324. }
  1325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1327. public global::System.Data.DataColumn id_zakColumn {
  1328. get {
  1329. return this.columnid_zak;
  1330. }
  1331. }
  1332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1334. public global::System.Data.DataColumn id_menColumn {
  1335. get {
  1336. return this.columnid_men;
  1337. }
  1338. }
  1339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1341. public global::System.Data.DataColumn id_tkanColumn {
  1342. get {
  1343. return this.columnid_tkan;
  1344. }
  1345. }
  1346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1348. public global::System.Data.DataColumn id_furColumn {
  1349. get {
  1350. return this.columnid_fur;
  1351. }
  1352. }
  1353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1355. public global::System.Data.DataColumn CountFurColumn {
  1356. get {
  1357. return this.columnCountFur;
  1358. }
  1359. }
  1360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1362. public global::System.Data.DataColumn CountIzdColumn {
  1363. get {
  1364. return this.columnCountIzd;
  1365. }
  1366. }
  1367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1369. [global::System.ComponentModel.Browsable(false)]
  1370. public int Count {
  1371. get {
  1372. return this.Rows.Count;
  1373. }
  1374. }
  1375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1377. public OrdersRow this[int index] {
  1378. get {
  1379. return ((OrdersRow)(this.Rows[index]));
  1380. }
  1381. }
  1382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1383. public event OrdersRowChangeEventHandler OrdersRowChanging;
  1384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1385. public event OrdersRowChangeEventHandler OrdersRowChanged;
  1386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1387. public event OrdersRowChangeEventHandler OrdersRowDeleting;
  1388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1389. public event OrdersRowChangeEventHandler OrdersRowDeleted;
  1390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1392. public void AddOrdersRow(OrdersRow row) {
  1393. this.Rows.Add(row);
  1394. }
  1395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1397. public OrdersRow AddOrdersRow(IzdelieRow parentIzdelieRowByFK_Orders_Izdelie, UsersRow parentUsersRowByFK_Orders_Users2, UsersRow parentUsersRowByFK_Orders_Users1, TkanRow parentTkanRowByFK_Orders_Tkan, FurnituraRow parentFurnituraRowByFK_Orders_Furnitura, int CountFur, int CountIzd) {
  1398. OrdersRow rowOrdersRow = ((OrdersRow)(this.NewRow()));
  1399. object[] columnValuesArray = new object[] {
  1400. null,
  1401. null,
  1402. null,
  1403. null,
  1404. null,
  1405. null,
  1406. CountFur,
  1407. CountIzd};
  1408. if ((parentIzdelieRowByFK_Orders_Izdelie != null)) {
  1409. columnValuesArray[1] = parentIzdelieRowByFK_Orders_Izdelie[0];
  1410. }
  1411. if ((parentUsersRowByFK_Orders_Users2 != null)) {
  1412. columnValuesArray[2] = parentUsersRowByFK_Orders_Users2[0];
  1413. }
  1414. if ((parentUsersRowByFK_Orders_Users1 != null)) {
  1415. columnValuesArray[3] = parentUsersRowByFK_Orders_Users1[0];
  1416. }
  1417. if ((parentTkanRowByFK_Orders_Tkan != null)) {
  1418. columnValuesArray[4] = parentTkanRowByFK_Orders_Tkan[0];
  1419. }
  1420. if ((parentFurnituraRowByFK_Orders_Furnitura != null)) {
  1421. columnValuesArray[5] = parentFurnituraRowByFK_Orders_Furnitura[0];
  1422. }
  1423. rowOrdersRow.ItemArray = columnValuesArray;
  1424. this.Rows.Add(rowOrdersRow);
  1425. return rowOrdersRow;
  1426. }
  1427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1429. public OrdersRow FindByid_order(int id_order) {
  1430. return ((OrdersRow)(this.Rows.Find(new object[] {
  1431. id_order})));
  1432. }
  1433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1435. public override global::System.Data.DataTable Clone() {
  1436. OrdersDataTable cln = ((OrdersDataTable)(base.Clone()));
  1437. cln.InitVars();
  1438. return cln;
  1439. }
  1440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1442. protected override global::System.Data.DataTable CreateInstance() {
  1443. return new OrdersDataTable();
  1444. }
  1445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1447. internal void InitVars() {
  1448. this.columnid_order = base.Columns["id_order"];
  1449. this.columnid_izd = base.Columns["id_izd"];
  1450. this.columnid_zak = base.Columns["id_zak"];
  1451. this.columnid_men = base.Columns["id_men"];
  1452. this.columnid_tkan = base.Columns["id_tkan"];
  1453. this.columnid_fur = base.Columns["id_fur"];
  1454. this.columnCountFur = base.Columns["CountFur"];
  1455. this.columnCountIzd = base.Columns["CountIzd"];
  1456. }
  1457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1459. private void InitClass() {
  1460. this.columnid_order = new global::System.Data.DataColumn("id_order", typeof(int), null, global::System.Data.MappingType.Element);
  1461. base.Columns.Add(this.columnid_order);
  1462. this.columnid_izd = new global::System.Data.DataColumn("id_izd", typeof(int), null, global::System.Data.MappingType.Element);
  1463. base.Columns.Add(this.columnid_izd);
  1464. this.columnid_zak = new global::System.Data.DataColumn("id_zak", typeof(int), null, global::System.Data.MappingType.Element);
  1465. base.Columns.Add(this.columnid_zak);
  1466. this.columnid_men = new global::System.Data.DataColumn("id_men", typeof(int), null, global::System.Data.MappingType.Element);
  1467. base.Columns.Add(this.columnid_men);
  1468. this.columnid_tkan = new global::System.Data.DataColumn("id_tkan", typeof(int), null, global::System.Data.MappingType.Element);
  1469. base.Columns.Add(this.columnid_tkan);
  1470. this.columnid_fur = new global::System.Data.DataColumn("id_fur", typeof(int), null, global::System.Data.MappingType.Element);
  1471. base.Columns.Add(this.columnid_fur);
  1472. this.columnCountFur = new global::System.Data.DataColumn("CountFur", typeof(int), null, global::System.Data.MappingType.Element);
  1473. base.Columns.Add(this.columnCountFur);
  1474. this.columnCountIzd = new global::System.Data.DataColumn("CountIzd", typeof(int), null, global::System.Data.MappingType.Element);
  1475. base.Columns.Add(this.columnCountIzd);
  1476. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1477. this.columnid_order}, true));
  1478. this.columnid_order.AutoIncrement = true;
  1479. this.columnid_order.AutoIncrementSeed = -1;
  1480. this.columnid_order.AutoIncrementStep = -1;
  1481. this.columnid_order.AllowDBNull = false;
  1482. this.columnid_order.ReadOnly = true;
  1483. this.columnid_order.Unique = true;
  1484. }
  1485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1487. public OrdersRow NewOrdersRow() {
  1488. return ((OrdersRow)(this.NewRow()));
  1489. }
  1490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1492. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1493. return new OrdersRow(builder);
  1494. }
  1495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1497. protected override global::System.Type GetRowType() {
  1498. return typeof(OrdersRow);
  1499. }
  1500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1502. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1503. base.OnRowChanged(e);
  1504. if ((this.OrdersRowChanged != null)) {
  1505. this.OrdersRowChanged(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1506. }
  1507. }
  1508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1510. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1511. base.OnRowChanging(e);
  1512. if ((this.OrdersRowChanging != null)) {
  1513. this.OrdersRowChanging(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1514. }
  1515. }
  1516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1518. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1519. base.OnRowDeleted(e);
  1520. if ((this.OrdersRowDeleted != null)) {
  1521. this.OrdersRowDeleted(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1522. }
  1523. }
  1524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1526. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1527. base.OnRowDeleting(e);
  1528. if ((this.OrdersRowDeleting != null)) {
  1529. this.OrdersRowDeleting(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1530. }
  1531. }
  1532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1534. public void RemoveOrdersRow(OrdersRow row) {
  1535. this.Rows.Remove(row);
  1536. }
  1537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1539. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1540. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1541. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1542. pracFabricaDataSet ds = new pracFabricaDataSet();
  1543. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1544. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1545. any1.MinOccurs = new decimal(0);
  1546. any1.MaxOccurs = decimal.MaxValue;
  1547. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1548. sequence.Items.Add(any1);
  1549. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1550. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1551. any2.MinOccurs = new decimal(1);
  1552. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1553. sequence.Items.Add(any2);
  1554. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1555. attribute1.Name = "namespace";
  1556. attribute1.FixedValue = ds.Namespace;
  1557. type.Attributes.Add(attribute1);
  1558. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1559. attribute2.Name = "tableTypeName";
  1560. attribute2.FixedValue = "OrdersDataTable";
  1561. type.Attributes.Add(attribute2);
  1562. type.Particle = sequence;
  1563. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1564. if (xs.Contains(dsSchema.TargetNamespace)) {
  1565. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1566. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1567. try {
  1568. global::System.Xml.Schema.XmlSchema schema = null;
  1569. dsSchema.Write(s1);
  1570. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1571. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1572. s2.SetLength(0);
  1573. schema.Write(s2);
  1574. if ((s1.Length == s2.Length)) {
  1575. s1.Position = 0;
  1576. s2.Position = 0;
  1577. for (; ((s1.Position != s1.Length)
  1578. && (s1.ReadByte() == s2.ReadByte())); ) {
  1579. ;
  1580. }
  1581. if ((s1.Position == s1.Length)) {
  1582. return type;
  1583. }
  1584. }
  1585. }
  1586. }
  1587. finally {
  1588. if ((s1 != null)) {
  1589. s1.Close();
  1590. }
  1591. if ((s2 != null)) {
  1592. s2.Close();
  1593. }
  1594. }
  1595. }
  1596. xs.Add(dsSchema);
  1597. return type;
  1598. }
  1599. }
  1600. /// <summary>
  1601. ///Represents the strongly named DataTable class.
  1602. ///</summary>
  1603. [global::System.Serializable()]
  1604. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1605. public partial class RolesDataTable : global::System.Data.TypedTableBase<RolesRow> {
  1606. private global::System.Data.DataColumn columnid_Roles;
  1607. private global::System.Data.DataColumn columnTitle;
  1608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1610. public RolesDataTable() {
  1611. this.TableName = "Roles";
  1612. this.BeginInit();
  1613. this.InitClass();
  1614. this.EndInit();
  1615. }
  1616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1618. internal RolesDataTable(global::System.Data.DataTable table) {
  1619. this.TableName = table.TableName;
  1620. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1621. this.CaseSensitive = table.CaseSensitive;
  1622. }
  1623. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1624. this.Locale = table.Locale;
  1625. }
  1626. if ((table.Namespace != table.DataSet.Namespace)) {
  1627. this.Namespace = table.Namespace;
  1628. }
  1629. this.Prefix = table.Prefix;
  1630. this.MinimumCapacity = table.MinimumCapacity;
  1631. }
  1632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1634. protected RolesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1635. base(info, context) {
  1636. this.InitVars();
  1637. }
  1638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1640. public global::System.Data.DataColumn id_RolesColumn {
  1641. get {
  1642. return this.columnid_Roles;
  1643. }
  1644. }
  1645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1647. public global::System.Data.DataColumn TitleColumn {
  1648. get {
  1649. return this.columnTitle;
  1650. }
  1651. }
  1652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1654. [global::System.ComponentModel.Browsable(false)]
  1655. public int Count {
  1656. get {
  1657. return this.Rows.Count;
  1658. }
  1659. }
  1660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1662. public RolesRow this[int index] {
  1663. get {
  1664. return ((RolesRow)(this.Rows[index]));
  1665. }
  1666. }
  1667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1668. public event RolesRowChangeEventHandler RolesRowChanging;
  1669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1670. public event RolesRowChangeEventHandler RolesRowChanged;
  1671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1672. public event RolesRowChangeEventHandler RolesRowDeleting;
  1673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1674. public event RolesRowChangeEventHandler RolesRowDeleted;
  1675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1677. public void AddRolesRow(RolesRow row) {
  1678. this.Rows.Add(row);
  1679. }
  1680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1682. public RolesRow AddRolesRow(string Title) {
  1683. RolesRow rowRolesRow = ((RolesRow)(this.NewRow()));
  1684. object[] columnValuesArray = new object[] {
  1685. null,
  1686. Title};
  1687. rowRolesRow.ItemArray = columnValuesArray;
  1688. this.Rows.Add(rowRolesRow);
  1689. return rowRolesRow;
  1690. }
  1691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1693. public RolesRow FindByid_Roles(int id_Roles) {
  1694. return ((RolesRow)(this.Rows.Find(new object[] {
  1695. id_Roles})));
  1696. }
  1697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1699. public override global::System.Data.DataTable Clone() {
  1700. RolesDataTable cln = ((RolesDataTable)(base.Clone()));
  1701. cln.InitVars();
  1702. return cln;
  1703. }
  1704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1706. protected override global::System.Data.DataTable CreateInstance() {
  1707. return new RolesDataTable();
  1708. }
  1709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1711. internal void InitVars() {
  1712. this.columnid_Roles = base.Columns["id_Roles"];
  1713. this.columnTitle = base.Columns["Title"];
  1714. }
  1715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1717. private void InitClass() {
  1718. this.columnid_Roles = new global::System.Data.DataColumn("id_Roles", typeof(int), null, global::System.Data.MappingType.Element);
  1719. base.Columns.Add(this.columnid_Roles);
  1720. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  1721. base.Columns.Add(this.columnTitle);
  1722. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1723. this.columnid_Roles}, true));
  1724. this.columnid_Roles.AutoIncrement = true;
  1725. this.columnid_Roles.AutoIncrementSeed = -1;
  1726. this.columnid_Roles.AutoIncrementStep = -1;
  1727. this.columnid_Roles.AllowDBNull = false;
  1728. this.columnid_Roles.ReadOnly = true;
  1729. this.columnid_Roles.Unique = true;
  1730. this.columnTitle.MaxLength = 50;
  1731. }
  1732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1734. public RolesRow NewRolesRow() {
  1735. return ((RolesRow)(this.NewRow()));
  1736. }
  1737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1739. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1740. return new RolesRow(builder);
  1741. }
  1742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1744. protected override global::System.Type GetRowType() {
  1745. return typeof(RolesRow);
  1746. }
  1747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1749. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1750. base.OnRowChanged(e);
  1751. if ((this.RolesRowChanged != null)) {
  1752. this.RolesRowChanged(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  1753. }
  1754. }
  1755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1757. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1758. base.OnRowChanging(e);
  1759. if ((this.RolesRowChanging != null)) {
  1760. this.RolesRowChanging(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  1761. }
  1762. }
  1763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1765. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1766. base.OnRowDeleted(e);
  1767. if ((this.RolesRowDeleted != null)) {
  1768. this.RolesRowDeleted(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  1769. }
  1770. }
  1771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1773. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1774. base.OnRowDeleting(e);
  1775. if ((this.RolesRowDeleting != null)) {
  1776. this.RolesRowDeleting(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  1777. }
  1778. }
  1779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1781. public void RemoveRolesRow(RolesRow row) {
  1782. this.Rows.Remove(row);
  1783. }
  1784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1786. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1787. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1788. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1789. pracFabricaDataSet ds = new pracFabricaDataSet();
  1790. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1791. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1792. any1.MinOccurs = new decimal(0);
  1793. any1.MaxOccurs = decimal.MaxValue;
  1794. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1795. sequence.Items.Add(any1);
  1796. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1797. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1798. any2.MinOccurs = new decimal(1);
  1799. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1800. sequence.Items.Add(any2);
  1801. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1802. attribute1.Name = "namespace";
  1803. attribute1.FixedValue = ds.Namespace;
  1804. type.Attributes.Add(attribute1);
  1805. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1806. attribute2.Name = "tableTypeName";
  1807. attribute2.FixedValue = "RolesDataTable";
  1808. type.Attributes.Add(attribute2);
  1809. type.Particle = sequence;
  1810. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1811. if (xs.Contains(dsSchema.TargetNamespace)) {
  1812. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1813. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1814. try {
  1815. global::System.Xml.Schema.XmlSchema schema = null;
  1816. dsSchema.Write(s1);
  1817. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1818. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1819. s2.SetLength(0);
  1820. schema.Write(s2);
  1821. if ((s1.Length == s2.Length)) {
  1822. s1.Position = 0;
  1823. s2.Position = 0;
  1824. for (; ((s1.Position != s1.Length)
  1825. && (s1.ReadByte() == s2.ReadByte())); ) {
  1826. ;
  1827. }
  1828. if ((s1.Position == s1.Length)) {
  1829. return type;
  1830. }
  1831. }
  1832. }
  1833. }
  1834. finally {
  1835. if ((s1 != null)) {
  1836. s1.Close();
  1837. }
  1838. if ((s2 != null)) {
  1839. s2.Close();
  1840. }
  1841. }
  1842. }
  1843. xs.Add(dsSchema);
  1844. return type;
  1845. }
  1846. }
  1847. /// <summary>
  1848. ///Represents the strongly named DataTable class.
  1849. ///</summary>
  1850. [global::System.Serializable()]
  1851. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1852. public partial class TkanDataTable : global::System.Data.TypedTableBase<TkanRow> {
  1853. private global::System.Data.DataColumn columnid_Tkan;
  1854. private global::System.Data.DataColumn columnTitle;
  1855. private global::System.Data.DataColumn columnid_color;
  1856. private global::System.Data.DataColumn columnLength;
  1857. private global::System.Data.DataColumn columnWidth;
  1858. private global::System.Data.DataColumn columnComment;
  1859. private global::System.Data.DataColumn columnNamePhoto;
  1860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1862. public TkanDataTable() {
  1863. this.TableName = "Tkan";
  1864. this.BeginInit();
  1865. this.InitClass();
  1866. this.EndInit();
  1867. }
  1868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1870. internal TkanDataTable(global::System.Data.DataTable table) {
  1871. this.TableName = table.TableName;
  1872. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1873. this.CaseSensitive = table.CaseSensitive;
  1874. }
  1875. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1876. this.Locale = table.Locale;
  1877. }
  1878. if ((table.Namespace != table.DataSet.Namespace)) {
  1879. this.Namespace = table.Namespace;
  1880. }
  1881. this.Prefix = table.Prefix;
  1882. this.MinimumCapacity = table.MinimumCapacity;
  1883. }
  1884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1886. protected TkanDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1887. base(info, context) {
  1888. this.InitVars();
  1889. }
  1890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1892. public global::System.Data.DataColumn id_TkanColumn {
  1893. get {
  1894. return this.columnid_Tkan;
  1895. }
  1896. }
  1897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1899. public global::System.Data.DataColumn TitleColumn {
  1900. get {
  1901. return this.columnTitle;
  1902. }
  1903. }
  1904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1906. public global::System.Data.DataColumn id_colorColumn {
  1907. get {
  1908. return this.columnid_color;
  1909. }
  1910. }
  1911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1913. public global::System.Data.DataColumn LengthColumn {
  1914. get {
  1915. return this.columnLength;
  1916. }
  1917. }
  1918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1920. public global::System.Data.DataColumn WidthColumn {
  1921. get {
  1922. return this.columnWidth;
  1923. }
  1924. }
  1925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1927. public global::System.Data.DataColumn CommentColumn {
  1928. get {
  1929. return this.columnComment;
  1930. }
  1931. }
  1932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1934. public global::System.Data.DataColumn NamePhotoColumn {
  1935. get {
  1936. return this.columnNamePhoto;
  1937. }
  1938. }
  1939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1941. [global::System.ComponentModel.Browsable(false)]
  1942. public int Count {
  1943. get {
  1944. return this.Rows.Count;
  1945. }
  1946. }
  1947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1949. public TkanRow this[int index] {
  1950. get {
  1951. return ((TkanRow)(this.Rows[index]));
  1952. }
  1953. }
  1954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1955. public event TkanRowChangeEventHandler TkanRowChanging;
  1956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1957. public event TkanRowChangeEventHandler TkanRowChanged;
  1958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1959. public event TkanRowChangeEventHandler TkanRowDeleting;
  1960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1961. public event TkanRowChangeEventHandler TkanRowDeleted;
  1962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1964. public void AddTkanRow(TkanRow row) {
  1965. this.Rows.Add(row);
  1966. }
  1967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1969. public TkanRow AddTkanRow(string Title, ColorRow parentColorRowByFK_Tkan_Color, int Length, int Width, string Comment, string NamePhoto) {
  1970. TkanRow rowTkanRow = ((TkanRow)(this.NewRow()));
  1971. object[] columnValuesArray = new object[] {
  1972. null,
  1973. Title,
  1974. null,
  1975. Length,
  1976. Width,
  1977. Comment,
  1978. NamePhoto};
  1979. if ((parentColorRowByFK_Tkan_Color != null)) {
  1980. columnValuesArray[2] = parentColorRowByFK_Tkan_Color[0];
  1981. }
  1982. rowTkanRow.ItemArray = columnValuesArray;
  1983. this.Rows.Add(rowTkanRow);
  1984. return rowTkanRow;
  1985. }
  1986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1988. public TkanRow FindByid_Tkan(int id_Tkan) {
  1989. return ((TkanRow)(this.Rows.Find(new object[] {
  1990. id_Tkan})));
  1991. }
  1992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1994. public override global::System.Data.DataTable Clone() {
  1995. TkanDataTable cln = ((TkanDataTable)(base.Clone()));
  1996. cln.InitVars();
  1997. return cln;
  1998. }
  1999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2001. protected override global::System.Data.DataTable CreateInstance() {
  2002. return new TkanDataTable();
  2003. }
  2004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2006. internal void InitVars() {
  2007. this.columnid_Tkan = base.Columns["id_Tkan"];
  2008. this.columnTitle = base.Columns["Title"];
  2009. this.columnid_color = base.Columns["id_color"];
  2010. this.columnLength = base.Columns["Length"];
  2011. this.columnWidth = base.Columns["Width"];
  2012. this.columnComment = base.Columns["Comment"];
  2013. this.columnNamePhoto = base.Columns["NamePhoto"];
  2014. }
  2015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2017. private void InitClass() {
  2018. this.columnid_Tkan = new global::System.Data.DataColumn("id_Tkan", typeof(int), null, global::System.Data.MappingType.Element);
  2019. base.Columns.Add(this.columnid_Tkan);
  2020. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2021. base.Columns.Add(this.columnTitle);
  2022. this.columnid_color = new global::System.Data.DataColumn("id_color", typeof(int), null, global::System.Data.MappingType.Element);
  2023. base.Columns.Add(this.columnid_color);
  2024. this.columnLength = new global::System.Data.DataColumn("Length", typeof(int), null, global::System.Data.MappingType.Element);
  2025. base.Columns.Add(this.columnLength);
  2026. this.columnWidth = new global::System.Data.DataColumn("Width", typeof(int), null, global::System.Data.MappingType.Element);
  2027. base.Columns.Add(this.columnWidth);
  2028. this.columnComment = new global::System.Data.DataColumn("Comment", typeof(string), null, global::System.Data.MappingType.Element);
  2029. base.Columns.Add(this.columnComment);
  2030. this.columnNamePhoto = new global::System.Data.DataColumn("NamePhoto", typeof(string), null, global::System.Data.MappingType.Element);
  2031. base.Columns.Add(this.columnNamePhoto);
  2032. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2033. this.columnid_Tkan}, true));
  2034. this.columnid_Tkan.AutoIncrement = true;
  2035. this.columnid_Tkan.AutoIncrementSeed = -1;
  2036. this.columnid_Tkan.AutoIncrementStep = -1;
  2037. this.columnid_Tkan.AllowDBNull = false;
  2038. this.columnid_Tkan.ReadOnly = true;
  2039. this.columnid_Tkan.Unique = true;
  2040. this.columnTitle.MaxLength = 50;
  2041. this.columnComment.MaxLength = 50;
  2042. this.columnNamePhoto.MaxLength = 50;
  2043. }
  2044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2046. public TkanRow NewTkanRow() {
  2047. return ((TkanRow)(this.NewRow()));
  2048. }
  2049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2051. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2052. return new TkanRow(builder);
  2053. }
  2054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2056. protected override global::System.Type GetRowType() {
  2057. return typeof(TkanRow);
  2058. }
  2059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2061. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2062. base.OnRowChanged(e);
  2063. if ((this.TkanRowChanged != null)) {
  2064. this.TkanRowChanged(this, new TkanRowChangeEvent(((TkanRow)(e.Row)), e.Action));
  2065. }
  2066. }
  2067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2069. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2070. base.OnRowChanging(e);
  2071. if ((this.TkanRowChanging != null)) {
  2072. this.TkanRowChanging(this, new TkanRowChangeEvent(((TkanRow)(e.Row)), e.Action));
  2073. }
  2074. }
  2075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2077. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2078. base.OnRowDeleted(e);
  2079. if ((this.TkanRowDeleted != null)) {
  2080. this.TkanRowDeleted(this, new TkanRowChangeEvent(((TkanRow)(e.Row)), e.Action));
  2081. }
  2082. }
  2083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2085. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2086. base.OnRowDeleting(e);
  2087. if ((this.TkanRowDeleting != null)) {
  2088. this.TkanRowDeleting(this, new TkanRowChangeEvent(((TkanRow)(e.Row)), e.Action));
  2089. }
  2090. }
  2091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2093. public void RemoveTkanRow(TkanRow row) {
  2094. this.Rows.Remove(row);
  2095. }
  2096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2098. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2099. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2100. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2101. pracFabricaDataSet ds = new pracFabricaDataSet();
  2102. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2103. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2104. any1.MinOccurs = new decimal(0);
  2105. any1.MaxOccurs = decimal.MaxValue;
  2106. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2107. sequence.Items.Add(any1);
  2108. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2109. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2110. any2.MinOccurs = new decimal(1);
  2111. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2112. sequence.Items.Add(any2);
  2113. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2114. attribute1.Name = "namespace";
  2115. attribute1.FixedValue = ds.Namespace;
  2116. type.Attributes.Add(attribute1);
  2117. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2118. attribute2.Name = "tableTypeName";
  2119. attribute2.FixedValue = "TkanDataTable";
  2120. type.Attributes.Add(attribute2);
  2121. type.Particle = sequence;
  2122. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2123. if (xs.Contains(dsSchema.TargetNamespace)) {
  2124. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2125. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2126. try {
  2127. global::System.Xml.Schema.XmlSchema schema = null;
  2128. dsSchema.Write(s1);
  2129. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2130. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2131. s2.SetLength(0);
  2132. schema.Write(s2);
  2133. if ((s1.Length == s2.Length)) {
  2134. s1.Position = 0;
  2135. s2.Position = 0;
  2136. for (; ((s1.Position != s1.Length)
  2137. && (s1.ReadByte() == s2.ReadByte())); ) {
  2138. ;
  2139. }
  2140. if ((s1.Position == s1.Length)) {
  2141. return type;
  2142. }
  2143. }
  2144. }
  2145. }
  2146. finally {
  2147. if ((s1 != null)) {
  2148. s1.Close();
  2149. }
  2150. if ((s2 != null)) {
  2151. s2.Close();
  2152. }
  2153. }
  2154. }
  2155. xs.Add(dsSchema);
  2156. return type;
  2157. }
  2158. }
  2159. /// <summary>
  2160. ///Represents the strongly named DataTable class.
  2161. ///</summary>
  2162. [global::System.Serializable()]
  2163. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2164. public partial class UsersDataTable : global::System.Data.TypedTableBase<UsersRow> {
  2165. private global::System.Data.DataColumn columnid_User;
  2166. private global::System.Data.DataColumn columnlogin;
  2167. private global::System.Data.DataColumn columnpass;
  2168. private global::System.Data.DataColumn columnRole;
  2169. private global::System.Data.DataColumn columnSurname;
  2170. private global::System.Data.DataColumn columnName;
  2171. private global::System.Data.DataColumn columnOtch;
  2172. private global::System.Data.DataColumn columnPhone;
  2173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2175. public UsersDataTable() {
  2176. this.TableName = "Users";
  2177. this.BeginInit();
  2178. this.InitClass();
  2179. this.EndInit();
  2180. }
  2181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2183. internal UsersDataTable(global::System.Data.DataTable table) {
  2184. this.TableName = table.TableName;
  2185. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2186. this.CaseSensitive = table.CaseSensitive;
  2187. }
  2188. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2189. this.Locale = table.Locale;
  2190. }
  2191. if ((table.Namespace != table.DataSet.Namespace)) {
  2192. this.Namespace = table.Namespace;
  2193. }
  2194. this.Prefix = table.Prefix;
  2195. this.MinimumCapacity = table.MinimumCapacity;
  2196. }
  2197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2199. protected UsersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2200. base(info, context) {
  2201. this.InitVars();
  2202. }
  2203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2205. public global::System.Data.DataColumn id_UserColumn {
  2206. get {
  2207. return this.columnid_User;
  2208. }
  2209. }
  2210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2212. public global::System.Data.DataColumn loginColumn {
  2213. get {
  2214. return this.columnlogin;
  2215. }
  2216. }
  2217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2219. public global::System.Data.DataColumn passColumn {
  2220. get {
  2221. return this.columnpass;
  2222. }
  2223. }
  2224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2226. public global::System.Data.DataColumn RoleColumn {
  2227. get {
  2228. return this.columnRole;
  2229. }
  2230. }
  2231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2233. public global::System.Data.DataColumn SurnameColumn {
  2234. get {
  2235. return this.columnSurname;
  2236. }
  2237. }
  2238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2240. public global::System.Data.DataColumn NameColumn {
  2241. get {
  2242. return this.columnName;
  2243. }
  2244. }
  2245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2247. public global::System.Data.DataColumn OtchColumn {
  2248. get {
  2249. return this.columnOtch;
  2250. }
  2251. }
  2252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2254. public global::System.Data.DataColumn PhoneColumn {
  2255. get {
  2256. return this.columnPhone;
  2257. }
  2258. }
  2259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2261. [global::System.ComponentModel.Browsable(false)]
  2262. public int Count {
  2263. get {
  2264. return this.Rows.Count;
  2265. }
  2266. }
  2267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2269. public UsersRow this[int index] {
  2270. get {
  2271. return ((UsersRow)(this.Rows[index]));
  2272. }
  2273. }
  2274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2275. public event UsersRowChangeEventHandler UsersRowChanging;
  2276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2277. public event UsersRowChangeEventHandler UsersRowChanged;
  2278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2279. public event UsersRowChangeEventHandler UsersRowDeleting;
  2280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2281. public event UsersRowChangeEventHandler UsersRowDeleted;
  2282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2284. public void AddUsersRow(UsersRow row) {
  2285. this.Rows.Add(row);
  2286. }
  2287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2289. public UsersRow AddUsersRow(string login, string pass, RolesRow parentRolesRowByFK_Users_Roles, string Surname, string Name, string Otch, string Phone) {
  2290. UsersRow rowUsersRow = ((UsersRow)(this.NewRow()));
  2291. object[] columnValuesArray = new object[] {
  2292. null,
  2293. login,
  2294. pass,
  2295. null,
  2296. Surname,
  2297. Name,
  2298. Otch,
  2299. Phone};
  2300. if ((parentRolesRowByFK_Users_Roles != null)) {
  2301. columnValuesArray[3] = parentRolesRowByFK_Users_Roles[0];
  2302. }
  2303. rowUsersRow.ItemArray = columnValuesArray;
  2304. this.Rows.Add(rowUsersRow);
  2305. return rowUsersRow;
  2306. }
  2307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2309. public UsersRow FindByid_User(int id_User) {
  2310. return ((UsersRow)(this.Rows.Find(new object[] {
  2311. id_User})));
  2312. }
  2313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2315. public override global::System.Data.DataTable Clone() {
  2316. UsersDataTable cln = ((UsersDataTable)(base.Clone()));
  2317. cln.InitVars();
  2318. return cln;
  2319. }
  2320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2322. protected override global::System.Data.DataTable CreateInstance() {
  2323. return new UsersDataTable();
  2324. }
  2325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2327. internal void InitVars() {
  2328. this.columnid_User = base.Columns["id_User"];
  2329. this.columnlogin = base.Columns["login"];
  2330. this.columnpass = base.Columns["pass"];
  2331. this.columnRole = base.Columns["Role"];
  2332. this.columnSurname = base.Columns["Surname"];
  2333. this.columnName = base.Columns["Name"];
  2334. this.columnOtch = base.Columns["Otch"];
  2335. this.columnPhone = base.Columns["Phone"];
  2336. }
  2337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2339. private void InitClass() {
  2340. this.columnid_User = new global::System.Data.DataColumn("id_User", typeof(int), null, global::System.Data.MappingType.Element);
  2341. base.Columns.Add(this.columnid_User);
  2342. this.columnlogin = new global::System.Data.DataColumn("login", typeof(string), null, global::System.Data.MappingType.Element);
  2343. base.Columns.Add(this.columnlogin);
  2344. this.columnpass = new global::System.Data.DataColumn("pass", typeof(string), null, global::System.Data.MappingType.Element);
  2345. base.Columns.Add(this.columnpass);
  2346. this.columnRole = new global::System.Data.DataColumn("Role", typeof(int), null, global::System.Data.MappingType.Element);
  2347. base.Columns.Add(this.columnRole);
  2348. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  2349. base.Columns.Add(this.columnSurname);
  2350. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2351. base.Columns.Add(this.columnName);
  2352. this.columnOtch = new global::System.Data.DataColumn("Otch", typeof(string), null, global::System.Data.MappingType.Element);
  2353. base.Columns.Add(this.columnOtch);
  2354. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  2355. base.Columns.Add(this.columnPhone);
  2356. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2357. this.columnid_User}, true));
  2358. this.columnid_User.AutoIncrement = true;
  2359. this.columnid_User.AutoIncrementSeed = -1;
  2360. this.columnid_User.AutoIncrementStep = -1;
  2361. this.columnid_User.AllowDBNull = false;
  2362. this.columnid_User.ReadOnly = true;
  2363. this.columnid_User.Unique = true;
  2364. this.columnlogin.MaxLength = 50;
  2365. this.columnpass.MaxLength = 50;
  2366. this.columnSurname.MaxLength = 50;
  2367. this.columnName.MaxLength = 50;
  2368. this.columnOtch.MaxLength = 50;
  2369. this.columnPhone.MaxLength = 50;
  2370. }
  2371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2373. public UsersRow NewUsersRow() {
  2374. return ((UsersRow)(this.NewRow()));
  2375. }
  2376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2378. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2379. return new UsersRow(builder);
  2380. }
  2381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2383. protected override global::System.Type GetRowType() {
  2384. return typeof(UsersRow);
  2385. }
  2386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2388. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2389. base.OnRowChanged(e);
  2390. if ((this.UsersRowChanged != null)) {
  2391. this.UsersRowChanged(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  2392. }
  2393. }
  2394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2396. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2397. base.OnRowChanging(e);
  2398. if ((this.UsersRowChanging != null)) {
  2399. this.UsersRowChanging(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  2400. }
  2401. }
  2402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2404. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2405. base.OnRowDeleted(e);
  2406. if ((this.UsersRowDeleted != null)) {
  2407. this.UsersRowDeleted(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  2408. }
  2409. }
  2410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2412. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2413. base.OnRowDeleting(e);
  2414. if ((this.UsersRowDeleting != null)) {
  2415. this.UsersRowDeleting(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  2416. }
  2417. }
  2418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2420. public void RemoveUsersRow(UsersRow row) {
  2421. this.Rows.Remove(row);
  2422. }
  2423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2425. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2426. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2427. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2428. pracFabricaDataSet ds = new pracFabricaDataSet();
  2429. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2430. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2431. any1.MinOccurs = new decimal(0);
  2432. any1.MaxOccurs = decimal.MaxValue;
  2433. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2434. sequence.Items.Add(any1);
  2435. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2436. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2437. any2.MinOccurs = new decimal(1);
  2438. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2439. sequence.Items.Add(any2);
  2440. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2441. attribute1.Name = "namespace";
  2442. attribute1.FixedValue = ds.Namespace;
  2443. type.Attributes.Add(attribute1);
  2444. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2445. attribute2.Name = "tableTypeName";
  2446. attribute2.FixedValue = "UsersDataTable";
  2447. type.Attributes.Add(attribute2);
  2448. type.Particle = sequence;
  2449. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2450. if (xs.Contains(dsSchema.TargetNamespace)) {
  2451. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2452. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2453. try {
  2454. global::System.Xml.Schema.XmlSchema schema = null;
  2455. dsSchema.Write(s1);
  2456. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2457. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2458. s2.SetLength(0);
  2459. schema.Write(s2);
  2460. if ((s1.Length == s2.Length)) {
  2461. s1.Position = 0;
  2462. s2.Position = 0;
  2463. for (; ((s1.Position != s1.Length)
  2464. && (s1.ReadByte() == s2.ReadByte())); ) {
  2465. ;
  2466. }
  2467. if ((s1.Position == s1.Length)) {
  2468. return type;
  2469. }
  2470. }
  2471. }
  2472. }
  2473. finally {
  2474. if ((s1 != null)) {
  2475. s1.Close();
  2476. }
  2477. if ((s2 != null)) {
  2478. s2.Close();
  2479. }
  2480. }
  2481. }
  2482. xs.Add(dsSchema);
  2483. return type;
  2484. }
  2485. }
  2486. /// <summary>
  2487. ///Represents strongly named DataRow class.
  2488. ///</summary>
  2489. public partial class ColorRow : global::System.Data.DataRow {
  2490. private ColorDataTable tableColor;
  2491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2493. internal ColorRow(global::System.Data.DataRowBuilder rb) :
  2494. base(rb) {
  2495. this.tableColor = ((ColorDataTable)(this.Table));
  2496. }
  2497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2499. public int id_colors {
  2500. get {
  2501. return ((int)(this[this.tableColor.id_colorsColumn]));
  2502. }
  2503. set {
  2504. this[this.tableColor.id_colorsColumn] = value;
  2505. }
  2506. }
  2507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2509. public string Title {
  2510. get {
  2511. try {
  2512. return ((string)(this[this.tableColor.TitleColumn]));
  2513. }
  2514. catch (global::System.InvalidCastException e) {
  2515. throw new global::System.Data.StrongTypingException("The value for column \'Title\' in table \'Color\' is DBNull.", e);
  2516. }
  2517. }
  2518. set {
  2519. this[this.tableColor.TitleColumn] = value;
  2520. }
  2521. }
  2522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2524. public bool IsTitleNull() {
  2525. return this.IsNull(this.tableColor.TitleColumn);
  2526. }
  2527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2529. public void SetTitleNull() {
  2530. this[this.tableColor.TitleColumn] = global::System.Convert.DBNull;
  2531. }
  2532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2534. public TkanRow[] GetTkanRows() {
  2535. if ((this.Table.ChildRelations["FK_Tkan_Color"] == null)) {
  2536. return new TkanRow[0];
  2537. }
  2538. else {
  2539. return ((TkanRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Tkan_Color"])));
  2540. }
  2541. }
  2542. }
  2543. /// <summary>
  2544. ///Represents strongly named DataRow class.
  2545. ///</summary>
  2546. public partial class FurnituraRow : global::System.Data.DataRow {
  2547. private FurnituraDataTable tableFurnitura;
  2548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2550. internal FurnituraRow(global::System.Data.DataRowBuilder rb) :
  2551. base(rb) {
  2552. this.tableFurnitura = ((FurnituraDataTable)(this.Table));
  2553. }
  2554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2556. public int id_fur {
  2557. get {
  2558. return ((int)(this[this.tableFurnitura.id_furColumn]));
  2559. }
  2560. set {
  2561. this[this.tableFurnitura.id_furColumn] = value;
  2562. }
  2563. }
  2564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2566. public string namefur {
  2567. get {
  2568. try {
  2569. return ((string)(this[this.tableFurnitura.namefurColumn]));
  2570. }
  2571. catch (global::System.InvalidCastException e) {
  2572. throw new global::System.Data.StrongTypingException("The value for column \'namefur\' in table \'Furnitura\' is DBNull.", e);
  2573. }
  2574. }
  2575. set {
  2576. this[this.tableFurnitura.namefurColumn] = value;
  2577. }
  2578. }
  2579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2581. public string photo {
  2582. get {
  2583. try {
  2584. return ((string)(this[this.tableFurnitura.photoColumn]));
  2585. }
  2586. catch (global::System.InvalidCastException e) {
  2587. throw new global::System.Data.StrongTypingException("The value for column \'photo\' in table \'Furnitura\' is DBNull.", e);
  2588. }
  2589. }
  2590. set {
  2591. this[this.tableFurnitura.photoColumn] = value;
  2592. }
  2593. }
  2594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2596. public int countfur {
  2597. get {
  2598. try {
  2599. return ((int)(this[this.tableFurnitura.countfurColumn]));
  2600. }
  2601. catch (global::System.InvalidCastException e) {
  2602. throw new global::System.Data.StrongTypingException("The value for column \'countfur\' in table \'Furnitura\' is DBNull.", e);
  2603. }
  2604. }
  2605. set {
  2606. this[this.tableFurnitura.countfurColumn] = value;
  2607. }
  2608. }
  2609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2611. public bool IsnamefurNull() {
  2612. return this.IsNull(this.tableFurnitura.namefurColumn);
  2613. }
  2614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2616. public void SetnamefurNull() {
  2617. this[this.tableFurnitura.namefurColumn] = global::System.Convert.DBNull;
  2618. }
  2619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2621. public bool IsphotoNull() {
  2622. return this.IsNull(this.tableFurnitura.photoColumn);
  2623. }
  2624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2626. public void SetphotoNull() {
  2627. this[this.tableFurnitura.photoColumn] = global::System.Convert.DBNull;
  2628. }
  2629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2631. public bool IscountfurNull() {
  2632. return this.IsNull(this.tableFurnitura.countfurColumn);
  2633. }
  2634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2636. public void SetcountfurNull() {
  2637. this[this.tableFurnitura.countfurColumn] = global::System.Convert.DBNull;
  2638. }
  2639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2641. public OrdersRow[] GetOrdersRows() {
  2642. if ((this.Table.ChildRelations["FK_Orders_Furnitura"] == null)) {
  2643. return new OrdersRow[0];
  2644. }
  2645. else {
  2646. return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Furnitura"])));
  2647. }
  2648. }
  2649. }
  2650. /// <summary>
  2651. ///Represents strongly named DataRow class.
  2652. ///</summary>
  2653. public partial class IzdelieRow : global::System.Data.DataRow {
  2654. private IzdelieDataTable tableIzdelie;
  2655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2657. internal IzdelieRow(global::System.Data.DataRowBuilder rb) :
  2658. base(rb) {
  2659. this.tableIzdelie = ((IzdelieDataTable)(this.Table));
  2660. }
  2661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2663. public int id_izd {
  2664. get {
  2665. return ((int)(this[this.tableIzdelie.id_izdColumn]));
  2666. }
  2667. set {
  2668. this[this.tableIzdelie.id_izdColumn] = value;
  2669. }
  2670. }
  2671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2673. public string name_izd {
  2674. get {
  2675. try {
  2676. return ((string)(this[this.tableIzdelie.name_izdColumn]));
  2677. }
  2678. catch (global::System.InvalidCastException e) {
  2679. throw new global::System.Data.StrongTypingException("The value for column \'name_izd\' in table \'Izdelie\' is DBNull.", e);
  2680. }
  2681. }
  2682. set {
  2683. this[this.tableIzdelie.name_izdColumn] = value;
  2684. }
  2685. }
  2686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2688. public int length {
  2689. get {
  2690. try {
  2691. return ((int)(this[this.tableIzdelie.lengthColumn]));
  2692. }
  2693. catch (global::System.InvalidCastException e) {
  2694. throw new global::System.Data.StrongTypingException("The value for column \'length\' in table \'Izdelie\' is DBNull.", e);
  2695. }
  2696. }
  2697. set {
  2698. this[this.tableIzdelie.lengthColumn] = value;
  2699. }
  2700. }
  2701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2703. public int width {
  2704. get {
  2705. try {
  2706. return ((int)(this[this.tableIzdelie.widthColumn]));
  2707. }
  2708. catch (global::System.InvalidCastException e) {
  2709. throw new global::System.Data.StrongTypingException("The value for column \'width\' in table \'Izdelie\' is DBNull.", e);
  2710. }
  2711. }
  2712. set {
  2713. this[this.tableIzdelie.widthColumn] = value;
  2714. }
  2715. }
  2716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2718. public bool Isname_izdNull() {
  2719. return this.IsNull(this.tableIzdelie.name_izdColumn);
  2720. }
  2721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2723. public void Setname_izdNull() {
  2724. this[this.tableIzdelie.name_izdColumn] = global::System.Convert.DBNull;
  2725. }
  2726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2728. public bool IslengthNull() {
  2729. return this.IsNull(this.tableIzdelie.lengthColumn);
  2730. }
  2731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2733. public void SetlengthNull() {
  2734. this[this.tableIzdelie.lengthColumn] = global::System.Convert.DBNull;
  2735. }
  2736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2738. public bool IswidthNull() {
  2739. return this.IsNull(this.tableIzdelie.widthColumn);
  2740. }
  2741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2743. public void SetwidthNull() {
  2744. this[this.tableIzdelie.widthColumn] = global::System.Convert.DBNull;
  2745. }
  2746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2748. public OrdersRow[] GetOrdersRows() {
  2749. if ((this.Table.ChildRelations["FK_Orders_Izdelie"] == null)) {
  2750. return new OrdersRow[0];
  2751. }
  2752. else {
  2753. return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Izdelie"])));
  2754. }
  2755. }
  2756. }
  2757. /// <summary>
  2758. ///Represents strongly named DataRow class.
  2759. ///</summary>
  2760. public partial class OrdersRow : global::System.Data.DataRow {
  2761. private OrdersDataTable tableOrders;
  2762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2764. internal OrdersRow(global::System.Data.DataRowBuilder rb) :
  2765. base(rb) {
  2766. this.tableOrders = ((OrdersDataTable)(this.Table));
  2767. }
  2768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2770. public int id_order {
  2771. get {
  2772. return ((int)(this[this.tableOrders.id_orderColumn]));
  2773. }
  2774. set {
  2775. this[this.tableOrders.id_orderColumn] = value;
  2776. }
  2777. }
  2778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2780. public int id_izd {
  2781. get {
  2782. try {
  2783. return ((int)(this[this.tableOrders.id_izdColumn]));
  2784. }
  2785. catch (global::System.InvalidCastException e) {
  2786. throw new global::System.Data.StrongTypingException("The value for column \'id_izd\' in table \'Orders\' is DBNull.", e);
  2787. }
  2788. }
  2789. set {
  2790. this[this.tableOrders.id_izdColumn] = value;
  2791. }
  2792. }
  2793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2795. public int id_zak {
  2796. get {
  2797. try {
  2798. return ((int)(this[this.tableOrders.id_zakColumn]));
  2799. }
  2800. catch (global::System.InvalidCastException e) {
  2801. throw new global::System.Data.StrongTypingException("The value for column \'id_zak\' in table \'Orders\' is DBNull.", e);
  2802. }
  2803. }
  2804. set {
  2805. this[this.tableOrders.id_zakColumn] = value;
  2806. }
  2807. }
  2808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2810. public int id_men {
  2811. get {
  2812. try {
  2813. return ((int)(this[this.tableOrders.id_menColumn]));
  2814. }
  2815. catch (global::System.InvalidCastException e) {
  2816. throw new global::System.Data.StrongTypingException("The value for column \'id_men\' in table \'Orders\' is DBNull.", e);
  2817. }
  2818. }
  2819. set {
  2820. this[this.tableOrders.id_menColumn] = value;
  2821. }
  2822. }
  2823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2825. public int id_tkan {
  2826. get {
  2827. try {
  2828. return ((int)(this[this.tableOrders.id_tkanColumn]));
  2829. }
  2830. catch (global::System.InvalidCastException e) {
  2831. throw new global::System.Data.StrongTypingException("The value for column \'id_tkan\' in table \'Orders\' is DBNull.", e);
  2832. }
  2833. }
  2834. set {
  2835. this[this.tableOrders.id_tkanColumn] = value;
  2836. }
  2837. }
  2838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2840. public int id_fur {
  2841. get {
  2842. try {
  2843. return ((int)(this[this.tableOrders.id_furColumn]));
  2844. }
  2845. catch (global::System.InvalidCastException e) {
  2846. throw new global::System.Data.StrongTypingException("The value for column \'id_fur\' in table \'Orders\' is DBNull.", e);
  2847. }
  2848. }
  2849. set {
  2850. this[this.tableOrders.id_furColumn] = value;
  2851. }
  2852. }
  2853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2855. public int CountFur {
  2856. get {
  2857. try {
  2858. return ((int)(this[this.tableOrders.CountFurColumn]));
  2859. }
  2860. catch (global::System.InvalidCastException e) {
  2861. throw new global::System.Data.StrongTypingException("The value for column \'CountFur\' in table \'Orders\' is DBNull.", e);
  2862. }
  2863. }
  2864. set {
  2865. this[this.tableOrders.CountFurColumn] = value;
  2866. }
  2867. }
  2868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2870. public int CountIzd {
  2871. get {
  2872. try {
  2873. return ((int)(this[this.tableOrders.CountIzdColumn]));
  2874. }
  2875. catch (global::System.InvalidCastException e) {
  2876. throw new global::System.Data.StrongTypingException("The value for column \'CountIzd\' in table \'Orders\' is DBNull.", e);
  2877. }
  2878. }
  2879. set {
  2880. this[this.tableOrders.CountIzdColumn] = value;
  2881. }
  2882. }
  2883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2885. public FurnituraRow FurnituraRow {
  2886. get {
  2887. return ((FurnituraRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Furnitura"])));
  2888. }
  2889. set {
  2890. this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Furnitura"]);
  2891. }
  2892. }
  2893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2895. public IzdelieRow IzdelieRow {
  2896. get {
  2897. return ((IzdelieRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Izdelie"])));
  2898. }
  2899. set {
  2900. this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Izdelie"]);
  2901. }
  2902. }
  2903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2905. public TkanRow TkanRow {
  2906. get {
  2907. return ((TkanRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Tkan"])));
  2908. }
  2909. set {
  2910. this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Tkan"]);
  2911. }
  2912. }
  2913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2915. public UsersRow UsersRowByFK_Orders_Users1 {
  2916. get {
  2917. return ((UsersRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Users1"])));
  2918. }
  2919. set {
  2920. this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Users1"]);
  2921. }
  2922. }
  2923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2925. public UsersRow UsersRowByFK_Orders_Users2 {
  2926. get {
  2927. return ((UsersRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Users2"])));
  2928. }
  2929. set {
  2930. this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Users2"]);
  2931. }
  2932. }
  2933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2935. public bool Isid_izdNull() {
  2936. return this.IsNull(this.tableOrders.id_izdColumn);
  2937. }
  2938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2940. public void Setid_izdNull() {
  2941. this[this.tableOrders.id_izdColumn] = global::System.Convert.DBNull;
  2942. }
  2943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2945. public bool Isid_zakNull() {
  2946. return this.IsNull(this.tableOrders.id_zakColumn);
  2947. }
  2948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2950. public void Setid_zakNull() {
  2951. this[this.tableOrders.id_zakColumn] = global::System.Convert.DBNull;
  2952. }
  2953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2955. public bool Isid_menNull() {
  2956. return this.IsNull(this.tableOrders.id_menColumn);
  2957. }
  2958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2960. public void Setid_menNull() {
  2961. this[this.tableOrders.id_menColumn] = global::System.Convert.DBNull;
  2962. }
  2963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2965. public bool Isid_tkanNull() {
  2966. return this.IsNull(this.tableOrders.id_tkanColumn);
  2967. }
  2968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2970. public void Setid_tkanNull() {
  2971. this[this.tableOrders.id_tkanColumn] = global::System.Convert.DBNull;
  2972. }
  2973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2975. public bool Isid_furNull() {
  2976. return this.IsNull(this.tableOrders.id_furColumn);
  2977. }
  2978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2980. public void Setid_furNull() {
  2981. this[this.tableOrders.id_furColumn] = global::System.Convert.DBNull;
  2982. }
  2983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2985. public bool IsCountFurNull() {
  2986. return this.IsNull(this.tableOrders.CountFurColumn);
  2987. }
  2988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2990. public void SetCountFurNull() {
  2991. this[this.tableOrders.CountFurColumn] = global::System.Convert.DBNull;
  2992. }
  2993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2995. public bool IsCountIzdNull() {
  2996. return this.IsNull(this.tableOrders.CountIzdColumn);
  2997. }
  2998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3000. public void SetCountIzdNull() {
  3001. this[this.tableOrders.CountIzdColumn] = global::System.Convert.DBNull;
  3002. }
  3003. }
  3004. /// <summary>
  3005. ///Represents strongly named DataRow class.
  3006. ///</summary>
  3007. public partial class RolesRow : global::System.Data.DataRow {
  3008. private RolesDataTable tableRoles;
  3009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3011. internal RolesRow(global::System.Data.DataRowBuilder rb) :
  3012. base(rb) {
  3013. this.tableRoles = ((RolesDataTable)(this.Table));
  3014. }
  3015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3017. public int id_Roles {
  3018. get {
  3019. return ((int)(this[this.tableRoles.id_RolesColumn]));
  3020. }
  3021. set {
  3022. this[this.tableRoles.id_RolesColumn] = value;
  3023. }
  3024. }
  3025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3027. public string Title {
  3028. get {
  3029. try {
  3030. return ((string)(this[this.tableRoles.TitleColumn]));
  3031. }
  3032. catch (global::System.InvalidCastException e) {
  3033. throw new global::System.Data.StrongTypingException("The value for column \'Title\' in table \'Roles\' is DBNull.", e);
  3034. }
  3035. }
  3036. set {
  3037. this[this.tableRoles.TitleColumn] = value;
  3038. }
  3039. }
  3040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3042. public bool IsTitleNull() {
  3043. return this.IsNull(this.tableRoles.TitleColumn);
  3044. }
  3045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3047. public void SetTitleNull() {
  3048. this[this.tableRoles.TitleColumn] = global::System.Convert.DBNull;
  3049. }
  3050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3052. public UsersRow[] GetUsersRows() {
  3053. if ((this.Table.ChildRelations["FK_Users_Roles"] == null)) {
  3054. return new UsersRow[0];
  3055. }
  3056. else {
  3057. return ((UsersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Users_Roles"])));
  3058. }
  3059. }
  3060. }
  3061. /// <summary>
  3062. ///Represents strongly named DataRow class.
  3063. ///</summary>
  3064. public partial class TkanRow : global::System.Data.DataRow {
  3065. private TkanDataTable tableTkan;
  3066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3068. internal TkanRow(global::System.Data.DataRowBuilder rb) :
  3069. base(rb) {
  3070. this.tableTkan = ((TkanDataTable)(this.Table));
  3071. }
  3072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3074. public int id_Tkan {
  3075. get {
  3076. return ((int)(this[this.tableTkan.id_TkanColumn]));
  3077. }
  3078. set {
  3079. this[this.tableTkan.id_TkanColumn] = value;
  3080. }
  3081. }
  3082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3084. public string Title {
  3085. get {
  3086. try {
  3087. return ((string)(this[this.tableTkan.TitleColumn]));
  3088. }
  3089. catch (global::System.InvalidCastException e) {
  3090. throw new global::System.Data.StrongTypingException("The value for column \'Title\' in table \'Tkan\' is DBNull.", e);
  3091. }
  3092. }
  3093. set {
  3094. this[this.tableTkan.TitleColumn] = value;
  3095. }
  3096. }
  3097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3099. public int id_color {
  3100. get {
  3101. try {
  3102. return ((int)(this[this.tableTkan.id_colorColumn]));
  3103. }
  3104. catch (global::System.InvalidCastException e) {
  3105. throw new global::System.Data.StrongTypingException("The value for column \'id_color\' in table \'Tkan\' is DBNull.", e);
  3106. }
  3107. }
  3108. set {
  3109. this[this.tableTkan.id_colorColumn] = value;
  3110. }
  3111. }
  3112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3114. public int Length {
  3115. get {
  3116. try {
  3117. return ((int)(this[this.tableTkan.LengthColumn]));
  3118. }
  3119. catch (global::System.InvalidCastException e) {
  3120. throw new global::System.Data.StrongTypingException("The value for column \'Length\' in table \'Tkan\' is DBNull.", e);
  3121. }
  3122. }
  3123. set {
  3124. this[this.tableTkan.LengthColumn] = value;
  3125. }
  3126. }
  3127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3129. public int Width {
  3130. get {
  3131. try {
  3132. return ((int)(this[this.tableTkan.WidthColumn]));
  3133. }
  3134. catch (global::System.InvalidCastException e) {
  3135. throw new global::System.Data.StrongTypingException("The value for column \'Width\' in table \'Tkan\' is DBNull.", e);
  3136. }
  3137. }
  3138. set {
  3139. this[this.tableTkan.WidthColumn] = value;
  3140. }
  3141. }
  3142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3144. public string Comment {
  3145. get {
  3146. try {
  3147. return ((string)(this[this.tableTkan.CommentColumn]));
  3148. }
  3149. catch (global::System.InvalidCastException e) {
  3150. throw new global::System.Data.StrongTypingException("The value for column \'Comment\' in table \'Tkan\' is DBNull.", e);
  3151. }
  3152. }
  3153. set {
  3154. this[this.tableTkan.CommentColumn] = value;
  3155. }
  3156. }
  3157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3159. public string NamePhoto {
  3160. get {
  3161. try {
  3162. return ((string)(this[this.tableTkan.NamePhotoColumn]));
  3163. }
  3164. catch (global::System.InvalidCastException e) {
  3165. throw new global::System.Data.StrongTypingException("The value for column \'NamePhoto\' in table \'Tkan\' is DBNull.", e);
  3166. }
  3167. }
  3168. set {
  3169. this[this.tableTkan.NamePhotoColumn] = value;
  3170. }
  3171. }
  3172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3174. public ColorRow ColorRow {
  3175. get {
  3176. return ((ColorRow)(this.GetParentRow(this.Table.ParentRelations["FK_Tkan_Color"])));
  3177. }
  3178. set {
  3179. this.SetParentRow(value, this.Table.ParentRelations["FK_Tkan_Color"]);
  3180. }
  3181. }
  3182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3184. public bool IsTitleNull() {
  3185. return this.IsNull(this.tableTkan.TitleColumn);
  3186. }
  3187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3189. public void SetTitleNull() {
  3190. this[this.tableTkan.TitleColumn] = global::System.Convert.DBNull;
  3191. }
  3192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3194. public bool Isid_colorNull() {
  3195. return this.IsNull(this.tableTkan.id_colorColumn);
  3196. }
  3197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3199. public void Setid_colorNull() {
  3200. this[this.tableTkan.id_colorColumn] = global::System.Convert.DBNull;
  3201. }
  3202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3204. public bool IsLengthNull() {
  3205. return this.IsNull(this.tableTkan.LengthColumn);
  3206. }
  3207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3209. public void SetLengthNull() {
  3210. this[this.tableTkan.LengthColumn] = global::System.Convert.DBNull;
  3211. }
  3212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3214. public bool IsWidthNull() {
  3215. return this.IsNull(this.tableTkan.WidthColumn);
  3216. }
  3217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3219. public void SetWidthNull() {
  3220. this[this.tableTkan.WidthColumn] = global::System.Convert.DBNull;
  3221. }
  3222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3224. public bool IsCommentNull() {
  3225. return this.IsNull(this.tableTkan.CommentColumn);
  3226. }
  3227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3229. public void SetCommentNull() {
  3230. this[this.tableTkan.CommentColumn] = global::System.Convert.DBNull;
  3231. }
  3232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3234. public bool IsNamePhotoNull() {
  3235. return this.IsNull(this.tableTkan.NamePhotoColumn);
  3236. }
  3237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3239. public void SetNamePhotoNull() {
  3240. this[this.tableTkan.NamePhotoColumn] = global::System.Convert.DBNull;
  3241. }
  3242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3244. public OrdersRow[] GetOrdersRows() {
  3245. if ((this.Table.ChildRelations["FK_Orders_Tkan"] == null)) {
  3246. return new OrdersRow[0];
  3247. }
  3248. else {
  3249. return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Tkan"])));
  3250. }
  3251. }
  3252. }
  3253. /// <summary>
  3254. ///Represents strongly named DataRow class.
  3255. ///</summary>
  3256. public partial class UsersRow : global::System.Data.DataRow {
  3257. private UsersDataTable tableUsers;
  3258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3260. internal UsersRow(global::System.Data.DataRowBuilder rb) :
  3261. base(rb) {
  3262. this.tableUsers = ((UsersDataTable)(this.Table));
  3263. }
  3264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3266. public int id_User {
  3267. get {
  3268. return ((int)(this[this.tableUsers.id_UserColumn]));
  3269. }
  3270. set {
  3271. this[this.tableUsers.id_UserColumn] = value;
  3272. }
  3273. }
  3274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3276. public string login {
  3277. get {
  3278. try {
  3279. return ((string)(this[this.tableUsers.loginColumn]));
  3280. }
  3281. catch (global::System.InvalidCastException e) {
  3282. throw new global::System.Data.StrongTypingException("The value for column \'login\' in table \'Users\' is DBNull.", e);
  3283. }
  3284. }
  3285. set {
  3286. this[this.tableUsers.loginColumn] = value;
  3287. }
  3288. }
  3289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3291. public string pass {
  3292. get {
  3293. try {
  3294. return ((string)(this[this.tableUsers.passColumn]));
  3295. }
  3296. catch (global::System.InvalidCastException e) {
  3297. throw new global::System.Data.StrongTypingException("The value for column \'pass\' in table \'Users\' is DBNull.", e);
  3298. }
  3299. }
  3300. set {
  3301. this[this.tableUsers.passColumn] = value;
  3302. }
  3303. }
  3304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3306. public int Role {
  3307. get {
  3308. try {
  3309. return ((int)(this[this.tableUsers.RoleColumn]));
  3310. }
  3311. catch (global::System.InvalidCastException e) {
  3312. throw new global::System.Data.StrongTypingException("The value for column \'Role\' in table \'Users\' is DBNull.", e);
  3313. }
  3314. }
  3315. set {
  3316. this[this.tableUsers.RoleColumn] = value;
  3317. }
  3318. }
  3319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3321. public string Surname {
  3322. get {
  3323. try {
  3324. return ((string)(this[this.tableUsers.SurnameColumn]));
  3325. }
  3326. catch (global::System.InvalidCastException e) {
  3327. throw new global::System.Data.StrongTypingException("The value for column \'Surname\' in table \'Users\' is DBNull.", e);
  3328. }
  3329. }
  3330. set {
  3331. this[this.tableUsers.SurnameColumn] = value;
  3332. }
  3333. }
  3334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3336. public string Name {
  3337. get {
  3338. try {
  3339. return ((string)(this[this.tableUsers.NameColumn]));
  3340. }
  3341. catch (global::System.InvalidCastException e) {
  3342. throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'Users\' is DBNull.", e);
  3343. }
  3344. }
  3345. set {
  3346. this[this.tableUsers.NameColumn] = value;
  3347. }
  3348. }
  3349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3351. public string Otch {
  3352. get {
  3353. try {
  3354. return ((string)(this[this.tableUsers.OtchColumn]));
  3355. }
  3356. catch (global::System.InvalidCastException e) {
  3357. throw new global::System.Data.StrongTypingException("The value for column \'Otch\' in table \'Users\' is DBNull.", e);
  3358. }
  3359. }
  3360. set {
  3361. this[this.tableUsers.OtchColumn] = value;
  3362. }
  3363. }
  3364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3366. public string Phone {
  3367. get {
  3368. try {
  3369. return ((string)(this[this.tableUsers.PhoneColumn]));
  3370. }
  3371. catch (global::System.InvalidCastException e) {
  3372. throw new global::System.Data.StrongTypingException("The value for column \'Phone\' in table \'Users\' is DBNull.", e);
  3373. }
  3374. }
  3375. set {
  3376. this[this.tableUsers.PhoneColumn] = value;
  3377. }
  3378. }
  3379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3381. public RolesRow RolesRow {
  3382. get {
  3383. return ((RolesRow)(this.GetParentRow(this.Table.ParentRelations["FK_Users_Roles"])));
  3384. }
  3385. set {
  3386. this.SetParentRow(value, this.Table.ParentRelations["FK_Users_Roles"]);
  3387. }
  3388. }
  3389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3391. public bool IsloginNull() {
  3392. return this.IsNull(this.tableUsers.loginColumn);
  3393. }
  3394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3396. public void SetloginNull() {
  3397. this[this.tableUsers.loginColumn] = global::System.Convert.DBNull;
  3398. }
  3399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3401. public bool IspassNull() {
  3402. return this.IsNull(this.tableUsers.passColumn);
  3403. }
  3404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3406. public void SetpassNull() {
  3407. this[this.tableUsers.passColumn] = global::System.Convert.DBNull;
  3408. }
  3409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3411. public bool IsRoleNull() {
  3412. return this.IsNull(this.tableUsers.RoleColumn);
  3413. }
  3414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3416. public void SetRoleNull() {
  3417. this[this.tableUsers.RoleColumn] = global::System.Convert.DBNull;
  3418. }
  3419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3421. public bool IsSurnameNull() {
  3422. return this.IsNull(this.tableUsers.SurnameColumn);
  3423. }
  3424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3426. public void SetSurnameNull() {
  3427. this[this.tableUsers.SurnameColumn] = global::System.Convert.DBNull;
  3428. }
  3429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3431. public bool IsNameNull() {
  3432. return this.IsNull(this.tableUsers.NameColumn);
  3433. }
  3434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3436. public void SetNameNull() {
  3437. this[this.tableUsers.NameColumn] = global::System.Convert.DBNull;
  3438. }
  3439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3441. public bool IsOtchNull() {
  3442. return this.IsNull(this.tableUsers.OtchColumn);
  3443. }
  3444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3446. public void SetOtchNull() {
  3447. this[this.tableUsers.OtchColumn] = global::System.Convert.DBNull;
  3448. }
  3449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3451. public bool IsPhoneNull() {
  3452. return this.IsNull(this.tableUsers.PhoneColumn);
  3453. }
  3454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3456. public void SetPhoneNull() {
  3457. this[this.tableUsers.PhoneColumn] = global::System.Convert.DBNull;
  3458. }
  3459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3461. public OrdersRow[] GetOrdersRowsByFK_Orders_Users1() {
  3462. if ((this.Table.ChildRelations["FK_Orders_Users1"] == null)) {
  3463. return new OrdersRow[0];
  3464. }
  3465. else {
  3466. return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Users1"])));
  3467. }
  3468. }
  3469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3471. public OrdersRow[] GetOrdersRowsByFK_Orders_Users2() {
  3472. if ((this.Table.ChildRelations["FK_Orders_Users2"] == null)) {
  3473. return new OrdersRow[0];
  3474. }
  3475. else {
  3476. return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Users2"])));
  3477. }
  3478. }
  3479. }
  3480. /// <summary>
  3481. ///Row event argument class
  3482. ///</summary>
  3483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3484. public class ColorRowChangeEvent : global::System.EventArgs {
  3485. private ColorRow eventRow;
  3486. private global::System.Data.DataRowAction eventAction;
  3487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3489. public ColorRowChangeEvent(ColorRow row, global::System.Data.DataRowAction action) {
  3490. this.eventRow = row;
  3491. this.eventAction = action;
  3492. }
  3493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3495. public ColorRow Row {
  3496. get {
  3497. return this.eventRow;
  3498. }
  3499. }
  3500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3502. public global::System.Data.DataRowAction Action {
  3503. get {
  3504. return this.eventAction;
  3505. }
  3506. }
  3507. }
  3508. /// <summary>
  3509. ///Row event argument class
  3510. ///</summary>
  3511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3512. public class FurnituraRowChangeEvent : global::System.EventArgs {
  3513. private FurnituraRow eventRow;
  3514. private global::System.Data.DataRowAction eventAction;
  3515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3517. public FurnituraRowChangeEvent(FurnituraRow row, global::System.Data.DataRowAction action) {
  3518. this.eventRow = row;
  3519. this.eventAction = action;
  3520. }
  3521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3523. public FurnituraRow Row {
  3524. get {
  3525. return this.eventRow;
  3526. }
  3527. }
  3528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3530. public global::System.Data.DataRowAction Action {
  3531. get {
  3532. return this.eventAction;
  3533. }
  3534. }
  3535. }
  3536. /// <summary>
  3537. ///Row event argument class
  3538. ///</summary>
  3539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3540. public class IzdelieRowChangeEvent : global::System.EventArgs {
  3541. private IzdelieRow eventRow;
  3542. private global::System.Data.DataRowAction eventAction;
  3543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3545. public IzdelieRowChangeEvent(IzdelieRow row, global::System.Data.DataRowAction action) {
  3546. this.eventRow = row;
  3547. this.eventAction = action;
  3548. }
  3549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3551. public IzdelieRow Row {
  3552. get {
  3553. return this.eventRow;
  3554. }
  3555. }
  3556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3558. public global::System.Data.DataRowAction Action {
  3559. get {
  3560. return this.eventAction;
  3561. }
  3562. }
  3563. }
  3564. /// <summary>
  3565. ///Row event argument class
  3566. ///</summary>
  3567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3568. public class OrdersRowChangeEvent : global::System.EventArgs {
  3569. private OrdersRow eventRow;
  3570. private global::System.Data.DataRowAction eventAction;
  3571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3573. public OrdersRowChangeEvent(OrdersRow row, global::System.Data.DataRowAction action) {
  3574. this.eventRow = row;
  3575. this.eventAction = action;
  3576. }
  3577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3579. public OrdersRow Row {
  3580. get {
  3581. return this.eventRow;
  3582. }
  3583. }
  3584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3586. public global::System.Data.DataRowAction Action {
  3587. get {
  3588. return this.eventAction;
  3589. }
  3590. }
  3591. }
  3592. /// <summary>
  3593. ///Row event argument class
  3594. ///</summary>
  3595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3596. public class RolesRowChangeEvent : global::System.EventArgs {
  3597. private RolesRow eventRow;
  3598. private global::System.Data.DataRowAction eventAction;
  3599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3601. public RolesRowChangeEvent(RolesRow row, global::System.Data.DataRowAction action) {
  3602. this.eventRow = row;
  3603. this.eventAction = action;
  3604. }
  3605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3607. public RolesRow Row {
  3608. get {
  3609. return this.eventRow;
  3610. }
  3611. }
  3612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3614. public global::System.Data.DataRowAction Action {
  3615. get {
  3616. return this.eventAction;
  3617. }
  3618. }
  3619. }
  3620. /// <summary>
  3621. ///Row event argument class
  3622. ///</summary>
  3623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3624. public class TkanRowChangeEvent : global::System.EventArgs {
  3625. private TkanRow eventRow;
  3626. private global::System.Data.DataRowAction eventAction;
  3627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3629. public TkanRowChangeEvent(TkanRow row, global::System.Data.DataRowAction action) {
  3630. this.eventRow = row;
  3631. this.eventAction = action;
  3632. }
  3633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3635. public TkanRow Row {
  3636. get {
  3637. return this.eventRow;
  3638. }
  3639. }
  3640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3642. public global::System.Data.DataRowAction Action {
  3643. get {
  3644. return this.eventAction;
  3645. }
  3646. }
  3647. }
  3648. /// <summary>
  3649. ///Row event argument class
  3650. ///</summary>
  3651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3652. public class UsersRowChangeEvent : global::System.EventArgs {
  3653. private UsersRow eventRow;
  3654. private global::System.Data.DataRowAction eventAction;
  3655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3657. public UsersRowChangeEvent(UsersRow row, global::System.Data.DataRowAction action) {
  3658. this.eventRow = row;
  3659. this.eventAction = action;
  3660. }
  3661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3663. public UsersRow Row {
  3664. get {
  3665. return this.eventRow;
  3666. }
  3667. }
  3668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3670. public global::System.Data.DataRowAction Action {
  3671. get {
  3672. return this.eventAction;
  3673. }
  3674. }
  3675. }
  3676. }
  3677. }
  3678. namespace СУБД_Швейная_фабрика.pracFabricaDataSetTableAdapters {
  3679. /// <summary>
  3680. ///Represents the connection and commands used to retrieve and save data.
  3681. ///</summary>
  3682. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3683. [global::System.ComponentModel.ToolboxItem(true)]
  3684. [global::System.ComponentModel.DataObjectAttribute(true)]
  3685. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3686. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3687. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3688. public partial class ColorTableAdapter : global::System.ComponentModel.Component {
  3689. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3690. private global::System.Data.SqlClient.SqlConnection _connection;
  3691. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3692. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3693. private bool _clearBeforeFill;
  3694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3696. public ColorTableAdapter() {
  3697. this.ClearBeforeFill = true;
  3698. }
  3699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3701. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3702. get {
  3703. if ((this._adapter == null)) {
  3704. this.InitAdapter();
  3705. }
  3706. return this._adapter;
  3707. }
  3708. }
  3709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3711. internal global::System.Data.SqlClient.SqlConnection Connection {
  3712. get {
  3713. if ((this._connection == null)) {
  3714. this.InitConnection();
  3715. }
  3716. return this._connection;
  3717. }
  3718. set {
  3719. this._connection = value;
  3720. if ((this.Adapter.InsertCommand != null)) {
  3721. this.Adapter.InsertCommand.Connection = value;
  3722. }
  3723. if ((this.Adapter.DeleteCommand != null)) {
  3724. this.Adapter.DeleteCommand.Connection = value;
  3725. }
  3726. if ((this.Adapter.UpdateCommand != null)) {
  3727. this.Adapter.UpdateCommand.Connection = value;
  3728. }
  3729. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3730. if ((this.CommandCollection[i] != null)) {
  3731. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3732. }
  3733. }
  3734. }
  3735. }
  3736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3738. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3739. get {
  3740. return this._transaction;
  3741. }
  3742. set {
  3743. this._transaction = value;
  3744. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3745. this.CommandCollection[i].Transaction = this._transaction;
  3746. }
  3747. if (((this.Adapter != null)
  3748. && (this.Adapter.DeleteCommand != null))) {
  3749. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3750. }
  3751. if (((this.Adapter != null)
  3752. && (this.Adapter.InsertCommand != null))) {
  3753. this.Adapter.InsertCommand.Transaction = this._transaction;
  3754. }
  3755. if (((this.Adapter != null)
  3756. && (this.Adapter.UpdateCommand != null))) {
  3757. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3758. }
  3759. }
  3760. }
  3761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3763. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3764. get {
  3765. if ((this._commandCollection == null)) {
  3766. this.InitCommandCollection();
  3767. }
  3768. return this._commandCollection;
  3769. }
  3770. }
  3771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3773. public bool ClearBeforeFill {
  3774. get {
  3775. return this._clearBeforeFill;
  3776. }
  3777. set {
  3778. this._clearBeforeFill = value;
  3779. }
  3780. }
  3781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3783. private void InitAdapter() {
  3784. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3785. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3786. tableMapping.SourceTable = "Table";
  3787. tableMapping.DataSetTable = "Color";
  3788. tableMapping.ColumnMappings.Add("id_colors", "id_colors");
  3789. tableMapping.ColumnMappings.Add("Title", "Title");
  3790. this._adapter.TableMappings.Add(tableMapping);
  3791. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3792. this._adapter.DeleteCommand.Connection = this.Connection;
  3793. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Color] WHERE (([id_colors] = @Original_id_colors) AND ((@IsNul" +
  3794. "l_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))";
  3795. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3796. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_colors", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_colors", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3797. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3798. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3799. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3800. this._adapter.InsertCommand.Connection = this.Connection;
  3801. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Color] ([Title]) VALUES (@Title);\r\nSELECT id_colors, Title FRO" +
  3802. "M Color WHERE (id_colors = SCOPE_IDENTITY())";
  3803. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3804. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3805. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3806. this._adapter.UpdateCommand.Connection = this.Connection;
  3807. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Color] SET [Title] = @Title WHERE (([id_colors] = @Original_id_colo" +
  3808. "rs) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title))" +
  3809. ");\r\nSELECT id_colors, Title FROM Color WHERE (id_colors = @id_colors)";
  3810. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3811. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3812. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_colors", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_colors", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3813. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3814. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3815. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_colors", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id_colors", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3816. }
  3817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3819. private void InitConnection() {
  3820. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3821. this._connection.ConnectionString = global::СУБД_Швейная_фабрика.Properties.Settings.Default.pracFabricaConnectionString;
  3822. }
  3823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3825. private void InitCommandCollection() {
  3826. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3827. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3828. this._commandCollection[0].Connection = this.Connection;
  3829. this._commandCollection[0].CommandText = "SELECT id_colors, Title FROM dbo.Color";
  3830. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3831. }
  3832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3834. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3835. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3836. public virtual int Fill(pracFabricaDataSet.ColorDataTable dataTable) {
  3837. this.Adapter.SelectCommand = this.CommandCollection[0];
  3838. if ((this.ClearBeforeFill == true)) {
  3839. dataTable.Clear();
  3840. }
  3841. int returnValue = this.Adapter.Fill(dataTable);
  3842. return returnValue;
  3843. }
  3844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3846. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3847. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3848. public virtual pracFabricaDataSet.ColorDataTable GetData() {
  3849. this.Adapter.SelectCommand = this.CommandCollection[0];
  3850. pracFabricaDataSet.ColorDataTable dataTable = new pracFabricaDataSet.ColorDataTable();
  3851. this.Adapter.Fill(dataTable);
  3852. return dataTable;
  3853. }
  3854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3856. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3857. public virtual int Update(pracFabricaDataSet.ColorDataTable dataTable) {
  3858. return this.Adapter.Update(dataTable);
  3859. }
  3860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3862. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3863. public virtual int Update(pracFabricaDataSet dataSet) {
  3864. return this.Adapter.Update(dataSet, "Color");
  3865. }
  3866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3868. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3869. public virtual int Update(global::System.Data.DataRow dataRow) {
  3870. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3871. dataRow});
  3872. }
  3873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3875. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3876. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3877. return this.Adapter.Update(dataRows);
  3878. }
  3879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3881. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3882. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3883. public virtual int Delete(int Original_id_colors, string Original_Title) {
  3884. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_colors));
  3885. if ((Original_Title == null)) {
  3886. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3887. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3888. }
  3889. else {
  3890. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3891. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Title));
  3892. }
  3893. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3894. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3895. != global::System.Data.ConnectionState.Open)) {
  3896. this.Adapter.DeleteCommand.Connection.Open();
  3897. }
  3898. try {
  3899. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3900. return returnValue;
  3901. }
  3902. finally {
  3903. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3904. this.Adapter.DeleteCommand.Connection.Close();
  3905. }
  3906. }
  3907. }
  3908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3910. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3911. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3912. public virtual int Insert(string Title) {
  3913. if ((Title == null)) {
  3914. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  3915. }
  3916. else {
  3917. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  3918. }
  3919. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3920. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3921. != global::System.Data.ConnectionState.Open)) {
  3922. this.Adapter.InsertCommand.Connection.Open();
  3923. }
  3924. try {
  3925. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3926. return returnValue;
  3927. }
  3928. finally {
  3929. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3930. this.Adapter.InsertCommand.Connection.Close();
  3931. }
  3932. }
  3933. }
  3934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3936. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3937. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3938. public virtual int Update(string Title, int Original_id_colors, string Original_Title, int id_colors) {
  3939. if ((Title == null)) {
  3940. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  3941. }
  3942. else {
  3943. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  3944. }
  3945. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_id_colors));
  3946. if ((Original_Title == null)) {
  3947. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  3948. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  3949. }
  3950. else {
  3951. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  3952. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  3953. }
  3954. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(id_colors));
  3955. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3956. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3957. != global::System.Data.ConnectionState.Open)) {
  3958. this.Adapter.UpdateCommand.Connection.Open();
  3959. }
  3960. try {
  3961. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3962. return returnValue;
  3963. }
  3964. finally {
  3965. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3966. this.Adapter.UpdateCommand.Connection.Close();
  3967. }
  3968. }
  3969. }
  3970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3972. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3973. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3974. public virtual int Update(string Title, int Original_id_colors, string Original_Title) {
  3975. return this.Update(Title, Original_id_colors, Original_Title, Original_id_colors);
  3976. }
  3977. }
  3978. /// <summary>
  3979. ///Represents the connection and commands used to retrieve and save data.
  3980. ///</summary>
  3981. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3982. [global::System.ComponentModel.ToolboxItem(true)]
  3983. [global::System.ComponentModel.DataObjectAttribute(true)]
  3984. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3985. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3986. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3987. public partial class FurnituraTableAdapter : global::System.ComponentModel.Component {
  3988. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3989. private global::System.Data.SqlClient.SqlConnection _connection;
  3990. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3991. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3992. private bool _clearBeforeFill;
  3993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3995. public FurnituraTableAdapter() {
  3996. this.ClearBeforeFill = true;
  3997. }
  3998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4000. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4001. get {
  4002. if ((this._adapter == null)) {
  4003. this.InitAdapter();
  4004. }
  4005. return this._adapter;
  4006. }
  4007. }
  4008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4010. internal global::System.Data.SqlClient.SqlConnection Connection {
  4011. get {
  4012. if ((this._connection == null)) {
  4013. this.InitConnection();
  4014. }
  4015. return this._connection;
  4016. }
  4017. set {
  4018. this._connection = value;
  4019. if ((this.Adapter.InsertCommand != null)) {
  4020. this.Adapter.InsertCommand.Connection = value;
  4021. }
  4022. if ((this.Adapter.DeleteCommand != null)) {
  4023. this.Adapter.DeleteCommand.Connection = value;
  4024. }
  4025. if ((this.Adapter.UpdateCommand != null)) {
  4026. this.Adapter.UpdateCommand.Connection = value;
  4027. }
  4028. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4029. if ((this.CommandCollection[i] != null)) {
  4030. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4031. }
  4032. }
  4033. }
  4034. }
  4035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4037. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4038. get {
  4039. return this._transaction;
  4040. }
  4041. set {
  4042. this._transaction = value;
  4043. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4044. this.CommandCollection[i].Transaction = this._transaction;
  4045. }
  4046. if (((this.Adapter != null)
  4047. && (this.Adapter.DeleteCommand != null))) {
  4048. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4049. }
  4050. if (((this.Adapter != null)
  4051. && (this.Adapter.InsertCommand != null))) {
  4052. this.Adapter.InsertCommand.Transaction = this._transaction;
  4053. }
  4054. if (((this.Adapter != null)
  4055. && (this.Adapter.UpdateCommand != null))) {
  4056. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4057. }
  4058. }
  4059. }
  4060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4062. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4063. get {
  4064. if ((this._commandCollection == null)) {
  4065. this.InitCommandCollection();
  4066. }
  4067. return this._commandCollection;
  4068. }
  4069. }
  4070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4072. public bool ClearBeforeFill {
  4073. get {
  4074. return this._clearBeforeFill;
  4075. }
  4076. set {
  4077. this._clearBeforeFill = value;
  4078. }
  4079. }
  4080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4082. private void InitAdapter() {
  4083. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4084. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4085. tableMapping.SourceTable = "Table";
  4086. tableMapping.DataSetTable = "Furnitura";
  4087. tableMapping.ColumnMappings.Add("id_fur", "id_fur");
  4088. tableMapping.ColumnMappings.Add("namefur", "namefur");
  4089. tableMapping.ColumnMappings.Add("photo", "photo");
  4090. tableMapping.ColumnMappings.Add("countfur", "countfur");
  4091. this._adapter.TableMappings.Add(tableMapping);
  4092. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4093. this._adapter.DeleteCommand.Connection = this.Connection;
  4094. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Furnitura] WHERE (([id_fur] = @Original_id_fur) AND ((@IsNull_namefur = 1 AND [namefur] IS NULL) OR ([namefur] = @Original_namefur)) AND ((@IsNull_photo = 1 AND [photo] IS NULL) OR ([photo] = @Original_photo)) AND ((@IsNull_countfur = 1 AND [countfur] IS NULL) OR ([countfur] = @Original_countfur)))";
  4095. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4096. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_fur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_fur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4097. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_namefur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "namefur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4098. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_namefur", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "namefur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4099. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_photo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4100. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4101. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_countfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "countfur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4102. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_countfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "countfur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4103. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4104. this._adapter.InsertCommand.Connection = this.Connection;
  4105. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Furnitura] ([namefur], [photo], [countfur]) VALUES (@namefur, " +
  4106. "@photo, @countfur);\r\nSELECT id_fur, namefur, photo, countfur FROM Furnitura WHER" +
  4107. "E (id_fur = SCOPE_IDENTITY())";
  4108. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4109. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@namefur", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "namefur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4110. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4111. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@countfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "countfur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4112. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4113. this._adapter.UpdateCommand.Connection = this.Connection;
  4114. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Furnitura] SET [namefur] = @namefur, [photo] = @photo, [countfur] = @countfur WHERE (([id_fur] = @Original_id_fur) AND ((@IsNull_namefur = 1 AND [namefur] IS NULL) OR ([namefur] = @Original_namefur)) AND ((@IsNull_photo = 1 AND [photo] IS NULL) OR ([photo] = @Original_photo)) AND ((@IsNull_countfur = 1 AND [countfur] IS NULL) OR ([countfur] = @Original_countfur)));
  4115. SELECT id_fur, namefur, photo, countfur FROM Furnitura WHERE (id_fur = @id_fur)";
  4116. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4117. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@namefur", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "namefur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4118. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4119. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@countfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "countfur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4120. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_fur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_fur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4121. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_namefur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "namefur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4122. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_namefur", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "namefur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4123. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_photo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4124. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4125. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_countfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "countfur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4126. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_countfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "countfur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4127. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_fur", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id_fur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4128. }
  4129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4131. private void InitConnection() {
  4132. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4133. this._connection.ConnectionString = global::СУБД_Швейная_фабрика.Properties.Settings.Default.pracFabricaConnectionString;
  4134. }
  4135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4137. private void InitCommandCollection() {
  4138. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4139. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4140. this._commandCollection[0].Connection = this.Connection;
  4141. this._commandCollection[0].CommandText = "SELECT id_fur, namefur, photo, countfur FROM dbo.Furnitura";
  4142. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4143. }
  4144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4146. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4147. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4148. public virtual int Fill(pracFabricaDataSet.FurnituraDataTable dataTable) {
  4149. this.Adapter.SelectCommand = this.CommandCollection[0];
  4150. if ((this.ClearBeforeFill == true)) {
  4151. dataTable.Clear();
  4152. }
  4153. int returnValue = this.Adapter.Fill(dataTable);
  4154. return returnValue;
  4155. }
  4156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4158. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4159. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4160. public virtual pracFabricaDataSet.FurnituraDataTable GetData() {
  4161. this.Adapter.SelectCommand = this.CommandCollection[0];
  4162. pracFabricaDataSet.FurnituraDataTable dataTable = new pracFabricaDataSet.FurnituraDataTable();
  4163. this.Adapter.Fill(dataTable);
  4164. return dataTable;
  4165. }
  4166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4168. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4169. public virtual int Update(pracFabricaDataSet.FurnituraDataTable dataTable) {
  4170. return this.Adapter.Update(dataTable);
  4171. }
  4172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4174. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4175. public virtual int Update(pracFabricaDataSet dataSet) {
  4176. return this.Adapter.Update(dataSet, "Furnitura");
  4177. }
  4178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4180. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4181. public virtual int Update(global::System.Data.DataRow dataRow) {
  4182. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4183. dataRow});
  4184. }
  4185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4187. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4188. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4189. return this.Adapter.Update(dataRows);
  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.Delete, true)]
  4195. public virtual int Delete(int Original_id_fur, string Original_namefur, string Original_photo, global::System.Nullable<int> Original_countfur) {
  4196. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_fur));
  4197. if ((Original_namefur == null)) {
  4198. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4199. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4200. }
  4201. else {
  4202. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4203. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_namefur));
  4204. }
  4205. if ((Original_photo == null)) {
  4206. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4207. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4208. }
  4209. else {
  4210. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4211. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_photo));
  4212. }
  4213. if ((Original_countfur.HasValue == true)) {
  4214. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4215. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_countfur.Value));
  4216. }
  4217. else {
  4218. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4219. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4220. }
  4221. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4222. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4223. != global::System.Data.ConnectionState.Open)) {
  4224. this.Adapter.DeleteCommand.Connection.Open();
  4225. }
  4226. try {
  4227. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4228. return returnValue;
  4229. }
  4230. finally {
  4231. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4232. this.Adapter.DeleteCommand.Connection.Close();
  4233. }
  4234. }
  4235. }
  4236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4238. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4239. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4240. public virtual int Insert(string namefur, string photo, global::System.Nullable<int> countfur) {
  4241. if ((namefur == null)) {
  4242. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4243. }
  4244. else {
  4245. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(namefur));
  4246. }
  4247. if ((photo == null)) {
  4248. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4249. }
  4250. else {
  4251. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(photo));
  4252. }
  4253. if ((countfur.HasValue == true)) {
  4254. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(countfur.Value));
  4255. }
  4256. else {
  4257. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4258. }
  4259. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4260. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4261. != global::System.Data.ConnectionState.Open)) {
  4262. this.Adapter.InsertCommand.Connection.Open();
  4263. }
  4264. try {
  4265. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4266. return returnValue;
  4267. }
  4268. finally {
  4269. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4270. this.Adapter.InsertCommand.Connection.Close();
  4271. }
  4272. }
  4273. }
  4274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4276. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4277. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4278. public virtual int Update(string namefur, string photo, global::System.Nullable<int> countfur, int Original_id_fur, string Original_namefur, string Original_photo, global::System.Nullable<int> Original_countfur, int id_fur) {
  4279. if ((namefur == null)) {
  4280. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4281. }
  4282. else {
  4283. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(namefur));
  4284. }
  4285. if ((photo == null)) {
  4286. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4287. }
  4288. else {
  4289. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(photo));
  4290. }
  4291. if ((countfur.HasValue == true)) {
  4292. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(countfur.Value));
  4293. }
  4294. else {
  4295. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4296. }
  4297. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_id_fur));
  4298. if ((Original_namefur == null)) {
  4299. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  4300. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  4301. }
  4302. else {
  4303. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  4304. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_namefur));
  4305. }
  4306. if ((Original_photo == null)) {
  4307. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  4308. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  4309. }
  4310. else {
  4311. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  4312. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_photo));
  4313. }
  4314. if ((Original_countfur.HasValue == true)) {
  4315. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  4316. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_countfur.Value));
  4317. }
  4318. else {
  4319. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  4320. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  4321. }
  4322. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(id_fur));
  4323. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4324. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4325. != global::System.Data.ConnectionState.Open)) {
  4326. this.Adapter.UpdateCommand.Connection.Open();
  4327. }
  4328. try {
  4329. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4330. return returnValue;
  4331. }
  4332. finally {
  4333. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4334. this.Adapter.UpdateCommand.Connection.Close();
  4335. }
  4336. }
  4337. }
  4338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4340. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4341. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4342. public virtual int Update(string namefur, string photo, global::System.Nullable<int> countfur, int Original_id_fur, string Original_namefur, string Original_photo, global::System.Nullable<int> Original_countfur) {
  4343. return this.Update(namefur, photo, countfur, Original_id_fur, Original_namefur, Original_photo, Original_countfur, Original_id_fur);
  4344. }
  4345. }
  4346. /// <summary>
  4347. ///Represents the connection and commands used to retrieve and save data.
  4348. ///</summary>
  4349. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4350. [global::System.ComponentModel.ToolboxItem(true)]
  4351. [global::System.ComponentModel.DataObjectAttribute(true)]
  4352. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4353. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4354. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4355. public partial class IzdelieTableAdapter : global::System.ComponentModel.Component {
  4356. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4357. private global::System.Data.SqlClient.SqlConnection _connection;
  4358. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4359. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4360. private bool _clearBeforeFill;
  4361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4363. public IzdelieTableAdapter() {
  4364. this.ClearBeforeFill = true;
  4365. }
  4366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4368. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4369. get {
  4370. if ((this._adapter == null)) {
  4371. this.InitAdapter();
  4372. }
  4373. return this._adapter;
  4374. }
  4375. }
  4376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4378. internal global::System.Data.SqlClient.SqlConnection Connection {
  4379. get {
  4380. if ((this._connection == null)) {
  4381. this.InitConnection();
  4382. }
  4383. return this._connection;
  4384. }
  4385. set {
  4386. this._connection = value;
  4387. if ((this.Adapter.InsertCommand != null)) {
  4388. this.Adapter.InsertCommand.Connection = value;
  4389. }
  4390. if ((this.Adapter.DeleteCommand != null)) {
  4391. this.Adapter.DeleteCommand.Connection = value;
  4392. }
  4393. if ((this.Adapter.UpdateCommand != null)) {
  4394. this.Adapter.UpdateCommand.Connection = value;
  4395. }
  4396. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4397. if ((this.CommandCollection[i] != null)) {
  4398. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4399. }
  4400. }
  4401. }
  4402. }
  4403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4405. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4406. get {
  4407. return this._transaction;
  4408. }
  4409. set {
  4410. this._transaction = value;
  4411. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4412. this.CommandCollection[i].Transaction = this._transaction;
  4413. }
  4414. if (((this.Adapter != null)
  4415. && (this.Adapter.DeleteCommand != null))) {
  4416. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4417. }
  4418. if (((this.Adapter != null)
  4419. && (this.Adapter.InsertCommand != null))) {
  4420. this.Adapter.InsertCommand.Transaction = this._transaction;
  4421. }
  4422. if (((this.Adapter != null)
  4423. && (this.Adapter.UpdateCommand != null))) {
  4424. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4425. }
  4426. }
  4427. }
  4428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4430. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4431. get {
  4432. if ((this._commandCollection == null)) {
  4433. this.InitCommandCollection();
  4434. }
  4435. return this._commandCollection;
  4436. }
  4437. }
  4438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4440. public bool ClearBeforeFill {
  4441. get {
  4442. return this._clearBeforeFill;
  4443. }
  4444. set {
  4445. this._clearBeforeFill = value;
  4446. }
  4447. }
  4448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4450. private void InitAdapter() {
  4451. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4452. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4453. tableMapping.SourceTable = "Table";
  4454. tableMapping.DataSetTable = "Izdelie";
  4455. tableMapping.ColumnMappings.Add("id_izd", "id_izd");
  4456. tableMapping.ColumnMappings.Add("name_izd", "name_izd");
  4457. tableMapping.ColumnMappings.Add("length", "length");
  4458. tableMapping.ColumnMappings.Add("width", "width");
  4459. this._adapter.TableMappings.Add(tableMapping);
  4460. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4461. this._adapter.DeleteCommand.Connection = this.Connection;
  4462. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Izdelie] WHERE (([id_izd] = @Original_id_izd) AND ((@IsNull_name_izd = 1 AND [name_izd] IS NULL) OR ([name_izd] = @Original_name_izd)) AND ((@IsNull_length = 1 AND [length] IS NULL) OR ([length] = @Original_length)) AND ((@IsNull_width = 1 AND [width] IS NULL) OR ([width] = @Original_width)))";
  4463. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4464. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_izd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_izd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4465. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name_izd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name_izd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4466. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name_izd", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name_izd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4467. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "length", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4468. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "length", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4469. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "width", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4470. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "width", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4471. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4472. this._adapter.InsertCommand.Connection = this.Connection;
  4473. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Izdelie] ([name_izd], [length], [width]) VALUES (@name_izd, @l" +
  4474. "ength, @width);\r\nSELECT id_izd, name_izd, length, width FROM Izdelie WHERE (id_i" +
  4475. "zd = SCOPE_IDENTITY())";
  4476. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4477. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name_izd", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name_izd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4478. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "length", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4479. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "width", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4480. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4481. this._adapter.UpdateCommand.Connection = this.Connection;
  4482. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Izdelie] SET [name_izd] = @name_izd, [length] = @length, [width] = @width WHERE (([id_izd] = @Original_id_izd) AND ((@IsNull_name_izd = 1 AND [name_izd] IS NULL) OR ([name_izd] = @Original_name_izd)) AND ((@IsNull_length = 1 AND [length] IS NULL) OR ([length] = @Original_length)) AND ((@IsNull_width = 1 AND [width] IS NULL) OR ([width] = @Original_width)));
  4483. SELECT id_izd, name_izd, length, width FROM Izdelie WHERE (id_izd = @id_izd)";
  4484. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4485. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name_izd", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name_izd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4486. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "length", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4487. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "width", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4488. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_izd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_izd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4489. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name_izd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name_izd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4490. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name_izd", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name_izd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4491. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "length", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4492. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "length", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4493. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "width", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4494. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "width", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4495. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_izd", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id_izd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4496. }
  4497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4499. private void InitConnection() {
  4500. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4501. this._connection.ConnectionString = global::СУБД_Швейная_фабрика.Properties.Settings.Default.pracFabricaConnectionString;
  4502. }
  4503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4505. private void InitCommandCollection() {
  4506. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4507. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4508. this._commandCollection[0].Connection = this.Connection;
  4509. this._commandCollection[0].CommandText = "SELECT id_izd, name_izd, length, width FROM dbo.Izdelie";
  4510. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4511. }
  4512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4514. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4515. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4516. public virtual int Fill(pracFabricaDataSet.IzdelieDataTable dataTable) {
  4517. this.Adapter.SelectCommand = this.CommandCollection[0];
  4518. if ((this.ClearBeforeFill == true)) {
  4519. dataTable.Clear();
  4520. }
  4521. int returnValue = this.Adapter.Fill(dataTable);
  4522. return returnValue;
  4523. }
  4524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4526. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4527. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4528. public virtual pracFabricaDataSet.IzdelieDataTable GetData() {
  4529. this.Adapter.SelectCommand = this.CommandCollection[0];
  4530. pracFabricaDataSet.IzdelieDataTable dataTable = new pracFabricaDataSet.IzdelieDataTable();
  4531. this.Adapter.Fill(dataTable);
  4532. return dataTable;
  4533. }
  4534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4536. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4537. public virtual int Update(pracFabricaDataSet.IzdelieDataTable dataTable) {
  4538. return this.Adapter.Update(dataTable);
  4539. }
  4540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4542. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4543. public virtual int Update(pracFabricaDataSet dataSet) {
  4544. return this.Adapter.Update(dataSet, "Izdelie");
  4545. }
  4546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4548. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4549. public virtual int Update(global::System.Data.DataRow dataRow) {
  4550. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4551. dataRow});
  4552. }
  4553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4555. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4556. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4557. return this.Adapter.Update(dataRows);
  4558. }
  4559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4561. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4562. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4563. public virtual int Delete(int Original_id_izd, string Original_name_izd, global::System.Nullable<int> Original_length, global::System.Nullable<int> Original_width) {
  4564. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_izd));
  4565. if ((Original_name_izd == null)) {
  4566. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4567. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4568. }
  4569. else {
  4570. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4571. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_name_izd));
  4572. }
  4573. if ((Original_length.HasValue == true)) {
  4574. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4575. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_length.Value));
  4576. }
  4577. else {
  4578. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4579. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4580. }
  4581. if ((Original_width.HasValue == true)) {
  4582. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4583. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_width.Value));
  4584. }
  4585. else {
  4586. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4587. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4588. }
  4589. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4590. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4591. != global::System.Data.ConnectionState.Open)) {
  4592. this.Adapter.DeleteCommand.Connection.Open();
  4593. }
  4594. try {
  4595. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4596. return returnValue;
  4597. }
  4598. finally {
  4599. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4600. this.Adapter.DeleteCommand.Connection.Close();
  4601. }
  4602. }
  4603. }
  4604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4606. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4607. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4608. public virtual int Insert(string name_izd, global::System.Nullable<int> length, global::System.Nullable<int> width) {
  4609. if ((name_izd == null)) {
  4610. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4611. }
  4612. else {
  4613. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(name_izd));
  4614. }
  4615. if ((length.HasValue == true)) {
  4616. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(length.Value));
  4617. }
  4618. else {
  4619. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4620. }
  4621. if ((width.HasValue == true)) {
  4622. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(width.Value));
  4623. }
  4624. else {
  4625. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4626. }
  4627. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4628. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4629. != global::System.Data.ConnectionState.Open)) {
  4630. this.Adapter.InsertCommand.Connection.Open();
  4631. }
  4632. try {
  4633. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4634. return returnValue;
  4635. }
  4636. finally {
  4637. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4638. this.Adapter.InsertCommand.Connection.Close();
  4639. }
  4640. }
  4641. }
  4642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4644. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4645. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4646. public virtual int Update(string name_izd, global::System.Nullable<int> length, global::System.Nullable<int> width, int Original_id_izd, string Original_name_izd, global::System.Nullable<int> Original_length, global::System.Nullable<int> Original_width, int id_izd) {
  4647. if ((name_izd == null)) {
  4648. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4649. }
  4650. else {
  4651. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(name_izd));
  4652. }
  4653. if ((length.HasValue == true)) {
  4654. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(length.Value));
  4655. }
  4656. else {
  4657. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4658. }
  4659. if ((width.HasValue == true)) {
  4660. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(width.Value));
  4661. }
  4662. else {
  4663. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4664. }
  4665. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_id_izd));
  4666. if ((Original_name_izd == null)) {
  4667. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  4668. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  4669. }
  4670. else {
  4671. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  4672. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_name_izd));
  4673. }
  4674. if ((Original_length.HasValue == true)) {
  4675. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  4676. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_length.Value));
  4677. }
  4678. else {
  4679. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  4680. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  4681. }
  4682. if ((Original_width.HasValue == true)) {
  4683. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  4684. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_width.Value));
  4685. }
  4686. else {
  4687. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  4688. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  4689. }
  4690. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(id_izd));
  4691. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4692. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4693. != global::System.Data.ConnectionState.Open)) {
  4694. this.Adapter.UpdateCommand.Connection.Open();
  4695. }
  4696. try {
  4697. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4698. return returnValue;
  4699. }
  4700. finally {
  4701. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4702. this.Adapter.UpdateCommand.Connection.Close();
  4703. }
  4704. }
  4705. }
  4706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4708. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4709. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4710. public virtual int Update(string name_izd, global::System.Nullable<int> length, global::System.Nullable<int> width, int Original_id_izd, string Original_name_izd, global::System.Nullable<int> Original_length, global::System.Nullable<int> Original_width) {
  4711. return this.Update(name_izd, length, width, Original_id_izd, Original_name_izd, Original_length, Original_width, Original_id_izd);
  4712. }
  4713. }
  4714. /// <summary>
  4715. ///Represents the connection and commands used to retrieve and save data.
  4716. ///</summary>
  4717. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4718. [global::System.ComponentModel.ToolboxItem(true)]
  4719. [global::System.ComponentModel.DataObjectAttribute(true)]
  4720. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4721. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4722. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4723. public partial class OrdersTableAdapter : global::System.ComponentModel.Component {
  4724. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4725. private global::System.Data.SqlClient.SqlConnection _connection;
  4726. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4727. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4728. private bool _clearBeforeFill;
  4729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4731. public OrdersTableAdapter() {
  4732. this.ClearBeforeFill = true;
  4733. }
  4734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4736. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4737. get {
  4738. if ((this._adapter == null)) {
  4739. this.InitAdapter();
  4740. }
  4741. return this._adapter;
  4742. }
  4743. }
  4744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4746. internal global::System.Data.SqlClient.SqlConnection Connection {
  4747. get {
  4748. if ((this._connection == null)) {
  4749. this.InitConnection();
  4750. }
  4751. return this._connection;
  4752. }
  4753. set {
  4754. this._connection = value;
  4755. if ((this.Adapter.InsertCommand != null)) {
  4756. this.Adapter.InsertCommand.Connection = value;
  4757. }
  4758. if ((this.Adapter.DeleteCommand != null)) {
  4759. this.Adapter.DeleteCommand.Connection = value;
  4760. }
  4761. if ((this.Adapter.UpdateCommand != null)) {
  4762. this.Adapter.UpdateCommand.Connection = value;
  4763. }
  4764. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4765. if ((this.CommandCollection[i] != null)) {
  4766. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4767. }
  4768. }
  4769. }
  4770. }
  4771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4773. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4774. get {
  4775. return this._transaction;
  4776. }
  4777. set {
  4778. this._transaction = value;
  4779. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4780. this.CommandCollection[i].Transaction = this._transaction;
  4781. }
  4782. if (((this.Adapter != null)
  4783. && (this.Adapter.DeleteCommand != null))) {
  4784. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4785. }
  4786. if (((this.Adapter != null)
  4787. && (this.Adapter.InsertCommand != null))) {
  4788. this.Adapter.InsertCommand.Transaction = this._transaction;
  4789. }
  4790. if (((this.Adapter != null)
  4791. && (this.Adapter.UpdateCommand != null))) {
  4792. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4793. }
  4794. }
  4795. }
  4796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4798. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4799. get {
  4800. if ((this._commandCollection == null)) {
  4801. this.InitCommandCollection();
  4802. }
  4803. return this._commandCollection;
  4804. }
  4805. }
  4806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4808. public bool ClearBeforeFill {
  4809. get {
  4810. return this._clearBeforeFill;
  4811. }
  4812. set {
  4813. this._clearBeforeFill = value;
  4814. }
  4815. }
  4816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4818. private void InitAdapter() {
  4819. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4820. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4821. tableMapping.SourceTable = "Table";
  4822. tableMapping.DataSetTable = "Orders";
  4823. tableMapping.ColumnMappings.Add("id_order", "id_order");
  4824. tableMapping.ColumnMappings.Add("id_izd", "id_izd");
  4825. tableMapping.ColumnMappings.Add("id_zak", "id_zak");
  4826. tableMapping.ColumnMappings.Add("id_men", "id_men");
  4827. tableMapping.ColumnMappings.Add("id_tkan", "id_tkan");
  4828. tableMapping.ColumnMappings.Add("id_fur", "id_fur");
  4829. tableMapping.ColumnMappings.Add("CountFur", "CountFur");
  4830. tableMapping.ColumnMappings.Add("CountIzd", "CountIzd");
  4831. this._adapter.TableMappings.Add(tableMapping);
  4832. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4833. this._adapter.DeleteCommand.Connection = this.Connection;
  4834. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Orders] WHERE (([id_order] = @Original_id_order) AND ((@IsNull_id_izd = 1 AND [id_izd] IS NULL) OR ([id_izd] = @Original_id_izd)) AND ((@IsNull_id_zak = 1 AND [id_zak] IS NULL) OR ([id_zak] = @Original_id_zak)) AND ((@IsNull_id_men = 1 AND [id_men] IS NULL) OR ([id_men] = @Original_id_men)) AND ((@IsNull_id_tkan = 1 AND [id_tkan] IS NULL) OR ([id_tkan] = @Original_id_tkan)) AND ((@IsNull_id_fur = 1 AND [id_fur] IS NULL) OR ([id_fur] = @Original_id_fur)) AND ((@IsNull_CountFur = 1 AND [CountFur] IS NULL) OR ([CountFur] = @Original_CountFur)) AND ((@IsNull_CountIzd = 1 AND [CountIzd] IS NULL) OR ([CountIzd] = @Original_CountIzd)))";
  4835. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4836. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_order", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_order", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4837. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_izd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_izd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4838. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_izd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_izd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4839. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_zak", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_zak", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4840. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_zak", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_zak", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4841. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_men", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_men", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4842. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_men", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_men", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4843. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_tkan", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_tkan", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4844. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_tkan", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_tkan", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4845. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_fur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_fur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4846. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_fur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_fur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4847. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountFur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4848. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountFur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4849. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountIzd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4850. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountIzd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4851. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4852. this._adapter.InsertCommand.Connection = this.Connection;
  4853. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Orders] ([id_izd], [id_zak], [id_men], [id_tkan], [id_fur], [CountFur], [CountIzd]) VALUES (@id_izd, @id_zak, @id_men, @id_tkan, @id_fur, @CountFur, @CountIzd);
  4854. SELECT id_order, id_izd, id_zak, id_men, id_tkan, id_fur, CountFur, CountIzd FROM Orders WHERE (id_order = SCOPE_IDENTITY())";
  4855. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4856. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_izd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_izd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4857. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_zak", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_zak", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4858. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_men", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_men", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4859. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_tkan", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_tkan", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4860. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_fur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_fur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4861. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountFur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4862. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountIzd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4863. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4864. this._adapter.UpdateCommand.Connection = this.Connection;
  4865. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Orders] SET [id_izd] = @id_izd, [id_zak] = @id_zak, [id_men] = @id_men, [id_tkan] = @id_tkan, [id_fur] = @id_fur, [CountFur] = @CountFur, [CountIzd] = @CountIzd WHERE (([id_order] = @Original_id_order) AND ((@IsNull_id_izd = 1 AND [id_izd] IS NULL) OR ([id_izd] = @Original_id_izd)) AND ((@IsNull_id_zak = 1 AND [id_zak] IS NULL) OR ([id_zak] = @Original_id_zak)) AND ((@IsNull_id_men = 1 AND [id_men] IS NULL) OR ([id_men] = @Original_id_men)) AND ((@IsNull_id_tkan = 1 AND [id_tkan] IS NULL) OR ([id_tkan] = @Original_id_tkan)) AND ((@IsNull_id_fur = 1 AND [id_fur] IS NULL) OR ([id_fur] = @Original_id_fur)) AND ((@IsNull_CountFur = 1 AND [CountFur] IS NULL) OR ([CountFur] = @Original_CountFur)) AND ((@IsNull_CountIzd = 1 AND [CountIzd] IS NULL) OR ([CountIzd] = @Original_CountIzd)));
  4866. SELECT id_order, id_izd, id_zak, id_men, id_tkan, id_fur, CountFur, CountIzd FROM Orders WHERE (id_order = @id_order)";
  4867. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4868. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_izd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_izd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4869. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_zak", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_zak", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4870. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_men", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_men", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4871. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_tkan", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_tkan", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4872. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_fur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_fur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4873. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountFur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4874. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountIzd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4875. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_order", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_order", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4876. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_izd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_izd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4877. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_izd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_izd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4878. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_zak", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_zak", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4879. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_zak", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_zak", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4880. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_men", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_men", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4881. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_men", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_men", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4882. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_tkan", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_tkan", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4883. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_tkan", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_tkan", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4884. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_fur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_fur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4885. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_fur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_fur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4886. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountFur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4887. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountFur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4888. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountIzd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4889. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountIzd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4890. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_order", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id_order", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4891. }
  4892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4894. private void InitConnection() {
  4895. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4896. this._connection.ConnectionString = global::СУБД_Швейная_фабрика.Properties.Settings.Default.pracFabricaConnectionString;
  4897. }
  4898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4900. private void InitCommandCollection() {
  4901. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4902. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4903. this._commandCollection[0].Connection = this.Connection;
  4904. this._commandCollection[0].CommandText = "SELECT id_order, id_izd, id_zak, id_men, id_tkan, id_fur, CountFur, CountIzd FROM" +
  4905. " dbo.Orders";
  4906. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4907. }
  4908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4910. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4911. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4912. public virtual int Fill(pracFabricaDataSet.OrdersDataTable dataTable) {
  4913. this.Adapter.SelectCommand = this.CommandCollection[0];
  4914. if ((this.ClearBeforeFill == true)) {
  4915. dataTable.Clear();
  4916. }
  4917. int returnValue = this.Adapter.Fill(dataTable);
  4918. return returnValue;
  4919. }
  4920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4922. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4923. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4924. public virtual pracFabricaDataSet.OrdersDataTable GetData() {
  4925. this.Adapter.SelectCommand = this.CommandCollection[0];
  4926. pracFabricaDataSet.OrdersDataTable dataTable = new pracFabricaDataSet.OrdersDataTable();
  4927. this.Adapter.Fill(dataTable);
  4928. return dataTable;
  4929. }
  4930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4932. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4933. public virtual int Update(pracFabricaDataSet.OrdersDataTable dataTable) {
  4934. return this.Adapter.Update(dataTable);
  4935. }
  4936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4938. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4939. public virtual int Update(pracFabricaDataSet dataSet) {
  4940. return this.Adapter.Update(dataSet, "Orders");
  4941. }
  4942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4944. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4945. public virtual int Update(global::System.Data.DataRow dataRow) {
  4946. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4947. dataRow});
  4948. }
  4949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4951. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4952. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4953. return this.Adapter.Update(dataRows);
  4954. }
  4955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4957. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4958. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4959. public virtual int Delete(int Original_id_order, global::System.Nullable<int> Original_id_izd, global::System.Nullable<int> Original_id_zak, global::System.Nullable<int> Original_id_men, global::System.Nullable<int> Original_id_tkan, global::System.Nullable<int> Original_id_fur, global::System.Nullable<int> Original_CountFur, global::System.Nullable<int> Original_CountIzd) {
  4960. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_order));
  4961. if ((Original_id_izd.HasValue == true)) {
  4962. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4963. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_id_izd.Value));
  4964. }
  4965. else {
  4966. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4967. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4968. }
  4969. if ((Original_id_zak.HasValue == true)) {
  4970. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4971. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_id_zak.Value));
  4972. }
  4973. else {
  4974. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4975. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4976. }
  4977. if ((Original_id_men.HasValue == true)) {
  4978. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4979. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_id_men.Value));
  4980. }
  4981. else {
  4982. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4983. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4984. }
  4985. if ((Original_id_tkan.HasValue == true)) {
  4986. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  4987. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_id_tkan.Value));
  4988. }
  4989. else {
  4990. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  4991. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  4992. }
  4993. if ((Original_id_fur.HasValue == true)) {
  4994. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  4995. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_id_fur.Value));
  4996. }
  4997. else {
  4998. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  4999. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  5000. }
  5001. if ((Original_CountFur.HasValue == true)) {
  5002. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  5003. this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_CountFur.Value));
  5004. }
  5005. else {
  5006. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  5007. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  5008. }
  5009. if ((Original_CountIzd.HasValue == true)) {
  5010. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  5011. this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_CountIzd.Value));
  5012. }
  5013. else {
  5014. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  5015. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  5016. }
  5017. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5018. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5019. != global::System.Data.ConnectionState.Open)) {
  5020. this.Adapter.DeleteCommand.Connection.Open();
  5021. }
  5022. try {
  5023. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5024. return returnValue;
  5025. }
  5026. finally {
  5027. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5028. this.Adapter.DeleteCommand.Connection.Close();
  5029. }
  5030. }
  5031. }
  5032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5034. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5035. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5036. public virtual int Insert(global::System.Nullable<int> id_izd, global::System.Nullable<int> id_zak, global::System.Nullable<int> id_men, global::System.Nullable<int> id_tkan, global::System.Nullable<int> id_fur, global::System.Nullable<int> CountFur, global::System.Nullable<int> CountIzd) {
  5037. if ((id_izd.HasValue == true)) {
  5038. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id_izd.Value));
  5039. }
  5040. else {
  5041. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5042. }
  5043. if ((id_zak.HasValue == true)) {
  5044. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(id_zak.Value));
  5045. }
  5046. else {
  5047. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5048. }
  5049. if ((id_men.HasValue == true)) {
  5050. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(id_men.Value));
  5051. }
  5052. else {
  5053. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5054. }
  5055. if ((id_tkan.HasValue == true)) {
  5056. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(id_tkan.Value));
  5057. }
  5058. else {
  5059. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5060. }
  5061. if ((id_fur.HasValue == true)) {
  5062. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(id_fur.Value));
  5063. }
  5064. else {
  5065. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5066. }
  5067. if ((CountFur.HasValue == true)) {
  5068. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(CountFur.Value));
  5069. }
  5070. else {
  5071. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  5072. }
  5073. if ((CountIzd.HasValue == true)) {
  5074. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(CountIzd.Value));
  5075. }
  5076. else {
  5077. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  5078. }
  5079. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5080. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5081. != global::System.Data.ConnectionState.Open)) {
  5082. this.Adapter.InsertCommand.Connection.Open();
  5083. }
  5084. try {
  5085. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5086. return returnValue;
  5087. }
  5088. finally {
  5089. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5090. this.Adapter.InsertCommand.Connection.Close();
  5091. }
  5092. }
  5093. }
  5094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5096. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5097. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5098. public virtual int Update(
  5099. global::System.Nullable<int> id_izd,
  5100. global::System.Nullable<int> id_zak,
  5101. global::System.Nullable<int> id_men,
  5102. global::System.Nullable<int> id_tkan,
  5103. global::System.Nullable<int> id_fur,
  5104. global::System.Nullable<int> CountFur,
  5105. global::System.Nullable<int> CountIzd,
  5106. int Original_id_order,
  5107. global::System.Nullable<int> Original_id_izd,
  5108. global::System.Nullable<int> Original_id_zak,
  5109. global::System.Nullable<int> Original_id_men,
  5110. global::System.Nullable<int> Original_id_tkan,
  5111. global::System.Nullable<int> Original_id_fur,
  5112. global::System.Nullable<int> Original_CountFur,
  5113. global::System.Nullable<int> Original_CountIzd,
  5114. int id_order) {
  5115. if ((id_izd.HasValue == true)) {
  5116. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(id_izd.Value));
  5117. }
  5118. else {
  5119. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5120. }
  5121. if ((id_zak.HasValue == true)) {
  5122. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(id_zak.Value));
  5123. }
  5124. else {
  5125. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5126. }
  5127. if ((id_men.HasValue == true)) {
  5128. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(id_men.Value));
  5129. }
  5130. else {
  5131. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5132. }
  5133. if ((id_tkan.HasValue == true)) {
  5134. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(id_tkan.Value));
  5135. }
  5136. else {
  5137. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5138. }
  5139. if ((id_fur.HasValue == true)) {
  5140. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(id_fur.Value));
  5141. }
  5142. else {
  5143. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5144. }
  5145. if ((CountFur.HasValue == true)) {
  5146. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(CountFur.Value));
  5147. }
  5148. else {
  5149. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5150. }
  5151. if ((CountIzd.HasValue == true)) {
  5152. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(CountIzd.Value));
  5153. }
  5154. else {
  5155. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  5156. }
  5157. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_id_order));
  5158. if ((Original_id_izd.HasValue == true)) {
  5159. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  5160. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_id_izd.Value));
  5161. }
  5162. else {
  5163. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  5164. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  5165. }
  5166. if ((Original_id_zak.HasValue == true)) {
  5167. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  5168. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_id_zak.Value));
  5169. }
  5170. else {
  5171. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  5172. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  5173. }
  5174. if ((Original_id_men.HasValue == true)) {
  5175. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  5176. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_id_men.Value));
  5177. }
  5178. else {
  5179. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  5180. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  5181. }
  5182. if ((Original_id_tkan.HasValue == true)) {
  5183. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  5184. this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_id_tkan.Value));
  5185. }
  5186. else {
  5187. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  5188. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  5189. }
  5190. if ((Original_id_fur.HasValue == true)) {
  5191. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  5192. this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_id_fur.Value));
  5193. }
  5194. else {
  5195. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  5196. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  5197. }
  5198. if ((Original_CountFur.HasValue == true)) {
  5199. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  5200. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_CountFur.Value));
  5201. }
  5202. else {
  5203. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  5204. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  5205. }
  5206. if ((Original_CountIzd.HasValue == true)) {
  5207. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  5208. this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_CountIzd.Value));
  5209. }
  5210. else {
  5211. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  5212. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  5213. }
  5214. this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(id_order));
  5215. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5216. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5217. != global::System.Data.ConnectionState.Open)) {
  5218. this.Adapter.UpdateCommand.Connection.Open();
  5219. }
  5220. try {
  5221. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5222. return returnValue;
  5223. }
  5224. finally {
  5225. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5226. this.Adapter.UpdateCommand.Connection.Close();
  5227. }
  5228. }
  5229. }
  5230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5232. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5233. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5234. public virtual int Update(global::System.Nullable<int> id_izd, global::System.Nullable<int> id_zak, global::System.Nullable<int> id_men, global::System.Nullable<int> id_tkan, global::System.Nullable<int> id_fur, global::System.Nullable<int> CountFur, global::System.Nullable<int> CountIzd, int Original_id_order, global::System.Nullable<int> Original_id_izd, global::System.Nullable<int> Original_id_zak, global::System.Nullable<int> Original_id_men, global::System.Nullable<int> Original_id_tkan, global::System.Nullable<int> Original_id_fur, global::System.Nullable<int> Original_CountFur, global::System.Nullable<int> Original_CountIzd) {
  5235. return this.Update(id_izd, id_zak, id_men, id_tkan, id_fur, CountFur, CountIzd, Original_id_order, Original_id_izd, Original_id_zak, Original_id_men, Original_id_tkan, Original_id_fur, Original_CountFur, Original_CountIzd, Original_id_order);
  5236. }
  5237. }
  5238. /// <summary>
  5239. ///Represents the connection and commands used to retrieve and save data.
  5240. ///</summary>
  5241. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5242. [global::System.ComponentModel.ToolboxItem(true)]
  5243. [global::System.ComponentModel.DataObjectAttribute(true)]
  5244. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5245. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5246. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5247. public partial class RolesTableAdapter : global::System.ComponentModel.Component {
  5248. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5249. private global::System.Data.SqlClient.SqlConnection _connection;
  5250. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5251. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5252. private bool _clearBeforeFill;
  5253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5255. public RolesTableAdapter() {
  5256. this.ClearBeforeFill = true;
  5257. }
  5258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5260. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5261. get {
  5262. if ((this._adapter == null)) {
  5263. this.InitAdapter();
  5264. }
  5265. return this._adapter;
  5266. }
  5267. }
  5268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5270. internal global::System.Data.SqlClient.SqlConnection Connection {
  5271. get {
  5272. if ((this._connection == null)) {
  5273. this.InitConnection();
  5274. }
  5275. return this._connection;
  5276. }
  5277. set {
  5278. this._connection = value;
  5279. if ((this.Adapter.InsertCommand != null)) {
  5280. this.Adapter.InsertCommand.Connection = value;
  5281. }
  5282. if ((this.Adapter.DeleteCommand != null)) {
  5283. this.Adapter.DeleteCommand.Connection = value;
  5284. }
  5285. if ((this.Adapter.UpdateCommand != null)) {
  5286. this.Adapter.UpdateCommand.Connection = value;
  5287. }
  5288. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5289. if ((this.CommandCollection[i] != null)) {
  5290. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5291. }
  5292. }
  5293. }
  5294. }
  5295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5297. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5298. get {
  5299. return this._transaction;
  5300. }
  5301. set {
  5302. this._transaction = value;
  5303. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5304. this.CommandCollection[i].Transaction = this._transaction;
  5305. }
  5306. if (((this.Adapter != null)
  5307. && (this.Adapter.DeleteCommand != null))) {
  5308. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5309. }
  5310. if (((this.Adapter != null)
  5311. && (this.Adapter.InsertCommand != null))) {
  5312. this.Adapter.InsertCommand.Transaction = this._transaction;
  5313. }
  5314. if (((this.Adapter != null)
  5315. && (this.Adapter.UpdateCommand != null))) {
  5316. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5317. }
  5318. }
  5319. }
  5320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5322. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5323. get {
  5324. if ((this._commandCollection == null)) {
  5325. this.InitCommandCollection();
  5326. }
  5327. return this._commandCollection;
  5328. }
  5329. }
  5330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5332. public bool ClearBeforeFill {
  5333. get {
  5334. return this._clearBeforeFill;
  5335. }
  5336. set {
  5337. this._clearBeforeFill = value;
  5338. }
  5339. }
  5340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5342. private void InitAdapter() {
  5343. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5344. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5345. tableMapping.SourceTable = "Table";
  5346. tableMapping.DataSetTable = "Roles";
  5347. tableMapping.ColumnMappings.Add("id_Roles", "id_Roles");
  5348. tableMapping.ColumnMappings.Add("Title", "Title");
  5349. this._adapter.TableMappings.Add(tableMapping);
  5350. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5351. this._adapter.DeleteCommand.Connection = this.Connection;
  5352. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Roles] WHERE (([id_Roles] = @Original_id_Roles) AND ((@IsNull_" +
  5353. "Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))";
  5354. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5355. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_Roles", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_Roles", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5356. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5357. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5358. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5359. this._adapter.InsertCommand.Connection = this.Connection;
  5360. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Roles] ([Title]) VALUES (@Title);\r\nSELECT id_Roles, Title FROM" +
  5361. " Roles WHERE (id_Roles = SCOPE_IDENTITY())";
  5362. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5363. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5364. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5365. this._adapter.UpdateCommand.Connection = this.Connection;
  5366. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Roles] SET [Title] = @Title WHERE (([id_Roles] = @Original_id_Roles" +
  5367. ") AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)));" +
  5368. "\r\nSELECT id_Roles, Title FROM Roles WHERE (id_Roles = @id_Roles)";
  5369. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5370. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5371. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_Roles", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_Roles", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5372. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5373. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5374. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_Roles", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id_Roles", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5375. }
  5376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5378. private void InitConnection() {
  5379. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5380. this._connection.ConnectionString = global::СУБД_Швейная_фабрика.Properties.Settings.Default.pracFabricaConnectionString;
  5381. }
  5382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5384. private void InitCommandCollection() {
  5385. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5386. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5387. this._commandCollection[0].Connection = this.Connection;
  5388. this._commandCollection[0].CommandText = "SELECT id_Roles, Title FROM dbo.Roles";
  5389. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5390. }
  5391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5393. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5394. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5395. public virtual int Fill(pracFabricaDataSet.RolesDataTable dataTable) {
  5396. this.Adapter.SelectCommand = this.CommandCollection[0];
  5397. if ((this.ClearBeforeFill == true)) {
  5398. dataTable.Clear();
  5399. }
  5400. int returnValue = this.Adapter.Fill(dataTable);
  5401. return returnValue;
  5402. }
  5403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5405. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5406. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5407. public virtual pracFabricaDataSet.RolesDataTable GetData() {
  5408. this.Adapter.SelectCommand = this.CommandCollection[0];
  5409. pracFabricaDataSet.RolesDataTable dataTable = new pracFabricaDataSet.RolesDataTable();
  5410. this.Adapter.Fill(dataTable);
  5411. return dataTable;
  5412. }
  5413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5415. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5416. public virtual int Update(pracFabricaDataSet.RolesDataTable dataTable) {
  5417. return this.Adapter.Update(dataTable);
  5418. }
  5419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5421. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5422. public virtual int Update(pracFabricaDataSet dataSet) {
  5423. return this.Adapter.Update(dataSet, "Roles");
  5424. }
  5425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5427. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5428. public virtual int Update(global::System.Data.DataRow dataRow) {
  5429. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5430. dataRow});
  5431. }
  5432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5434. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5435. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5436. return this.Adapter.Update(dataRows);
  5437. }
  5438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5440. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5441. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5442. public virtual int Delete(int Original_id_Roles, string Original_Title) {
  5443. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_Roles));
  5444. if ((Original_Title == null)) {
  5445. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5446. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5447. }
  5448. else {
  5449. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5450. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Title));
  5451. }
  5452. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5453. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5454. != global::System.Data.ConnectionState.Open)) {
  5455. this.Adapter.DeleteCommand.Connection.Open();
  5456. }
  5457. try {
  5458. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5459. return returnValue;
  5460. }
  5461. finally {
  5462. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5463. this.Adapter.DeleteCommand.Connection.Close();
  5464. }
  5465. }
  5466. }
  5467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5469. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5470. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5471. public virtual int Insert(string Title) {
  5472. if ((Title == null)) {
  5473. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5474. }
  5475. else {
  5476. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  5477. }
  5478. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5479. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5480. != global::System.Data.ConnectionState.Open)) {
  5481. this.Adapter.InsertCommand.Connection.Open();
  5482. }
  5483. try {
  5484. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5485. return returnValue;
  5486. }
  5487. finally {
  5488. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5489. this.Adapter.InsertCommand.Connection.Close();
  5490. }
  5491. }
  5492. }
  5493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5495. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5496. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5497. public virtual int Update(string Title, int Original_id_Roles, string Original_Title, int id_Roles) {
  5498. if ((Title == null)) {
  5499. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5500. }
  5501. else {
  5502. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  5503. }
  5504. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_id_Roles));
  5505. if ((Original_Title == null)) {
  5506. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  5507. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5508. }
  5509. else {
  5510. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  5511. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  5512. }
  5513. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(id_Roles));
  5514. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5515. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5516. != global::System.Data.ConnectionState.Open)) {
  5517. this.Adapter.UpdateCommand.Connection.Open();
  5518. }
  5519. try {
  5520. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5521. return returnValue;
  5522. }
  5523. finally {
  5524. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5525. this.Adapter.UpdateCommand.Connection.Close();
  5526. }
  5527. }
  5528. }
  5529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5531. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5532. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5533. public virtual int Update(string Title, int Original_id_Roles, string Original_Title) {
  5534. return this.Update(Title, Original_id_Roles, Original_Title, Original_id_Roles);
  5535. }
  5536. }
  5537. /// <summary>
  5538. ///Represents the connection and commands used to retrieve and save data.
  5539. ///</summary>
  5540. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5541. [global::System.ComponentModel.ToolboxItem(true)]
  5542. [global::System.ComponentModel.DataObjectAttribute(true)]
  5543. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5544. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5545. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5546. public partial class TkanTableAdapter : global::System.ComponentModel.Component {
  5547. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5548. private global::System.Data.SqlClient.SqlConnection _connection;
  5549. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5550. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5551. private bool _clearBeforeFill;
  5552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5554. public TkanTableAdapter() {
  5555. this.ClearBeforeFill = true;
  5556. }
  5557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5559. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5560. get {
  5561. if ((this._adapter == null)) {
  5562. this.InitAdapter();
  5563. }
  5564. return this._adapter;
  5565. }
  5566. }
  5567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5569. internal global::System.Data.SqlClient.SqlConnection Connection {
  5570. get {
  5571. if ((this._connection == null)) {
  5572. this.InitConnection();
  5573. }
  5574. return this._connection;
  5575. }
  5576. set {
  5577. this._connection = value;
  5578. if ((this.Adapter.InsertCommand != null)) {
  5579. this.Adapter.InsertCommand.Connection = value;
  5580. }
  5581. if ((this.Adapter.DeleteCommand != null)) {
  5582. this.Adapter.DeleteCommand.Connection = value;
  5583. }
  5584. if ((this.Adapter.UpdateCommand != null)) {
  5585. this.Adapter.UpdateCommand.Connection = value;
  5586. }
  5587. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5588. if ((this.CommandCollection[i] != null)) {
  5589. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5590. }
  5591. }
  5592. }
  5593. }
  5594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5596. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5597. get {
  5598. return this._transaction;
  5599. }
  5600. set {
  5601. this._transaction = value;
  5602. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5603. this.CommandCollection[i].Transaction = this._transaction;
  5604. }
  5605. if (((this.Adapter != null)
  5606. && (this.Adapter.DeleteCommand != null))) {
  5607. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5608. }
  5609. if (((this.Adapter != null)
  5610. && (this.Adapter.InsertCommand != null))) {
  5611. this.Adapter.InsertCommand.Transaction = this._transaction;
  5612. }
  5613. if (((this.Adapter != null)
  5614. && (this.Adapter.UpdateCommand != null))) {
  5615. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5616. }
  5617. }
  5618. }
  5619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5621. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5622. get {
  5623. if ((this._commandCollection == null)) {
  5624. this.InitCommandCollection();
  5625. }
  5626. return this._commandCollection;
  5627. }
  5628. }
  5629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5631. public bool ClearBeforeFill {
  5632. get {
  5633. return this._clearBeforeFill;
  5634. }
  5635. set {
  5636. this._clearBeforeFill = value;
  5637. }
  5638. }
  5639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5641. private void InitAdapter() {
  5642. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5643. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5644. tableMapping.SourceTable = "Table";
  5645. tableMapping.DataSetTable = "Tkan";
  5646. tableMapping.ColumnMappings.Add("id_Tkan", "id_Tkan");
  5647. tableMapping.ColumnMappings.Add("Title", "Title");
  5648. tableMapping.ColumnMappings.Add("id_color", "id_color");
  5649. tableMapping.ColumnMappings.Add("Length", "Length");
  5650. tableMapping.ColumnMappings.Add("Width", "Width");
  5651. tableMapping.ColumnMappings.Add("Comment", "Comment");
  5652. tableMapping.ColumnMappings.Add("NamePhoto", "NamePhoto");
  5653. this._adapter.TableMappings.Add(tableMapping);
  5654. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5655. this._adapter.DeleteCommand.Connection = this.Connection;
  5656. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Tkan] WHERE (([id_Tkan] = @Original_id_Tkan) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_id_color = 1 AND [id_color] IS NULL) OR ([id_color] = @Original_id_color)) AND ((@IsNull_Length = 1 AND [Length] IS NULL) OR ([Length] = @Original_Length)) AND ((@IsNull_Width = 1 AND [Width] IS NULL) OR ([Width] = @Original_Width)) AND ((@IsNull_Comment = 1 AND [Comment] IS NULL) OR ([Comment] = @Original_Comment)) AND ((@IsNull_NamePhoto = 1 AND [NamePhoto] IS NULL) OR ([NamePhoto] = @Original_NamePhoto)))";
  5657. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5658. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_Tkan", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_Tkan", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5659. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5660. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5661. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_color", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_color", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5662. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_color", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_color", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5663. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Length", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5664. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Length", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5665. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Width", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5666. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Width", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5667. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Comment", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5668. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Comment", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5669. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NamePhoto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NamePhoto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5670. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NamePhoto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NamePhoto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5671. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5672. this._adapter.InsertCommand.Connection = this.Connection;
  5673. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Tkan] ([Title], [id_color], [Length], [Width], [Comment], [NamePhoto]) VALUES (@Title, @id_color, @Length, @Width, @Comment, @NamePhoto);
  5674. SELECT id_Tkan, Title, id_color, Length, Width, Comment, NamePhoto FROM Tkan WHERE (id_Tkan = SCOPE_IDENTITY())";
  5675. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5676. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5677. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_color", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_color", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5678. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Length", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5679. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Width", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5680. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Comment", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5681. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NamePhoto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NamePhoto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5682. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5683. this._adapter.UpdateCommand.Connection = this.Connection;
  5684. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Tkan] SET [Title] = @Title, [id_color] = @id_color, [Length] = @Length, [Width] = @Width, [Comment] = @Comment, [NamePhoto] = @NamePhoto WHERE (([id_Tkan] = @Original_id_Tkan) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_id_color = 1 AND [id_color] IS NULL) OR ([id_color] = @Original_id_color)) AND ((@IsNull_Length = 1 AND [Length] IS NULL) OR ([Length] = @Original_Length)) AND ((@IsNull_Width = 1 AND [Width] IS NULL) OR ([Width] = @Original_Width)) AND ((@IsNull_Comment = 1 AND [Comment] IS NULL) OR ([Comment] = @Original_Comment)) AND ((@IsNull_NamePhoto = 1 AND [NamePhoto] IS NULL) OR ([NamePhoto] = @Original_NamePhoto)));
  5685. SELECT id_Tkan, Title, id_color, Length, Width, Comment, NamePhoto FROM Tkan WHERE (id_Tkan = @id_Tkan)";
  5686. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5687. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5688. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_color", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_color", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5689. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Length", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5690. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Width", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5691. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Comment", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5692. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NamePhoto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NamePhoto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5693. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_Tkan", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_Tkan", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5694. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5695. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5696. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_color", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_color", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5697. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_color", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_color", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5698. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Length", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5699. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Length", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5700. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Width", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5701. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Width", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5702. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Comment", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5703. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Comment", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5704. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NamePhoto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NamePhoto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5705. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NamePhoto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NamePhoto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5706. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_Tkan", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id_Tkan", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5707. }
  5708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5710. private void InitConnection() {
  5711. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5712. this._connection.ConnectionString = global::СУБД_Швейная_фабрика.Properties.Settings.Default.pracFabricaConnectionString;
  5713. }
  5714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5716. private void InitCommandCollection() {
  5717. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5718. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5719. this._commandCollection[0].Connection = this.Connection;
  5720. this._commandCollection[0].CommandText = "SELECT id_Tkan, Title, id_color, Length, Width, Comment, NamePhoto FROM dbo.Tkan";
  5721. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5722. }
  5723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5725. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5726. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5727. public virtual int Fill(pracFabricaDataSet.TkanDataTable dataTable) {
  5728. this.Adapter.SelectCommand = this.CommandCollection[0];
  5729. if ((this.ClearBeforeFill == true)) {
  5730. dataTable.Clear();
  5731. }
  5732. int returnValue = this.Adapter.Fill(dataTable);
  5733. return returnValue;
  5734. }
  5735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5737. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5738. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5739. public virtual pracFabricaDataSet.TkanDataTable GetData() {
  5740. this.Adapter.SelectCommand = this.CommandCollection[0];
  5741. pracFabricaDataSet.TkanDataTable dataTable = new pracFabricaDataSet.TkanDataTable();
  5742. this.Adapter.Fill(dataTable);
  5743. return dataTable;
  5744. }
  5745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5747. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5748. public virtual int Update(pracFabricaDataSet.TkanDataTable dataTable) {
  5749. return this.Adapter.Update(dataTable);
  5750. }
  5751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5753. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5754. public virtual int Update(pracFabricaDataSet dataSet) {
  5755. return this.Adapter.Update(dataSet, "Tkan");
  5756. }
  5757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5759. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5760. public virtual int Update(global::System.Data.DataRow dataRow) {
  5761. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5762. dataRow});
  5763. }
  5764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5766. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5767. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5768. return this.Adapter.Update(dataRows);
  5769. }
  5770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5772. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5773. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5774. public virtual int Delete(int Original_id_Tkan, string Original_Title, global::System.Nullable<int> Original_id_color, global::System.Nullable<int> Original_Length, global::System.Nullable<int> Original_Width, string Original_Comment, string Original_NamePhoto) {
  5775. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_Tkan));
  5776. if ((Original_Title == null)) {
  5777. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5778. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5779. }
  5780. else {
  5781. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5782. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Title));
  5783. }
  5784. if ((Original_id_color.HasValue == true)) {
  5785. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5786. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_id_color.Value));
  5787. }
  5788. else {
  5789. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5790. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5791. }
  5792. if ((Original_Length.HasValue == true)) {
  5793. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5794. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Length.Value));
  5795. }
  5796. else {
  5797. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5798. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5799. }
  5800. if ((Original_Width.HasValue == true)) {
  5801. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  5802. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_Width.Value));
  5803. }
  5804. else {
  5805. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  5806. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  5807. }
  5808. if ((Original_Comment == null)) {
  5809. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  5810. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  5811. }
  5812. else {
  5813. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  5814. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Comment));
  5815. }
  5816. if ((Original_NamePhoto == null)) {
  5817. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  5818. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  5819. }
  5820. else {
  5821. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  5822. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_NamePhoto));
  5823. }
  5824. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5825. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5826. != global::System.Data.ConnectionState.Open)) {
  5827. this.Adapter.DeleteCommand.Connection.Open();
  5828. }
  5829. try {
  5830. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5831. return returnValue;
  5832. }
  5833. finally {
  5834. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5835. this.Adapter.DeleteCommand.Connection.Close();
  5836. }
  5837. }
  5838. }
  5839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5841. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5842. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5843. public virtual int Insert(string Title, global::System.Nullable<int> id_color, global::System.Nullable<int> Length, global::System.Nullable<int> Width, string Comment, string NamePhoto) {
  5844. if ((Title == null)) {
  5845. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5846. }
  5847. else {
  5848. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  5849. }
  5850. if ((id_color.HasValue == true)) {
  5851. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(id_color.Value));
  5852. }
  5853. else {
  5854. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5855. }
  5856. if ((Length.HasValue == true)) {
  5857. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Length.Value));
  5858. }
  5859. else {
  5860. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5861. }
  5862. if ((Width.HasValue == true)) {
  5863. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Width.Value));
  5864. }
  5865. else {
  5866. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5867. }
  5868. if ((Comment == null)) {
  5869. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5870. }
  5871. else {
  5872. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Comment));
  5873. }
  5874. if ((NamePhoto == null)) {
  5875. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  5876. }
  5877. else {
  5878. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(NamePhoto));
  5879. }
  5880. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5881. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5882. != global::System.Data.ConnectionState.Open)) {
  5883. this.Adapter.InsertCommand.Connection.Open();
  5884. }
  5885. try {
  5886. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5887. return returnValue;
  5888. }
  5889. finally {
  5890. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5891. this.Adapter.InsertCommand.Connection.Close();
  5892. }
  5893. }
  5894. }
  5895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5897. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5898. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5899. public virtual int Update(string Title, global::System.Nullable<int> id_color, global::System.Nullable<int> Length, global::System.Nullable<int> Width, string Comment, string NamePhoto, int Original_id_Tkan, string Original_Title, global::System.Nullable<int> Original_id_color, global::System.Nullable<int> Original_Length, global::System.Nullable<int> Original_Width, string Original_Comment, string Original_NamePhoto, int id_Tkan) {
  5900. if ((Title == null)) {
  5901. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5902. }
  5903. else {
  5904. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  5905. }
  5906. if ((id_color.HasValue == true)) {
  5907. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(id_color.Value));
  5908. }
  5909. else {
  5910. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5911. }
  5912. if ((Length.HasValue == true)) {
  5913. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Length.Value));
  5914. }
  5915. else {
  5916. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5917. }
  5918. if ((Width.HasValue == true)) {
  5919. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Width.Value));
  5920. }
  5921. else {
  5922. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5923. }
  5924. if ((Comment == null)) {
  5925. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5926. }
  5927. else {
  5928. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Comment));
  5929. }
  5930. if ((NamePhoto == null)) {
  5931. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5932. }
  5933. else {
  5934. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(NamePhoto));
  5935. }
  5936. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_id_Tkan));
  5937. if ((Original_Title == null)) {
  5938. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  5939. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  5940. }
  5941. else {
  5942. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  5943. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Title));
  5944. }
  5945. if ((Original_id_color.HasValue == true)) {
  5946. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  5947. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_id_color.Value));
  5948. }
  5949. else {
  5950. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  5951. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  5952. }
  5953. if ((Original_Length.HasValue == true)) {
  5954. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  5955. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_Length.Value));
  5956. }
  5957. else {
  5958. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  5959. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  5960. }
  5961. if ((Original_Width.HasValue == true)) {
  5962. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  5963. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_Width.Value));
  5964. }
  5965. else {
  5966. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  5967. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  5968. }
  5969. if ((Original_Comment == null)) {
  5970. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  5971. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  5972. }
  5973. else {
  5974. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  5975. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Comment));
  5976. }
  5977. if ((Original_NamePhoto == null)) {
  5978. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  5979. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  5980. }
  5981. else {
  5982. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  5983. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_NamePhoto));
  5984. }
  5985. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(id_Tkan));
  5986. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5987. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5988. != global::System.Data.ConnectionState.Open)) {
  5989. this.Adapter.UpdateCommand.Connection.Open();
  5990. }
  5991. try {
  5992. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5993. return returnValue;
  5994. }
  5995. finally {
  5996. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5997. this.Adapter.UpdateCommand.Connection.Close();
  5998. }
  5999. }
  6000. }
  6001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6003. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6004. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6005. public virtual int Update(string Title, global::System.Nullable<int> id_color, global::System.Nullable<int> Length, global::System.Nullable<int> Width, string Comment, string NamePhoto, int Original_id_Tkan, string Original_Title, global::System.Nullable<int> Original_id_color, global::System.Nullable<int> Original_Length, global::System.Nullable<int> Original_Width, string Original_Comment, string Original_NamePhoto) {
  6006. return this.Update(Title, id_color, Length, Width, Comment, NamePhoto, Original_id_Tkan, Original_Title, Original_id_color, Original_Length, Original_Width, Original_Comment, Original_NamePhoto, Original_id_Tkan);
  6007. }
  6008. }
  6009. /// <summary>
  6010. ///Represents the connection and commands used to retrieve and save data.
  6011. ///</summary>
  6012. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6013. [global::System.ComponentModel.ToolboxItem(true)]
  6014. [global::System.ComponentModel.DataObjectAttribute(true)]
  6015. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6016. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6017. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6018. public partial class UsersTableAdapter : global::System.ComponentModel.Component {
  6019. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6020. private global::System.Data.SqlClient.SqlConnection _connection;
  6021. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6022. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6023. private bool _clearBeforeFill;
  6024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6026. public UsersTableAdapter() {
  6027. this.ClearBeforeFill = true;
  6028. }
  6029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6031. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6032. get {
  6033. if ((this._adapter == null)) {
  6034. this.InitAdapter();
  6035. }
  6036. return this._adapter;
  6037. }
  6038. }
  6039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6041. internal global::System.Data.SqlClient.SqlConnection Connection {
  6042. get {
  6043. if ((this._connection == null)) {
  6044. this.InitConnection();
  6045. }
  6046. return this._connection;
  6047. }
  6048. set {
  6049. this._connection = value;
  6050. if ((this.Adapter.InsertCommand != null)) {
  6051. this.Adapter.InsertCommand.Connection = value;
  6052. }
  6053. if ((this.Adapter.DeleteCommand != null)) {
  6054. this.Adapter.DeleteCommand.Connection = value;
  6055. }
  6056. if ((this.Adapter.UpdateCommand != null)) {
  6057. this.Adapter.UpdateCommand.Connection = value;
  6058. }
  6059. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6060. if ((this.CommandCollection[i] != null)) {
  6061. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6062. }
  6063. }
  6064. }
  6065. }
  6066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6068. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6069. get {
  6070. return this._transaction;
  6071. }
  6072. set {
  6073. this._transaction = value;
  6074. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6075. this.CommandCollection[i].Transaction = this._transaction;
  6076. }
  6077. if (((this.Adapter != null)
  6078. && (this.Adapter.DeleteCommand != null))) {
  6079. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6080. }
  6081. if (((this.Adapter != null)
  6082. && (this.Adapter.InsertCommand != null))) {
  6083. this.Adapter.InsertCommand.Transaction = this._transaction;
  6084. }
  6085. if (((this.Adapter != null)
  6086. && (this.Adapter.UpdateCommand != null))) {
  6087. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6088. }
  6089. }
  6090. }
  6091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6093. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6094. get {
  6095. if ((this._commandCollection == null)) {
  6096. this.InitCommandCollection();
  6097. }
  6098. return this._commandCollection;
  6099. }
  6100. }
  6101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6103. public bool ClearBeforeFill {
  6104. get {
  6105. return this._clearBeforeFill;
  6106. }
  6107. set {
  6108. this._clearBeforeFill = value;
  6109. }
  6110. }
  6111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6113. private void InitAdapter() {
  6114. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6115. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6116. tableMapping.SourceTable = "Table";
  6117. tableMapping.DataSetTable = "Users";
  6118. tableMapping.ColumnMappings.Add("id_User", "id_User");
  6119. tableMapping.ColumnMappings.Add("login", "login");
  6120. tableMapping.ColumnMappings.Add("pass", "pass");
  6121. tableMapping.ColumnMappings.Add("Role", "Role");
  6122. tableMapping.ColumnMappings.Add("Surname", "Surname");
  6123. tableMapping.ColumnMappings.Add("Name", "Name");
  6124. tableMapping.ColumnMappings.Add("Otch", "Otch");
  6125. tableMapping.ColumnMappings.Add("Phone", "Phone");
  6126. this._adapter.TableMappings.Add(tableMapping);
  6127. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6128. this._adapter.DeleteCommand.Connection = this.Connection;
  6129. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Users] WHERE (([id_User] = @Original_id_User) AND ((@IsNull_login = 1 AND [login] IS NULL) OR ([login] = @Original_login)) AND ((@IsNull_pass = 1 AND [pass] IS NULL) OR ([pass] = @Original_pass)) AND ((@IsNull_Role = 1 AND [Role] IS NULL) OR ([Role] = @Original_Role)) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Otch = 1 AND [Otch] IS NULL) OR ([Otch] = @Original_Otch)) AND ((@IsNull_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)))";
  6130. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6131. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_User", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_User", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6132. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_login", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "login", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6133. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6134. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pass", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pass", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6135. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pass", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pass", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6136. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6137. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6138. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Surname", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6139. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6140. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6141. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6142. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Otch", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otch", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6143. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Otch", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otch", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6144. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Phone", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6145. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6146. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6147. this._adapter.InsertCommand.Connection = this.Connection;
  6148. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Users] ([login], [pass], [Role], [Surname], [Name], [Otch], [Phone]) VALUES (@login, @pass, @Role, @Surname, @Name, @Otch, @Phone);
  6149. SELECT id_User, login, pass, Role, Surname, Name, Otch, Phone FROM Users WHERE (id_User = SCOPE_IDENTITY())";
  6150. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6151. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6152. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pass", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pass", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6153. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6154. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6155. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6156. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Otch", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otch", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6157. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6158. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6159. this._adapter.UpdateCommand.Connection = this.Connection;
  6160. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Users] SET [login] = @login, [pass] = @pass, [Role] = @Role, [Surname] = @Surname, [Name] = @Name, [Otch] = @Otch, [Phone] = @Phone WHERE (([id_User] = @Original_id_User) AND ((@IsNull_login = 1 AND [login] IS NULL) OR ([login] = @Original_login)) AND ((@IsNull_pass = 1 AND [pass] IS NULL) OR ([pass] = @Original_pass)) AND ((@IsNull_Role = 1 AND [Role] IS NULL) OR ([Role] = @Original_Role)) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Otch = 1 AND [Otch] IS NULL) OR ([Otch] = @Original_Otch)) AND ((@IsNull_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)));
  6161. SELECT id_User, login, pass, Role, Surname, Name, Otch, Phone FROM Users WHERE (id_User = @id_User)";
  6162. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6163. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6164. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pass", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pass", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6165. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6166. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6167. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6168. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Otch", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otch", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6169. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6170. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_User", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_User", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6171. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_login", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "login", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6172. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6173. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pass", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pass", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6174. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pass", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pass", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6175. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6176. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6177. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Surname", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6178. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6179. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6180. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6181. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Otch", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otch", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6182. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Otch", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otch", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6183. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Phone", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6184. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6185. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_User", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id_User", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6186. }
  6187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6189. private void InitConnection() {
  6190. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6191. this._connection.ConnectionString = global::СУБД_Швейная_фабрика.Properties.Settings.Default.pracFabricaConnectionString;
  6192. }
  6193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6195. private void InitCommandCollection() {
  6196. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6197. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6198. this._commandCollection[0].Connection = this.Connection;
  6199. this._commandCollection[0].CommandText = "SELECT id_User, login, pass, Role, Surname, Name, Otch, Phone FROM dbo.Users";
  6200. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6201. }
  6202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6204. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6205. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6206. public virtual int Fill(pracFabricaDataSet.UsersDataTable dataTable) {
  6207. this.Adapter.SelectCommand = this.CommandCollection[0];
  6208. if ((this.ClearBeforeFill == true)) {
  6209. dataTable.Clear();
  6210. }
  6211. int returnValue = this.Adapter.Fill(dataTable);
  6212. return returnValue;
  6213. }
  6214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6216. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6217. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6218. public virtual pracFabricaDataSet.UsersDataTable GetData() {
  6219. this.Adapter.SelectCommand = this.CommandCollection[0];
  6220. pracFabricaDataSet.UsersDataTable dataTable = new pracFabricaDataSet.UsersDataTable();
  6221. this.Adapter.Fill(dataTable);
  6222. return dataTable;
  6223. }
  6224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6226. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6227. public virtual int Update(pracFabricaDataSet.UsersDataTable dataTable) {
  6228. return this.Adapter.Update(dataTable);
  6229. }
  6230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6232. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6233. public virtual int Update(pracFabricaDataSet dataSet) {
  6234. return this.Adapter.Update(dataSet, "Users");
  6235. }
  6236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6238. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6239. public virtual int Update(global::System.Data.DataRow dataRow) {
  6240. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6241. dataRow});
  6242. }
  6243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6245. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6246. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6247. return this.Adapter.Update(dataRows);
  6248. }
  6249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6251. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6252. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6253. public virtual int Delete(int Original_id_User, string Original_login, string Original_pass, global::System.Nullable<int> Original_Role, string Original_Surname, string Original_Name, string Original_Otch, string Original_Phone) {
  6254. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_User));
  6255. if ((Original_login == null)) {
  6256. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6257. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6258. }
  6259. else {
  6260. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6261. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_login));
  6262. }
  6263. if ((Original_pass == null)) {
  6264. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6265. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6266. }
  6267. else {
  6268. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6269. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_pass));
  6270. }
  6271. if ((Original_Role.HasValue == true)) {
  6272. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6273. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Role.Value));
  6274. }
  6275. else {
  6276. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6277. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6278. }
  6279. if ((Original_Surname == null)) {
  6280. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6281. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6282. }
  6283. else {
  6284. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6285. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Surname));
  6286. }
  6287. if ((Original_Name == null)) {
  6288. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6289. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6290. }
  6291. else {
  6292. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6293. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Name));
  6294. }
  6295. if ((Original_Otch == null)) {
  6296. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  6297. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  6298. }
  6299. else {
  6300. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  6301. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Otch));
  6302. }
  6303. if ((Original_Phone == null)) {
  6304. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  6305. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  6306. }
  6307. else {
  6308. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  6309. this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_Phone));
  6310. }
  6311. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6312. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6313. != global::System.Data.ConnectionState.Open)) {
  6314. this.Adapter.DeleteCommand.Connection.Open();
  6315. }
  6316. try {
  6317. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6318. return returnValue;
  6319. }
  6320. finally {
  6321. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6322. this.Adapter.DeleteCommand.Connection.Close();
  6323. }
  6324. }
  6325. }
  6326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6328. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6329. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6330. public virtual int Insert(string login, string pass, global::System.Nullable<int> Role, string Surname, string Name, string Otch, string Phone) {
  6331. if ((login == null)) {
  6332. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6333. }
  6334. else {
  6335. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(login));
  6336. }
  6337. if ((pass == null)) {
  6338. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6339. }
  6340. else {
  6341. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(pass));
  6342. }
  6343. if ((Role.HasValue == true)) {
  6344. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Role.Value));
  6345. }
  6346. else {
  6347. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6348. }
  6349. if ((Surname == null)) {
  6350. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6351. }
  6352. else {
  6353. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Surname));
  6354. }
  6355. if ((Name == null)) {
  6356. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6357. }
  6358. else {
  6359. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Name));
  6360. }
  6361. if ((Otch == null)) {
  6362. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6363. }
  6364. else {
  6365. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Otch));
  6366. }
  6367. if ((Phone == null)) {
  6368. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  6369. }
  6370. else {
  6371. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Phone));
  6372. }
  6373. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6374. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6375. != global::System.Data.ConnectionState.Open)) {
  6376. this.Adapter.InsertCommand.Connection.Open();
  6377. }
  6378. try {
  6379. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6380. return returnValue;
  6381. }
  6382. finally {
  6383. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6384. this.Adapter.InsertCommand.Connection.Close();
  6385. }
  6386. }
  6387. }
  6388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6390. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6391. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6392. public virtual int Update(
  6393. string login,
  6394. string pass,
  6395. global::System.Nullable<int> Role,
  6396. string Surname,
  6397. string Name,
  6398. string Otch,
  6399. string Phone,
  6400. int Original_id_User,
  6401. string Original_login,
  6402. string Original_pass,
  6403. global::System.Nullable<int> Original_Role,
  6404. string Original_Surname,
  6405. string Original_Name,
  6406. string Original_Otch,
  6407. string Original_Phone,
  6408. int id_User) {
  6409. if ((login == null)) {
  6410. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6411. }
  6412. else {
  6413. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(login));
  6414. }
  6415. if ((pass == null)) {
  6416. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6417. }
  6418. else {
  6419. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(pass));
  6420. }
  6421. if ((Role.HasValue == true)) {
  6422. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Role.Value));
  6423. }
  6424. else {
  6425. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6426. }
  6427. if ((Surname == null)) {
  6428. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6429. }
  6430. else {
  6431. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Surname));
  6432. }
  6433. if ((Name == null)) {
  6434. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6435. }
  6436. else {
  6437. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Name));
  6438. }
  6439. if ((Otch == null)) {
  6440. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6441. }
  6442. else {
  6443. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Otch));
  6444. }
  6445. if ((Phone == null)) {
  6446. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  6447. }
  6448. else {
  6449. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Phone));
  6450. }
  6451. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_id_User));
  6452. if ((Original_login == null)) {
  6453. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  6454. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  6455. }
  6456. else {
  6457. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  6458. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_login));
  6459. }
  6460. if ((Original_pass == null)) {
  6461. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  6462. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  6463. }
  6464. else {
  6465. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  6466. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_pass));
  6467. }
  6468. if ((Original_Role.HasValue == true)) {
  6469. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  6470. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_Role.Value));
  6471. }
  6472. else {
  6473. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  6474. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  6475. }
  6476. if ((Original_Surname == null)) {
  6477. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  6478. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  6479. }
  6480. else {
  6481. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  6482. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Surname));
  6483. }
  6484. if ((Original_Name == null)) {
  6485. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  6486. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  6487. }
  6488. else {
  6489. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  6490. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Name));
  6491. }
  6492. if ((Original_Otch == null)) {
  6493. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  6494. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  6495. }
  6496. else {
  6497. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  6498. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Otch));
  6499. }
  6500. if ((Original_Phone == null)) {
  6501. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  6502. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  6503. }
  6504. else {
  6505. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  6506. this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_Phone));
  6507. }
  6508. this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(id_User));
  6509. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6510. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6511. != global::System.Data.ConnectionState.Open)) {
  6512. this.Adapter.UpdateCommand.Connection.Open();
  6513. }
  6514. try {
  6515. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6516. return returnValue;
  6517. }
  6518. finally {
  6519. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6520. this.Adapter.UpdateCommand.Connection.Close();
  6521. }
  6522. }
  6523. }
  6524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6526. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6527. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6528. public virtual int Update(string login, string pass, global::System.Nullable<int> Role, string Surname, string Name, string Otch, string Phone, int Original_id_User, string Original_login, string Original_pass, global::System.Nullable<int> Original_Role, string Original_Surname, string Original_Name, string Original_Otch, string Original_Phone) {
  6529. return this.Update(login, pass, Role, Surname, Name, Otch, Phone, Original_id_User, Original_login, Original_pass, Original_Role, Original_Surname, Original_Name, Original_Otch, Original_Phone, Original_id_User);
  6530. }
  6531. }
  6532. /// <summary>
  6533. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  6534. ///</summary>
  6535. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6536. [global::System.ComponentModel.ToolboxItem(true)]
  6537. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  6538. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6539. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  6540. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  6541. private UpdateOrderOption _updateOrder;
  6542. private ColorTableAdapter _colorTableAdapter;
  6543. private FurnituraTableAdapter _furnituraTableAdapter;
  6544. private IzdelieTableAdapter _izdelieTableAdapter;
  6545. private OrdersTableAdapter _ordersTableAdapter;
  6546. private RolesTableAdapter _rolesTableAdapter;
  6547. private TkanTableAdapter _tkanTableAdapter;
  6548. private UsersTableAdapter _usersTableAdapter;
  6549. private bool _backupDataSetBeforeUpdate;
  6550. private global::System.Data.IDbConnection _connection;
  6551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6553. public UpdateOrderOption UpdateOrder {
  6554. get {
  6555. return this._updateOrder;
  6556. }
  6557. set {
  6558. this._updateOrder = value;
  6559. }
  6560. }
  6561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6563. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6564. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6565. "a", "System.Drawing.Design.UITypeEditor")]
  6566. public ColorTableAdapter ColorTableAdapter {
  6567. get {
  6568. return this._colorTableAdapter;
  6569. }
  6570. set {
  6571. this._colorTableAdapter = value;
  6572. }
  6573. }
  6574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6576. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6577. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6578. "a", "System.Drawing.Design.UITypeEditor")]
  6579. public FurnituraTableAdapter FurnituraTableAdapter {
  6580. get {
  6581. return this._furnituraTableAdapter;
  6582. }
  6583. set {
  6584. this._furnituraTableAdapter = value;
  6585. }
  6586. }
  6587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6589. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6590. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6591. "a", "System.Drawing.Design.UITypeEditor")]
  6592. public IzdelieTableAdapter IzdelieTableAdapter {
  6593. get {
  6594. return this._izdelieTableAdapter;
  6595. }
  6596. set {
  6597. this._izdelieTableAdapter = value;
  6598. }
  6599. }
  6600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6602. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6603. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6604. "a", "System.Drawing.Design.UITypeEditor")]
  6605. public OrdersTableAdapter OrdersTableAdapter {
  6606. get {
  6607. return this._ordersTableAdapter;
  6608. }
  6609. set {
  6610. this._ordersTableAdapter = value;
  6611. }
  6612. }
  6613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6615. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6616. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6617. "a", "System.Drawing.Design.UITypeEditor")]
  6618. public RolesTableAdapter RolesTableAdapter {
  6619. get {
  6620. return this._rolesTableAdapter;
  6621. }
  6622. set {
  6623. this._rolesTableAdapter = value;
  6624. }
  6625. }
  6626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6628. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6629. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6630. "a", "System.Drawing.Design.UITypeEditor")]
  6631. public TkanTableAdapter TkanTableAdapter {
  6632. get {
  6633. return this._tkanTableAdapter;
  6634. }
  6635. set {
  6636. this._tkanTableAdapter = value;
  6637. }
  6638. }
  6639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6641. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6642. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6643. "a", "System.Drawing.Design.UITypeEditor")]
  6644. public UsersTableAdapter UsersTableAdapter {
  6645. get {
  6646. return this._usersTableAdapter;
  6647. }
  6648. set {
  6649. this._usersTableAdapter = value;
  6650. }
  6651. }
  6652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6654. public bool BackupDataSetBeforeUpdate {
  6655. get {
  6656. return this._backupDataSetBeforeUpdate;
  6657. }
  6658. set {
  6659. this._backupDataSetBeforeUpdate = value;
  6660. }
  6661. }
  6662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6664. [global::System.ComponentModel.Browsable(false)]
  6665. public global::System.Data.IDbConnection Connection {
  6666. get {
  6667. if ((this._connection != null)) {
  6668. return this._connection;
  6669. }
  6670. if (((this._colorTableAdapter != null)
  6671. && (this._colorTableAdapter.Connection != null))) {
  6672. return this._colorTableAdapter.Connection;
  6673. }
  6674. if (((this._furnituraTableAdapter != null)
  6675. && (this._furnituraTableAdapter.Connection != null))) {
  6676. return this._furnituraTableAdapter.Connection;
  6677. }
  6678. if (((this._izdelieTableAdapter != null)
  6679. && (this._izdelieTableAdapter.Connection != null))) {
  6680. return this._izdelieTableAdapter.Connection;
  6681. }
  6682. if (((this._ordersTableAdapter != null)
  6683. && (this._ordersTableAdapter.Connection != null))) {
  6684. return this._ordersTableAdapter.Connection;
  6685. }
  6686. if (((this._rolesTableAdapter != null)
  6687. && (this._rolesTableAdapter.Connection != null))) {
  6688. return this._rolesTableAdapter.Connection;
  6689. }
  6690. if (((this._tkanTableAdapter != null)
  6691. && (this._tkanTableAdapter.Connection != null))) {
  6692. return this._tkanTableAdapter.Connection;
  6693. }
  6694. if (((this._usersTableAdapter != null)
  6695. && (this._usersTableAdapter.Connection != null))) {
  6696. return this._usersTableAdapter.Connection;
  6697. }
  6698. return null;
  6699. }
  6700. set {
  6701. this._connection = value;
  6702. }
  6703. }
  6704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6706. [global::System.ComponentModel.Browsable(false)]
  6707. public int TableAdapterInstanceCount {
  6708. get {
  6709. int count = 0;
  6710. if ((this._colorTableAdapter != null)) {
  6711. count = (count + 1);
  6712. }
  6713. if ((this._furnituraTableAdapter != null)) {
  6714. count = (count + 1);
  6715. }
  6716. if ((this._izdelieTableAdapter != null)) {
  6717. count = (count + 1);
  6718. }
  6719. if ((this._ordersTableAdapter != null)) {
  6720. count = (count + 1);
  6721. }
  6722. if ((this._rolesTableAdapter != null)) {
  6723. count = (count + 1);
  6724. }
  6725. if ((this._tkanTableAdapter != null)) {
  6726. count = (count + 1);
  6727. }
  6728. if ((this._usersTableAdapter != null)) {
  6729. count = (count + 1);
  6730. }
  6731. return count;
  6732. }
  6733. }
  6734. /// <summary>
  6735. ///Update rows in top-down order.
  6736. ///</summary>
  6737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6739. private int UpdateUpdatedRows(pracFabricaDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6740. int result = 0;
  6741. if ((this._colorTableAdapter != null)) {
  6742. global::System.Data.DataRow[] updatedRows = dataSet.Color.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6743. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6744. if (((updatedRows != null)
  6745. && (0 < updatedRows.Length))) {
  6746. result = (result + this._colorTableAdapter.Update(updatedRows));
  6747. allChangedRows.AddRange(updatedRows);
  6748. }
  6749. }
  6750. if ((this._rolesTableAdapter != null)) {
  6751. global::System.Data.DataRow[] updatedRows = dataSet.Roles.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6752. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6753. if (((updatedRows != null)
  6754. && (0 < updatedRows.Length))) {
  6755. result = (result + this._rolesTableAdapter.Update(updatedRows));
  6756. allChangedRows.AddRange(updatedRows);
  6757. }
  6758. }
  6759. if ((this._furnituraTableAdapter != null)) {
  6760. global::System.Data.DataRow[] updatedRows = dataSet.Furnitura.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6761. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6762. if (((updatedRows != null)
  6763. && (0 < updatedRows.Length))) {
  6764. result = (result + this._furnituraTableAdapter.Update(updatedRows));
  6765. allChangedRows.AddRange(updatedRows);
  6766. }
  6767. }
  6768. if ((this._izdelieTableAdapter != null)) {
  6769. global::System.Data.DataRow[] updatedRows = dataSet.Izdelie.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6770. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6771. if (((updatedRows != null)
  6772. && (0 < updatedRows.Length))) {
  6773. result = (result + this._izdelieTableAdapter.Update(updatedRows));
  6774. allChangedRows.AddRange(updatedRows);
  6775. }
  6776. }
  6777. if ((this._tkanTableAdapter != null)) {
  6778. global::System.Data.DataRow[] updatedRows = dataSet.Tkan.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6779. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6780. if (((updatedRows != null)
  6781. && (0 < updatedRows.Length))) {
  6782. result = (result + this._tkanTableAdapter.Update(updatedRows));
  6783. allChangedRows.AddRange(updatedRows);
  6784. }
  6785. }
  6786. if ((this._usersTableAdapter != null)) {
  6787. global::System.Data.DataRow[] updatedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6788. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6789. if (((updatedRows != null)
  6790. && (0 < updatedRows.Length))) {
  6791. result = (result + this._usersTableAdapter.Update(updatedRows));
  6792. allChangedRows.AddRange(updatedRows);
  6793. }
  6794. }
  6795. if ((this._ordersTableAdapter != null)) {
  6796. global::System.Data.DataRow[] updatedRows = dataSet.Orders.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6797. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6798. if (((updatedRows != null)
  6799. && (0 < updatedRows.Length))) {
  6800. result = (result + this._ordersTableAdapter.Update(updatedRows));
  6801. allChangedRows.AddRange(updatedRows);
  6802. }
  6803. }
  6804. return result;
  6805. }
  6806. /// <summary>
  6807. ///Insert rows in top-down order.
  6808. ///</summary>
  6809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6811. private int UpdateInsertedRows(pracFabricaDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6812. int result = 0;
  6813. if ((this._colorTableAdapter != null)) {
  6814. global::System.Data.DataRow[] addedRows = dataSet.Color.Select(null, null, global::System.Data.DataViewRowState.Added);
  6815. if (((addedRows != null)
  6816. && (0 < addedRows.Length))) {
  6817. result = (result + this._colorTableAdapter.Update(addedRows));
  6818. allAddedRows.AddRange(addedRows);
  6819. }
  6820. }
  6821. if ((this._rolesTableAdapter != null)) {
  6822. global::System.Data.DataRow[] addedRows = dataSet.Roles.Select(null, null, global::System.Data.DataViewRowState.Added);
  6823. if (((addedRows != null)
  6824. && (0 < addedRows.Length))) {
  6825. result = (result + this._rolesTableAdapter.Update(addedRows));
  6826. allAddedRows.AddRange(addedRows);
  6827. }
  6828. }
  6829. if ((this._furnituraTableAdapter != null)) {
  6830. global::System.Data.DataRow[] addedRows = dataSet.Furnitura.Select(null, null, global::System.Data.DataViewRowState.Added);
  6831. if (((addedRows != null)
  6832. && (0 < addedRows.Length))) {
  6833. result = (result + this._furnituraTableAdapter.Update(addedRows));
  6834. allAddedRows.AddRange(addedRows);
  6835. }
  6836. }
  6837. if ((this._izdelieTableAdapter != null)) {
  6838. global::System.Data.DataRow[] addedRows = dataSet.Izdelie.Select(null, null, global::System.Data.DataViewRowState.Added);
  6839. if (((addedRows != null)
  6840. && (0 < addedRows.Length))) {
  6841. result = (result + this._izdelieTableAdapter.Update(addedRows));
  6842. allAddedRows.AddRange(addedRows);
  6843. }
  6844. }
  6845. if ((this._tkanTableAdapter != null)) {
  6846. global::System.Data.DataRow[] addedRows = dataSet.Tkan.Select(null, null, global::System.Data.DataViewRowState.Added);
  6847. if (((addedRows != null)
  6848. && (0 < addedRows.Length))) {
  6849. result = (result + this._tkanTableAdapter.Update(addedRows));
  6850. allAddedRows.AddRange(addedRows);
  6851. }
  6852. }
  6853. if ((this._usersTableAdapter != null)) {
  6854. global::System.Data.DataRow[] addedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Added);
  6855. if (((addedRows != null)
  6856. && (0 < addedRows.Length))) {
  6857. result = (result + this._usersTableAdapter.Update(addedRows));
  6858. allAddedRows.AddRange(addedRows);
  6859. }
  6860. }
  6861. if ((this._ordersTableAdapter != null)) {
  6862. global::System.Data.DataRow[] addedRows = dataSet.Orders.Select(null, null, global::System.Data.DataViewRowState.Added);
  6863. if (((addedRows != null)
  6864. && (0 < addedRows.Length))) {
  6865. result = (result + this._ordersTableAdapter.Update(addedRows));
  6866. allAddedRows.AddRange(addedRows);
  6867. }
  6868. }
  6869. return result;
  6870. }
  6871. /// <summary>
  6872. ///Delete rows in bottom-up order.
  6873. ///</summary>
  6874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6876. private int UpdateDeletedRows(pracFabricaDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  6877. int result = 0;
  6878. if ((this._ordersTableAdapter != null)) {
  6879. global::System.Data.DataRow[] deletedRows = dataSet.Orders.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6880. if (((deletedRows != null)
  6881. && (0 < deletedRows.Length))) {
  6882. result = (result + this._ordersTableAdapter.Update(deletedRows));
  6883. allChangedRows.AddRange(deletedRows);
  6884. }
  6885. }
  6886. if ((this._usersTableAdapter != null)) {
  6887. global::System.Data.DataRow[] deletedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6888. if (((deletedRows != null)
  6889. && (0 < deletedRows.Length))) {
  6890. result = (result + this._usersTableAdapter.Update(deletedRows));
  6891. allChangedRows.AddRange(deletedRows);
  6892. }
  6893. }
  6894. if ((this._tkanTableAdapter != null)) {
  6895. global::System.Data.DataRow[] deletedRows = dataSet.Tkan.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6896. if (((deletedRows != null)
  6897. && (0 < deletedRows.Length))) {
  6898. result = (result + this._tkanTableAdapter.Update(deletedRows));
  6899. allChangedRows.AddRange(deletedRows);
  6900. }
  6901. }
  6902. if ((this._izdelieTableAdapter != null)) {
  6903. global::System.Data.DataRow[] deletedRows = dataSet.Izdelie.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6904. if (((deletedRows != null)
  6905. && (0 < deletedRows.Length))) {
  6906. result = (result + this._izdelieTableAdapter.Update(deletedRows));
  6907. allChangedRows.AddRange(deletedRows);
  6908. }
  6909. }
  6910. if ((this._furnituraTableAdapter != null)) {
  6911. global::System.Data.DataRow[] deletedRows = dataSet.Furnitura.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6912. if (((deletedRows != null)
  6913. && (0 < deletedRows.Length))) {
  6914. result = (result + this._furnituraTableAdapter.Update(deletedRows));
  6915. allChangedRows.AddRange(deletedRows);
  6916. }
  6917. }
  6918. if ((this._rolesTableAdapter != null)) {
  6919. global::System.Data.DataRow[] deletedRows = dataSet.Roles.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6920. if (((deletedRows != null)
  6921. && (0 < deletedRows.Length))) {
  6922. result = (result + this._rolesTableAdapter.Update(deletedRows));
  6923. allChangedRows.AddRange(deletedRows);
  6924. }
  6925. }
  6926. if ((this._colorTableAdapter != null)) {
  6927. global::System.Data.DataRow[] deletedRows = dataSet.Color.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6928. if (((deletedRows != null)
  6929. && (0 < deletedRows.Length))) {
  6930. result = (result + this._colorTableAdapter.Update(deletedRows));
  6931. allChangedRows.AddRange(deletedRows);
  6932. }
  6933. }
  6934. return result;
  6935. }
  6936. /// <summary>
  6937. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  6938. ///</summary>
  6939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6941. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6942. if (((updatedRows == null)
  6943. || (updatedRows.Length < 1))) {
  6944. return updatedRows;
  6945. }
  6946. if (((allAddedRows == null)
  6947. || (allAddedRows.Count < 1))) {
  6948. return updatedRows;
  6949. }
  6950. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6951. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  6952. global::System.Data.DataRow row = updatedRows[i];
  6953. if ((allAddedRows.Contains(row) == false)) {
  6954. realUpdatedRows.Add(row);
  6955. }
  6956. }
  6957. return realUpdatedRows.ToArray();
  6958. }
  6959. /// <summary>
  6960. ///Update all changes to the dataset.
  6961. ///</summary>
  6962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6964. public virtual int UpdateAll(pracFabricaDataSet dataSet) {
  6965. if ((dataSet == null)) {
  6966. throw new global::System.ArgumentNullException("dataSet");
  6967. }
  6968. if ((dataSet.HasChanges() == false)) {
  6969. return 0;
  6970. }
  6971. if (((this._colorTableAdapter != null)
  6972. && (this.MatchTableAdapterConnection(this._colorTableAdapter.Connection) == false))) {
  6973. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6974. "tring.");
  6975. }
  6976. if (((this._furnituraTableAdapter != null)
  6977. && (this.MatchTableAdapterConnection(this._furnituraTableAdapter.Connection) == false))) {
  6978. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6979. "tring.");
  6980. }
  6981. if (((this._izdelieTableAdapter != null)
  6982. && (this.MatchTableAdapterConnection(this._izdelieTableAdapter.Connection) == false))) {
  6983. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6984. "tring.");
  6985. }
  6986. if (((this._ordersTableAdapter != null)
  6987. && (this.MatchTableAdapterConnection(this._ordersTableAdapter.Connection) == false))) {
  6988. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6989. "tring.");
  6990. }
  6991. if (((this._rolesTableAdapter != null)
  6992. && (this.MatchTableAdapterConnection(this._rolesTableAdapter.Connection) == false))) {
  6993. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6994. "tring.");
  6995. }
  6996. if (((this._tkanTableAdapter != null)
  6997. && (this.MatchTableAdapterConnection(this._tkanTableAdapter.Connection) == false))) {
  6998. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6999. "tring.");
  7000. }
  7001. if (((this._usersTableAdapter != null)
  7002. && (this.MatchTableAdapterConnection(this._usersTableAdapter.Connection) == false))) {
  7003. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  7004. "tring.");
  7005. }
  7006. global::System.Data.IDbConnection workConnection = this.Connection;
  7007. if ((workConnection == null)) {
  7008. throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
  7009. "ger TableAdapter property to a valid TableAdapter instance.");
  7010. }
  7011. bool workConnOpened = false;
  7012. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  7013. == global::System.Data.ConnectionState.Broken)) {
  7014. workConnection.Close();
  7015. }
  7016. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  7017. workConnection.Open();
  7018. workConnOpened = true;
  7019. }
  7020. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  7021. if ((workTransaction == null)) {
  7022. throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" +
  7023. "ctions or the current state is not allowing the transaction to begin.");
  7024. }
  7025. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7026. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7027. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  7028. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  7029. int result = 0;
  7030. global::System.Data.DataSet backupDataSet = null;
  7031. if (this.BackupDataSetBeforeUpdate) {
  7032. backupDataSet = new global::System.Data.DataSet();
  7033. backupDataSet.Merge(dataSet);
  7034. }
  7035. try {
  7036. // ---- Prepare for update -----------
  7037. //
  7038. if ((this._colorTableAdapter != null)) {
  7039. revertConnections.Add(this._colorTableAdapter, this._colorTableAdapter.Connection);
  7040. this._colorTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7041. this._colorTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7042. if (this._colorTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7043. this._colorTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7044. adaptersWithAcceptChangesDuringUpdate.Add(this._colorTableAdapter.Adapter);
  7045. }
  7046. }
  7047. if ((this._furnituraTableAdapter != null)) {
  7048. revertConnections.Add(this._furnituraTableAdapter, this._furnituraTableAdapter.Connection);
  7049. this._furnituraTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7050. this._furnituraTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7051. if (this._furnituraTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7052. this._furnituraTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7053. adaptersWithAcceptChangesDuringUpdate.Add(this._furnituraTableAdapter.Adapter);
  7054. }
  7055. }
  7056. if ((this._izdelieTableAdapter != null)) {
  7057. revertConnections.Add(this._izdelieTableAdapter, this._izdelieTableAdapter.Connection);
  7058. this._izdelieTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7059. this._izdelieTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7060. if (this._izdelieTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7061. this._izdelieTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7062. adaptersWithAcceptChangesDuringUpdate.Add(this._izdelieTableAdapter.Adapter);
  7063. }
  7064. }
  7065. if ((this._ordersTableAdapter != null)) {
  7066. revertConnections.Add(this._ordersTableAdapter, this._ordersTableAdapter.Connection);
  7067. this._ordersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7068. this._ordersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7069. if (this._ordersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7070. this._ordersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7071. adaptersWithAcceptChangesDuringUpdate.Add(this._ordersTableAdapter.Adapter);
  7072. }
  7073. }
  7074. if ((this._rolesTableAdapter != null)) {
  7075. revertConnections.Add(this._rolesTableAdapter, this._rolesTableAdapter.Connection);
  7076. this._rolesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7077. this._rolesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7078. if (this._rolesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7079. this._rolesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7080. adaptersWithAcceptChangesDuringUpdate.Add(this._rolesTableAdapter.Adapter);
  7081. }
  7082. }
  7083. if ((this._tkanTableAdapter != null)) {
  7084. revertConnections.Add(this._tkanTableAdapter, this._tkanTableAdapter.Connection);
  7085. this._tkanTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7086. this._tkanTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7087. if (this._tkanTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7088. this._tkanTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7089. adaptersWithAcceptChangesDuringUpdate.Add(this._tkanTableAdapter.Adapter);
  7090. }
  7091. }
  7092. if ((this._usersTableAdapter != null)) {
  7093. revertConnections.Add(this._usersTableAdapter, this._usersTableAdapter.Connection);
  7094. this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7095. this._usersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7096. if (this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7097. this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7098. adaptersWithAcceptChangesDuringUpdate.Add(this._usersTableAdapter.Adapter);
  7099. }
  7100. }
  7101. //
  7102. //---- Perform updates -----------
  7103. //
  7104. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  7105. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  7106. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  7107. }
  7108. else {
  7109. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  7110. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  7111. }
  7112. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  7113. //
  7114. //---- Commit updates -----------
  7115. //
  7116. workTransaction.Commit();
  7117. if ((0 < allAddedRows.Count)) {
  7118. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  7119. allAddedRows.CopyTo(rows);
  7120. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  7121. global::System.Data.DataRow row = rows[i];
  7122. row.AcceptChanges();
  7123. }
  7124. }
  7125. if ((0 < allChangedRows.Count)) {
  7126. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  7127. allChangedRows.CopyTo(rows);
  7128. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  7129. global::System.Data.DataRow row = rows[i];
  7130. row.AcceptChanges();
  7131. }
  7132. }
  7133. }
  7134. catch (global::System.Exception ex) {
  7135. workTransaction.Rollback();
  7136. // ---- Restore the dataset -----------
  7137. if (this.BackupDataSetBeforeUpdate) {
  7138. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  7139. dataSet.Clear();
  7140. dataSet.Merge(backupDataSet);
  7141. }
  7142. else {
  7143. if ((0 < allAddedRows.Count)) {
  7144. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  7145. allAddedRows.CopyTo(rows);
  7146. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  7147. global::System.Data.DataRow row = rows[i];
  7148. row.AcceptChanges();
  7149. row.SetAdded();
  7150. }
  7151. }
  7152. }
  7153. throw ex;
  7154. }
  7155. finally {
  7156. if (workConnOpened) {
  7157. workConnection.Close();
  7158. }
  7159. if ((this._colorTableAdapter != null)) {
  7160. this._colorTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._colorTableAdapter]));
  7161. this._colorTableAdapter.Transaction = null;
  7162. }
  7163. if ((this._furnituraTableAdapter != null)) {
  7164. this._furnituraTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._furnituraTableAdapter]));
  7165. this._furnituraTableAdapter.Transaction = null;
  7166. }
  7167. if ((this._izdelieTableAdapter != null)) {
  7168. this._izdelieTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._izdelieTableAdapter]));
  7169. this._izdelieTableAdapter.Transaction = null;
  7170. }
  7171. if ((this._ordersTableAdapter != null)) {
  7172. this._ordersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._ordersTableAdapter]));
  7173. this._ordersTableAdapter.Transaction = null;
  7174. }
  7175. if ((this._rolesTableAdapter != null)) {
  7176. this._rolesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._rolesTableAdapter]));
  7177. this._rolesTableAdapter.Transaction = null;
  7178. }
  7179. if ((this._tkanTableAdapter != null)) {
  7180. this._tkanTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tkanTableAdapter]));
  7181. this._tkanTableAdapter.Transaction = null;
  7182. }
  7183. if ((this._usersTableAdapter != null)) {
  7184. this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._usersTableAdapter]));
  7185. this._usersTableAdapter.Transaction = null;
  7186. }
  7187. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  7188. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  7189. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  7190. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  7191. global::System.Data.Common.DataAdapter adapter = adapters[i];
  7192. adapter.AcceptChangesDuringUpdate = true;
  7193. }
  7194. }
  7195. }
  7196. return result;
  7197. }
  7198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7200. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  7201. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  7202. }
  7203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7205. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  7206. if ((this._connection != null)) {
  7207. return true;
  7208. }
  7209. if (((this.Connection == null)
  7210. || (inputConnection == null))) {
  7211. return true;
  7212. }
  7213. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  7214. return true;
  7215. }
  7216. return false;
  7217. }
  7218. /// <summary>
  7219. ///Update Order Option
  7220. ///</summary>
  7221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7222. public enum UpdateOrderOption {
  7223. InsertUpdateDelete = 0,
  7224. UpdateInsertDelete = 1,
  7225. }
  7226. /// <summary>
  7227. ///Used to sort self-referenced table's rows
  7228. ///</summary>
  7229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7230. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  7231. private global::System.Data.DataRelation _relation;
  7232. private int _childFirst;
  7233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7235. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  7236. this._relation = relation;
  7237. if (childFirst) {
  7238. this._childFirst = -1;
  7239. }
  7240. else {
  7241. this._childFirst = 1;
  7242. }
  7243. }
  7244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7246. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  7247. global::System.Diagnostics.Debug.Assert((row != null));
  7248. global::System.Data.DataRow root = row;
  7249. distance = 0;
  7250. 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>();
  7251. traversedRows[row] = row;
  7252. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  7253. for (
  7254. ; ((parent != null)
  7255. && (traversedRows.ContainsKey(parent) == false));
  7256. ) {
  7257. distance = (distance + 1);
  7258. root = parent;
  7259. traversedRows[parent] = parent;
  7260. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  7261. }
  7262. if ((distance == 0)) {
  7263. traversedRows.Clear();
  7264. traversedRows[row] = row;
  7265. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  7266. for (
  7267. ; ((parent != null)
  7268. && (traversedRows.ContainsKey(parent) == false));
  7269. ) {
  7270. distance = (distance + 1);
  7271. root = parent;
  7272. traversedRows[parent] = parent;
  7273. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  7274. }
  7275. }
  7276. return root;
  7277. }
  7278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7280. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  7281. if (object.ReferenceEquals(row1, row2)) {
  7282. return 0;
  7283. }
  7284. if ((row1 == null)) {
  7285. return -1;
  7286. }
  7287. if ((row2 == null)) {
  7288. return 1;
  7289. }
  7290. int distance1 = 0;
  7291. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  7292. int distance2 = 0;
  7293. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  7294. if (object.ReferenceEquals(root1, root2)) {
  7295. return (this._childFirst * distance1.CompareTo(distance2));
  7296. }
  7297. else {
  7298. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  7299. && (root2.Table != null)));
  7300. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  7301. return -1;
  7302. }
  7303. else {
  7304. return 1;
  7305. }
  7306. }
  7307. }
  7308. }
  7309. }
  7310. }
  7311. #pragma warning restore 1591